summaryrefslogtreecommitdiff
path: root/mesh/agent.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2018-07-14 12:58:57 -0700
committerBrian Gix <brian.gix@intel.com>2018-08-20 12:48:21 -0700
commit6fbc4c83e13470d669e16ea05cc1def297e71665 (patch)
tree2751482464af5aa95f8996d576f84e2ff7ed4354 /mesh/agent.h
parentef60219269c31f53ec438cb045956b75204b250d (diff)
downloadbluez-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/agent.h')
-rw-r--r--mesh/agent.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/mesh/agent.h b/mesh/agent.h
new file mode 100644
index 000000000..6fb475691
--- /dev/null
+++ b/mesh/agent.h
@@ -0,0 +1,42 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2017 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 MAX_HEXADECIMAL_OOB_LEN 128
+#define DECIMAL_OOB_LEN 4
+#define MAX_ASCII_OOB_LEN 16
+
+enum oob_type {
+ NONE,
+ HEXADECIMAL,
+ DECIMAL,
+ ASCII,
+ OUTPUT,
+} oob_type_t;
+
+typedef void (*agent_input_cb)(enum oob_type type, void *input, uint16_t len,
+ void *user_data);
+bool agent_input_request(enum oob_type type, uint16_t max_len,
+ agent_input_cb cb, void *user_data);
+
+bool agent_output_request(const char *str);
+void agent_output_request_cancel(void);
+bool agent_completion(void);
+bool agent_input(const char *input);
+void agent_release(void);