Genvid_GetParameterUTF8()

GenvidStatus Genvid_GetParameterUTF8(const char *id, const char *paramKey, char *dstBuffer, size_t dstBufferSize)

For the specified id, retrieves the key value value of Consul named paramKey and stores it at the address pointed to by dstBuffer. dstBufferSize is needed to indicate the size of the retrieved string.

To get a key value from Consul, streamID must be written as genvid.kv. paramKey is used as the key value name and paramValue as the container to receive the key value content.

Returns one of the following values:

GenvidStatus_UninitializedSDK: The Genvid library was not initialized before calling it.

GenvidStatus_InvalidState: The streamID was not found.

GenvidStatus_InvalidParameter: One of the parameters is invalid.

GenvidStatus_Incomplete: The dstBufferSize is too small. This would result in a non-null terminated string!