Mon, 19 Mar 2007 07:01:17 +0000
sed -ie 's/gaim/purple/g'
| 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, | |
| 79 | PURPLE_SUBTYPE_USERINFO | |
| 80 | } PurpleSubType; | |
|
6563
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
81 | |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
82 | /** |
| 6562 | 83 | * A wrapper for a type, subtype, and specific type of value. |
| 84 | */ | |
| 85 | typedef struct | |
| 86 | { | |
| 15884 | 87 | PurpleType type; |
| 6562 | 88 | unsigned short flags; |
| 89 | ||
| 90 | union | |
| 91 | { | |
| 92 | char char_data; | |
| 93 | unsigned char uchar_data; | |
| 94 | gboolean boolean_data; | |
| 95 | short short_data; | |
| 96 | unsigned short ushort_data; | |
| 97 | int int_data; | |
| 98 | unsigned int uint_data; | |
| 99 | long long_data; | |
| 100 | unsigned long ulong_data; | |
| 101 | gint64 int64_data; | |
| 102 | guint64 uint64_data; | |
| 103 | char *string_data; | |
| 104 | void *object_data; | |
| 105 | void *pointer_data; | |
| 106 | int enum_data; | |
| 107 | void *boxed_data; | |
| 108 | ||
| 109 | } data; | |
| 110 | ||
| 111 | union | |
| 112 | { | |
| 113 | unsigned int subtype; | |
| 114 | char *specific_type; | |
| 115 | ||
| 116 | } u; | |
| 117 | ||
| 15884 | 118 | } PurpleValue; |
| 6562 | 119 | |
|
6563
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
120 | #ifdef __cplusplus |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
121 | extern "C" { |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
122 | #endif |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
123 | |
| 6562 | 124 | /** |
| 15884 | 125 | * Creates a new PurpleValue. |
| 6562 | 126 | * |
| 127 | * This function takes a type and, depending on that type, a sub-type | |
| 128 | * or specific type. | |
| 129 | * | |
| 15884 | 130 | * If @a type is PURPLE_TYPE_BOXED, the next parameter must be a |
| 6562 | 131 | * string representing the specific type. |
| 132 | * | |
| 15884 | 133 | * If @a type is PURPLE_TYPE_SUBTYPE, the next parameter must be a |
| 6562 | 134 | * integer or enum representing the sub-type. |
| 135 | * | |
| 136 | * If the subtype or specific type is not set when required, random | |
| 137 | * errors may occur. You have been warned. | |
| 138 | * | |
| 139 | * @param type The type. | |
| 140 | * | |
| 141 | * @return The new value. | |
| 142 | */ | |
| 15884 | 143 | PurpleValue *purple_value_new(PurpleType type, ...); |
| 6562 | 144 | |
| 145 | /** | |
| 15884 | 146 | * 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
|
147 | * it means the value can be modified by plugins and scripts. |
| 6562 | 148 | * |
| 149 | * This function takes a type and, depending on that type, a sub-type | |
| 150 | * or specific type. | |
| 151 | * | |
| 15884 | 152 | * If @a type is PURPLE_TYPE_BOXED, the next parameter must be a |
| 6562 | 153 | * string representing the specific type. |
| 154 | * | |
| 15884 | 155 | * If @a type is PURPLE_TYPE_SUBTYPE, the next parameter must be a |
| 6562 | 156 | * integer or enum representing the sub-type. |
| 157 | * | |
| 158 | * If the sub-type or specific type is not set when required, random | |
| 159 | * errors may occur. You have been warned. | |
| 160 | * | |
| 161 | * @param type The type. | |
| 162 | * | |
| 163 | * @return The new value. | |
| 164 | */ | |
| 15884 | 165 | PurpleValue *purple_value_new_outgoing(PurpleType type, ...); |
| 6562 | 166 | |
| 167 | /** | |
| 15884 | 168 | * Destroys a PurpleValue. |
| 6562 | 169 | * |
| 170 | * @param value The value to destroy. | |
| 171 | */ | |
| 15884 | 172 | void purple_value_destroy(PurpleValue *value); |
| 6562 | 173 | |
| 174 | /** | |
| 15884 | 175 | * Duplicated a PurpleValue. |
|
8809
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
176 | * |
|
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
177 | * @param value The value to duplicate. |
|
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 | * @return The duplicate value. |
|
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
180 | */ |
| 15884 | 181 | PurpleValue *purple_value_dup(const PurpleValue *value); |
|
8809
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
182 | |
|
4fc1959df5ce
[gaim-migrate @ 9571]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
183 | /** |
| 6562 | 184 | * Returns a value's type. |
| 185 | * | |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
186 | * @param value The value whose type you want. |
|
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
187 | * |
| 6562 | 188 | * @return The value's type. |
| 189 | */ | |
| 15884 | 190 | PurpleType purple_value_get_type(const PurpleValue *value); |
| 6562 | 191 | |
| 192 | /** | |
| 193 | * Returns a value's subtype. | |
| 194 | * | |
| 15884 | 195 | * If the value's type is not PURPLE_TYPE_SUBTYPE, this will return 0. |
| 6562 | 196 | * Subtypes should never have a subtype of 0. |
| 197 | * | |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
198 | * @param value The value whose subtype you want. |
|
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
199 | * |
| 15884 | 200 | * @return The value's subtype, or 0 if @a type is not PURPLE_TYPE_SUBTYPE. |
| 6562 | 201 | */ |
| 15884 | 202 | unsigned int purple_value_get_subtype(const PurpleValue *value); |
| 6562 | 203 | |
| 204 | /** | |
| 205 | * Returns a value's specific type. | |
| 206 | * | |
| 15884 | 207 | * If the value's type is not PURPLE_TYPE_BOXED, this will return @c NULL. |
| 6562 | 208 | * |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
209 | * @param value The value whose specific type you want. |
|
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8817
diff
changeset
|
210 | * |
| 15884 | 211 | * @return The value's specific type, or @a NULL if not PURPLE_TYPE_BOXED. |
| 6562 | 212 | */ |
| 15884 | 213 | const char *purple_value_get_specific_type(const PurpleValue *value); |
| 6562 | 214 | |
| 215 | /** | |
| 216 | * Returns whether or not the value is an outgoing value. | |
| 217 | * | |
| 218 | * @param value The value. | |
| 219 | * | |
| 220 | * @return TRUE if the value is outgoing, or FALSE otherwise. | |
| 221 | */ | |
| 15884 | 222 | gboolean purple_value_is_outgoing(const PurpleValue *value); |
| 6562 | 223 | |
| 224 | /** | |
| 225 | * Sets the value's character data. | |
| 226 | * | |
| 227 | * @param value The value. | |
| 228 | * @param data The character data. | |
| 229 | */ | |
| 15884 | 230 | void purple_value_set_char(PurpleValue *value, char data); |
| 6562 | 231 | |
| 232 | /** | |
| 233 | * Sets the value's unsigned character data. | |
| 234 | * | |
| 235 | * @param value The value. | |
| 236 | * @param data The unsigned character data. | |
| 237 | */ | |
| 15884 | 238 | void purple_value_set_uchar(PurpleValue *value, unsigned char data); |
| 6562 | 239 | |
| 240 | /** | |
| 241 | * Sets the value's boolean data. | |
| 242 | * | |
| 243 | * @param value The value. | |
| 244 | * @param data The boolean data. | |
| 245 | */ | |
| 15884 | 246 | void purple_value_set_boolean(PurpleValue *value, gboolean data); |
| 6562 | 247 | |
| 248 | /** | |
| 249 | * Sets the value's short integer data. | |
| 250 | * | |
| 251 | * @param value The value. | |
| 252 | * @param data The short integer data. | |
| 253 | */ | |
| 15884 | 254 | void purple_value_set_short(PurpleValue *value, short data); |
| 6562 | 255 | |
| 256 | /** | |
| 257 | * Sets the value's unsigned short integer data. | |
| 258 | * | |
| 259 | * @param value The value. | |
| 260 | * @param data The unsigned short integer data. | |
| 261 | */ | |
| 15884 | 262 | void purple_value_set_ushort(PurpleValue *value, unsigned short data); |
| 6562 | 263 | |
| 264 | /** | |
| 265 | * Sets the value's integer data. | |
| 266 | * | |
| 267 | * @param value The value. | |
| 268 | * @param data The integer data. | |
| 269 | */ | |
| 15884 | 270 | void purple_value_set_int(PurpleValue *value, int data); |
| 6562 | 271 | |
| 272 | /** | |
| 273 | * Sets the value's unsigned integer data. | |
| 274 | * | |
| 275 | * @param value The value. | |
| 276 | * @param data The unsigned integer data. | |
| 277 | */ | |
| 15884 | 278 | void purple_value_set_uint(PurpleValue *value, unsigned int data); |
| 6562 | 279 | |
| 280 | /** | |
| 281 | * Sets the value's long integer data. | |
| 282 | * | |
| 283 | * @param value The value. | |
| 284 | * @param data The long integer data. | |
| 285 | */ | |
| 15884 | 286 | void purple_value_set_long(PurpleValue *value, long data); |
| 6562 | 287 | |
| 288 | /** | |
| 289 | * Sets the value's unsigned long integer data. | |
| 290 | * | |
| 291 | * @param value The value. | |
| 292 | * @param data The unsigned long integer data. | |
| 293 | */ | |
| 15884 | 294 | void purple_value_set_ulong(PurpleValue *value, unsigned long data); |
| 6562 | 295 | |
| 296 | /** | |
| 297 | * Sets the value's 64-bit integer data. | |
| 298 | * | |
| 299 | * @param value The value. | |
| 300 | * @param data The 64-bit integer data. | |
| 301 | */ | |
| 15884 | 302 | void purple_value_set_int64(PurpleValue *value, gint64 data); |
| 6562 | 303 | |
| 304 | /** | |
| 305 | * Sets the value's unsigned 64-bit integer data. | |
| 306 | * | |
| 307 | * @param value The value. | |
| 308 | * @param data The unsigned 64-bit integer data. | |
| 309 | */ | |
| 15884 | 310 | void purple_value_set_uint64(PurpleValue *value, guint64 data); |
| 6562 | 311 | |
| 312 | /** | |
| 313 | * Sets the value's string data. | |
| 314 | * | |
| 315 | * @param value The value. | |
| 316 | * @param data The string data. | |
| 317 | */ | |
| 15884 | 318 | void purple_value_set_string(PurpleValue *value, const char *data); |
| 6562 | 319 | |
| 320 | /** | |
| 321 | * Sets the value's object data. | |
| 322 | * | |
| 323 | * @param value The value. | |
| 324 | * @param data The object data. | |
| 325 | */ | |
| 15884 | 326 | void purple_value_set_object(PurpleValue *value, void *data); |
| 6562 | 327 | |
| 328 | /** | |
| 329 | * Sets the value's pointer data. | |
| 330 | * | |
| 331 | * @param value The value. | |
| 332 | * @param data The pointer data. | |
| 333 | */ | |
| 15884 | 334 | void purple_value_set_pointer(PurpleValue *value, void *data); |
| 6562 | 335 | |
| 336 | /** | |
| 337 | * Sets the value's enum data. | |
| 338 | * | |
| 339 | * @param value The value. | |
| 340 | * @param data The enum data. | |
| 341 | */ | |
| 15884 | 342 | void purple_value_set_enum(PurpleValue *value, int data); |
| 6562 | 343 | |
| 344 | /** | |
| 345 | * Sets the value's boxed data. | |
| 346 | * | |
| 347 | * @param value The value. | |
| 348 | * @param data The boxed data. | |
| 349 | */ | |
| 15884 | 350 | void purple_value_set_boxed(PurpleValue *value, void *data); |
| 6562 | 351 | |
| 352 | /** | |
| 353 | * Returns the value's character data. | |
| 354 | * | |
| 355 | * @param value The value. | |
| 356 | * | |
| 357 | * @return The character data. | |
| 358 | */ | |
| 15884 | 359 | char purple_value_get_char(const PurpleValue *value); |
| 6562 | 360 | |
| 361 | /** | |
| 362 | * Returns the value's unsigned character data. | |
| 363 | * | |
| 364 | * @param value The value. | |
| 365 | * | |
| 366 | * @return The unsigned character data. | |
| 367 | */ | |
| 15884 | 368 | unsigned char purple_value_get_uchar(const PurpleValue *value); |
| 6562 | 369 | |
| 370 | /** | |
| 371 | * Returns the value's boolean data. | |
| 372 | * | |
| 373 | * @param value The value. | |
| 374 | * | |
| 375 | * @return The boolean data. | |
| 376 | */ | |
| 15884 | 377 | gboolean purple_value_get_boolean(const PurpleValue *value); |
| 6562 | 378 | |
| 379 | /** | |
| 380 | * Returns the value's short integer data. | |
| 381 | * | |
| 382 | * @param value The value. | |
| 383 | * | |
| 384 | * @return The short integer data. | |
| 385 | */ | |
| 15884 | 386 | short purple_value_get_short(const PurpleValue *value); |
| 6562 | 387 | |
| 388 | /** | |
| 389 | * Returns the value's unsigned short integer data. | |
| 390 | * | |
| 391 | * @param value The value. | |
| 392 | * | |
| 393 | * @return The unsigned short integer data. | |
| 394 | */ | |
| 15884 | 395 | unsigned short purple_value_get_ushort(const PurpleValue *value); |
| 6562 | 396 | |
| 397 | /** | |
| 398 | * Returns the value's integer data. | |
| 399 | * | |
| 400 | * @param value The value. | |
| 401 | * | |
| 402 | * @return The integer data. | |
| 403 | */ | |
| 15884 | 404 | int purple_value_get_int(const PurpleValue *value); |
| 6562 | 405 | |
| 406 | /** | |
| 407 | * Returns the value's unsigned integer data. | |
| 408 | * | |
| 409 | * @param value The value. | |
| 410 | * | |
| 411 | * @return The unsigned integer data. | |
| 412 | */ | |
| 15884 | 413 | unsigned int purple_value_get_uint(const PurpleValue *value); |
| 6562 | 414 | |
| 415 | /** | |
| 416 | * Returns the value's long integer data. | |
| 417 | * | |
| 418 | * @param value The value. | |
| 419 | * | |
| 420 | * @return The long integer data. | |
| 421 | */ | |
| 15884 | 422 | long purple_value_get_long(const PurpleValue *value); |
| 6562 | 423 | |
| 424 | /** | |
| 425 | * Returns the value's unsigned long integer data. | |
| 426 | * | |
| 427 | * @param value The value. | |
| 428 | * | |
| 429 | * @return The unsigned long integer data. | |
| 430 | */ | |
| 15884 | 431 | unsigned long purple_value_get_ulong(const PurpleValue *value); |
| 6562 | 432 | |
| 433 | /** | |
| 434 | * Returns the value's 64-bit integer data. | |
| 435 | * | |
| 436 | * @param value The value. | |
| 437 | * | |
| 438 | * @return The 64-bit integer data. | |
| 439 | */ | |
| 15884 | 440 | gint64 purple_value_get_int64(const PurpleValue *value); |
| 6562 | 441 | |
| 442 | /** | |
| 443 | * Returns the value's unsigned 64-bit integer data. | |
| 444 | * | |
| 445 | * @param value The value. | |
| 446 | * | |
| 447 | * @return The unsigned 64-bit integer data. | |
| 448 | */ | |
| 15884 | 449 | guint64 purple_value_get_uint64(const PurpleValue *value); |
| 6562 | 450 | |
| 451 | /** | |
| 452 | * Returns the value's string data. | |
| 453 | * | |
| 454 | * @param value The value. | |
| 455 | * | |
| 456 | * @return The string data. | |
| 457 | */ | |
| 15884 | 458 | const char *purple_value_get_string(const PurpleValue *value); |
| 6562 | 459 | |
| 460 | /** | |
| 461 | * Returns the value's object data. | |
| 462 | * | |
| 463 | * @param value The value. | |
| 464 | * | |
| 465 | * @return The object data. | |
| 466 | */ | |
| 15884 | 467 | void *purple_value_get_object(const PurpleValue *value); |
| 6562 | 468 | |
| 469 | /** | |
| 470 | * Returns the value's pointer data. | |
| 471 | * | |
| 472 | * @param value The value. | |
| 473 | * | |
| 474 | * @return The pointer data. | |
| 475 | */ | |
| 15884 | 476 | void *purple_value_get_pointer(const PurpleValue *value); |
| 6562 | 477 | |
| 478 | /** | |
| 479 | * Returns the value's enum data. | |
| 480 | * | |
| 481 | * @param value The value. | |
| 482 | * | |
| 483 | * @return The enum data. | |
| 484 | */ | |
| 15884 | 485 | int purple_value_get_enum(const PurpleValue *value); |
| 6562 | 486 | |
| 487 | /** | |
| 488 | * Returns the value's boxed data. | |
| 489 | * | |
| 490 | * @param value The value. | |
| 491 | * | |
| 492 | * @return The boxed data. | |
| 493 | */ | |
| 15884 | 494 | void *purple_value_get_boxed(const PurpleValue *value); |
| 6562 | 495 | |
|
6563
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
496 | #ifdef __cplusplus |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
497 | } |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
498 | #endif |
|
f741652e3191
[gaim-migrate @ 7085]
Christian Hammond <chipx86@chipx86.com>
parents:
6562
diff
changeset
|
499 | |
| 15884 | 500 | #endif /* _PURPLE_VALUE_H_ */ |