bt-dpm.c
bt-proximity.c
bt-tds.c
-bt-otp.c)
+bt-otp.c
+bt-mesh.c)
SET(HEADERS
bluetooth-api.h
bluetooth-scmst-api.h
bluetooth-ipsp-api.h
bluetooth-gatt-server-api.h
-bluetooth-gatt-client-api.h)
+bluetooth-gatt-client-api.h
+bluetooth-mesh-api.h)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(EXEC_PREFIX "\${prefix}")
return result;
}
+BT_EXPORT_API int bluetooth_mesh_network_load(
+ const char *token,
+ bluetooth_mesh_network_t *network)
+{
+ int result;
+ char token_string[BLUETOOTH_MESH_TOKEN_STRING_MAX + 1];
+
+ BT_CHECK_PARAMETER(token, return);
+ BT_CHECK_PARAMETER(network, return);
+
+ BT_INIT_PARAMS();
+ BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
+
+ g_strlcpy(token_string, token, sizeof(token_string));
+ g_array_append_vals(in_param1, token_string, BLUETOOTH_MESH_TOKEN_STRING_MAX);
+
+ result = _bt_send_request(BT_BLUEZ_SERVICE, BT_MESH_NETWORK_LOAD,
+ in_param1, in_param2, in_param3, in_param4, &out_param);
+
+ if (result == BLUETOOTH_ERROR_NONE) {
+ *network = g_array_index(out_param,
+ bluetooth_mesh_network_t, 0);
+ }
+
+ BT_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
+
+ return result;
+}
+
BT_EXPORT_API int bluetooth_mesh_network_scan(
bluetooth_mesh_network_t *network,
bluetooth_mesh_scan_param_t *scan_param)
%{_includedir}/bt-service/bluetooth-ipsp-api.h
%{_includedir}/bt-service/bluetooth-gatt-server-api.h
%{_includedir}/bt-service/bluetooth-gatt-client-api.h
+%{_includedir}/bt-service/bluetooth-mesh-api.h
%{_libdir}/pkgconfig/bluetooth-api.pc
%{_libdir}/libbluetooth-api.so