summaryrefslogtreecommitdiff
path: root/emulator/serial.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-07-12 15:52:24 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-07-12 15:53:16 +0200
commit096799fd522f388de4501d0bfafda468a8297e2b (patch)
treefad073086d025055707c0eafa275cc524cc91aa1 /emulator/serial.h
parent6930cd12df8d3f5ee0bc92f785da590d02529bee (diff)
downloadbluez-096799fd522f388de4501d0bfafda468a8297e2b.tar.gz
emulator: Add support for providing a pseudo terminal
Diffstat (limited to 'emulator/serial.h')
-rw-r--r--emulator/serial.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/emulator/serial.h b/emulator/serial.h
new file mode 100644
index 000000000..4e5a56f88
--- /dev/null
+++ b/emulator/serial.h
@@ -0,0 +1,37 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2011-2014 Intel Corporation
+ * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
+ *
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#include <stdint.h>
+
+enum serial_type {
+ SERIAL_TYPE_BREDRLE,
+ SERIAL_TYPE_BREDR,
+ SERIAL_TYPE_LE,
+ SERIAL_TYPE_AMP,
+};
+
+struct serial;
+
+struct serial *serial_open(enum serial_type type);
+void serial_close(struct serial *serial);