X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Flibmeshlink.h;h=471a90db0b5185afc10f393ad6b9348918379daa;hb=8fb3cf697d16e4870d7305866d03240acd49b386;hp=af1c1bab07c4ebe9bba6cf643638d34c8ce4857a;hpb=4753057b6be67efe83454e5e203b4cdc2f4ba143;p=meshlink diff --git a/src/libmeshlink.h b/src/libmeshlink.h index af1c1bab..471a90db 100644 --- a/src/libmeshlink.h +++ b/src/libmeshlink.h @@ -24,12 +24,17 @@ #include "logger.h" #include "route.h" +typedef void (*recvdata_cb_t)(void *data); +void recvdata_register_cb(recvdata_cb_t cb); + +extern recvdata_cb_t recv_callback; + extern char *hosts_dir; extern FILE *fopenmask(const char *filename, const char *mode, mode_t perms); -extern int check_port(char *name); +extern int check_port(const char *name); -bool tinc_main_thread(void * in); +void *tinc_main_thread(void * in); /* OLD: tinc_configuration_t provides all information required to setup "/etc/tinc" I think tinc_setup() should basically do what cmd_init() from src/tincctl.c does, except it doesn't have to generate a tinc-up script. @@ -41,7 +46,6 @@ bool tinc_start(const char* path); bool tinc_stop(); typedef struct tincpackethdr { - u_int8_t legacymtu[14]; u_int8_t destination[16]; u_int8_t source[16]; } __attribute__ ((__packed__)) tincpackethdr;