BFP, fixes structures definitions, categorizes each c-function into a .pxd file.
[python-purple] / libpurple / status.pxd
diff --git a/libpurple/status.pxd b/libpurple/status.pxd
new file mode 100644 (file)
index 0000000..86a6554
--- /dev/null
@@ -0,0 +1,29 @@
+#
+#  Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
+#
+#  This file is part of python-purple.
+#
+#  python-purple is free software: you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation, either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  python-purple is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+cdef extern from "libpurple/status.h":
+    ctypedef struct PurplePresence:
+        pass
+
+    ctypedef struct PurpleSavedStatus:
+        pass
+
+    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)