summaryrefslogtreecommitdiff
path: root/toxav/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/event.c')
-rw-r--r--toxav/event.c10
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
71int throw_event( void * (func)(void *), void *arg ); 71int throw_event( void *(func)(void *), void *arg );
72int reset_timer_event ( int id, uint32_t timeout ); 72int reset_timer_event ( int id, uint32_t timeout );
73int throw_timer_event ( void * (func)(void *), void *arg, unsigned timeout); 73int throw_timer_event ( void *(func)(void *), void *arg, unsigned timeout);
74int cancel_timer_event ( int id ); 74int cancel_timer_event ( int id );
75int execute_timer_event ( int id ); 75int 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
145void push_event ( EventContainer **container, size_t *counter, void * (func)(void *), void *arg ) 145void 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
233int throw_event( void * (func)(void *), void *arg ) 233int 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 )
242EventHandler event_handler; 242EventHandler event_handler;
243 243
244/* Place and order array of timers */ 244/* Place and order array of timers */
245int throw_timer_event ( void * (func)(void *), void *arg, unsigned timeout) 245int 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