diff options
Diffstat (limited to 'toxav/bwcontroler.h')
-rw-r--r-- | toxav/bwcontroler.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/toxav/bwcontroler.h b/toxav/bwcontroler.h new file mode 100644 index 00000000..53b07d38 --- /dev/null +++ b/toxav/bwcontroler.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /** bwcontroler.h | ||
2 | * | ||
3 | * Copyright (C) 2013-2015 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 | #ifndef BWCONROLER_H | ||
23 | #define BWCONROLER_H | ||
24 | #include "../toxcore/Messenger.h" | ||
25 | |||
26 | typedef struct BWControler_s BWControler; | ||
27 | |||
28 | BWControler *bwc_new(Messenger *m, uint32_t friendnumber, | ||
29 | void (*mcb) (BWControler *, uint32_t, float, void *), | ||
30 | void *udata); | ||
31 | void bwc_kill(BWControler *bwc); | ||
32 | |||
33 | void bwc_feed_avg(BWControler *bwc, uint32_t bytes); | ||
34 | void bwc_add_lost(BWControler *bwc, uint32_t bytes); | ||
35 | void bwc_add_recv(BWControler *bwc, uint32_t bytes); | ||
36 | |||
37 | #endif /* BWCONROLER_H */ | ||