diff options
Diffstat (limited to 'toxav/event.c')
-rw-r--r-- | toxav/event.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/toxav/event.c b/toxav/event.c index 35af98bb..870abf2a 100644 --- a/toxav/event.c +++ b/toxav/event.c | |||
@@ -68,9 +68,9 @@ typedef struct _EventHandler { | |||
68 | 68 | ||
69 | } EventHandler; | 69 | } EventHandler; |
70 | 70 | ||
71 | int throw_event( void * (func)(void *), void *arg ); | 71 | int throw_event( void *(func)(void *), void *arg ); |
72 | int reset_timer_event ( int id, uint32_t timeout ); | 72 | int reset_timer_event ( int id, uint32_t timeout ); |
73 | int throw_timer_event ( void * (func)(void *), void *arg, unsigned timeout); | 73 | int throw_timer_event ( void *(func)(void *), void *arg, unsigned timeout); |
74 | int cancel_timer_event ( int id ); | 74 | int cancel_timer_event ( int id ); |
75 | int execute_timer_event ( int id ); | 75 | int execute_timer_event ( int id ); |
76 | 76 | ||
@@ -142,7 +142,7 @@ int pop_id ( EventContainer **event_container, size_t *counter, int id ) | |||
142 | return -1; | 142 | return -1; |
143 | } | 143 | } |
144 | 144 | ||
145 | void push_event ( EventContainer **container, size_t *counter, void * (func)(void *), void *arg ) | 145 | void push_event ( EventContainer **container, size_t *counter, void *(func)(void *), void *arg ) |
146 | { | 146 | { |
147 | EventContainer *_new = realloc((*container ), sizeof(EventContainer) * ((*counter ) + 1)); | 147 | EventContainer *_new = realloc((*container ), sizeof(EventContainer) * ((*counter ) + 1)); |
148 | 148 | ||
@@ -230,7 +230,7 @@ void *event_poll( void *arg ) | |||
230 | pthread_exit(NULL); | 230 | pthread_exit(NULL); |
231 | } | 231 | } |
232 | 232 | ||
233 | int throw_event( void * (func)(void *), void *arg ) | 233 | int throw_event( void *(func)(void *), void *arg ) |
234 | { | 234 | { |
235 | pthread_t _tid; | 235 | pthread_t _tid; |
236 | int _rc = | 236 | int _rc = |
@@ -242,7 +242,7 @@ int throw_event( void * (func)(void *), void *arg ) | |||
242 | EventHandler event_handler; | 242 | EventHandler event_handler; |
243 | 243 | ||
244 | /* Place and order array of timers */ | 244 | /* Place and order array of timers */ |
245 | int throw_timer_event ( void * (func)(void *), void *arg, unsigned timeout) | 245 | int throw_timer_event ( void *(func)(void *), void *arg, unsigned timeout) |
246 | { | 246 | { |
247 | static int _unique_id = 1; | 247 | static int _unique_id = 1; |
248 | 248 | ||