|
@@ -81,26 +81,17 @@ typedef enum tagRtLimitType { |
|
|
} rtLimitType_t; |
|
|
} rtLimitType_t; |
|
|
|
|
|
|
|
|
typedef struct rtExceptionInfo { |
|
|
typedef struct rtExceptionInfo { |
|
|
uint32_t taskid; |
|
|
|
|
|
uint32_t streamid; |
|
|
|
|
|
uint32_t tid; |
|
|
|
|
|
uint32_t deviceid; |
|
|
|
|
|
|
|
|
uint32_t taskid; |
|
|
|
|
|
uint32_t streamid; |
|
|
|
|
|
uint32_t tid; |
|
|
|
|
|
uint32_t deviceid; |
|
|
|
|
|
uint32_t retcode; |
|
|
} rtExceptionInfo; |
|
|
} rtExceptionInfo; |
|
|
|
|
|
|
|
|
typedef struct rtTaskFailInfo { |
|
|
|
|
|
uint32_t taskid; |
|
|
|
|
|
uint32_t streamid; |
|
|
|
|
|
uint32_t tid; |
|
|
|
|
|
uint32_t deviceid; |
|
|
|
|
|
uint32_t retcode; |
|
|
|
|
|
} rtTaskFailInfo; |
|
|
|
|
|
|
|
|
|
|
|
typedef void (*rtErrorCallback)(rtExceptionType); |
|
|
typedef void (*rtErrorCallback)(rtExceptionType); |
|
|
|
|
|
|
|
|
typedef void (*rtTaskFailCallback)(rtExceptionInfo *exceptionInfo); |
|
|
typedef void (*rtTaskFailCallback)(rtExceptionInfo *exceptionInfo); |
|
|
|
|
|
|
|
|
typedef void (*rtTaskFailCallbackByModule)(rtTaskFailInfo *exceptionInfo); |
|
|
|
|
|
|
|
|
|
|
|
typedef void (*rtDeviceStateCallback)(uint32_t devId, bool isOpen); |
|
|
typedef void (*rtDeviceStateCallback)(uint32_t devId, bool isOpen); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@@ -209,7 +200,7 @@ RTS_API rtError_t rtRegDeviceStateCallback(const char *regName, rtDeviceStateCal |
|
|
* @param [out] NA |
|
|
* @param [out] NA |
|
|
* @return RT_ERROR_NONE for ok |
|
|
* @return RT_ERROR_NONE for ok |
|
|
*/ |
|
|
*/ |
|
|
RTS_API rtError_t rtRegTaskFailCallbackByModule(const char *moduleName, rtTaskFailCallbackByModule callback); |
|
|
|
|
|
|
|
|
RTS_API rtError_t rtRegTaskFailCallbackByModule(const char *moduleName, rtTaskFailCallback callback); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @ingroup dvrt_base |
|
|
* @ingroup dvrt_base |
|
|