comparison src/pounce.c @ 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 abc8489b2e8f
children 2fa4aa9c1885
comparison
equal deleted inserted replaced
5562:3c8d34574601 5563:9eb5b13fd412
24 #include "gaim.h" 24 #include "gaim.h"
25 25
26 static GList *pounces = NULL; 26 static GList *pounces = NULL;
27 27
28 struct gaim_pounce * 28 struct gaim_pounce *
29 gaim_pounce_new(struct gaim_account *pouncer, const char *pouncee, 29 gaim_pounce_new(GaimAccount *pouncer, const char *pouncee,
30 GaimPounceEvent event, gaim_pounce_cb cb, 30 GaimPounceEvent event, gaim_pounce_cb cb,
31 void *data, void (*free)(void *)) 31 void *data, void (*free)(void *))
32 { 32 {
33 struct gaim_pounce *pounce; 33 struct gaim_pounce *pounce;
34 34
75 pounce->events = events; 75 pounce->events = events;
76 } 76 }
77 77
78 void 78 void
79 gaim_pounce_set_pouncer(struct gaim_pounce *pounce, 79 gaim_pounce_set_pouncer(struct gaim_pounce *pounce,
80 struct gaim_account *pouncer) 80 GaimAccount *pouncer)
81 { 81 {
82 if (pounce == NULL || pouncer == NULL) 82 if (pounce == NULL || pouncer == NULL)
83 return; 83 return;
84 84
85 pounce->pouncer = pouncer; 85 pounce->pouncer = pouncer;
113 return GAIM_POUNCE_NONE; 113 return GAIM_POUNCE_NONE;
114 114
115 return pounce->events; 115 return pounce->events;
116 } 116 }
117 117
118 struct gaim_account * 118 GaimAccount *
119 gaim_pounce_get_pouncer(const struct gaim_pounce *pounce) 119 gaim_pounce_get_pouncer(const struct gaim_pounce *pounce)
120 { 120 {
121 if (pounce == NULL) 121 if (pounce == NULL)
122 return NULL; 122 return NULL;
123 123
141 141
142 return pounce->data; 142 return pounce->data;
143 } 143 }
144 144
145 void 145 void
146 gaim_pounce_execute(const struct gaim_account *pouncer, 146 gaim_pounce_execute(const GaimAccount *pouncer,
147 const char *pouncee, GaimPounceEvent events) 147 const char *pouncee, GaimPounceEvent events)
148 { 148 {
149 struct gaim_pounce *pounce; 149 struct gaim_pounce *pounce;
150 GList *l; 150 GList *l;
151 151
164 } 164 }
165 } 165 }
166 } 166 }
167 167
168 struct gaim_pounce * 168 struct gaim_pounce *
169 gaim_find_pounce(const struct gaim_account *pouncer, 169 gaim_find_pounce(const GaimAccount *pouncer,
170 const char *pouncee, GaimPounceEvent events) 170 const char *pouncee, GaimPounceEvent events)
171 { 171 {
172 struct gaim_pounce *pounce; 172 struct gaim_pounce *pounce;
173 GList *l; 173 GList *l;
174 174