aboutsummaryrefslogtreecommitdiff
path: root/src/serial.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-06-27 23:08:01 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-06-27 23:08:01 +0200
commitb4582f3209a4916ffaa54baa716ab27a87bb961a (patch)
tree86e8deebd6eef2c555975b4e799687644415777a /src/serial.h
parentaafbd24502d6d9883ae96a57f64fa3b5ed7c2bcb (diff)
downloadbbs-b4582f3209a4916ffaa54baa716ab27a87bb961a.tar.gz
can accept incoming calls
Diffstat (limited to 'src/serial.h')
-rw-r--r--src/serial.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/serial.h b/src/serial.h
new file mode 100644
index 0000000..1e3157d
--- /dev/null
+++ b/src/serial.h
@@ -0,0 +1,10 @@
+#include <errno.h>
+#include <fcntl.h>
+#include <string.h>
+#include <termios.h>
+#include <unistd.h>
+
+
+int set_interface_attribs (int fd, int speed, int parity);
+
+void set_blocking (int fd, int should_block);