* The path to the file to operate on.
*
* This should always be TRUE when calling from the top level.
- * This should always be FALSE if calling from within a fl_directory_do() callback.
+ * This should always be FALSE if calling from within a fl_directory_do() call back.
* This is because fl_directory_do() handles directory traversal and processing.
* @param recurse
* One of the kt_remove_flag_recurse_*_d flags.
* The path to the file to operate on.
*
* This should always be TRUE when calling from the top level.
- * This should always be FALSE if calling from within a fl_directory_do() callback.
+ * This should always be FALSE if calling from within a fl_directory_do() call back.
* This is because fl_directory_do() handles directory traversal and processing.
* @param flag_operate
* The operate file specific flags from kt_remove_flag_operate_*_e.
*
* setting_load_send_receive: Process loading the settings regarding send and receive, handling DNS resolution and file opening as needed.
*/
-#ifndef _di_kt_tacocat_callback_t_
+#ifndef _di_kt_tacocat_call_t_
typedef struct {
void (*setting_load_send_receive)(const f_console_arguments_t arguments, kt_tacocat_main_t * const main);
- } kt_tacocat_callback_t;
+ } kt_tacocat_call_t;
- #define kt_tacocat_callback_t_initialize { \
+ #define kt_tacocat_call_t_initialize { \
.setting_load_send_receive = 0, \
}
-#endif // _di_kt_tacocat_callback_t_
+#endif // _di_kt_tacocat_call_t_
/**
* The main thread settings.
/**
* The main program data as a single structure.
*
+ * cache: The program cache.
+ * call: The program callbacks.
* program: The main program data.
* setting: The settings data.
- * callback: The program callbacks.
* thread: The program thread data.
*/
#ifndef _di_kt_tacocat_main_t_
struct kt_tacocat_main_t_ {
+ kt_tacocat_cache_t cache;
+ kt_tacocat_call_t call;
fll_program_data_t program;
kt_tacocat_setting_t setting;
- kt_tacocat_callback_t callback;
kt_tacocat_thread_t thread;
- kt_tacocat_cache_t cache;
};
#define kt_tacocat_main_t_initialize { \
+ .cache = kt_tacocat_cache_t_initialize, \
+ .call = kt_tacocat_call_t_initialize, \
.program = fll_program_data_t_initialize, \
.setting = kt_tacocat_setting_t_initialize, \
- .callback = kt_tacocat_callback_t_initialize, \
.thread = kt_tacocat_thread_t_initialize, \
- .cache = kt_tacocat_cache_t_initialize, \
}
#endif // _di_kt_tacocat_main_t_
#endif // _di_kt_tacocat_setting_delete_
/**
- * A callback intended to be passed to f_memory_arrays_resize() for an kt_tacocat_socket_sets_t structure.
+ * A call back intended to be passed to f_memory_arrays_resize() for an kt_tacocat_socket_sets_t structure.
*
* This is only called when shrinking the array and generally should perform deallocations.
*