Switch these callbacks to use the typedef design.
#endif // _di_fss_read_ensure_quotes_length_
#ifndef _di_fss_read_setting_load_
- void fss_read_setting_load(const f_console_arguments_t arguments, fss_read_main_t * const main, void (*callback)(const f_console_arguments_t arguments, fss_read_main_t * const main)) {
+ void fss_read_setting_load(const f_console_arguments_t arguments, fss_read_main_t * const main, const fss_read_settings_load_call_t do_settings_load) {
if (!main) return;
main->setting.flag |= fss_read_main_flag_copyright_d;
}
- if (callback) {
- callback(arguments, main);
+ if (do_settings_load) {
+ do_settings_load(arguments, main);
if (F_status_is_error(main->setting.state.status)) return;
if (main->setting.state.status == F_done) {
*
* Errors (with error bit) from: fss_read_setting_load_depth().
* Errors (with error bit) from: fss_read_signal_check()
- * @param callback
+ * @param do_settings_load
* (optional) Designate a function to call after performing the initial processing, but before printing help.
* If the function returns F_done, then this function immediately returns, resetting status to F_okay.
+ *
* Set to NULL to disable.
*
* @see f_console_parameter_process()
* @see fss_read_signal_check()
*/
#ifndef _di_fss_read_setting_load_
- extern void fss_read_setting_load(const f_console_arguments_t arguments, fss_read_main_t * const main, void (*callback)(const f_console_arguments_t arguments, fss_read_main_t * const main));
+ extern void fss_read_setting_load(const f_console_arguments_t arguments, fss_read_main_t * const main, const fss_read_settings_load_call_t do_settings_load);
#endif // _di_fss_read_setting_load_
/**
* - setting: The settings data.
*/
#ifndef _di_fss_read_main_t_
+ typedef void (*fss_read_settings_load_call_t)(const f_console_arguments_t arguments, fss_read_main_t * const main);
+
struct fss_read_main_t_ {
fss_read_cache_t cache;
fss_read_call_t call;
#endif
#ifndef _di_iki_read_setting_load_
- void iki_read_setting_load(const f_console_arguments_t arguments, iki_read_main_t * const main, void (*callback)(const f_console_arguments_t arguments, iki_read_main_t * const main)) {
+ void iki_read_setting_load(const f_console_arguments_t arguments, iki_read_main_t * const main, const iki_read_settings_load_call_t do_settings_load) {
if (!main) return;
return;
}
- if (callback) {
- callback(arguments, main);
+ if (do_settings_load) {
+ do_settings_load(arguments, main);
if (F_status_is_error(main->setting.state.status)) return;
if (main->setting.state.status == F_done) {
* Errors (with error bit) from: f_string_dynamic_append().
* Errors (with error bit) from: fll_program_parameter_process_context().
* Errors (with error bit) from: fll_program_parameter_process_verbosity_standard().
- * @param callback
+ * @param do_settings_load
* (optional) Designate a function to call after performing the initial processing, but before printing help.
* If the function returns F_done, then this function immediately returns, resetting status to F_okay.
+ *
* Set to NULL to disable.
*
* @see f_console_parameter_process()
* @see fll_program_parameter_process_verbosity_standard()
*/
#ifndef _di_iki_read_setting_load_
- extern void iki_read_setting_load(const f_console_arguments_t arguments, iki_read_main_t * const main, void (*callback)(const f_console_arguments_t arguments, iki_read_main_t * const main));
+ extern void iki_read_setting_load(const f_console_arguments_t arguments, iki_read_main_t * const main, const iki_read_settings_load_call_t do_settings_load);
#endif // _di_iki_read_setting_load_
/**
* - delete_data: Delete the IKI/EKI data.
*/
#ifndef _di_iki_read_callback_t_
+ typedef void (*iki_read_settings_load_call_t)(const f_console_arguments_t arguments, iki_read_main_t * const main);
typedef void (*iki_read_main_call_t) (iki_read_main_t * const main);
typedef void (*iki_read_print_data_call_t) (fl_print_t * const print, const f_number_unsigned_t index);
typedef void (*iki_read_process_buffer_ranges_call_t) (iki_read_main_t * const main, f_range_t * const range_buffer);
#endif
#ifndef _di_iki_write_setting_load_
- void iki_write_setting_load(const f_console_arguments_t arguments, iki_write_main_t * const main, void (*callback)(const f_console_arguments_t arguments, iki_write_main_t * const main)) {
+ void iki_write_setting_load(const f_console_arguments_t arguments, iki_write_main_t * const main, const iki_write_settings_load_call_t do_settings_load) {
if (!main) return;
return;
}
- if (callback) {
- callback(arguments, main);
+ if (do_settings_load) {
+ do_settings_load(arguments, main);
if (F_status_is_error(main->setting.state.status)) return;
if (main->setting.state.status == F_done) {
* Errors (with error bit) from: f_file_stream_open().
* Errors (with error bit) from: fll_program_parameter_process_context().
* Errors (with error bit) from: fll_program_parameter_process_verbosity_standard().
- * @param callback
+ * @param do_settings_load
* (optional) Designate a function to call after performing the initial processing, but before printing help.
* If the function returns F_done, then this function immediately returns, resetting status to F_okay.
+ *
* Set to NULL to disable.
*
* @see f_console_parameter_process()
* @see fll_program_parameter_process_verbosity_standard()
*/
#ifndef _di_iki_write_setting_load_
- extern void iki_write_setting_load(const f_console_arguments_t arguments, iki_write_main_t * const main, void (*callback)(const f_console_arguments_t arguments, iki_write_main_t * const main));
+ extern void iki_write_setting_load(const f_console_arguments_t arguments, iki_write_main_t * const main, const iki_write_settings_load_call_t do_settings_load);
#endif // _di_iki_write_setting_load_
#ifdef __cplusplus
* - process_objects_content: Process an Objects and Content set.
*/
#ifndef _di_iki_write_call_t_
+ typedef void (*iki_write_settings_load_call_t)(const f_console_arguments_t arguments, iki_write_main_t * const main);
typedef void (*iki_write_load_objects_content_pipe_call_t)(void * const main, const f_range_t range, uint8_t * const pipe_state);
typedef void (*iki_write_process_objects_content_call_t)(void * const main, const f_string_statics_t objects, const f_string_static_t content);