summaryrefslogtreecommitdiff
path: root/mesh/mesh.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2019-12-10 16:56:16 -0800
committerBrian Gix <brian.gix@intel.com>2019-12-16 14:52:36 -0800
commit4a1bea28b15b4ab9b9c962597162cb4070587763 (patch)
tree5c6cbdc6919d9dfa7fc10912b1ab43997d70467a /mesh/mesh.h
parentcf0a39476e5f2bb8a4617b7e6482c17f3aafe6ee (diff)
downloadbluez-4a1bea28b15b4ab9b9c962597162cb4070587763.tar.gz
mesh: Add mesh-main.conf file with general mesh configuration
This adds key file with default settings for the mesh daemon. The following settings are included: Beacon: Default setting for to indicate whether secure network beaconing is enabled for a node whose Beacon state hasn't been configured by a configuration client, i.e., this setting apllies to a newly provisioned, created or imported node. Relay: Default setting for supporting relay Friendship: Default setting for supporting Friendship CRPL: Default depth of replay protection list. FriendQueueSize: Default size of friend queue: the number of messages that each Friend node can store for the Low Power node. ProvTimeout: Provisioning timeout in seconds.
Diffstat (limited to 'mesh/mesh.h')
-rw-r--r--mesh/mesh.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/mesh/mesh.h b/mesh/mesh.h
index c72632b15..eb887723d 100644
--- a/mesh/mesh.h
+++ b/mesh/mesh.h
@@ -34,7 +34,8 @@ typedef void (*mesh_ready_func_t)(void *user_data, bool success);
typedef void (*prov_rx_cb_t)(void *user_data, const uint8_t *data,
uint16_t len);
-bool mesh_init(const char *in_config_name, enum mesh_io_type type, void *opts,
+bool mesh_init(const char *config_dir, const char *mesh_conf_fname,
+ enum mesh_io_type type, void *opts,
mesh_ready_func_t cb, void *user_data);
void mesh_cleanup(void);
bool mesh_dbus_init(struct l_dbus *dbus);
@@ -46,3 +47,8 @@ bool mesh_reg_prov_rx(prov_rx_cb_t cb, void *user_data);
void mesh_unreg_prov_rx(prov_rx_cb_t cb);
const char *mesh_prov_status_str(uint8_t status);
const char *mesh_get_storage_dir(void);
+bool mesh_beacon_enabled(void);
+bool mesh_relay_supported(void);
+bool mesh_friendship_supported(void);
+uint16_t mesh_get_crpl(void);
+uint8_t mesh_get_friend_queue_size(void);