f_console_parameter_t parameters[] = controller_console_parameter_t_initialize;
- data.callback.print_message_help = 0;
- data.callback.process_entry_setup = 0;
- data.callback.process_thread_signal = &controller_thread_signal;
+ data.call.print_message_help = 0;
+ data.call.process_entry_setup = 0;
+ data.call.process_thread_signal = &controller_thread_signal;
data.program.parameters.array = parameters;
data.program.parameters.used = controller_parameter_total_d;
#endif
/**
- * The init program implementation of the process_entry_setup() callback.
+ * The init program implementation of the process_entry_setup() call back.
*
* @param main
* The main program data.
data.program.pipe = fll_program_data_pipe_input_e;
}
- data.callback.print_message_help = &controller_init_print_message_help;
- data.callback.process_entry_setup = &controller_init_process_entry_setup;
- data.callback.process_thread_signal = &controller_init_signal_thread;
+ data.call.print_message_help = &controller_init_print_message_help;
+ data.call.process_entry_setup = &controller_init_process_entry_setup;
+ data.call.process_thread_signal = &controller_init_signal_thread;
data.process.entry.pid = controller_entry_pid_disable_e;
data.process.entry.show = controller_entry_show_init_e;
#endif // _di_controller_setting_t_
/**
- * The Controller callbacks.
+ * The Controller call backs.
*
* Properties:
* - print_message_help: Callback for printing the help message.
f_status_t (*process_entry_setup)(controller_t * const main, controller_entry_t * const entry);
void (*process_thread_signal)(controller_t * const main, const uint8_t is_normal, f_thread_attribute_t * const attribute);
- } controller_callback_t;
+ } controller_call_t;
- #define controller_callback_t_initialize { \
+ #define controller_call_t_initialize { \
.print_message_help = 0, \
.process_entry_setup = 0, \
.process_thread_signal = 0, \
* Properties:
* - program: The main program data.
*
- * - callback: The callbacks.
+ * - call: The callbacks.
* - process: The process data.
* - setting: The settings data.
* - thread: The thread data.
struct controller_t_ {
fll_program_data_t program;
- controller_callback_t callback;
+ controller_call_t call;
controller_process_t process;
controller_setting_t setting;
controller_thread_t thread;
#define controller_t_initialize { \
.program = fll_program_data_t_initialize, \
- .callback = controller_callback_t_initialize, \
+ .call = controller_call_t_initialize, \
.process = controller_process_t_initialize, \
.setting = controller_setting_t_initialize, \
.thread = controller_thread_t_initialize, \
#endif // _di_controller_instance_initialize_
/**
- * A callback intended to be passed to f_memory_arrays_resize() for an f_instances_t structure.
+ * A call back intended to be passed to f_memory_arrays_resize() for an f_instances_t structure.
*
* This is only called when shrinking the array and generally should perform de-allocations.
*
#endif // _di_controller_rule_action_delete_
/**
- * A callback intended to be passed to f_memory_arrays_resize() for an controller_rule_actions_t structure.
+ * A call back intended to be passed to f_memory_arrays_resize() for an controller_rule_actions_t structure.
*
* This is only called when shrinking the array and generally should perform de-allocations.
*
#ifndef _di_controller_rule_item_delete_
extern void controller_rule_item_delete(controller_rule_item_t * const item);
#endif // _di_controller_rule_item_delete_
+
/**
- * A callback intended to be passed to f_memory_arrays_resize() for an controller_rule_items_t structure.
+ * A call back intended to be passed to f_memory_arrays_resize() for an controller_rule_items_t structure.
*
* This is only called when shrinking the array and generally should perform de-allocations.
*
#endif // _di_controller_rule_on_delete_
/**
- * A callback intended to be passed to f_memory_arrays_resize() for an controller_rule_ons_t structure.
+ * A call back intended to be passed to f_memory_arrays_resize() for an controller_rule_ons_t structure.
*
* This is only called when shrinking the array and generally should perform de-allocations.
*
#endif // _di_controller_rule_ons_delete_callback_
/**
- * A callback intended to be passed to f_memory_arrays_resize() for an f_rules_t structure.
+ * A call back intended to be passed to f_memory_arrays_resize() for an f_rules_t structure.
*
* This is only called when shrinking the array and generally should perform de-allocations.
*
entry->items.used = 0;
entry->session = controller_entry_session_same_e;
- if (main->callback.process_entry_setup) {
- const f_status_t status = main->callback.process_entry_setup(main, entry);
+ if (main->call.process_entry_setup) {
+ const f_status_t status = main->call.process_entry_setup(main, entry);
if (F_status_is_error(status)) return status;
}
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: main->callback.process_entry_setup().
+ * Errors (with error bit) from: main->call.process_entry_setup().
*/
#ifndef _di_controller_entry_setup_
extern f_status_t controller_entry_setup(controller_t * const main, controller_entry_t * const entry);
if (main->setting.flag & controller_main_flag_version_copyright_help_d) {
if (main->setting.flag & controller_main_flag_help_d) {
- if (main->callback.print_message_help) {
- main->callback.print_message_help(&main->program.message);
+ if (main->call.print_message_help) {
+ main->call.print_message_help(&main->program.message);
}
else {
controller_print_message_help(&main->program.message);
if (argument) {
controller_thread_arguments_t * const arguments = (controller_thread_arguments_t *) argument;
- if (arguments->main && arguments->main->callback.process_thread_signal) {
- arguments->main->callback.process_thread_signal(arguments->main, F_true, arguments->attribute);
+ if (arguments->main && arguments->main->call.process_thread_signal) {
+ arguments->main->call.process_thread_signal(arguments->main, F_true, arguments->attribute);
}
}
if (argument) {
controller_thread_arguments_t * const arguments = (controller_thread_arguments_t *) argument;
- if (arguments->main && arguments->main->callback.process_thread_signal) {
- arguments->main->callback.process_thread_signal(arguments->main, F_false, arguments->attribute);
+ if (arguments->main && arguments->main->call.process_thread_signal) {
+ arguments->main->call.process_thread_signal(arguments->main, F_false, arguments->attribute);
}
}