File UdoReg.h¶
↰ Parent directory (SnpeUdo)
Definition (SnpeUdo/UdoReg.h)¶
Includes¶
SnpeUdo/UdoShared.h(File UdoShared.h)
Functions¶
Typedefs¶
Full File Listing¶
Typedefs
-
typedef SnpeUdo_ErrorType_t (*SnpeUdo_InitRegLibraryFunction_t)(void)¶
-
typedef SnpeUdo_ErrorType_t (*SnpeUdo_getRegLibraryVersion_t)(SnpeUdo_LibVersion_t **version)¶
-
typedef SnpeUdo_ErrorType_t (*SnpeUdo_TerminateRegLibraryFunction_t)(void)¶
-
typedef SnpeUdo_ErrorType_t (*SnpeUdo_GetRegInfoFunction_t)(SnpeUdo_RegInfo_t **registrationInfo)¶
-
typedef SnpeUdo_ErrorType_t (*SnpeUdo_ValidateOperationFunction_t)(SnpeUdo_OpDefinition_t *opDefinition)¶
Functions
-
SnpeUdo_ErrorType_t SnpeUdo_initRegLibrary(void)¶
Initialize the shared library’s data structures. Calling any other library function before this one will result in an error being returned.
- Returns
Error code
-
SnpeUdo_ErrorType_t SnpeUdo_getRegLibraryVersion(SnpeUdo_LibVersion_t **version)¶
A function to query the API version of the UDO registration library. The function populates a SnpeUdo_LibVersion_t struct, which contains a SnpeUdo_Version_t struct for API version and library version.
- Parameters
version – [inout] A pointer to struct which contains major, minor, teeny information for library and api versions.
- Returns
Error code
-
SnpeUdo_ErrorType_t SnpeUdo_terminateRegLibrary(void)¶
Release the shared library’s data structures, and invalidate any handles returned by the library. The behavior of any outstanding asynchronous calls made to this library when this function is called are undefined. All library functions (except SnpeUdo_InitRegLibrary) will return an error after this function has been successfully called.
It should be possible to call SnpeUdo_InitRegLibrary after calling this function, and re-initialize the library.
- Returns
Error code
-
SnpeUdo_ErrorType_t SnpeUdo_getRegInfo(SnpeUdo_RegInfo_t **registrationInfo)¶
A function to query the info on the UDO set. The function populates a structure which contains information about the package and operations contained in it.
- Parameters
registrationInfo – [inout] A struct which contains information on the set of UDOs
- Returns
Error code
-
SnpeUdo_ErrorType_t SnpeUdo_validateOperation(SnpeUdo_OpDefinition_t *opDefinition)¶
A function to validate that a set of params is supported by an operation The function receives an operation definition struct, and returns if this configuration is supported (e.g. if an operation can be created using this configuration)
- Parameters
opDefinition – [in] A struct of SnpeUdo_OpDefinition type, containing the information needed to validate that an operation can be created with this configuration.
- Returns
Error code, indicating is the operation can be created on this set or not.