X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink_internal.h;h=f77d700692f410ec34b6284583e5e253ee9de6de;hb=45b59d87c07ca0038f98aea499435e502f0ba80b;hp=56c810f31c4ff4a5c87024a54bb00926322d67ea;hpb=0e03a8ad0de862ea431110d27d4659c082855f98;p=meshlink-tiny diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index 56c810f..f77d700 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -111,8 +111,6 @@ struct meshlink_handle { // Infrequently used callbacks meshlink_node_status_cb_t node_status_cb; meshlink_node_status_cb_t meta_status_cb; - meshlink_channel_listen_cb_t channel_listen_cb; - meshlink_channel_accept_cb_t channel_accept_cb; meshlink_node_duplicate_cb_t node_duplicate_cb; meshlink_connection_try_cb_t connection_try_cb; meshlink_error_cb_t error_cb; @@ -150,22 +148,6 @@ struct meshlink_node { void *priv; }; -/// A channel. -struct meshlink_channel { - struct node_t *node; - void *priv; - bool in_callback; - - struct utcp_connection *c; - meshlink_channel_receive_cb_t receive_cb; -}; - -/// Header for data packets routed between nodes -typedef struct meshlink_packethdr { - uint8_t destination[16]; - uint8_t source[16]; -} __attribute__((__packed__)) meshlink_packethdr_t; - void meshlink_send_from_queue(event_loop_t *loop, void *mesh); void update_node_status(meshlink_handle_t *mesh, struct node_t *n); extern meshlink_log_level_t global_log_level;