]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
Added meshlink_submesh_open
[meshlink] / src / meshlink_internal.h
index 545bd52615c87edb6b5b0b23dc9bf253de6fbbf8..45c6c951be3697d0d6d1fd7508aa2d9798e8c5fe 100644 (file)
@@ -57,6 +57,15 @@ typedef enum proxytype_t {
        PROXY_HTTP,
 } proxytype_t;
 
+struct meshlink_open_params {
+       char *confbase;
+       char *appname;
+       char *name;
+       dev_class_t devclass;
+
+       int netns;
+};
+
 /// A handle for an instance of MeshLink.
 struct meshlink_handle {
        char *name;
@@ -66,6 +75,7 @@ struct meshlink_handle {
        dev_class_t devclass;
 
        char *confbase;
+       FILE *conffile;
 
        meshlink_receive_cb_t receive_cb;
        meshlink_node_status_cb_t node_status_cb;
@@ -91,6 +101,7 @@ struct meshlink_handle {
 
        struct list_t *connections;
        struct list_t *outgoings;
+       struct list_t *submeshes;
 
        meshlink_queue_t outpacketqueue;
 
@@ -144,6 +155,8 @@ struct meshlink_handle {
        struct CattaSimplePoll *catta_poll;
        struct CattaSEntryGroup *catta_group;
        char *catta_servicetype;
+
+       int netns;
 };
 
 /// A handle for a MeshLink node.
@@ -152,6 +165,12 @@ struct meshlink_node {
        void *priv;
 };
 
+/// A handle for a node Sub-Mesh.
+struct meshlink_submesh {
+       const char *name;
+       void *priv;
+};
+
 /// A channel.
 struct meshlink_channel {
        struct node_t *node;