X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=libpurple%2Fstatus.pxd;h=56747e51d8b8f0550e02dac3aaabb930bec639c8;hp=23269065d6db1c94cc108e17c5c2a13f2ae0d675;hb=b0a967470cec25dc1a654638271fa400179e9830;hpb=af63bece9d35071de457b059b60c97e9795fcb88 diff --git a/libpurple/status.pxd b/libpurple/status.pxd index 2326906..56747e5 100644 --- a/libpurple/status.pxd +++ b/libpurple/status.pxd @@ -17,8 +17,24 @@ # along with this program. If not, see . # +cimport glib + cdef extern from "libpurple/status.h": + ctypedef struct PurpleStatus + 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 + + glib.gboolean c_purple_presence_is_online "purple_presence_is_online" (PurplePresence *presence)