summaryrefslogtreecommitdiff
path: root/mesh/mesh-io-unit.h
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2021-03-19 13:38:24 -0700
committerBrian Gix <brian.gix@intel.com>2021-04-10 10:28:14 -0700
commitc4cfcf085ce40af2e90f44f47eff333ef2f670a9 (patch)
tree04fec0b5d714c3a5edb09ee9d9112f1ee1c01d26 /mesh/mesh-io-unit.h
parent9be85f867856195e16c9b94b605f65f6389eda33 (diff)
downloadbluez-c4cfcf085ce40af2e90f44f47eff333ef2f670a9.tar.gz
mesh: Add unit test IO
This adds a new type of mesh IO that is used for non-interactive testing. The new io option can be specified on command line as: --io unit:<socket_name> When the bluetooth-meshd daemon starts with the "unit" IO type, the daemon opens a socket (fd to open is provided after "unit:" in <socket_name>). The communication with the daemon is done either through the loop-back using mesh DBus-based APIs or the specified named socket.
Diffstat (limited to 'mesh/mesh-io-unit.h')
-rw-r--r--mesh/mesh-io-unit.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mesh/mesh-io-unit.h b/mesh/mesh-io-unit.h
new file mode 100644
index 000000000..1fd2fa250
--- /dev/null
+++ b/mesh/mesh-io-unit.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2021 Intel Corporation. All rights reserved.
+ *
+ *
+ */
+
+extern const struct mesh_io_api mesh_io_unit;