X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Flibmeshlink.h;h=0cbfec7ec9150200df350a3994d37b9b1d074178;hb=d8df6943acde5b3c813efd9b116ddf2d1d4ff00e;hp=f2fbd5c4b64966ade273f8aa848b7fce0b3bbdff;hpb=bde0d73919778e0c31f79a6c14efad7e9378b633;p=meshlink diff --git a/src/libmeshlink.h b/src/libmeshlink.h index f2fbd5c4..0cbfec7e 100644 --- a/src/libmeshlink.h +++ b/src/libmeshlink.h @@ -1,6 +1,6 @@ /* libmeshlink.h -- Tincd Library - Copyright (C) 2014 Guus Sliepen Saverio Proto + Copyright (C) 2014 Guus Sliepen Saverio Proto This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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.