Tilt Five NDK  1.4.1
Collaboration diagram for System-wide parameters:

Functions

T5_EXPORT T5_Result t5GetSystemIntegerParam (T5_Context context, T5_ParamSys param, int64_t *value)
 Get a system-wide integer parameter. More...
 
T5_EXPORT T5_Result t5GetSystemFloatParam (T5_Context context, T5_ParamSys param, double *value)
 Get a system-wide floating point parameter. More...
 
T5_EXPORT T5_Result t5GetSystemUtf8Param (T5_Context context, T5_ParamSys param, char *buffer, size_t *bufferSize)
 Get a system-wide UTF-8 encoded string parameter. More...
 
T5_EXPORT T5_Result t5GetChangedSystemParams (T5_Context context, T5_ParamSys *buffer, uint16_t *count)
 Get a system-wide list of changed parameters. More...
 

Detailed Description

Function Documentation

◆ t5GetChangedSystemParams()

T5_EXPORT T5_Result t5GetChangedSystemParams ( T5_Context  context,
T5_ParamSys buffer,
uint16_t *  count 
)

Get a system-wide list of changed parameters.

This function doesn't return the values of the changed parameters, but an unordered list of the parameters that have changed since this function was last called. Note that as a result, the first call to this function will always result in a count of 0.

Threading
Exclusivity group 1 - Functions in this group must not be called concurrently from different threads.
Parameters
[in]context- T5_Context returned by t5CreateContext().
[out]buffer- T5_ParamSys buffer to receive list of change parameters.
[in,out]count- On Call: Size of buffer in elements.
  On Return: Number of changed parameters in butter.
Return values
T5_SUCCESSChanged parameter list written to buffer.
T5_ERROR_INVALID_ARGSNullptr was supplied for buffer. or Nullptr was supplied for count.
T5_ERROR_OVERFLOWBuffer too small to contain parameter list.
T5_ERROR_NO_CONTEXTcontext is invalid.
T5_ERROR_SERVICE_INCOMPATIBLEService is incompatible; context cannot be used. Need driver upgrade.

Referenced by tiltfive::Client::getChangedParams().

◆ t5GetSystemFloatParam()

T5_EXPORT T5_Result t5GetSystemFloatParam ( T5_Context  context,
T5_ParamSys  param,
double *  value 
)

Get a system-wide floating point parameter.

See T5_ParamSys for a list of possible parameters to retrieve.

Threading
Exclusivity group 1 - Functions in this group must not be called concurrently from different threads.
Parameters
[in]context- T5_Context returned by t5CreateContext()
[in]param- T5_ParamSys to get value for.
[out]value- Pointer to a double to be set to the current value.
Return values
T5_SUCCESSGot the parameter
T5_ERROR_INVALID_ARGSparam was not a valid enumerant or NULL was supplied for value
T5_TIMEOUTTimeout waiting to read value.
T5_ERROR_IO_FAILUREFailed to communicate with the service.
T5_ERROR_NO_SERVICEService is unavailable.
T5_ERROR_NO_CONTEXTcontext is invalid.
T5_ERROR_SETTING_WRONG_TYPEThe requested parameter is not a floating point value.
T5_ERROR_SERVICE_INCOMPATIBLEService is incompatible; context cannot be used. Need driver upgrade.

The following are internal errors that should be discarded and/or logged:

Return values
T5_ERROR_SETTING_UNKNOWNInternal (Not correctable): Setting is unknown.
T5_ERROR_INTERNALInternal (Not correctable): Generic error.
T5_ERROR_MISC_REMOTEInternal (Not correctable): Generic service error.
T5_ERROR_OVERFLOWInternal (Not correctable): Buffer overflow.

◆ t5GetSystemIntegerParam()

T5_EXPORT T5_Result t5GetSystemIntegerParam ( T5_Context  context,
T5_ParamSys  param,
int64_t *  value 
)

Get a system-wide integer parameter.

See T5_ParamSys for a list of possible parameters to retrieve.

Threading
Exclusivity group 1 - Functions in this group must not be called concurrently from different threads.
Parameters
[in]context- T5_Context returned by t5CreateContext()
[in]param- T5_ParamSys to get value for.
[out]value- Pointer to a int64_t to be set to the current value.
Return values
T5_SUCCESSGot the parameter
T5_ERROR_INVALID_ARGSparam was not a valid enumerant or NULL was supplied for value
T5_TIMEOUTTimeout waiting to read value.
T5_ERROR_IO_FAILUREFailed to communicate with the service.
T5_ERROR_NO_SERVICEService is unavailable.
T5_ERROR_NO_CONTEXTcontext is invalid.
T5_ERROR_SETTING_WRONG_TYPEThe requested parameter is not an integer value.
T5_ERROR_SERVICE_INCOMPATIBLEService is incompatible; context cannot be used. Need driver upgrade.

The following are internal errors that should be discarded and/or logged:

Return values
T5_ERROR_SETTING_UNKNOWNInternal (Not correctable): Setting is unknown.
T5_ERROR_INTERNALInternal (Not correctable): Generic error.
T5_ERROR_MISC_REMOTEInternal (Not correctable): Generic service error.
T5_ERROR_OVERFLOWInternal (Not correctable): Buffer overflow.

Referenced by tiltfive::Client::isTiltFiveUiRequestingAttention().

◆ t5GetSystemUtf8Param()

T5_EXPORT T5_Result t5GetSystemUtf8Param ( T5_Context  context,
T5_ParamSys  param,
char *  buffer,
size_t *  bufferSize 
)

Get a system-wide UTF-8 encoded string parameter.

See T5_ParamSys for a list of possible parameters to retrieve.

Threading
Exclusivity group 1 - Functions in this group must not be called concurrently from different threads.
Parameters
[in]context- T5_Context returned by t5CreateContext()
[in]param- T5_ParamSys to get value for.
[out]buffer- Pointer to a buffer into which the current value is to be written as a null-terminated string of UTF-8 code points.
[in,out]bufferSize- On Call: Size of the buffer pointed to by buffer.
  On Return: Size of the parameter value. Note that this may be larger than the buffer, in which case T5_ERROR_OVERFLOW is returned, and this value represents the size of the buffer needed to avoid overflow.
Return values
T5_SUCCESSGot the parameter
T5_ERROR_INVALID_ARGSparam was not a valid enumerant or NULL was supplied for buffer or NULL was supplied for bufferSize
T5_TIMEOUTTimeout waiting to read value.
T5_ERROR_IO_FAILUREFailed to communicate with the service.
T5_ERROR_NO_SERVICEService is unavailable.
T5_ERROR_NO_CONTEXTcontext is invalid.
T5_ERROR_SETTING_WRONG_TYPEThe requested parameter is not a UTF-8 string value.
T5_ERROR_SERVICE_INCOMPATIBLEService is incompatible; context cannot be used. Need driver upgrade.
T5_ERROR_OVERFLOWThe provided buffer was insufficient to store the UTF-8 string value.

The following are internal errors that should be discarded and/or logged:

Return values
T5_ERROR_SETTING_UNKNOWNInternal (Not correctable): Setting is unknown.
T5_ERROR_INTERNALInternal (Not correctable): Generic error.
T5_ERROR_MISC_REMOTEInternal (Not correctable): Generic service error.

Referenced by tiltfive::Client::getServiceVersion().