2 # Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
4 # This file is part of python-purple.
6 # python-purple is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # python-purple is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22 cdef extern from "libpurple/value.h":
23 ctypedef enum PurpleType:
24 PURPLE_TYPE_UNKNOWN = 0
43 ctypedef enum PurpleSubType:
44 PURPLE_SUBTYPE_UNKNOWN = 0
45 PURPLE_SUBTYPE_ACCOUNT
47 PURPLE_SUBTYPE_BLIST_BUDDY
48 PURPLE_SUBTYPE_BLIST_GROUP
49 PURPLE_SUBTYPE_BLIST_CHAT
50 PURPLE_SUBTYPE_BUDDY_ICON
51 PURPLE_SUBTYPE_CONNECTION
52 PURPLE_SUBTYPE_CONVERSATION
54 PURPLE_SUBTYPE_BLIST_NODE
59 PURPLE_SUBTYPE_SAVEDSTATUS
60 PURPLE_SUBTYPE_XMLNODE
61 PURPLE_SUBTYPE_USERINFO
62 PURPLE_SUBTYPE_STORED_IMAGE
63 PURPLE_SUBTYPE_CERTIFICATEPOOL
65 ctypedef union __UnionTypeData:
67 unsigned char uchar_data
68 glib.gboolean boolean_data
70 unsigned short ushort_data
72 unsigned int uint_data
74 unsigned long ulong_data
75 glib.gint64 int64_data
76 glib.guint64 uint64_data
83 ctypedef union __UnionTypeU:
87 ctypedef struct PurpleValue: