X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=libpurple%2Fstatus.pxd;h=1460ffa4dd7f9b1718766acf0dcfcbaf7ec1277e;hp=27131587f2fa5540a57f9e3c389ccf9dc4a4b62c;hb=e7e4e8ff4937aed9c1b732719bc310c3e8a88f5e;hpb=26e6c93524a3aebf8bff921ca5a6637a6f50cf6c;ds=sidebyside diff --git a/libpurple/status.pxd b/libpurple/status.pxd index 2713158..1460ffa 100644 --- a/libpurple/status.pxd +++ b/libpurple/status.pxd @@ -17,10 +17,22 @@ # along with this program. If not, see . # +cimport glib + cdef extern from "libpurple/status.h": ctypedef struct PurplePresence: pass - ctypedef int PurpleStatusPrimitive + 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 - gboolean c_purple_presence_is_online "purple_presence_is_online" (PurplePresence *presence) + glib.gboolean c_purple_presence_is_online "purple_presence_is_online" (PurplePresence *presence)