Mercurial > pidgin
comparison libpurple/pounce.h @ 31947:77a59b2615d0
I want to play hide-a-struct too
author | masca@cpw.pidgin.im |
---|---|
date | Wed, 24 Aug 2011 04:38:46 +0000 |
parents | d7be95afe03a |
children | 02a2e8183b1d |
comparison
equal
deleted
inserted
replaced
31943:4fa86d2d1778 | 31947:77a59b2615d0 |
---|---|
57 } PurplePounceOption; | 57 } PurplePounceOption; |
58 | 58 |
59 /** A pounce callback. */ | 59 /** A pounce callback. */ |
60 typedef void (*PurplePounceCb)(PurplePounce *, PurplePounceEvent, void *); | 60 typedef void (*PurplePounceCb)(PurplePounce *, PurplePounceEvent, void *); |
61 | 61 |
62 /** | |
63 * A buddy pounce structure. | |
64 * | |
65 * Buddy pounces are actions triggered by a buddy-related event. For | |
66 * example, a sound can be played or an IM window opened when a buddy | |
67 * signs on or returns from away. Such responses are handled in the | |
68 * UI. The events themselves are done in the core. | |
69 */ | |
70 struct _PurplePounce | |
71 { | |
72 char *ui_type; /**< The type of UI. */ | |
73 | |
74 PurplePounceEvent events; /**< The event(s) to pounce on. */ | |
75 PurplePounceOption options; /**< The pounce options */ | |
76 PurpleAccount *pouncer; /**< The user who is pouncing. */ | |
77 | |
78 char *pouncee; /**< The buddy to pounce on. */ | |
79 | |
80 GHashTable *actions; /**< The registered actions. */ | |
81 | |
82 gboolean save; /**< Whether or not the pounce should | |
83 be saved after activation. */ | |
84 void *data; /**< Pounce-specific data. */ | |
85 }; | |
86 | |
87 #ifdef __cplusplus | 62 #ifdef __cplusplus |
88 extern "C" { | 63 extern "C" { |
89 #endif | 64 #endif |
90 | 65 |
91 /**************************************************************************/ | 66 /**************************************************************************/ |