From 65d320e31daa4709bb48b7f2a52c269dde0927e9 Mon Sep 17 00:00:00 2001 From: mannol Date: Sat, 25 Jan 2014 01:32:33 +0100 Subject: Done with encryption and core adaptations. --- toxmsi/toxmsi_event.h | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 toxmsi/toxmsi_event.h (limited to 'toxmsi/toxmsi_event.h') diff --git a/toxmsi/toxmsi_event.h b/toxmsi/toxmsi_event.h deleted file mode 100644 index 032e4df5..00000000 --- a/toxmsi/toxmsi_event.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef _MSI__EVENT_H_ -#define _MSI__EVENT_H_ - -#include -#include -#include - -typedef void* event_arg_t; - -typedef void ( *event_t ) ( event_arg_t ); -typedef void ( *timed_event_t ) ( event_arg_t ); - -typedef struct event_container_s { - event_t _event; - event_arg_t _event_args; - uint32_t _timeout; - long long _id; - -} event_container_t; - -typedef struct event_handler_s { - event_container_t* _events; - size_t _events_count; - - event_container_t* _timed_events; - size_t _timed_events_count; - - uint32_t _frequms; - int _running; - - pthread_mutex_t _mutex; - pthread_t _thread_id; - -} event_handler_t; - -event_handler_t* init_event_poll ( uint32_t _frequms ); -int terminate_event_poll ( event_handler_t* _event_handler ); - -void throw_event ( void* _event_handler_p, event_t _func, event_arg_t _arg ); - -/* Not yet ready for use */ -int throw_timer_event ( void* _event_handler_p, event_t _func, event_arg_t _arg, uint32_t _timeout); -int cancel_timer_event ( void* _event_handler_p, int _id ); - - -#endif /* _MSI__EVENT_H_ */ -- cgit v1.2.3