comparison src/pounce.h @ 6837:f098765ac919

[gaim-migrate @ 7382] The pounces subsystem now registers signal callbacks for all the pounce types. The calls to pounce code in server.c, and therefore in all the rest of gaim, have been removed. The pounce code is now more like its own separate island. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 14 Sep 2003 21:05:11 +0000
parents 41120df7ed94
children fa6395637e2c
comparison
equal deleted inserted replaced
6836:e2483c5f53bd 6837:f098765ac919
3 * @ingroup core 3 * @ingroup core
4 * 4 *
5 * gaim 5 * gaim
6 * 6 *
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version. 12 * (at your option) any later version.
13 * 13 *
253 GaimPounceEvent events); 253 GaimPounceEvent events);
254 254
255 /*@}*/ 255 /*@}*/
256 256
257 /**************************************************************************/ 257 /**************************************************************************/
258 /** @name Buddy Pounces API */ 258 /** @name Buddy Pounce Subsystem API */
259 /**************************************************************************/ 259 /**************************************************************************/
260 /*@{*/ 260 /*@{*/
261 261
262 /** 262 /**
263 * Finds a pounce with the specified event(s) and buddy. 263 * Finds a pounce with the specified event(s) and buddy.
269 * @return The pounce if found, or @c NULL otherwise. 269 * @return The pounce if found, or @c NULL otherwise.
270 */ 270 */
271 GaimPounce *gaim_find_pounce(const GaimAccount *pouncer, 271 GaimPounce *gaim_find_pounce(const GaimAccount *pouncer,
272 const char *pouncee, GaimPounceEvent events); 272 const char *pouncee, GaimPounceEvent events);
273 273
274
275 /**
276 * Initializes the pounces subsystem.
277 */
278 void gaim_pounces_init(void);
279 274
280 /** 275 /**
281 * Loads the pounces. 276 * Loads the pounces.
282 * 277 *
283 * @return @c TRUE if the pounces could be loaded. 278 * @return @c TRUE if the pounces could be loaded.
313 * 308 *
314 * @return The list of buddy pounces. 309 * @return The list of buddy pounces.
315 */ 310 */
316 GList *gaim_pounces_get_all(void); 311 GList *gaim_pounces_get_all(void);
317 312
313 /**
314 * Returns the buddy pounce subsystem handle.
315 *
316 * @return The subsystem handle.
317 */
318 void *gaim_pounces_get_handle(void);
319
320 /**
321 * Initializes the pounces subsystem.
322 */
323 void gaim_pounces_init(void);
324
325 /**
326 * Uninitializes the pounces subsystem.
327 */
328 void gaim_pounces_uninit(void);
329
318 /*@}*/ 330 /*@}*/
319 331
320 #ifdef __cplusplus 332 #ifdef __cplusplus
321 } 333 }
322 #endif 334 #endif