Added time, size and level setting types. Breaks some settings - I'll add

automatic converter to these settings later. Meanwhile you CVS users can
fix your config files yourself :)

Time settings allow using "days", "hours", "minutes", "seconds" and
"milliseconds" or several of their abbreviations. For example "5d 4h
5msecs".

Size settings allow using "gbytes", "mbytes", "kbytes" and "bytes" or their
abbrevations. For example "5MB".

Level settings are currently handled pretty much the way they were before.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3080 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-12-28 17:54:13 +00:00 committed by cras
commit bd6fe052bc
35 changed files with 526 additions and 186 deletions

View file

@ -99,6 +99,21 @@ settings_set_bool(key, value)
char *key
int value
int
settings_set_time(key, value)
char *key
char *value
int
settings_set_level(key, value)
char *key
char *value
int
settings_set_size(key, value)
char *key
char *value
void
settings_add_str(section, key, def)
char *section
@ -126,6 +141,33 @@ CODE:
perl_settings_add(key);
settings_add_bool_module(MODULE_NAME"/scripts", section, key, def);
void
settings_add_time(section, key, def)
char *section
char *key
char *def
CODE:
perl_settings_add(key);
settings_add_time_module(MODULE_NAME"/scripts", section, key, def);
void
settings_add_level(section, key, def)
char *section
char *key
char *def
CODE:
perl_settings_add(key);
settings_add_level_module(MODULE_NAME"/scripts", section, key, def);
void
settings_add_size(section, key, def)
char *section
char *key
char *def
CODE:
perl_settings_add(key);
settings_add_size_module(MODULE_NAME"/scripts", section, key, def);
void
settings_remove(key)
char *key