diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-11 22:31:33 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-11 22:31:33 +0200 |
commit | fa9f787e148302a3a67e4218c27bd99c49f603ae (patch) | |
tree | e02dad4117ac65de91ef1b53bf2f901f92a07bf3 /src/plugins/logger | |
parent | d301dd6c17b4e35c0fc2fb563bf06e22e11f4916 (diff) | |
download | weechat-fa9f787e148302a3a67e4218c27bd99c49f603ae.zip |
core: sort config options by name in sources
Diffstat (limited to 'src/plugins/logger')
-rw-r--r-- | src/plugins/logger/logger-config.c | 72 | ||||
-rw-r--r-- | src/plugins/logger/logger-config.h | 11 |
2 files changed, 42 insertions, 41 deletions
diff --git a/src/plugins/logger/logger-config.c b/src/plugins/logger/logger-config.c index a0e64d9da..60b2daf79 100644 --- a/src/plugins/logger/logger-config.c +++ b/src/plugins/logger/logger-config.c @@ -39,21 +39,21 @@ struct t_config_option *logger_config_look_backlog; /* logger config, color section */ -struct t_config_option *logger_config_color_backlog_line; struct t_config_option *logger_config_color_backlog_end; +struct t_config_option *logger_config_color_backlog_line; /* logger config, file section */ struct t_config_option *logger_config_file_auto_log; struct t_config_option *logger_config_file_flush_delay; +struct t_config_option *logger_config_file_info_lines; +struct t_config_option *logger_config_file_mask; struct t_config_option *logger_config_file_name_lower_case; +struct t_config_option *logger_config_file_nick_prefix; +struct t_config_option *logger_config_file_nick_suffix; struct t_config_option *logger_config_file_path; -struct t_config_option *logger_config_file_mask; struct t_config_option *logger_config_file_replacement_char; -struct t_config_option *logger_config_file_info_lines; struct t_config_option *logger_config_file_time_format; -struct t_config_option *logger_config_file_nick_prefix; -struct t_config_option *logger_config_file_nick_suffix; /* @@ -397,16 +397,16 @@ logger_config_init () return 0; } - logger_config_color_backlog_line = weechat_config_new_option ( - logger_config_file, ptr_section, - "backlog_line", "color", - N_("color for backlog lines"), - NULL, -1, 0, "darkgray", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); logger_config_color_backlog_end = weechat_config_new_option ( logger_config_file, ptr_section, "backlog_end", "color", N_("color for line ending the backlog"), NULL, -1, 0, "darkgray", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); + logger_config_color_backlog_line = weechat_config_new_option ( + logger_config_file, ptr_section, + "backlog_line", "color", + N_("color for backlog lines"), + NULL, -1, 0, "darkgray", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); /* file */ ptr_section = weechat_config_new_section (logger_config_file, "file", @@ -433,12 +433,38 @@ logger_config_init () "files immediately for each line printed)"), NULL, 0, 3600, "120", NULL, 0, NULL, NULL, &logger_config_flush_delay_change, NULL, NULL, NULL); + logger_config_file_info_lines = weechat_config_new_option ( + logger_config_file, ptr_section, + "info_lines", "boolean", + N_("write information line in log file when log starts or ends for a " + "buffer"), + NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); + logger_config_file_mask = weechat_config_new_option ( + logger_config_file, ptr_section, + "mask", "string", + N_("default file name mask for log files (format is " + "\"directory/to/file\" or \"file\", without first \"/\" because " + "\"path\" option is used to build complete path to file); local " + "buffer variables are permitted; date specifiers are permitted " + "(see man strftime)"), + NULL, 0, 0, "$plugin.$name.weechatlog", NULL, 0, NULL, NULL, + &logger_config_change_file_option_restart_log, NULL, NULL, NULL); logger_config_file_name_lower_case = weechat_config_new_option ( logger_config_file, ptr_section, "name_lower_case", "boolean", N_("use only lower case for log filenames"), NULL, 0, 0, "on", NULL, 0, NULL, NULL, &logger_config_change_file_option_restart_log, NULL, NULL, NULL); + logger_config_file_nick_prefix = weechat_config_new_option ( + logger_config_file, ptr_section, + "nick_prefix", "string", + N_("text to write before nick in prefix of message, example: \"<\""), + NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); + logger_config_file_nick_suffix = weechat_config_new_option ( + logger_config_file, ptr_section, + "nick_suffix", "string", + N_("text to write after nick in prefix of message, example: \">\""), + NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); logger_config_file_path = weechat_config_new_option ( logger_config_file, ptr_section, "path", "string", @@ -447,16 +473,6 @@ logger_config_init () "specifiers are permitted (see man strftime)"), NULL, 0, 0, "%h/logs/", NULL, 0, NULL, NULL, &logger_config_change_file_option_restart_log, NULL, NULL, NULL); - logger_config_file_mask = weechat_config_new_option ( - logger_config_file, ptr_section, - "mask", "string", - N_("default file name mask for log files (format is " - "\"directory/to/file\" or \"file\", without first \"/\" because " - "\"path\" option is used to build complete path to file); local " - "buffer variables are permitted; date specifiers are permitted " - "(see man strftime)"), - NULL, 0, 0, "$plugin.$name.weechatlog", NULL, 0, NULL, NULL, - &logger_config_change_file_option_restart_log, NULL, NULL, NULL); logger_config_file_replacement_char = weechat_config_new_option ( logger_config_file, ptr_section, "replacement_char", "string", @@ -464,28 +480,12 @@ logger_config_init () "(like directory delimiter)"), NULL, 0, 0, "_", NULL, 0, NULL, NULL, &logger_config_change_file_option_restart_log, NULL, NULL, NULL); - logger_config_file_info_lines = weechat_config_new_option ( - logger_config_file, ptr_section, - "info_lines", "boolean", - N_("write information line in log file when log starts or ends for a " - "buffer"), - NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); logger_config_file_time_format = weechat_config_new_option ( logger_config_file, ptr_section, "time_format", "string", N_("timestamp used in log files (see man strftime for date/time " "specifiers)"), NULL, 0, 0, "%Y-%m-%d %H:%M:%S", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); - logger_config_file_nick_prefix = weechat_config_new_option ( - logger_config_file, ptr_section, - "nick_prefix", "string", - N_("text to write before nick in prefix of message, example: \"<\""), - NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); - logger_config_file_nick_suffix = weechat_config_new_option ( - logger_config_file, ptr_section, - "nick_suffix", "string", - N_("text to write after nick in prefix of message, example: \">\""), - NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); /* level */ ptr_section = weechat_config_new_section (logger_config_file, "level", diff --git a/src/plugins/logger/logger-config.h b/src/plugins/logger/logger-config.h index 099d1bd36..c1834a95a 100644 --- a/src/plugins/logger/logger-config.h +++ b/src/plugins/logger/logger-config.h @@ -25,18 +25,19 @@ extern struct t_config_option *logger_config_look_backlog; -extern struct t_config_option *logger_config_color_backlog_line; extern struct t_config_option *logger_config_color_backlog_end; +extern struct t_config_option *logger_config_color_backlog_line; extern struct t_config_option *logger_config_file_auto_log; +extern struct t_config_option *logger_config_file_flush_delay; +extern struct t_config_option *logger_config_file_info_lines; +extern struct t_config_option *logger_config_file_mask; extern struct t_config_option *logger_config_file_name_lower_case; +extern struct t_config_option *logger_config_file_nick_prefix; +extern struct t_config_option *logger_config_file_nick_suffix; extern struct t_config_option *logger_config_file_path; -extern struct t_config_option *logger_config_file_mask; extern struct t_config_option *logger_config_file_replacement_char; -extern struct t_config_option *logger_config_file_info_lines; extern struct t_config_option *logger_config_file_time_format; -extern struct t_config_option *logger_config_file_nick_prefix; -extern struct t_config_option *logger_config_file_nick_suffix; extern struct t_config_option *logger_config_get_level (const char *name); extern int logger_config_set_level (const char *name, const char *value); |