diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | main.h | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ | |||
1 | SOURCES = $(wildcard *.c) | 1 | SOURCES = $(wildcard *.c) |
2 | DEPS=libtoxcore | 2 | DEPS=libtoxcore |
3 | CC=gcc | 3 | CC=gcc |
4 | CFLAGS=-g -O2 #-std=c99 | 4 | CFLAGS=-g #-std=c99 |
5 | CFLAGS += $(shell pkg-config --cflags $(DEPS)) | 5 | CFLAGS += $(shell pkg-config --cflags $(DEPS)) |
6 | LDFLAGS=-g -pthread -lm -static -lrt | 6 | LDFLAGS=-g -pthread -lm -static -lrt |
7 | LDFLAGS += $(shell pkg-config --libs $(DEPS)) | 7 | LDFLAGS += $(shell pkg-config --libs $(DEPS)) |
@@ -482,7 +482,7 @@ int handle_frame(protocol_frame *frame) | |||
482 | * It checks for basic inconsistiencies and allocates the | 482 | * It checks for basic inconsistiencies and allocates the |
483 | * protocol_frame structure. | 483 | * protocol_frame structure. |
484 | */ | 484 | */ |
485 | int parse_lossless_packet(void *sender_uc, const uint8_t *data, uint32_t len) | 485 | int parse_lossless_packet(Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t len, void *sender_uc) |
486 | { | 486 | { |
487 | protocol_frame *frame = NULL; | 487 | protocol_frame *frame = NULL; |
488 | 488 | ||
@@ -85,7 +85,7 @@ extern int local_port; | |||
85 | extern int select_nfds; | 85 | extern int select_nfds; |
86 | extern tunnel *by_id; | 86 | extern tunnel *by_id; |
87 | 87 | ||
88 | int parse_lossless_packet(void *sender_uc, const uint8_t *data, uint32_t len); | 88 | int parse_lossless_packet(Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t len, void *sender_uc); |
89 | tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber); | 89 | tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber); |
90 | void tunnel_delete(tunnel *t); | 90 | void tunnel_delete(tunnel *t); |
91 | #endif | 91 | #endif |