2020-03-12 09:10:33 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-3.0-or-later
|
2018-08-26 07:36:42 +08:00
|
|
|
* Copyright © 2016-2018 The TokTok team.
|
2017-01-14 23:46:31 +08:00
|
|
|
* Copyright © 2013-2015 Tox project.
|
2015-10-11 05:54:23 +08:00
|
|
|
*/
|
2018-09-10 03:54:05 +08:00
|
|
|
#ifndef C_TOXCORE_TOXAV_BWCONTROLLER_H
|
|
|
|
#define C_TOXCORE_TOXAV_BWCONTROLLER_H
|
2016-09-11 22:47:51 +08:00
|
|
|
|
2015-10-11 05:54:23 +08:00
|
|
|
#include "../toxcore/Messenger.h"
|
2020-04-08 04:34:50 +08:00
|
|
|
#include "../toxcore/tox.h"
|
|
|
|
|
2022-01-05 00:36:28 +08:00
|
|
|
typedef struct BWController BWController;
|
2015-10-11 05:54:23 +08:00
|
|
|
|
2018-08-13 00:09:06 +08:00
|
|
|
typedef void m_cb(BWController *bwc, uint32_t friend_number, float todo, void *user_data);
|
|
|
|
|
2020-04-08 04:34:50 +08:00
|
|
|
BWController *bwc_new(Messenger *m, Tox *tox, uint32_t friendnumber, m_cb *mcb, void *mcb_user_data,
|
2020-04-05 18:35:02 +08:00
|
|
|
Mono_Time *bwc_mono_time);
|
2018-01-20 05:59:42 +08:00
|
|
|
|
2015-11-11 17:33:03 +08:00
|
|
|
void bwc_kill(BWController *bwc);
|
2015-10-11 05:54:23 +08:00
|
|
|
|
2018-07-20 05:54:30 +08:00
|
|
|
void bwc_add_lost(BWController *bwc, uint32_t bytes_lost);
|
|
|
|
void bwc_add_recv(BWController *bwc, uint32_t recv_bytes);
|
2015-10-11 05:54:23 +08:00
|
|
|
|
2018-09-10 03:54:05 +08:00
|
|
|
#endif // C_TOXCORE_TOXAV_BWCONTROLLER_H
|