Cleanup option handling.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4510 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2007-05-24 00:25:36 +00:00 committed by exg
commit 841cd8d0cf
7 changed files with 53 additions and 40 deletions

View file

@ -131,7 +131,7 @@ static void sig_channel_destroyed(CHANNEL_REC *channel)
MODULE_DATA_UNSET(channel);
}
void fe_common_core_init(void)
void fe_common_core_register_options(void)
{
static struct poptOption version_options[] = {
{ NULL, '\0', POPT_ARG_CALLBACK, (void *)&print_version, '\0', NULL },
@ -158,7 +158,10 @@ void fe_common_core_init(void)
cmdline_nick = NULL;
cmdline_hostname = NULL;
args_register(options);
}
void fe_common_core_init(void)
{
settings_add_bool("lookandfeel", "timestamps", TRUE);
settings_add_level("lookandfeel", "timestamp_level", "ALL");
settings_add_time("lookandfeel", "timestamp_timeout", "0");

View file

@ -1,6 +1,7 @@
#ifndef __FE_COMMON_CORE_H
#define __FE_COMMON_CORE_H
void fe_common_core_register_options(void);
void fe_common_core_init(void);
void fe_common_core_deinit(void);
void fe_common_core_finish_init(void);