comparison src/eventloop.h @ 8280:084ed9f7ac19

[gaim-migrate @ 9004] Soem tweaks from Scott Lamb for the event loop code. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 17 Feb 2004 08:43:44 +0000
parents f24172f53650
children ef881489396e
comparison
equal deleted inserted replaced
8279:319448d52b33 8280:084ed9f7ac19
55 55
56 /** 56 /**
57 * Adds an input handler. 57 * Adds an input handler.
58 * @see gaim_input_add, g_io_add_watch_full 58 * @see gaim_input_add, g_io_add_watch_full
59 */ 59 */
60 gint (*input_add)(int source, GaimInputCondition cond, 60 guint (*input_add)(int fd, GaimInputCondition cond,
61 GaimInputFunction func, gpointer user_data); 61 GaimInputFunction func, gpointer user_data);
62 62
63 /** 63 /**
64 * Removes an input handler. 64 * Removes an input handler.
65 * @see gaim_input_remove, g_source_remove 65 * @see gaim_input_remove, g_source_remove
66 */ 66 */
67 void (*input_remove)(gint handle); 67 void (*input_remove)(guint handle);
68 }; 68 };
69 69
70 /**************************************************************************/ 70 /**************************************************************************/
71 /** @name Event Loop API */ 71 /** @name Event Loop API */
72 /**************************************************************************/ 72 /**************************************************************************/
83 guint gaim_timeout_add(guint interval, GSourceFunc function, gpointer data); 83 guint gaim_timeout_add(guint interval, GSourceFunc function, gpointer data);
84 84
85 /** 85 /**
86 * Adds an input handler. 86 * Adds an input handler.
87 * 87 *
88 * @param source The input source. 88 * @param fd The input file descriptor.
89 * @param cond The condition type. 89 * @param cond The condition type.
90 * @param func The callback function for data. 90 * @param func The callback function for data.
91 * @param user_data User-specified data. 91 * @param user_data User-specified data.
92 * 92 *
93 * @return The resulting handle. 93 * @return The resulting handle.
94 * @see g_io_add_watch_full 94 * @see g_io_add_watch_full
95 */ 95 */
96 gint gaim_input_add(int source, GaimInputCondition cond, 96 guint gaim_input_add(int fd, GaimInputCondition cond,
97 GaimInputFunction func, gpointer user_data); 97 GaimInputFunction func, gpointer user_data);
98 98
99 /** 99 /**
100 * Removes an input handler. 100 * Removes an input handler.
101 * 101 *
102 * @param handle The handle of the input handler. 102 * @param handle The handle of the input handler. Note that this is the return
103 * value from gaim_input_add, <i>not</i> the file descriptor.
103 */ 104 */
104 void gaim_input_remove(gint handle); 105 void gaim_input_remove(guint handle);
105 106
106 /*@}*/ 107 /*@}*/
107 108
108 109
109 /**************************************************************************/ 110 /**************************************************************************/