diff options
author | sijanec <anton@sijanec.eu> | 2021-03-18 14:25:47 +0100 |
---|---|---|
committer | sijanec <anton@sijanec.eu> | 2021-03-18 14:25:47 +0100 |
commit | 583cf346017c05df6e06d552313608a1789943a0 (patch) | |
tree | 839ccd06b6f67432771b0c4702380936b1e4323d /src/main.c | |
parent | finished first PoC code (diff) | |
download | discord.c-583cf346017c05df6e06d552313608a1789943a0.tar discord.c-583cf346017c05df6e06d552313608a1789943a0.tar.gz discord.c-583cf346017c05df6e06d552313608a1789943a0.tar.bz2 discord.c-583cf346017c05df6e06d552313608a1789943a0.tar.lz discord.c-583cf346017c05df6e06d552313608a1789943a0.tar.xz discord.c-583cf346017c05df6e06d552313608a1789943a0.tar.zst discord.c-583cf346017c05df6e06d552313608a1789943a0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,10 +1,15 @@ #define _XOPEN_SOURCE 600 #include <stdio.h> +/* #define DC_NETREQ */ +#ifdef DC_NETREQ FILE * netreq; +#endif #include <ui.c> int main (int argc, char ** argv) { srand(time(NULL)); +#ifdef DC_NETREQ netreq = fopen("netreq.log", "w"); +#endif int rs = 0; int opt; pthread_t api_thread, ui_thread; @@ -67,7 +72,9 @@ int main (int argc, char ** argv) { pthread_join(api_thread, NULL); pthread_join(ui_thread, NULL); rc: +#ifdef DC_NETREQ fclose(netreq); +#endif dc_client_free(c); if (api_ret || ui_ret); /* to hide warnings */ return rs; |