Mercurial > pidgin.yaz
comparison src/value.h @ 6563:122cb375be2d
[gaim-migrate @ 7085]
Added an enum of gaim-specific value subtypes.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 21 Aug 2003 21:21:21 +0000 |
parents | c53a3f0649eb |
children | cb00e9647033 |
comparison
equal
deleted
inserted
replaced
6562:c53a3f0649eb | 6563:122cb375be2d |
---|---|
48 GAIM_TYPE_BOXED /**< Boxed pointer with specific type. */ | 48 GAIM_TYPE_BOXED /**< Boxed pointer with specific type. */ |
49 | 49 |
50 } GaimType; | 50 } GaimType; |
51 | 51 |
52 /** | 52 /** |
53 * Gaim-specific subtype values. | |
54 */ | |
55 typedef enum | |
56 { | |
57 GAIM_SUBTYPE_UNKNOWN = 0, | |
58 GAIM_SUBTYPE_ACCOUNT, | |
59 GAIM_SUBTYPE_BLIST, | |
60 GAIM_SUBTYPE_BLIST_BUDDY, | |
61 GAIM_SUBTYPE_BLIST_GROUP, | |
62 GAIM_SUBTYPE_BLIST_CHAT, | |
63 GAIM_SUBTYPE_CONNECTION, | |
64 GAIM_SUBTYPE_CONVERSATION, | |
65 GAIM_SUBTYPE_CONV_WINDOW, | |
66 GAIM_SUBTYPE_PLUGIN | |
67 | |
68 } GaimSubType; | |
69 | |
70 /** | |
53 * A wrapper for a type, subtype, and specific type of value. | 71 * A wrapper for a type, subtype, and specific type of value. |
54 */ | 72 */ |
55 typedef struct | 73 typedef struct |
56 { | 74 { |
57 GaimType type; | 75 GaimType type; |
85 | 103 |
86 } u; | 104 } u; |
87 | 105 |
88 } GaimValue; | 106 } GaimValue; |
89 | 107 |
108 #ifdef __cplusplus | |
109 extern "C" { | |
110 #endif | |
111 | |
90 /** | 112 /** |
91 * Creates a new GaimValue. | 113 * Creates a new GaimValue. |
92 * | 114 * |
93 * This function takes a type and, depending on that type, a sub-type | 115 * This function takes a type and, depending on that type, a sub-type |
94 * or specific type. | 116 * or specific type. |
441 * | 463 * |
442 * @return The boxed data. | 464 * @return The boxed data. |
443 */ | 465 */ |
444 void *gaim_value_get_boxed(const GaimValue *value); | 466 void *gaim_value_get_boxed(const GaimValue *value); |
445 | 467 |
468 #ifdef __cplusplus | |
469 } | |
470 #endif | |
471 | |
446 #endif /* _GAIM_VALUE_H_ */ | 472 #endif /* _GAIM_VALUE_H_ */ |