Mercurial > pidgin.yaz
comparison libpurple/eventloop.h @ 15668:d44fca5248a1
Change out source_remove and input_remove eventloop functions to return
booleans instead of guints
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 20 Feb 2007 19:36:08 +0000 |
parents | 5fe8042783c1 |
children | 14d85ee22d78 |
comparison
equal
deleted
inserted
replaced
15667:67ecb6a934a8 | 15668:d44fca5248a1 |
---|---|
55 | 55 |
56 /** | 56 /** |
57 * Removes a callback timer. | 57 * Removes a callback timer. |
58 * @see gaim_timeout_remove, g_source_remove | 58 * @see gaim_timeout_remove, g_source_remove |
59 */ | 59 */ |
60 guint (*timeout_remove)(guint handle); | 60 gboolean (*timeout_remove)(guint handle); |
61 | 61 |
62 /** | 62 /** |
63 * Adds an input handler. | 63 * Adds an input handler. |
64 * @see gaim_input_add, g_io_add_watch_full | 64 * @see gaim_input_add, g_io_add_watch_full |
65 */ | 65 */ |
68 | 68 |
69 /** | 69 /** |
70 * Removes an input handler. | 70 * Removes an input handler. |
71 * @see gaim_input_remove, g_source_remove | 71 * @see gaim_input_remove, g_source_remove |
72 */ | 72 */ |
73 guint (*input_remove)(guint handle); | 73 gboolean (*input_remove)(guint handle); |
74 }; | 74 }; |
75 | 75 |
76 /**************************************************************************/ | 76 /**************************************************************************/ |
77 /** @name Event Loop API */ | 77 /** @name Event Loop API */ |
78 /**************************************************************************/ | 78 /**************************************************************************/ |
95 * | 95 * |
96 * @param handle The handle, as returned by gaim_timeout_add. | 96 * @param handle The handle, as returned by gaim_timeout_add. |
97 * | 97 * |
98 * @return Something. | 98 * @return Something. |
99 */ | 99 */ |
100 guint gaim_timeout_remove(guint handle); | 100 gboolean gaim_timeout_remove(guint handle); |
101 | 101 |
102 /** | 102 /** |
103 * Adds an input handler. | 103 * Adds an input handler. |
104 * | 104 * |
105 * @param fd The input file descriptor. | 105 * @param fd The input file descriptor. |
117 * Removes an input handler. | 117 * Removes an input handler. |
118 * | 118 * |
119 * @param handle The handle of the input handler. Note that this is the return | 119 * @param handle The handle of the input handler. Note that this is the return |
120 * value from gaim_input_add, <i>not</i> the file descriptor. | 120 * value from gaim_input_add, <i>not</i> the file descriptor. |
121 */ | 121 */ |
122 guint gaim_input_remove(guint handle); | 122 gboolean gaim_input_remove(guint handle); |
123 | 123 |
124 /*@}*/ | 124 /*@}*/ |
125 | 125 |
126 | 126 |
127 /**************************************************************************/ | 127 /**************************************************************************/ |