summary refs log tree commit diff stats
path: root/src/common/xchat-plugin.h
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-29 20:15:56 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-29 20:15:56 +0100
commitb16ca3fa64fc1fa83d40d00d0090cc7fd27a9840 (patch)
treef7eac0939e9afe2d72cf2208c42f0e9a5e7de4a4 /src/common/xchat-plugin.h
parent266a86d0b5383db9a998b9b6412947fbbdac58a1 (diff)
initial plugin config framework, can't save multiple entries
Diffstat (limited to 'src/common/xchat-plugin.h')
-rw-r--r--src/common/xchat-plugin.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/xchat-plugin.h b/src/common/xchat-plugin.h
index 30b19295..e9dd1be8 100644
--- a/src/common/xchat-plugin.h
+++ b/src/common/xchat-plugin.h
@@ -137,6 +137,13 @@ struct _xchat_plugin
 	     int flags);
 	void (*xchat_free) (xchat_plugin *ph,
 	    void *ptr);
+	int (*xchat_set_plugin_pref) (xchat_plugin *ph,
+		char *var,
+		char *value);
+	int (*xchat_get_plugin_pref) (xchat_plugin *ph,
+		char *var,
+		char *dest,
+		int dest_len);
 };
 #endif
 
@@ -292,6 +299,17 @@ void
 xchat_free (xchat_plugin *ph,
 	    void *ptr);
 
+int
+xchat_set_plugin_pref (xchat_plugin *ph,
+		char *var,
+		char *value);
+
+int
+xchat_get_plugin_pref (xchat_plugin *ph,
+		char *var,
+		char *dest,
+		int dest_len);
+
 #if !defined(PLUGIN_C) && defined(WIN32)
 #ifndef XCHAT_PLUGIN_HANDLE
 #define XCHAT_PLUGIN_HANDLE (ph)
@@ -326,6 +344,8 @@ 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_plugin_pref ((XCHAT_PLUGIN_HANDLE)->xchat_set_plugin_pref)
+#define xchat_get_plugin_pref ((XCHAT_PLUGIN_HANDLE)->xchat_get_plugin_pref)
 #endif
 
 #ifdef __cplusplus