comparison src/pounce.h @ 5563:9eb5b13fd412

[gaim-migrate @ 5965] Just a taste of what's coming. Standard "This won't compile" thing. Plugin authors, you're going to hate me, but that's okay, because I have friends too! It's really late. My brain resembles that of fish swimming in jello pudding with neon lights flying around chanting musicals. I'm not on drugs. I'm just that tired. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 30 May 2003 09:38:29 +0000
parents 4691c5936c01
children 2fa4aa9c1885
comparison
equal deleted inserted replaced
5562:3c8d34574601 5563:9eb5b13fd412
54 * UI. The events themselves are done in the core. 54 * UI. The events themselves are done in the core.
55 */ 55 */
56 struct gaim_pounce 56 struct gaim_pounce
57 { 57 {
58 GaimPounceEvent events; /**< The event(s) to pounce on. */ 58 GaimPounceEvent events; /**< The event(s) to pounce on. */
59 struct gaim_account *pouncer; /**< The user who is pouncing. */ 59 GaimAccount *pouncer; /**< The user who is pouncing. */
60 60
61 char *pouncee; /**< The buddy to pounce on. */ 61 char *pouncee; /**< The buddy to pounce on. */
62 62
63 gaim_pounce_cb callback; /**< The callback function to call when the 63 gaim_pounce_cb callback; /**< The callback function to call when the
64 event is triggered. */ 64 event is triggered. */
76 * @param data Pounce-specific data. 76 * @param data Pounce-specific data.
77 * @param free The function to free the pounce-specific data. 77 * @param free The function to free the pounce-specific data.
78 * 78 *
79 * @return The new buddy pounce structure. 79 * @return The new buddy pounce structure.
80 */ 80 */
81 struct gaim_pounce *gaim_pounce_new(struct gaim_account *pouncer, 81 struct gaim_pounce *gaim_pounce_new(GaimAccount *pouncer,
82 const char *pouncee, 82 const char *pouncee,
83 GaimPounceEvent event, 83 GaimPounceEvent event,
84 gaim_pounce_cb cb, void *data, 84 gaim_pounce_cb cb, void *data,
85 void (*free)(void *)); 85 void (*free)(void *));
86 86
105 * 105 *
106 * @param pounce The buddy pounce. 106 * @param pounce The buddy pounce.
107 * @param pouncer The account that will pounce. 107 * @param pouncer The account that will pounce.
108 */ 108 */
109 void gaim_pounce_set_pouncer(struct gaim_pounce *pounce, 109 void gaim_pounce_set_pouncer(struct gaim_pounce *pounce,
110 struct gaim_account *pouncer); 110 GaimAccount *pouncer);
111 111
112 /** 112 /**
113 * Sets the buddy a pounce should pounce on. 113 * Sets the buddy a pounce should pounce on.
114 * 114 *
115 * @param pounce The buddy pounce. 115 * @param pounce The buddy pounce.
147 * 147 *
148 * @param pounce The buddy pounce. 148 * @param pounce The buddy pounce.
149 * 149 *
150 * @return The account that will pounce. 150 * @return The account that will pounce.
151 */ 151 */
152 struct gaim_account *gaim_pounce_get_pouncer(const struct gaim_pounce *pounce); 152 GaimAccount *gaim_pounce_get_pouncer(const struct gaim_pounce *pounce);
153 153
154 /** 154 /**
155 * Returns the buddy a pounce should pounce on. 155 * Returns the buddy a pounce should pounce on.
156 * 156 *
157 * @param pounce The buddy pounce. 157 * @param pounce The buddy pounce.
174 * 174 *
175 * @param pouncer The account that will do the pouncing. 175 * @param pouncer The account that will do the pouncing.
176 * @param pouncee The buddy that is being pounced. 176 * @param pouncee The buddy that is being pounced.
177 * @param events The events that triggered the pounce. 177 * @param events The events that triggered the pounce.
178 */ 178 */
179 void gaim_pounce_execute(const struct gaim_account *pouncer, 179 void gaim_pounce_execute(const GaimAccount *pouncer,
180 const char *pouncee, 180 const char *pouncee,
181 GaimPounceEvent events); 181 GaimPounceEvent events);
182 182
183 /** 183 /**
184 * Finds a pounce with the specified event(s) and buddy. 184 * Finds a pounce with the specified event(s) and buddy.
187 * @param buddy The buddy to match against. 187 * @param buddy The buddy to match against.
188 * @param events The event(s) to match against. 188 * @param events The event(s) to match against.
189 * 189 *
190 * @return The pounce if found, or @c NULL otherwise. 190 * @return The pounce if found, or @c NULL otherwise.
191 */ 191 */
192 struct gaim_pounce *gaim_find_pounce(const struct gaim_account *pouncer, 192 struct gaim_pounce *gaim_find_pounce(const GaimAccount *pouncer,
193 const char *pouncee, 193 const char *pouncee,
194 GaimPounceEvent events); 194 GaimPounceEvent events);
195 195
196 /** 196 /**
197 * Returns a list of all registered buddy pounces. 197 * Returns a list of all registered buddy pounces.