comparison src/eventloop.h @ 8287:ef881489396e

[gaim-migrate @ 9011] Another patch from Scott Lamb to change g_source_remove calls to gaim_timeout_remove. It also implements gaim_timeout_remove. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 18 Feb 2004 07:43:21 +0000
parents 084ed9f7ac19
children 98c9a35541ed
comparison
equal deleted inserted replaced
8286:89d9d004e3f3 8287:ef881489396e
52 * @see g_timeout_add, gaim_timeout_add 52 * @see g_timeout_add, gaim_timeout_add
53 **/ 53 **/
54 guint (*timeout_add)(guint interval, GSourceFunc function, gpointer data); 54 guint (*timeout_add)(guint interval, GSourceFunc function, gpointer data);
55 55
56 /** 56 /**
57 * Removes a callback timer.
58 * @see gaim_timeout_remove, g_source_remove
59 */
60 guint (*timeout_remove)(guint handle);
61
62 /**
57 * Adds an input handler. 63 * Adds an input handler.
58 * @see gaim_input_add, g_io_add_watch_full 64 * @see gaim_input_add, g_io_add_watch_full
59 */ 65 */
60 guint (*input_add)(int fd, GaimInputCondition cond, 66 guint (*input_add)(int fd, GaimInputCondition cond,
61 GaimInputFunction func, gpointer user_data); 67 GaimInputFunction func, gpointer user_data);
79 * milliseconds. 85 * milliseconds.
80 * @param function The function to call. 86 * @param function The function to call.
81 * @param data data to pass to <tt>function</tt>. 87 * @param data data to pass to <tt>function</tt>.
82 **/ 88 **/
83 guint gaim_timeout_add(guint interval, GSourceFunc function, gpointer data); 89 guint gaim_timeout_add(guint interval, GSourceFunc function, gpointer data);
90
91 /**
92 * Removes a timeout handler.
93 *
94 * @param handle The handle, as returned by gaim_timeout_add.
95 */
96 void gaim_timeout_remove(guint handle);
84 97
85 /** 98 /**
86 * Adds an input handler. 99 * Adds an input handler.
87 * 100 *
88 * @param fd The input file descriptor. 101 * @param fd The input file descriptor.