Sat, 18 Aug 2007 05:54:49 +0000
- Add purple_certificate_display_x509
| 6562 | 1 | /** |
| 2 | * @file value.h Value wrapper API | |
| 3 | * @ingroup core | |
| 4 | * | |
| 15884 | 5 | * purple |
| 6562 | 6 | * |
| 15884 | 7 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 9 | * source distribution. | |
| 6562 | 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
| 15884 | 25 | #ifndef _PURPLE_VALUE_H_ |
| 26 | #define _PURPLE_VALUE_H_ | |
| 6562 | 27 | |
|
6565
e040ef0c6ce8
[gaim-migrate @ 7087]
Christian Hammond <chipx86@chipx86.com>
parents:
6563
diff
changeset
|
28 | #include <glib.h> |
|
e040ef0c6ce8
[gaim-migrate @ 7087]
Christian Hammond <chipx86@chipx86.com>
parents:
6563
diff
changeset
|
29 | |
| 6562 | 30 | /** |
| 31 | * Specific value types. | |
| 32 | */ | |
| 33 | typedef enum | |
| 34 | { | |
| 15884 | 35 | PURPLE_TYPE_UNKNOWN = 0, /**< Unknown type. */ |
| 36 | PURPLE_TYPE_SUBTYPE, /**< Subtype. */ | |
| 37 | PURPLE_TYPE_CHAR, /**< Character. */ | |
| 38 | PURPLE_TYPE_UCHAR, /**< Unsigned character. */ | |
| 39 | PURPLE_TYPE_BOOLEAN, /**< Boolean. */ | |
| 40 | PURPLE_TYPE_SHORT, /**< Short integer. */ | |
| 41 | PURPLE_TYPE_USHORT, /**< Unsigned short integer. */ | |
| 42 | PURPLE_TYPE_INT, /**< Integer. */ | |
| 43 | PURPLE_TYPE_UINT, /**< Unsigned integer. */ | |
| 44 | PURPLE_TYPE_LONG, /**< Long integer. */ | |
| 45 | PURPLE_TYPE_ULONG, /**< Unsigned long integer. */ | |
| 46 | PURPLE_TYPE_INT64, /**< 64-bit integer. */ | |
| 47 | PURPLE_TYPE_UINT64, /**< 64-bit unsigned integer. */ | |
| 48 | PURPLE_TYPE_STRING, /**< String. */ | |
| 49 | PURPLE_TYPE_OBJECT, /**< Object pointer. */ | |
| 50 | PURPLE_TYPE_POINTER, /**< Generic pointer. */ | |
| 51 | PURPLE_TYPE_ENUM, /**< Enum. */ | |
| 52 | PURPLE_TYPE_BOXED /**< Boxed pointer with specific type. */ | |
| 6562 | 53 | |
| 15884 | 54 | } PurpleType; |
| 6562 | 55 | |
|
14049
c15c41423e19
[gaim-migrate @ 16559]
Richard Laager <rlaager@pidgin.im>
parents:
13388
diff
changeset
|
56 | |
| 6562 | 57 | /** |
| 15884 | 58 | * Purple-specific subtype values. |
|
6563
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
59 | */ |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
60 | typedef enum |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
61 | { |
| 15884 | 62 | PURPLE_SUBTYPE_UNKNOWN = 0, |
| 63 | PURPLE_SUBTYPE_ACCOUNT, | |
| 64 | PURPLE_SUBTYPE_BLIST, | |
| 65 | PURPLE_SUBTYPE_BLIST_BUDDY, | |
| 66 | PURPLE_SUBTYPE_BLIST_GROUP, | |
| 67 | PURPLE_SUBTYPE_BLIST_CHAT, | |
| 68 | PURPLE_SUBTYPE_BUDDY_ICON, | |
| 69 | PURPLE_SUBTYPE_CONNECTION, | |
| 70 | PURPLE_SUBTYPE_CONVERSATION, | |
| 71 | PURPLE_SUBTYPE_PLUGIN, | |
| 72 | PURPLE_SUBTYPE_BLIST_NODE, | |
| 73 | PURPLE_SUBTYPE_CIPHER, | |
| 74 | PURPLE_SUBTYPE_STATUS, | |
| 75 | PURPLE_SUBTYPE_LOG, | |
| 76 | PURPLE_SUBTYPE_XFER, | |
| 77 | PURPLE_SUBTYPE_SAVEDSTATUS, | |
| 78 | PURPLE_SUBTYPE_XMLNODE, | |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
79 | PURPLE_SUBTYPE_USERINFO, |
|
18894
1a00d2309d39
- Register the certificate-stored and certificate-deleted signals
William Ehlhardt <williamehlhardt@gmail.com>
parents:
16437
diff
changeset
|
80 | PURPLE_SUBTYPE_STORED_IMAGE, |
|
1a00d2309d39
- Register the certificate-stored and certificate-deleted signals
William Ehlhardt <williamehlhardt@gmail.com>
parents:
16437
diff
changeset
|
81 | PURPLE_SUBTYPE_CERTIFICATEPOOL |
| 15884 | 82 | } PurpleSubType; |
|
6563
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
83 | |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
84 | /** |
| 6562 | 85 | * A wrapper for a type, subtype, and specific type of value. |
| 86 | */ | |
| 87 | typedef struct | |
| 88 | { | |
| 15884 | 89 | PurpleType type; |
| 6562 | 90 | unsigned short flags; |
| 91 | ||
| 92 | union | |
| 93 | { | |
| 94 | char char_data; | |
| 95 | unsigned char uchar_data; | |
| 96 | gboolean boolean_data; | |
| 97 | short short_data; | |
| 98 | unsigned short ushort_data; | |
| 99 | int int_data; | |
| 100 | unsigned int uint_data; | |
| 101 | long long_data; | |
| 102 | unsigned long ulong_data; | |
| 103 | gint64 int64_data; | |
| 104 | guint64 uint64_data; | |
| 105 | char *string_data; | |
| 106 | void *object_data; | |
| 107 | void *pointer_data; | |
| 108 | int enum_data; | |
| 109 | void *boxed_data; | |
| 110 | ||
| 111 | } data; | |
| 112 | ||
| 113 | union | |
| 114 | { | |
| 115 | unsigned int subtype; | |
| 116 | char *specific_type; | |
| 117 | ||
| 118 | } u; | |
| 119 | ||
| 15884 | 120 | } PurpleValue; |
| 6562 | 121 | |
|
6563
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
122 | #ifdef __cplusplus |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
123 | extern "C" { |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
124 | #endif |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
125 | |
| 6562 | 126 | /** |
| 15884 | 127 | * Creates a new PurpleValue. |
| 6562 | 128 | * |
| 129 | * This function takes a type and, depending on that type, a sub-type | |
| 130 | * or specific type. | |
| 131 | * | |
| 15884 | 132 | * If @a type is PURPLE_TYPE_BOXED, the next parameter must be a |
| 6562 | 133 | * string representing the specific type. |
| 134 | * | |
| 15884 | 135 | * If @a type is PURPLE_TYPE_SUBTYPE, the next parameter must be a |
| 6562 | 136 | * integer or enum representing the sub-type. |
| 137 | * | |
| 138 | * If the subtype or specific type is not set when required, random | |
| 139 | * errors may occur. You have been warned. | |
| 140 | * | |
| 141 | * @param type The type. | |
| 142 | * | |
| 143 | * @return The new value. | |
| 144 | */ | |
| 15884 | 145 | PurpleValue *purple_value_new(PurpleType type, ...); |
| 6562 | 146 | |
| 147 | /** | |
| 15884 | 148 | * Creates a new outgoing PurpleValue. If a value is an "outgoing" value |
|
10477
7d0641ba585c
[gaim-migrate @ 11764]
Mark Doliner <markdoliner@pidgin.im>
parents:
10071
diff
changeset
|
149 | * it means the value can be modified by plugins and scripts. |
| 6562 | 150 | * |
| 151 | * This function takes a type and, depending on that type, a sub-type | |
| 152 | * or specific type. | |
| 153 | * | |
| 15884 | 154 | * If @a type is PURPLE_TYPE_BOXED, the next parameter must be a |
| 6562 | 155 | * string representing the specific type. |
| 156 | * | |
| 15884 | 157 | * If @a type is PURPLE_TYPE_SUBTYPE, the next parameter must be a |
| 6562 | 158 | * integer or enum representing the sub-type. |
| 159 | * | |
| 160 | * If the sub-type or specific type is not set when required, random | |
| 161 | * errors may occur. You have been warned. | |
| 162 | * | |
| 163 | * @param type The type. | |
| 164 | * | |
| 165 | * @return The new value. | |
| 166 | */ | |
| 15884 | 167 | PurpleValue *purple_value_new_outgoing(PurpleType type, ...); |
| 6562 | 168 | |
| 169 | /** | |
| 15884 | 170 | * Destroys a PurpleValue. |
| 6562 | 171 | * |
| 172 | * @param value The value to destroy. | |
| 173 | */ | |
| 15884 | 174 | void purple_value_destroy(PurpleValue *value); |
| 6562 | 175 | |
| 176 | /** | |
| 15884 | 177 | * Duplicated a PurpleValue. |
|
8809
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
178 | * |
|
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
179 | * @param value The value to duplicate. |
|
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
180 | * |
|
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
181 | * @return The duplicate value. |
|
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
182 | */ |
| 15884 | 183 | PurpleValue *purple_value_dup(const PurpleValue *value); |
|
8809
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
184 | |
|
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
185 | /** |
| 6562 | 186 | * Returns a value's type. |
| 187 | * | |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
188 | * @param value The value whose type you want. |
|
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
189 | * |
| 6562 | 190 | * @return The value's type. |
| 191 | */ | |
| 15884 | 192 | PurpleType purple_value_get_type(const PurpleValue *value); |
| 6562 | 193 | |
| 194 | /** | |
| 195 | * Returns a value's subtype. | |
| 196 | * | |
| 15884 | 197 | * If the value's type is not PURPLE_TYPE_SUBTYPE, this will return 0. |
| 6562 | 198 | * Subtypes should never have a subtype of 0. |
| 199 | * | |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
200 | * @param value The value whose subtype you want. |
|
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
201 | * |
| 15884 | 202 | * @return The value's subtype, or 0 if @a type is not PURPLE_TYPE_SUBTYPE. |
| 6562 | 203 | */ |
| 15884 | 204 | unsigned int purple_value_get_subtype(const PurpleValue *value); |
| 6562 | 205 | |
| 206 | /** | |
| 207 | * Returns a value's specific type. | |
| 208 | * | |
| 15884 | 209 | * If the value's type is not PURPLE_TYPE_BOXED, this will return @c NULL. |
| 6562 | 210 | * |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
211 | * @param value The value whose specific type you want. |
|
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
212 | * |
| 15884 | 213 | * @return The value's specific type, or @a NULL if not PURPLE_TYPE_BOXED. |
| 6562 | 214 | */ |
| 15884 | 215 | const char *purple_value_get_specific_type(const PurpleValue *value); |
| 6562 | 216 | |
| 217 | /** | |
| 218 | * Returns whether or not the value is an outgoing value. | |
| 219 | * | |
| 220 | * @param value The value. | |
| 221 | * | |
| 222 | * @return TRUE if the value is outgoing, or FALSE otherwise. | |
| 223 | */ | |
| 15884 | 224 | gboolean purple_value_is_outgoing(const PurpleValue *value); |
| 6562 | 225 | |
| 226 | /** | |
| 227 | * Sets the value's character data. | |
| 228 | * | |
| 229 | * @param value The value. | |
| 230 | * @param data The character data. | |
| 231 | */ | |
| 15884 | 232 | void purple_value_set_char(PurpleValue *value, char data); |
| 6562 | 233 | |
| 234 | /** | |
| 235 | * Sets the value's unsigned character data. | |
| 236 | * | |
| 237 | * @param value The value. | |
| 238 | * @param data The unsigned character data. | |
| 239 | */ | |
| 15884 | 240 | void purple_value_set_uchar(PurpleValue *value, unsigned char data); |
| 6562 | 241 | |
| 242 | /** | |
| 243 | * Sets the value's boolean data. | |
| 244 | * | |
| 245 | * @param value The value. | |
| 246 | * @param data The boolean data. | |
| 247 | */ | |
| 15884 | 248 | void purple_value_set_boolean(PurpleValue *value, gboolean data); |
| 6562 | 249 | |
| 250 | /** | |
| 251 | * Sets the value's short integer data. | |
| 252 | * | |
| 253 | * @param value The value. | |
| 254 | * @param data The short integer data. | |
| 255 | */ | |
| 15884 | 256 | void purple_value_set_short(PurpleValue *value, short data); |
| 6562 | 257 | |
| 258 | /** | |
| 259 | * Sets the value's unsigned short integer data. | |
| 260 | * | |
| 261 | * @param value The value. | |
| 262 | * @param data The unsigned short integer data. | |
| 263 | */ | |
| 15884 | 264 | void purple_value_set_ushort(PurpleValue *value, unsigned short data); |
| 6562 | 265 | |
| 266 | /** | |
| 267 | * Sets the value's integer data. | |
| 268 | * | |
| 269 | * @param value The value. | |
| 270 | * @param data The integer data. | |
| 271 | */ | |
| 15884 | 272 | void purple_value_set_int(PurpleValue *value, int data); |
| 6562 | 273 | |
| 274 | /** | |
| 275 | * Sets the value's unsigned integer data. | |
| 276 | * | |
| 277 | * @param value The value. | |
| 278 | * @param data The unsigned integer data. | |
| 279 | */ | |
| 15884 | 280 | void purple_value_set_uint(PurpleValue *value, unsigned int data); |
| 6562 | 281 | |
| 282 | /** | |
| 283 | * Sets the value's long integer data. | |
| 284 | * | |
| 285 | * @param value The value. | |
| 286 | * @param data The long integer data. | |
| 287 | */ | |
| 15884 | 288 | void purple_value_set_long(PurpleValue *value, long data); |
| 6562 | 289 | |
| 290 | /** | |
| 291 | * Sets the value's unsigned long integer data. | |
| 292 | * | |
| 293 | * @param value The value. | |
| 294 | * @param data The unsigned long integer data. | |
| 295 | */ | |
| 15884 | 296 | void purple_value_set_ulong(PurpleValue *value, unsigned long data); |
| 6562 | 297 | |
| 298 | /** | |
| 299 | * Sets the value's 64-bit integer data. | |
| 300 | * | |
| 301 | * @param value The value. | |
| 302 | * @param data The 64-bit integer data. | |
| 303 | */ | |
| 15884 | 304 | void purple_value_set_int64(PurpleValue *value, gint64 data); |
| 6562 | 305 | |
| 306 | /** | |
| 307 | * Sets the value's unsigned 64-bit integer data. | |
| 308 | * | |
| 309 | * @param value The value. | |
| 310 | * @param data The unsigned 64-bit integer data. | |
| 311 | */ | |
| 15884 | 312 | void purple_value_set_uint64(PurpleValue *value, guint64 data); |
| 6562 | 313 | |
| 314 | /** | |
| 315 | * Sets the value's string data. | |
| 316 | * | |
| 317 | * @param value The value. | |
| 318 | * @param data The string data. | |
| 319 | */ | |
| 15884 | 320 | void purple_value_set_string(PurpleValue *value, const char *data); |
| 6562 | 321 | |
| 322 | /** | |
| 323 | * Sets the value's object data. | |
| 324 | * | |
| 325 | * @param value The value. | |
| 326 | * @param data The object data. | |
| 327 | */ | |
| 15884 | 328 | void purple_value_set_object(PurpleValue *value, void *data); |
| 6562 | 329 | |
| 330 | /** | |
| 331 | * Sets the value's pointer data. | |
| 332 | * | |
| 333 | * @param value The value. | |
| 334 | * @param data The pointer data. | |
| 335 | */ | |
| 15884 | 336 | void purple_value_set_pointer(PurpleValue *value, void *data); |
| 6562 | 337 | |
| 338 | /** | |
| 339 | * Sets the value's enum data. | |
| 340 | * | |
| 341 | * @param value The value. | |
| 342 | * @param data The enum data. | |
| 343 | */ | |
| 15884 | 344 | void purple_value_set_enum(PurpleValue *value, int data); |
| 6562 | 345 | |
| 346 | /** | |
| 347 | * Sets the value's boxed data. | |
| 348 | * | |
| 349 | * @param value The value. | |
| 350 | * @param data The boxed data. | |
| 351 | */ | |
| 15884 | 352 | void purple_value_set_boxed(PurpleValue *value, void *data); |
| 6562 | 353 | |
| 354 | /** | |
| 355 | * Returns the value's character data. | |
| 356 | * | |
| 357 | * @param value The value. | |
| 358 | * | |
| 359 | * @return The character data. | |
| 360 | */ | |
| 15884 | 361 | char purple_value_get_char(const PurpleValue *value); |
| 6562 | 362 | |
| 363 | /** | |
| 364 | * Returns the value's unsigned character data. | |
| 365 | * | |
| 366 | * @param value The value. | |
| 367 | * | |
| 368 | * @return The unsigned character data. | |
| 369 | */ | |
| 15884 | 370 | unsigned char purple_value_get_uchar(const PurpleValue *value); |
| 6562 | 371 | |
| 372 | /** | |
| 373 | * Returns the value's boolean data. | |
| 374 | * | |
| 375 | * @param value The value. | |
| 376 | * | |
| 377 | * @return The boolean data. | |
| 378 | */ | |
| 15884 | 379 | gboolean purple_value_get_boolean(const PurpleValue *value); |
| 6562 | 380 | |
| 381 | /** | |
| 382 | * Returns the value's short integer data. | |
| 383 | * | |
| 384 | * @param value The value. | |
| 385 | * | |
| 386 | * @return The short integer data. | |
| 387 | */ | |
| 15884 | 388 | short purple_value_get_short(const PurpleValue *value); |
| 6562 | 389 | |
| 390 | /** | |
| 391 | * Returns the value's unsigned short integer data. | |
| 392 | * | |
| 393 | * @param value The value. | |
| 394 | * | |
| 395 | * @return The unsigned short integer data. | |
| 396 | */ | |
| 15884 | 397 | unsigned short purple_value_get_ushort(const PurpleValue *value); |
| 6562 | 398 | |
| 399 | /** | |
| 400 | * Returns the value's integer data. | |
| 401 | * | |
| 402 | * @param value The value. | |
| 403 | * | |
| 404 | * @return The integer data. | |
| 405 | */ | |
| 15884 | 406 | int purple_value_get_int(const PurpleValue *value); |
| 6562 | 407 | |
| 408 | /** | |
| 409 | * Returns the value's unsigned integer data. | |
| 410 | * | |
| 411 | * @param value The value. | |
| 412 | * | |
| 413 | * @return The unsigned integer data. | |
| 414 | */ | |
| 15884 | 415 | unsigned int purple_value_get_uint(const PurpleValue *value); |
| 6562 | 416 | |
| 417 | /** | |
| 418 | * Returns the value's long integer data. | |
| 419 | * | |
| 420 | * @param value The value. | |
| 421 | * | |
| 422 | * @return The long integer data. | |
| 423 | */ | |
| 15884 | 424 | long purple_value_get_long(const PurpleValue *value); |
| 6562 | 425 | |
| 426 | /** | |
| 427 | * Returns the value's unsigned long integer data. | |
| 428 | * | |
| 429 | * @param value The value. | |
| 430 | * | |
| 431 | * @return The unsigned long integer data. | |
| 432 | */ | |
| 15884 | 433 | unsigned long purple_value_get_ulong(const PurpleValue *value); |
| 6562 | 434 | |
| 435 | /** | |
| 436 | * Returns the value's 64-bit integer data. | |
| 437 | * | |
| 438 | * @param value The value. | |
| 439 | * | |
| 440 | * @return The 64-bit integer data. | |
| 441 | */ | |
| 15884 | 442 | gint64 purple_value_get_int64(const PurpleValue *value); |
| 6562 | 443 | |
| 444 | /** | |
| 445 | * Returns the value's unsigned 64-bit integer data. | |
| 446 | * | |
| 447 | * @param value The value. | |
| 448 | * | |
| 449 | * @return The unsigned 64-bit integer data. | |
| 450 | */ | |
| 15884 | 451 | guint64 purple_value_get_uint64(const PurpleValue *value); |
| 6562 | 452 | |
| 453 | /** | |
| 454 | * Returns the value's string data. | |
| 455 | * | |
| 456 | * @param value The value. | |
| 457 | * | |
| 458 | * @return The string data. | |
| 459 | */ | |
| 15884 | 460 | const char *purple_value_get_string(const PurpleValue *value); |
| 6562 | 461 | |
| 462 | /** | |
| 463 | * Returns the value's object data. | |
| 464 | * | |
| 465 | * @param value The value. | |
| 466 | * | |
| 467 | * @return The object data. | |
| 468 | */ | |
| 15884 | 469 | void *purple_value_get_object(const PurpleValue *value); |
| 6562 | 470 | |
| 471 | /** | |
| 472 | * Returns the value's pointer data. | |
| 473 | * | |
| 474 | * @param value The value. | |
| 475 | * | |
| 476 | * @return The pointer data. | |
| 477 | */ | |
| 15884 | 478 | void *purple_value_get_pointer(const PurpleValue *value); |
| 6562 | 479 | |
| 480 | /** | |
| 481 | * Returns the value's enum data. | |
| 482 | * | |
| 483 | * @param value The value. | |
| 484 | * | |
| 485 | * @return The enum data. | |
| 486 | */ | |
| 15884 | 487 | int purple_value_get_enum(const PurpleValue *value); |
| 6562 | 488 | |
| 489 | /** | |
| 490 | * Returns the value's boxed data. | |
| 491 | * | |
| 492 | * @param value The value. | |
| 493 | * | |
| 494 | * @return The boxed data. | |
| 495 | */ | |
| 15884 | 496 | void *purple_value_get_boxed(const PurpleValue *value); |
| 6562 | 497 | |
|
6563
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
498 | #ifdef __cplusplus |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
499 | } |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
500 | #endif |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
501 | |
| 15884 | 502 | #endif /* _PURPLE_VALUE_H_ */ |