Typedef QnnOpPackage_InterfaceProvider_t¶
Defined in File QnnOpPackage.h
Typedef Documentation¶
-
typedef Qnn_ErrorHandle_t (*QnnOpPackage_InterfaceProvider_t)(QnnOpPackage_Interface_t *interface)¶
A function to retrieve the interface provided by the Op package. The name of this function is not prescribed by Op Package API, but must be documented by the package developer and supplied to QNN backend by the client. See QnnBackend_registerOpPackage().
- Param interface
[out] QNN Op Package interface structure, populated with the version and interface methods this Op package provides. Caller to manage the lifetime of the pointer, though the contents are to be considered invalid if the op package library is terminated/unloaded.
- Return
Error code:
QNN_SUCCESS: Op package interface is successfully retrieved.
QNN_OP_PACKAGE_ERROR_INVALID_ARGUMENT: interface argument was NULL.
QNN_OP_PACKAGE_ERROR_GENERAL: Other error occurred.