summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/irc/irc-config.c7
-rw-r--r--src/plugins/irc/irc-config.h7
2 files changed, 10 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 6763f9e94..66c2c9b0a 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -1262,9 +1262,12 @@ irc_config_server_new_option (struct t_config_file *config_file,
const char *default_value,
const char *value,
int null_value_allowed,
- void *callback_check_value,
+ int (*callback_check_value)(void *data,
+ struct t_config_option *option,
+ const char *value),
void *callback_check_value_data,
- void *callback_change,
+ void (*callback_change)(void *data,
+ struct t_config_option *option),
void *callback_change_data)
{
struct t_config_option *new_option;
diff --git a/src/plugins/irc/irc-config.h b/src/plugins/irc/irc-config.h
index 7b072f08e..4dd024551 100644
--- a/src/plugins/irc/irc-config.h
+++ b/src/plugins/irc/irc-config.h
@@ -168,9 +168,12 @@ struct t_config_option *irc_config_server_new_option (struct t_config_file *conf
const char *default_value,
const char *value,
int null_value_allowed,
- void *callback_check_value,
+ int (*callback_check_value)(void *data,
+ struct t_config_option *option,
+ const char *value),
void *callback_check_value_data,
- void *callback_change,
+ void (*callback_change)(void *data,
+ struct t_config_option *option),
void *callback_change_data);
extern int irc_config_init ();
extern int irc_config_read ();