diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-06-07 01:40:32 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-12-02 04:05:15 +0300 |
commit | 3aed59276c2b7275603f6da18377b77718948667 (patch) | |
tree | 86816d82ab02b6e4761175d599f5749490706792 /src/common.h | |
parent | d86ca1e596b094cba101e0e3e6c8cdb71f8116e9 (diff) |
wipp17
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index c0b5a36..9723a27 100644 --- a/src/common.h +++ b/src/common.h @@ -11,11 +11,17 @@ enum class DeviceType { Pseudo }; +enum class Protocol { + P17, + P18, +}; + // long opts enum { - LO_HELP = 1, + LO_HELP = 1000, LO_VERBOSE, LO_RAW, + LO_PROTOCOL, LO_TIMEOUT, LO_CACHE_TIMEOUT, LO_DELAY, @@ -34,5 +40,6 @@ enum { }; formatter::Format format_from_string(std::string& s); +Protocol protocol_from_string(std::string& s); #endif //INVERTER_TOOLS_COMMON_H |