26#ifndef _PURPLE_VALUE_H_
27#define _PURPLE_VALUE_H_
63 PURPLE_SUBTYPE_UNKNOWN = 0,
64 PURPLE_SUBTYPE_ACCOUNT,
66 PURPLE_SUBTYPE_BLIST_BUDDY,
67 PURPLE_SUBTYPE_BLIST_GROUP,
68 PURPLE_SUBTYPE_BLIST_CHAT,
69 PURPLE_SUBTYPE_BUDDY_ICON,
70 PURPLE_SUBTYPE_CONNECTION,
71 PURPLE_SUBTYPE_CONVERSATION,
72 PURPLE_SUBTYPE_PLUGIN,
73 PURPLE_SUBTYPE_BLIST_NODE,
74 PURPLE_SUBTYPE_CIPHER,
75 PURPLE_SUBTYPE_STATUS,
78 PURPLE_SUBTYPE_SAVEDSTATUS,
79 PURPLE_SUBTYPE_XMLNODE,
80 PURPLE_SUBTYPE_USERINFO,
81 PURPLE_SUBTYPE_STORED_IMAGE,
82 PURPLE_SUBTYPE_CERTIFICATEPOOL,
83 PURPLE_SUBTYPE_CHATBUDDY
97 unsigned char uchar_data;
98 gboolean boolean_data;
100 unsigned short ushort_data;
102 unsigned int uint_data;
104 unsigned long ulong_data;
117 unsigned int subtype;
A wrapper for a type, subtype, and specific type of value.
PurpleValue * purple_value_dup(const PurpleValue *value)
Duplicated a PurpleValue.
void purple_value_set_ulong(PurpleValue *value, unsigned long data)
Sets the value's unsigned long integer data.
PurpleValue * purple_value_new(PurpleType type,...)
Creates a new PurpleValue.
guint64 purple_value_get_uint64(const PurpleValue *value)
Returns the value's unsigned 64-bit integer data.
PurpleType purple_value_get_type(const PurpleValue *value)
Returns a value's type.
void purple_value_set_enum(PurpleValue *value, int data)
Sets the value's enum data.
gint64 purple_value_get_int64(const PurpleValue *value)
Returns the value's 64-bit integer data.
int purple_value_get_int(const PurpleValue *value)
Returns the value's integer data.
void purple_value_set_pointer(PurpleValue *value, void *data)
Sets the value's pointer data.
void purple_value_destroy(PurpleValue *value)
Destroys a PurpleValue.
unsigned long purple_value_get_ulong(const PurpleValue *value)
Returns the value's unsigned long integer data.
void * purple_value_get_pointer(const PurpleValue *value)
Returns the value's pointer data.
void purple_value_set_boxed(PurpleValue *value, void *data)
Sets the value's boxed data.
void purple_value_set_int(PurpleValue *value, int data)
Sets the value's integer data.
PurpleValue * purple_value_new_outgoing(PurpleType type,...)
Creates a new outgoing PurpleValue.
const char * purple_value_get_specific_type(const PurpleValue *value)
Returns a value's specific type.
void * purple_value_get_boxed(const PurpleValue *value)
Returns the value's boxed data.
void purple_value_set_char(PurpleValue *value, char data)
Sets the value's character data.
PurpleSubType
Purple-specific subtype values.
void purple_value_set_uint(PurpleValue *value, unsigned int data)
Sets the value's unsigned integer data.
long purple_value_get_long(const PurpleValue *value)
Returns the value's long integer data.
void purple_value_set_object(PurpleValue *value, void *data)
Sets the value's object data.
unsigned char purple_value_get_uchar(const PurpleValue *value)
Returns the value's unsigned character data.
const char * purple_value_get_string(const PurpleValue *value)
Returns the value's string data.
gboolean purple_value_get_boolean(const PurpleValue *value)
Returns the value's boolean data.
PurpleType
Specific value types.
@ PURPLE_TYPE_UINT64
64-bit unsigned integer.
@ PURPLE_TYPE_SUBTYPE
Subtype.
@ PURPLE_TYPE_UNKNOWN
Unknown type.
@ PURPLE_TYPE_UCHAR
Unsigned character.
@ PURPLE_TYPE_INT64
64-bit integer.
@ PURPLE_TYPE_LONG
Long integer.
@ PURPLE_TYPE_OBJECT
Object pointer.
@ PURPLE_TYPE_ULONG
Unsigned long integer.
@ PURPLE_TYPE_CHAR
Character.
@ PURPLE_TYPE_UINT
Unsigned integer.
@ PURPLE_TYPE_BOXED
Boxed pointer with specific type.
@ PURPLE_TYPE_USHORT
Unsigned short integer.
@ PURPLE_TYPE_STRING
String.
@ PURPLE_TYPE_SHORT
Short integer.
@ PURPLE_TYPE_BOOLEAN
Boolean.
@ PURPLE_TYPE_INT
Integer.
@ PURPLE_TYPE_POINTER
Generic pointer.
void purple_value_set_uint64(PurpleValue *value, guint64 data)
Sets the value's unsigned 64-bit integer data.
void purple_value_set_int64(PurpleValue *value, gint64 data)
Sets the value's 64-bit integer data.
void * purple_value_get_object(const PurpleValue *value)
Returns the value's object data.
gboolean purple_value_is_outgoing(const PurpleValue *value)
Returns whether or not the value is an outgoing value.
void purple_value_set_short(PurpleValue *value, short data)
Sets the value's short integer data.
void purple_value_set_long(PurpleValue *value, long data)
Sets the value's long integer data.
short purple_value_get_short(const PurpleValue *value)
Returns the value's short integer data.
unsigned int purple_value_get_subtype(const PurpleValue *value)
Returns a value's subtype.
unsigned int purple_value_get_uint(const PurpleValue *value)
Returns the value's unsigned integer data.
void purple_value_set_string(PurpleValue *value, const char *data)
Sets the value's string data.
char purple_value_get_char(const PurpleValue *value)
Returns the value's character data.
int purple_value_get_enum(const PurpleValue *value)
Returns the value's enum data.
void purple_value_set_boolean(PurpleValue *value, gboolean data)
Sets the value's boolean data.
unsigned short purple_value_get_ushort(const PurpleValue *value)
Returns the value's unsigned short integer data.
void purple_value_set_uchar(PurpleValue *value, unsigned char data)
Sets the value's unsigned character data.
void purple_value_set_ushort(PurpleValue *value, unsigned short data)
Sets the value's unsigned short integer data.