typedef int(* CUSTOM_EXIT_ftn_t)(int *, va_list) |
TCCORE_API int CUSTOM_execute_callbacks | ( | int * | decision, | |
const char * | ftn_name, | |||
... | ||||
) |
This function executes the custom callbacks registered for a particular USER_ or USERSERVICE_ exit
For each custom library registered in the site preference file,
The va_list has to be expanded in the custom function
This function is called in all the USER_ and USERSERVICE_ functions in user_exits and server_exits.
decision | (O) Whether to execute ALL_CUSTOMIZATIONS, ONLY_CURRENT_CUSTOMIZATION or NO_CUSTOMIZATION |
ftn_name | (I) Name of the USER_ or USERSERVICE_ exit. The variables that need to be passed to the custom exit (a custom function pointer) |
TCCORE_API int CUSTOM_execute_callbacks_from_library | ( | int * | decision, | |
const char * | lib_name, | |||
const char * | ftn_name, | |||
... | ||||
) |
This function executes custom callbacks registered in a particular library for a particular USER_ or USERSERVICE_ exit
decision | (O) Whether to execute ALL_CUSTOMIZATIONS, ONLY_CURRENT_CUSTOMIZATION or NO_CUSTOMIZATION |
lib_name | (I) Name of the customization context (e.g. GM, Ford, Suzuki, etc..) |
ftn_name | (I) Name of the USER_ or USERSERVICE_ exit. The variables that need to be passed to the custom exit (a custom function pointer) |
TCCORE_API int CUSTOM_register_callbacks | ( | void | ) |
This function registers customizations for all the customization contexts registered in the site preference file.
It goes through each custom library registered in the site preference file
These custom registrations are done using the ITK CUSTOM_register_exit
This ITK should be called only in USER_preint_module in user_init.c. It should not be called anywhere else.
TCCORE_API int CUSTOM_register_exit | ( | const char * | context, | |
const char * | base_ftn_name, | |||
CUSTOM_EXIT_ftn_t | custom_ftn | |||
) |
This function registers a custom exit (a custom function pointer) for a given USER_ and USERSERVICE_ exit function
context | (I) The context in which this custom exit has to be registered. It is the name of the customization library (eg GM, Ford, Suzuki, etc..) |
base_ftn_name | (I) Name of the USER_ or USERSERVICE_ exit for which the custom exit has to be registered (e.g. USER_new_dataset_name) |
custom_ftn | (I) The name of the custom exit (a custom function pointer) |