X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsptps_speed.c;h=c27683b57ab8e69d19bc9ae1d9116680c2cb355d;hb=ed545c8ca7b674b5e851567f2b6630ed3e4bfac0;hp=50db8b10aa4dd0a782ebf6d330d3d92affada7ac;hpb=8eab1de5c6b24e90c865fd204887e313e99e32c6;p=meshlink diff --git a/src/sptps_speed.c b/src/sptps_speed.c index 50db8b10..c27683b5 100644 --- a/src/sptps_speed.c +++ b/src/sptps_speed.c @@ -30,17 +30,19 @@ // Symbols necessary to link with logger.o bool send_request(void *c, const char *msg, ...) { return false; } void *mesh; +void *global_log_cb; +int global_log_level; bool send_meta(void *c, const char *msg , int len) { return false; } char *logfilename = NULL; struct timeval now; -static bool send_data(void *handle, uint8_t type, const char *data, size_t len) { +static bool send_data(void *handle, uint8_t type, const void *data, size_t len) { int fd = *(int *)handle; send(fd, data, len, 0); return true; } -static bool receive_record(void *handle, uint8_t type, const char *data, uint16_t len) { +static bool receive_record(void *handle, uint8_t type, const void *data, uint16_t len) { return true; }