Mercurial > pidgin
comparison libpurple/eventloop.h @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Sat, 02 Jun 2012 02:30:49 +0000 |
| parents | 98520ee78f12 |
| children |
comparison
equal
deleted
inserted
replaced
| 32818:01ff09d4a463 | 32819:2c6510167895 |
|---|---|
| 25 */ | 25 */ |
| 26 #ifndef _PURPLE_EVENTLOOP_H_ | 26 #ifndef _PURPLE_EVENTLOOP_H_ |
| 27 #define _PURPLE_EVENTLOOP_H_ | 27 #define _PURPLE_EVENTLOOP_H_ |
| 28 | 28 |
| 29 #include <glib.h> | 29 #include <glib.h> |
| 30 | |
| 31 #ifdef __cplusplus | |
| 32 extern "C" { | |
| 33 #endif | |
| 34 | 30 |
| 35 /** | 31 /** |
| 36 * An input condition. | 32 * An input condition. |
| 37 */ | 33 */ |
| 38 typedef enum | 34 typedef enum |
| 143 * Implementation of this UI op is optional. If it's not implemented, | 139 * Implementation of this UI op is optional. If it's not implemented, |
| 144 * calls to purple_timeout_add_seconds() will be serviced by | 140 * calls to purple_timeout_add_seconds() will be serviced by |
| 145 * #timeout_add. | 141 * #timeout_add. |
| 146 * | 142 * |
| 147 * @see purple_timeout_add_seconds() | 143 * @see purple_timeout_add_seconds() |
| 148 * @since 2.1.0 | |
| 149 **/ | 144 **/ |
| 150 guint (*timeout_add_seconds)(guint interval, GSourceFunc function, | 145 guint (*timeout_add_seconds)(guint interval, GSourceFunc function, |
| 151 gpointer data); | 146 gpointer data); |
| 152 | 147 |
| 153 void (*_purple_reserved2)(void); | 148 void (*_purple_reserved2)(void); |
| 154 void (*_purple_reserved3)(void); | 149 void (*_purple_reserved3)(void); |
| 155 void (*_purple_reserved4)(void); | 150 void (*_purple_reserved4)(void); |
| 156 }; | 151 }; |
| 152 | |
| 153 G_BEGIN_DECLS | |
| 157 | 154 |
| 158 /**************************************************************************/ | 155 /**************************************************************************/ |
| 159 /** @name Event Loop API */ | 156 /** @name Event Loop API */ |
| 160 /**************************************************************************/ | 157 /**************************************************************************/ |
| 161 /*@{*/ | 158 /*@{*/ |
| 190 * seconds. | 187 * seconds. |
| 191 * @param function The function to call. | 188 * @param function The function to call. |
| 192 * @param data data to pass to @a function. | 189 * @param data data to pass to @a function. |
| 193 * @return A handle to the timer which can be passed to | 190 * @return A handle to the timer which can be passed to |
| 194 * purple_timeout_remove() to remove the timer. | 191 * purple_timeout_remove() to remove the timer. |
| 195 * | |
| 196 * @since 2.1.0 | |
| 197 */ | 192 */ |
| 198 guint purple_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data); | 193 guint purple_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data); |
| 199 | 194 |
| 200 /** | 195 /** |
| 201 * Removes a timeout handler. | 196 * Removes a timeout handler. |
| 267 */ | 262 */ |
| 268 PurpleEventLoopUiOps *purple_eventloop_get_ui_ops(void); | 263 PurpleEventLoopUiOps *purple_eventloop_get_ui_ops(void); |
| 269 | 264 |
| 270 /*@}*/ | 265 /*@}*/ |
| 271 | 266 |
| 272 #ifdef __cplusplus | 267 G_END_DECLS |
| 273 } | |
| 274 #endif | |
| 275 | 268 |
| 276 #endif /* _PURPLE_EVENTLOOP_H_ */ | 269 #endif /* _PURPLE_EVENTLOOP_H_ */ |
