summaryrefslogtreecommitdiff
path: root/mesh/mesh-mgmt.h
diff options
context:
space:
mode:
authorMichaƂ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>2019-06-24 09:32:28 +0200
committerBrian Gix <brian.gix@intel.com>2019-06-24 09:04:44 -0700
commit12b984d1d4d47a8fd5bc8455d586bb208b804ebf (patch)
tree9ea739eea2eeffafcdfd5186e3f9d8f76ed2aae6 /mesh/mesh-mgmt.h
parentee70e5e070505e7caef66e9446ac586c378bde0f (diff)
downloadbluez-12b984d1d4d47a8fd5bc8455d586bb208b804ebf.tar.gz
mesh: Move HCI handling to mesh-io-generic
This patch separates 'mesh' module from 'mesh_io', particularly regarding configuration and initialization. Main code is no longer aware of MGMT and HCI usage - querying available HCI interfaces now happens in mesh-io-generic. MGMT code is now extracted into mesh-mgmt module, which mesh-io-generic uses to query interfaces.
Diffstat (limited to 'mesh/mesh-mgmt.h')
-rw-r--r--mesh/mesh-mgmt.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/mesh/mesh-mgmt.h b/mesh/mesh-mgmt.h
new file mode 100644
index 000000000..93ad7995e
--- /dev/null
+++ b/mesh/mesh-mgmt.h
@@ -0,0 +1,23 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2019 SILVAIR sp. z o.o. 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.
+ *
+ */
+#include <stdbool.h>
+
+typedef void (*mesh_mgmt_read_info_func_t)(int index, void *user_data);
+
+bool mesh_mgmt_list(mesh_mgmt_read_info_func_t cb, void *user_data);