X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink_internal.h;h=a40de535a8dbc911f80ef10507354bbb9936e8ec;hb=2fd608c4111ef4d48a649401d918f5981856cc44;hp=45c6c951be3697d0d6d1fd7508aa2d9798e8c5fe;hpb=ed1f31db1e8840ffd6849b48bcad93e9975a24bb;p=meshlink diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index 45c6c951..a40de535 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -3,7 +3,7 @@ /* meshlink_internal.h -- Internal parts of the public API. - Copyright (C) 2014, 2017 Guus Sliepen + Copyright (C) 2014-2019 Guus Sliepen 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 @@ -20,6 +20,10 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#ifdef MESHLINK_H +#error You must not include both meshlink.h and meshlink_internal.h! +#endif + #include "system.h" #include "event.h" @@ -84,6 +88,7 @@ struct meshlink_handle { meshlink_channel_accept_cb_t channel_accept_cb; meshlink_node_duplicate_cb_t node_duplicate_cb; + meshlink_connection_try_cb_t connection_try_cb; pthread_t thread; bool threadstarted;