Query#
- group Query
Functions
- cuestStatus_t cuestQuery(
- cuestHandle_t handle,
- cuestType_t type,
- const void *object,
- int attribute,
- void *attributeValue,
- size_t attributeValueSize
Query an attribute of a cuEST opaque handle.
The result pointer
attributeValuemust reference sufficient memory for the type matching the specified attribute. Note that char* attributes are allocated internally and must be freed by the caller using free().- Parameters:
handle – [in] cuEST handle. Must not be NULL.
type – [in] enum indicating which type of object is being queried
object – [in] cuEST object to be queried (opaque handle). Must not be NULL.
attribute – [in] 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).
attributeValueSize – [in] Number of bytes in
attributeValue. Must match sizeof(type).
- Returns:
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifobjectorattributeValueis NULL;CUEST_STATUS_INVALID_TYPEifobjectis not of the specifiedtype;CUEST_STATUS_INVALID_SIZEifattributeValueSizedoes not matchattributetype size;CUEST_STATUS_INVALID_ATTRIBUTEifattributeis not recognized;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORfor internal errors.