Parameters#
- cuest.bindings.cuestParametersCreate(
- *,
- parametersType: int,
- outParameters: cuest.bindings.cuest.Parameters,
Create a new cuEST parameters object of the specified type.
Allocates and initializes an opaque parameter object of the type specified by
parametersType. The created object is returned viaoutParametersand must be destroyed withcuestParametersDestroy().Parameters#
- parametersType[in]CuestParametersType
Type of parameters object to create (see
cuestParametersType_t).- outParameters[out]cuestParametersHandle
Pointer to receive allocated opaque parameters handle.
Returns#
- status[out]cuestStatus_t
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifoutParametersis NULL;CUEST_STATUS_INVALID_TYPEifparametersTypeis invalid;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORotherwise.
- cuest.bindings.cuestParametersDestroy(
- *,
- parametersType: int,
- parameters: cuest.bindings.cuest.Parameters,
Destroy and free a cuEST parameters object of the specified type.
Properly deallocates and cleans up resources for a parameters handle created by
cuestParametersCreate().Parameters#
- parametersType[in]CuestParametersType
Type of parameters object (must match creation).
- parameters[in]cuestParametersHandle
Opaque parameters handle to destroy; must not be NULL.
Returns#
- status[out]cuestStatus_t
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifparametersis NULL;CUEST_STATUS_INVALID_TYPEifparametersTypedoes not match the actual type ofparameters;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORotherwise.
- cuest.bindings.cuestParametersQuery(
- *,
- parametersType: int,
- parameters: cuest.bindings.cuest.Parameters,
- attribute: int,
- attributeValue: object,
Query the value of a given attribute from a cuEST parameters object.
Retrieves the value associated with an
attributefor the givenparametersobject. The type and meaning ofattributeandattributeValuedepend onparametersType. The result is placed inattributeValue, whose size must match the expected value size.Parameters#
- parametersType[in]CuestParametersType
Type of parameters object being queried.
- parameters[in]cuestParametersHandle
Opaque handle of the parameters object (must not be NULL).
- attribute[in]int
Integer attribute identifier (cast to appropriate attribute enum internally).
- attributeValue[out]data handle (matching the queried attribute’s type)
Destination for the queried value (must not be NULL).
Returns#
- status[out]cuestStatus_t
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifparametersis NULL;CUEST_STATUS_INVALID_TYPEifparametersis not of the specifiedparametersType, orattributeValuehas the wrong data type;CUEST_STATUS_INVALID_PARAMETERif the attribute is not recognized for the givenparametersType;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORotherwise.
- cuest.bindings.cuestParametersConfigure(
- *,
- parametersType: int,
- parameters: cuest.bindings.cuest.Parameters,
- attribute: int,
- attributeValue: object,
Configure the value of a given
attributefor a cuESTparametersobject.Sets or updates the value of an
attributefor the givenparametersobject. The type and semantics of theattributeandattributeValuedepend onparametersType. The input value is provided as a pointer, and its size must match the expected storage for theattribute.Parameters#
- parametersType[in]CuestParametersType
Type of parameters object being configured.
- parameters[in,out]cuestParametersHandle
Opaque handle of the parameters object (must not be NULL).
- attribute[in]int
Integer attribute identifier (cast to appropriate attribute enum internally).
- attributeValue[in]data handle (matching the configured attribute’s type)
Pointer to the new value (must not be NULL).
Returns#
- status[out]cuestStatus_t
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifparametersis NULL;CUEST_STATUS_INVALID_TYPEifparametersis not of the specifiedparametersType, orattributeValuehas the wrong data type;CUEST_STATUS_INVALID_PARAMETERif the attribute is not recognized for the givenparametersType;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORotherwise.