mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
add settings*choice functions to perl
This commit is contained in:
parent
f47154d1a9
commit
76d140650a
1 changed files with 19 additions and 0 deletions
|
|
@ -104,6 +104,10 @@ int
|
|||
settings_get_size(key)
|
||||
char *key
|
||||
|
||||
int
|
||||
settings_get_choice(key)
|
||||
char *key
|
||||
|
||||
void
|
||||
settings_set_str(key, value)
|
||||
char *key
|
||||
|
|
@ -134,6 +138,11 @@ settings_set_size(key, value)
|
|||
char *key
|
||||
char *value
|
||||
|
||||
int
|
||||
settings_set_choice(key, value)
|
||||
char *key
|
||||
char *value
|
||||
|
||||
void
|
||||
settings_add_str(section, key, def)
|
||||
char *section
|
||||
|
|
@ -188,6 +197,16 @@ CODE:
|
|||
perl_settings_add(key);
|
||||
settings_add_size_module(MODULE_NAME"/scripts", section, key, def);
|
||||
|
||||
void
|
||||
settings_add_choice(section, key, def, choices)
|
||||
char *section
|
||||
char *key
|
||||
int def
|
||||
char *choices
|
||||
CODE:
|
||||
perl_settings_add(key);
|
||||
settings_add_choice_module(MODULE_NAME "/scripts", section, key, def, choices);
|
||||
|
||||
void
|
||||
settings_remove(key)
|
||||
char *key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue