Results#
- group Results
Functions
- cuestStatus_t cuestResultsCreate(
- cuestResultsType_t resultsType,
- void **outResults
Create a new cuEST results object of the specified type.
Allocates and initializes an opaque results object of the type specified by
resultsType. The created object is returned viaoutResultsand must be destroyed withcuestResultsDestroy.Note
On error,
*outResultsis set to NULL.- Parameters:
resultsType – [in] Type of results object to create (see
cuestResultsType_t).outResults – [out] Pointer to receive allocated opaque results handle.
- Returns:
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifoutResultsis NULL;CUEST_STATUS_INVALID_TYPEifresultsTypeis invalid;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORfor internal errors.
- cuestStatus_t cuestResultsDestroy(
- cuestResultsType_t resultsType,
- void *results
Destroy and free a cuEST results object of the specified type.
Properly deallocates and cleans up resources for a results handle created by
cuestResultsCreate.- Parameters:
resultsType – [in] Type of results object (must match creation).
results – [in] Opaque results handle to destroy; must not be NULL.
- Returns:
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifresultsis NULL;CUEST_STATUS_INVALID_TYPEifresultsTypedoes not match the actual type ofresults;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORfor internal errors.
- cuestStatus_t cuestResultsQuery(
- cuestResultsType_t resultsType,
- const void *results,
- int attribute,
- void *resultValue,
- size_t resultValueSize
Query the value of a given attribute from a cuEST results object.
Retrieves the value associated with an attribute for the given
resultsobject. The type and meaning ofresultsandresultValuedepend onresultsType. The result is placed inattributeValue, whose size must match the expected value size.- Parameters:
resultsType – [in] Type of results object being queried.
results – [in] Opaque handle of the results object (must not be NULL).
attribute – [in] Integer attribute identifier (cast to appropriate attribute enum internally).
resultValue – [out] Destination for the queried value (must not be NULL).
resultValueSize – [in] Size in bytes of
resultValuebuffer (must match queried type).
- Returns:
CUEST_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifresultsorresultValueis NULL;CUEST_STATUS_INVALID_TYPEifresultsis not of the specifiedresultsType;CUEST_STATUS_INVALID_SIZEifresultValueSizedoes not match attribute type size;CUEST_STATUS_INVALID_PARAMETERifattributeis not recognized;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORfor internal errors.