Squashed 'external/toxcore/c-toxcore/' changes from 03e9fbf3703..e740b4e3b2e
e740b4e3b2e feat: Implement Tox network profiler git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: e740b4e3b2e3aa594ab259e2a80153f5eed8fd16
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "logger.h"
|
||||
#include "mem.h"
|
||||
#include "mono_time.h"
|
||||
#include "net_profile.h"
|
||||
#include "network.h"
|
||||
|
||||
/*** Crypto payloads. */
|
||||
@@ -418,4 +419,11 @@ void do_net_crypto(Net_Crypto *c, void *userdata);
|
||||
nullable(1)
|
||||
void kill_net_crypto(Net_Crypto *c);
|
||||
|
||||
/**
|
||||
* Returns a pointer to the net profile object for the TCP client associated with `c`.
|
||||
* Returns null if `c` is null or the TCP_Connections associated with `c` is null.
|
||||
*/
|
||||
non_null()
|
||||
const Net_Profile *nc_get_tcp_client_net_profile(const Net_Crypto *c);
|
||||
|
||||
#endif /* C_TOXCORE_TOXCORE_NET_CRYPTO_H */
|
||||
|
||||
Reference in New Issue
Block a user