summaryrefslogtreecommitdiff
path: root/src/core/wee-config-file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/wee-config-file.h')
-rw-r--r--src/core/wee-config-file.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/wee-config-file.h b/src/core/wee-config-file.h
index 10b635e44..666fa751c 100644
--- a/src/core/wee-config-file.h
+++ b/src/core/wee-config-file.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2018 Sébastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
@@ -19,7 +19,9 @@
*/
#ifndef WEECHAT_CONFIG_FILE_H
-#define WEECHAT_CONFIG_FILE_H 1
+#define WEECHAT_CONFIG_FILE_H
+
+#include <stdio.h>
#define CONFIG_BOOLEAN(option) (*((int *)((option)->value)))
#define CONFIG_BOOLEAN_DEFAULT(option) (*((int *)((option)->default_value)))
@@ -287,7 +289,8 @@ extern int config_file_write_line (struct t_config_file *config_file,
extern int config_file_write (struct t_config_file *config_files);
extern int config_file_read (struct t_config_file *config_file);
extern int config_file_reload (struct t_config_file *config_file);
-extern void config_file_option_free (struct t_config_option *option);
+extern void config_file_option_free (struct t_config_option *option,
+ int run_callback);
extern void config_file_section_free_options (struct t_config_section *section);
extern void config_file_section_free (struct t_config_section *section);
extern void config_file_free (struct t_config_file *config_file);