diff options
author | irungentoo <irungentoo@gmail.com> | 2014-07-03 11:13:11 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-07-03 11:13:11 -0400 |
commit | aa1194ab3ec7b6b1405d3c72e223b302c702e0fa (patch) | |
tree | cb23a444745035e868fff6cd58667feb156d6447 /toxav/event.h | |
parent | c4f0650ae33e1669bfc994ef4f76c6c31e4d63c0 (diff) | |
parent | f8a2a865dc32bfa626cc150a509d30d897e1181b (diff) |
Merge branch 'mannol1-master'
Diffstat (limited to 'toxav/event.h')
-rw-r--r-- | toxav/event.h | 47 |
1 files changed, 0 insertions, 47 deletions
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 @@ | |||
1 | /** event.h | ||
2 | * | ||
3 | * Copyright (C) 2013 Tox project All Rights Reserved. | ||
4 | * | ||
5 | * This file is part of Tox. | ||
6 | * | ||
7 | * Tox is free software: you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation, either version 3 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * Tox is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | ||
19 | * | ||
20 | */ | ||
21 | |||
22 | |||
23 | #ifndef __TOXEVENT | ||
24 | #define __TOXEVENT | ||
25 | |||
26 | |||
27 | /** | ||
28 | * - Events are, in fact, ran in their own threads upon execution. | ||
29 | * - Event handler is initialized at the start, before the main() function | ||
30 | * and terminated after it's execution. | ||
31 | * - Timers are checked for timeout every ~10000 ns. | ||
32 | * - Timers can be canceled or ran immediately via | ||
33 | * timer_release() or timer_now() functions. | ||
34 | * - Timeout is measured in milliseconds. | ||
35 | * | ||
36 | * NOTE: timer_reset () and timer_now() are not tested nor usable atm | ||
37 | * | ||
38 | */ | ||
39 | extern struct _Event { | ||
40 | int (*rise) (void *( func ) ( void *), void *arg); | ||
41 | int (*timer_reset ) ( int id, unsigned timeout ); | ||
42 | int (*timer_alloc) (void *( func ) ( void *), void *arg, unsigned timeout); | ||
43 | int (*timer_release) (int id); | ||
44 | int (*timer_now) ( int id ); | ||
45 | } event; | ||
46 | |||
47 | #endif /* _MSI__EVENT_H_ */ | ||