projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the memory leak
[platform/core/connectivity/bluetooth-frwk.git]
/
include
/
bluetooth-mesh-api.h
diff --git
a/include/bluetooth-mesh-api.h
b/include/bluetooth-mesh-api.h
index
081bd0b
..
464b668
100644
(file)
--- a/
include/bluetooth-mesh-api.h
+++ b/
include/bluetooth-mesh-api.h
@@
-75,6
+75,10
@@
typedef struct {
uint16_t vendorid;
uint16_t versionid;
uint16_t crpl;
uint16_t vendorid;
uint16_t versionid;
uint16_t crpl;
+ int relay;
+ int frnd;
+ int proxy;
+ int lpn;
} bluetooth_mesh_vendor_info_t;
typedef struct {
} bluetooth_mesh_vendor_info_t;
typedef struct {
@@
-229,7
+233,9
@@
typedef struct {
} bluetooth_mesh_authentication_request_t;
typedef struct {
} bluetooth_mesh_authentication_request_t;
typedef struct {
+ char net_uuid[BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH + 1];
uint16_t primary_unicast;
uint16_t primary_unicast;
+ uint16_t num_elements;
char dev_uuid[BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH + 1];
} bluetooth_mesh_node_info_t;
char dev_uuid[BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH + 1];
} bluetooth_mesh_node_info_t;
@@
-256,9
+262,23
@@
int bluetooth_mesh_network_create(const char *net_name,
bluetooth_mesh_model_t **models,
bluetooth_mesh_network_t *network);
bluetooth_mesh_model_t **models,
bluetooth_mesh_network_t *network);
+
+/**
+ * Destroy Local Network Configuration
+ */
int bluetooth_mesh_network_destroy(bluetooth_mesh_network_t *network);
/**
int bluetooth_mesh_network_destroy(bluetooth_mesh_network_t *network);
/**
+ * Unload Local network Configuration
+ */
+int bluetooth_mesh_network_unload(bluetooth_mesh_network_t *network);
+
+/**
+ * Reset a remote Node & remove it from network
+ */
+int bluetooth_mesh_node_reset(bluetooth_mesh_node_info_t *node);
+
+/**
* Load already created Network
*/
int bluetooth_mesh_network_load(const char *token,
* Load already created Network
*/
int bluetooth_mesh_network_load(const char *token,