aboutsummaryrefslogtreecommitdiffstats
path: root/include/custom_baud.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/custom_baud.h')
-rw-r--r--include/custom_baud.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/custom_baud.h b/include/custom_baud.h
index c8b8fc29..38e6cfc4 100644
--- a/include/custom_baud.h
+++ b/include/custom_baud.h
@@ -22,7 +22,13 @@ struct baudentry {
unsigned int baud;
};
-int set_custom_baudrate(int fd, unsigned int baud);
+enum custom_baud_stage {
+ BEFORE_FLAGS = 0,
+ WITH_FLAGS,
+ AFTER_FLAGS
+};
+
+int set_custom_baudrate(int fd, unsigned int baud, const enum custom_baud_stage stage, void *tio_wanted);
/* Returns 1 if non-exact rate would be used, and setting a custom rate is supported.
The baudtable must be in ascending order and terminated with a 0-baud entry. */