Fixing exception in purple.Purple.__core_ui_ops_ui_prefs_init.
[python-purple] / libpurple / prefs.pxd
index dc96fce..8ad0832 100644 (file)
 cimport glib
 
 cdef extern from "libpurple/prefs.h":
-    void c_purple_prefs_add_none "purple_prefs_add_none" (char *name)
-    void c_purple_prefs_rename "purple_prefs_rename" (char *oldname, char *newname)
-    char *c_purple_prefs_get_string "purple_prefs_get_string" (char *name)
-    glib.gboolean c_purple_prefs_load "purple_prefs_load" ()
+
+    ctypedef enum PurplePrefType:
+        PURPLE_PREF_NONE
+        PURPLE_PREF_BOOLEAN
+        PURPLE_PREF_INT
+        PURPLE_PREF_STRING
+        PURPLE_PREF_STRING_LIST
+        PURPLE_PREF_PATH
+        PURPLE_PREF_PATH_LIST
+
+    void purple_prefs_add_none(char *name)
+    void purple_prefs_rename(char *oldname, char *newname)
+    char *purple_prefs_get_string(char *name)
+    glib.gboolean purple_prefs_load()