Genvid_GetParameterInt()¶
-
GenvidStatus
Genvid_GetParameterInt
(const char *streamID, const char *paramKey, int *paramValue)¶ For the specified
streamID
, retrieves the integer value of a stream parameter namedparamKey
and stores it at the address pointed to byparamValue
.Using a NULL
streamID
works for system parameters.To get a key value from Consul,
streamID
must be written as genvid.kv.paramKey
is used as the key value name andparamValue
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.