summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-06-23 17:16:28 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-06-24 19:17:32 +0000
commit8e00294b3cb9808ce55160240454359638178275 (patch)
tree095a7708b3fe3566951ebe7b068ee66a8beed3c1 /toxcore/network.h
parent5a8790eab0ed9421445adce40526462b9e6742c3 (diff)
Add Logger to various net_crypto functions.
In preparation for adding log statements. Also, fix an uninitialised variable warning in cppcheck.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 8071375b..fbd12bb7 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -458,9 +458,9 @@ void net_kill_strerror(const char *strerror);
458 * 458 *
459 * If error is non NULL it is set to 0 if no issues, 1 if socket related error, 2 if other. 459 * If error is non NULL it is set to 0 if no issues, 1 if socket related error, 2 if other.
460 */ 460 */
461Networking_Core *new_networking(Logger *log, IP ip, uint16_t port); 461Networking_Core *new_networking(const Logger *log, IP ip, uint16_t port);
462Networking_Core *new_networking_ex(Logger *log, IP ip, uint16_t port_from, uint16_t port_to, unsigned int *error); 462Networking_Core *new_networking_ex(const Logger *log, IP ip, uint16_t port_from, uint16_t port_to, unsigned int *error);
463Networking_Core *new_networking_no_udp(Logger *log); 463Networking_Core *new_networking_no_udp(const Logger *log);
464 464
465/* Function to cleanup networking stuff (doesn't do much right now). */ 465/* Function to cleanup networking stuff (doesn't do much right now). */
466void kill_networking(Networking_Core *net); 466void kill_networking(Networking_Core *net);