diff options
author | Inga Stotland <inga.stotland@intel.com> | 2018-07-14 12:58:57 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2018-08-20 12:48:21 -0700 |
commit | 6fbc4c83e13470d669e16ea05cc1def297e71665 (patch) | |
tree | 2751482464af5aa95f8996d576f84e2ff7ed4354 /mesh/mesh.h | |
parent | ef60219269c31f53ec438cb045956b75204b250d (diff) | |
download | bluez-6fbc4c83e13470d669e16ea05cc1def297e71665.tar.gz |
mesh: Header files for mesh access layer and utilities
This adds initial implementation of Mesh access layer functionality
Diffstat (limited to 'mesh/mesh.h')
-rw-r--r-- | mesh/mesh.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mesh/mesh.h b/mesh/mesh.h new file mode 100644 index 000000000..7cd1e6158 --- /dev/null +++ b/mesh/mesh.h @@ -0,0 +1,32 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2018 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. + * + * + */ + +struct bt_mesh; +struct mesh_net; + +struct bt_mesh *mesh_create(uint16_t index); +struct bt_mesh *mesh_ref(struct bt_mesh *mesh); +void mesh_unref(struct bt_mesh *mesh); +bool mesh_load_config(struct bt_mesh *mesh, const char *in_config_name); +bool mesh_set_output(struct bt_mesh *mesh, const char *out_config_name); +const char *mesh_status_str(uint8_t err); + +/* Command line testing */ +struct mesh_net *mesh_get_net(struct bt_mesh *mesh); |