All includes now uses cimport. Moved .pxd files from root dir to .pyx files, fixed...
[python-purple] / libpurple / status.pxd
index 86a6554..1460ffa 100644 (file)
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+cimport glib
+
 cdef extern from "libpurple/status.h":
     ctypedef struct PurplePresence:
         pass
 
-    ctypedef struct PurpleSavedStatus:
-        pass
+    ctypedef enum PurpleStatusPrimitive:
+        PURPLE_STATUS_UNSET
+        PURPLE_STATUS_OFFLINE
+        PURPLE_STATUS_AVAILABLE
+        PURPLE_STATUS_UNAVAILABLE
+        PURPLE_STATUS_INVISIBLE
+        PURPLE_STATUS_AWAY
+        PURPLE_STATUS_EXTENDED_AWAY
+        PURPLE_STATUS_MOBILE
+        PURPLE_STATUS_TUNE
+        PURPLE_STATUS_NUN_PRIMITIVE
 
-    ctypedef int PurpleStatusPrimitive
-    PurpleSavedStatus *c_purple_savedstatus_new "purple_savedstatus_new" (const_char_ptr title, PurpleStatusPrimitive type)
-    void c_purple_savedstatus_activate "purple_savedstatus_activate" (PurpleSavedStatus *saved_status)
+    glib.gboolean c_purple_presence_is_online "purple_presence_is_online" (PurplePresence *presence)