]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
rename of avahi to catta
[meshlink] / src / meshlink_internal.h
index 782cc76e5c0200c54840ff2d442ac2aabe2efd9c..9abe19e0a20a3e65f4deee53fcfbaa3b2a34274d 100644 (file)
 
 #define MAXSOCKETS 8    /* Probably overkill... */
 
-struct AvahiServer;
-struct AvahiSServiceBrowser;
-struct AvahiSimplePoll;
-struct AvahiSEntryGroup;
+struct CattaServer;
+struct CattaSServiceBrowser;
+struct CattaSimplePoll;
+struct CattaSEntryGroup;
 
 typedef struct listen_socket_t {
        struct io_t tcp;
@@ -112,6 +112,8 @@ struct meshlink_handle {
        bool localdiscovery;
        sockaddr_t localdiscovery_address;
 
+       bool default_blacklist;
+
        hash_t *node_udp_cache;
        struct connection_t *everyone;
        struct ecdsa *invitation_key;
@@ -132,11 +134,11 @@ struct meshlink_handle {
 
        pthread_t discovery_thread;
        bool discovery_threadstarted;
-       struct AvahiServer *avahi_server;
-       struct AvahiSServiceBrowser *avahi_browser;
-       struct AvahiSimplePoll *avahi_poll;
-       struct AvahiSEntryGroup *avahi_group;
-       char* avahi_servicetype;
+       struct CattaServer *catta_server;
+       struct CattaSServiceBrowser *catta_browser;
+       struct CattaSimplePoll *catta_poll;
+       struct CattaSEntryGroup *catta_group;
+       char* catta_servicetype;
 };
 
 /// A handle for a MeshLink node.
@@ -152,6 +154,7 @@ struct meshlink_channel {
 
        struct utcp_connection *c;
        meshlink_channel_receive_cb_t receive_cb;
+       meshlink_channel_poll_cb_t poll_cb;
 };
 
 /// Header for data packets routed between nodes