From e295cc34344dccc057ebae862abecc43deea6389 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 8 Jul 2023 09:25:49 +0200 Subject: [PATCH] typedef for options --- src/ebusd/main.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ebusd/main.h b/src/ebusd/main.h index abaaf667..78670311 100644 --- a/src/ebusd/main.h +++ b/src/ebusd/main.h @@ -33,7 +33,7 @@ namespace ebusd { */ /** A structure holding all program options. */ -struct options { +typedef struct options { const char* device; //!< eBUS device (serial device or [udp:]ip:port) [/dev/ttyUSB0] bool noDeviceCheck; //!< skip serial eBUS device test 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] unsigned int dumpSize; //!< maximum size of dump file in kB [100] bool dumpFlush; //!< flush each byte -}; +} options_t; } // namespace ebusd