mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 16:24:28 +08:00
7cafe5fd7c
This completely removes storage.c file. Instead, the handling of mesh node configuration storage is done completely in mesh-config layer by calling the following API functions: bool mesh_config_load_nodes(const char *cfg_dir, mesh_config_node_func_t cb, void *user_data) void mesh_config_release(struct mesh_config *cfg) void mesh_config_destroy(struct mesh_config *cfg) bool mesh_config_save(struct mesh_config *cfg, bool no_wait, mesh_config_status_func_t cb, void *user_data) struct mesh_config *mesh_config_create(const char *cfg_path, const uint8_t uuid[16], struct mesh_config_node *node)
46 lines
1.8 KiB
C
46 lines
1.8 KiB
C
/*
|
|
*
|
|
* BlueZ - Bluetooth protocol stack for Linux
|
|
*
|
|
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
|
|
*
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#define BLUEZ_MESH_NAME "org.bluez.mesh"
|
|
|
|
#define MESH_NETWORK_INTERFACE "org.bluez.mesh.Network1"
|
|
#define MESH_NODE_INTERFACE "org.bluez.mesh.Node1"
|
|
#define MESH_MANAGEMENT_INTERFACE "org.bluez.mesh.Management1"
|
|
#define MESH_ELEMENT_INTERFACE "org.bluez.mesh.Element1"
|
|
#define MESH_APPLICATION_INTERFACE "org.bluez.mesh.Application1"
|
|
#define MESH_PROVISION_AGENT_INTERFACE "org.bluez.mesh.ProvisionAgent1"
|
|
#define MESH_PROVISIONER_INTERFACE "org.bluez.mesh.Provisioner1"
|
|
#define ERROR_INTERFACE "org.bluez.mesh.Error"
|
|
|
|
enum mesh_io_type;
|
|
|
|
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);
|
|
void mesh_cleanup(void);
|
|
bool mesh_dbus_init(struct l_dbus *dbus);
|
|
|
|
const char *mesh_status_str(uint8_t err);
|
|
bool mesh_send_pkt(uint8_t count, uint16_t interval, void *data, uint16_t len);
|
|
bool mesh_send_cancel(const uint8_t *filter, uint8_t len);
|
|
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);
|