]> git.sur5r.net Git - tio/blobdiff - src/options.h
Update upstream source from tag 'upstream/2.0'
[tio] / src / options.h
index ed8a4fa0fb2194a3474029ca1284f693e5d99e97..22ec236b7b7fc2dfe7cced64bbab6cb5d446d42b 100644 (file)
 
 #pragma once
 
+#include <stdint.h>
 #include <stdbool.h>
 #include <limits.h>
 #include <termios.h>
 #include <sys/param.h>
-
-enum timestamp_t
-{
-    TIMESTAMP_NONE,
-    TIMESTAMP_24HOUR,
-    TIMESTAMP_24HOUR_START,
-    TIMESTAMP_24HOUR_DELTA,
-    TIMESTAMP_ISO8601,
-    TIMESTAMP_END,
-};
-
-enum timestamp_t timestamp_option_parse(const char *arg);
+#include "timestamp.h"
+#include "alert.h"
 
 /* Options */
 struct option_t
@@ -67,6 +58,14 @@ struct option_t
     bool hex_mode;
     unsigned char prefix_code;
     unsigned char prefix_key;
+    bool response_wait;
+    int response_timeout;
+    bool mute;
+    bool rs485;
+    uint32_t rs485_config_flags;
+    int32_t rs485_delay_rts_before_send;
+    int32_t rs485_delay_rts_after_send;
+    enum alert_t alert;
 };
 
 extern struct option_t option;