summaryrefslogtreecommitdiff
path: root/mesh/node.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2019-05-08 14:50:08 -0700
committerBrian Gix <brian.gix@intel.com>2019-05-10 07:39:57 -0700
commit97b8bbc47ec4262c968612dc49c8f92689723a5d (patch)
tree77e810f56afd4525bf64bad8160d9a8958cdd46f /mesh/node.h
parentb723fafbbe582344e65e37ba1732a240cbd764cb (diff)
downloadbluez-97b8bbc47ec4262c968612dc49c8f92689723a5d.tar.gz
mesh: Add CreateNetwork method() implementation
This implements CreateNetwork() method on org.bluez.mesh.Network1 interface. Invoking this method generates a self-provisioned local node associated with a brand new mesh network. This new network is bare bones: only one network key is defined. The new node assumes the role of mesh network manager and will be able to use soon to be implemented methods of org.bluez.mesh.Management1 interface to provision remote nodes into its network and to add/update/remove network and application keys.
Diffstat (limited to 'mesh/node.h')
-rw-r--r--mesh/node.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/mesh/node.h b/mesh/node.h
index 1be4de1da..74ac5981a 100644
--- a/mesh/node.h
+++ b/mesh/node.h
@@ -82,13 +82,15 @@ uint8_t node_friend_mode_get(struct mesh_node *node);
uint32_t node_seq_cache(struct mesh_node *node);
const char *node_get_element_path(struct mesh_node *node, uint8_t ele_idx);
const char *node_get_owner(struct mesh_node *node);
-bool node_add_pending_local(struct mesh_node *node, void *info,
- struct mesh_io *io);
-void node_attach_io(struct mesh_io *io);
+bool node_add_pending_local(struct mesh_node *node, void *info);
+void node_attach_io_all(struct mesh_io *io);
+void node_attach_io(struct mesh_node *node, struct mesh_io *io);
int node_attach(const char *app_path, const char *sender, uint64_t token,
node_ready_func_t cb, void *user_data);
void node_build_attach_reply(struct mesh_node *node,
struct l_dbus_message *reply);
+void node_create(const char *app_path, const char *sender, const uint8_t *uuid,
+ node_ready_func_t cb, void *user_data);
void node_id_set(struct mesh_node *node, uint16_t node_id);
uint16_t node_id_get(struct mesh_node *node);
bool node_dbus_init(struct l_dbus *bus);