summary refs log tree commit diff stats
path: root/src/common/xchat-plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/xchat-plugin.h')
-rw-r--r--src/common/xchat-plugin.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/common/xchat-plugin.h b/src/common/xchat-plugin.h
index 30b19295..15799424 100644
--- a/src/common/xchat-plugin.h
+++ b/src/common/xchat-plugin.h
@@ -137,6 +137,17 @@ struct _xchat_plugin
 	     int flags);
 	void (*xchat_free) (xchat_plugin *ph,
 	    void *ptr);
+	int (*xchat_set_pluginpref_str) (xchat_plugin *ph,
+		const char *var,
+		const char *value);
+	int (*xchat_get_pluginpref_str) (xchat_plugin *ph,
+		const char *var,
+		char *dest);
+	int (*xchat_set_pluginpref_int) (xchat_plugin *ph,
+		const char *var,
+		int value);
+	int (*xchat_get_pluginpref_int) (xchat_plugin *ph,
+		const char *var);
 };
 #endif
 
@@ -292,6 +303,24 @@ void
 xchat_free (xchat_plugin *ph,
 	    void *ptr);
 
+int
+xchat_set_pluginpref_str (xchat_plugin *ph,
+		const char *var,
+		const char *value);
+
+int
+xchat_get_pluginpref_str (xchat_plugin *ph,
+		const char *var,
+		char *dest);
+
+int
+xchat_set_pluginpref_int (xchat_plugin *ph,
+		const char *var,
+		int value);
+int
+xchat_get_pluginpref_int (xchat_plugin *ph,
+		const char *var);
+
 #if !defined(PLUGIN_C) && defined(WIN32)
 #ifndef XCHAT_PLUGIN_HANDLE
 #define XCHAT_PLUGIN_HANDLE (ph)
@@ -326,6 +355,10 @@ xchat_free (xchat_plugin *ph,
 #define xchat_send_modes ((XCHAT_PLUGIN_HANDLE)->xchat_send_modes)
 #define xchat_strip ((XCHAT_PLUGIN_HANDLE)->xchat_strip)
 #define xchat_free ((XCHAT_PLUGIN_HANDLE)->xchat_free)
+#define xchat_set_pluginpref_str ((XCHAT_PLUGIN_HANDLE)->xchat_set_pluginpref_str)
+#define xchat_get_pluginpref_str ((XCHAT_PLUGIN_HANDLE)->xchat_get_pluginpref_str)
+#define xchat_set_pluginpref_int ((XCHAT_PLUGIN_HANDLE)->xchat_set_pluginpref_int)
+#define xchat_get_pluginpref_int ((XCHAT_PLUGIN_HANDLE)->xchat_get_pluginpref_int)
 #endif
 
 #ifdef __cplusplus