SEDRIS Reference Manual
APPENDIX A - Transmittal Access Level 0 API Functions SE SetGeneralCallbackForOneFunction |
---|
extern SE_Return_Code | |||
SE_SetGeneralCallbackForOneFunction | |||
( | |||
SE_Error_Handling_Function_Ptr | user_defined_function, | (notes) | |
SE_Transmittal_API_Function | function_to_catch | (notes) | |
); |
Registers a user-defined function as the 'callback' function to be called when any status code is about to be returned by the given Level 0 API function. This user-defined function must be defined to match SE_Error_Handling_Function_Signature.
This callback will not be called if a specific status code is about to be returned from the selected Level 0 API function and that particular function and status code currently have a specific function/specific status code callback set by the SE_SetSpecificCallback() function. A specific function/specific status code callback set by that call takes priority over a general function callback set by this call.
See the comments of SE_SetSpecificCallback() for more details.
SE_RET_CODE_SUCCESS | and the callback is set. |
SE_RET_CODE_FAILURE | and the status code is set appropriately if the call failed. |
SE_Status_Code(s) when SE_RET_CODE_SUCCESS is returned:
SE_STAT_CODE_SUCCESS | set if valid parameters were passed in and the call was successful. |
SE_Status_Code(s) when SE_RET_CODE_FAILURE is returned:
SE_STAT_CODE_INACTIONABLE_FAILURE | set if function_to_catch was invalid or the call fails for any other reason. |
a pointer to a user-defined callback function. If NULL, then this 'clears' the general callback capability for that function.
the specific function for which user_defined_function is to be a general callback.
Prev: SE_SetGeneralCallback.
Next: SE_SetRootObject.
Up:Index.
|