typedef for options

This commit is contained in:
John
2023-07-08 09:25:49 +02:00
parent e33810aafe
commit e295cc3434
+2 -2
View File
@@ -33,7 +33,7 @@ namespace ebusd {
*/ */
/** A structure holding all program options. */ /** A structure holding all program options. */
struct options { typedef struct options {
const char* device; //!< eBUS device (serial device or [udp:]ip:port) [/dev/ttyUSB0] const char* device; //!< eBUS device (serial device or [udp:]ip:port) [/dev/ttyUSB0]
bool noDeviceCheck; //!< skip serial eBUS device test bool noDeviceCheck; //!< skip serial eBUS device test
bool readOnly; //!< read-only access to the device bool readOnly; //!< read-only access to the device
@@ -88,7 +88,7 @@ struct options {
const char* dumpFile; //!< name of dump file [/tmp/ebusd_dump.bin] const char* dumpFile; //!< name of dump file [/tmp/ebusd_dump.bin]
unsigned int dumpSize; //!< maximum size of dump file in kB [100] unsigned int dumpSize; //!< maximum size of dump file in kB [100]
bool dumpFlush; //!< flush each byte bool dumpFlush; //!< flush each byte
}; } options_t;
} // namespace ebusd } // namespace ebusd