Query#
- cuest.bindings.cuestQuery(
- *,
- handle: cuest.bindings.cuest.cuestHandle,
- type: cuest.bindings.cuest.CuestType,
- object: object,
- attribute: int,
- attributeValue: object,
Query an attribute of a cuEST opaque handle.
The result pointer (
attributeValue) must reference sufficient memory for the type matching the specified attribute.Parameters#
- handle[in]cuestHandle
cuEST handle. Must not be NULL.
- type[in]cuestTypeHandle
enum indicating which type of object is being queried
- object[in] :
cuEST object to be queried (opaque handle). Must not be NULL.
- attribute[in]int
Attribute/property to query. (Should be an enum appropriate to the type of object.)
- attributeValue[out] :
Pointer to memory for result (type depends on attribute).
Returns#
- status[out]cuestStatus_t
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifattributeValueis NULL;CUEST_STATUS_INVALID_SIZEif size ofattributeValuedoes not match attribute type size;CUEST_STATUS_INVALID_TYPEifattributeValuehas the wrong data type;CUEST_STATUS_INVALID_ATTRIBUTEif attribute is not recognized;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORotherwise.