From d3560a3a77dea199d25d0209288e07aeb5909abb Mon Sep 17 00:00:00 2001 From: mannol Date: Thu, 3 Jul 2014 16:58:00 +0200 Subject: Removed redundant code and fixed toxav codec actions being called when call inactive --- toxav/event.h | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 toxav/event.h (limited to 'toxav/event.h') diff --git a/toxav/event.h b/toxav/event.h deleted file mode 100644 index e8bc5e37..00000000 --- a/toxav/event.h +++ /dev/null @@ -1,47 +0,0 @@ -/** event.h - * - * Copyright (C) 2013 Tox project All Rights Reserved. - * - * This file is part of Tox. - * - * Tox is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Tox is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Tox. If not, see . - * - */ - - -#ifndef __TOXEVENT -#define __TOXEVENT - - -/** - * - Events are, in fact, ran in their own threads upon execution. - * - Event handler is initialized at the start, before the main() function - * and terminated after it's execution. - * - Timers are checked for timeout every ~10000 ns. - * - Timers can be canceled or ran immediately via - * timer_release() or timer_now() functions. - * - Timeout is measured in milliseconds. - * - * NOTE: timer_reset () and timer_now() are not tested nor usable atm - * - */ -extern struct _Event { - int (*rise) (void *( func ) ( void *), void *arg); - int (*timer_reset ) ( int id, unsigned timeout ); - int (*timer_alloc) (void *( func ) ( void *), void *arg, unsigned timeout); - int (*timer_release) (int id); - int (*timer_now) ( int id ); -} event; - -#endif /* _MSI__EVENT_H_ */ -- cgit v1.2.3