From: Jason Ish Date: Mon, 28 Apr 2025 18:43:17 +0000 (-0600) Subject: device: move LiveDeviceName from header into source X-Git-Tag: suricata-8.0.0-rc1~393 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12fdd6b802721fcdf48060a1f9bf6b81055a16d9;p=thirdparty%2Fsuricata.git device: move LiveDeviceName from header into source This data structure is only used by the C file and has no reason to be exposed in the header. --- diff --git a/src/util-device.c b/src/util-device.c index 18450937e5..e493428038 100644 --- a/src/util-device.c +++ b/src/util-device.c @@ -41,6 +41,11 @@ static LiveDevStorageId g_bypass_storage_id = { .id = -1 }; static TAILQ_HEAD(, LiveDevice_) live_devices = TAILQ_HEAD_INITIALIZER(live_devices); +typedef struct LiveDeviceName_ { + char *dev; /**< the device (e.g. "eth0") */ + TAILQ_ENTRY(LiveDeviceName_) next; +} LiveDeviceName; + /** List of the name of devices * * As we don't know the size of the Storage on devices diff --git a/src/util-device.h b/src/util-device.h index e5569694e7..53c730cc49 100644 --- a/src/util-device.h +++ b/src/util-device.h @@ -67,11 +67,6 @@ typedef struct LiveDevice_ { Storage storage[]; } LiveDevice; -typedef struct LiveDeviceName_ { - char *dev; /**< the device (e.g. "eth0") */ - TAILQ_ENTRY(LiveDeviceName_) next; -} LiveDeviceName; - void LiveDevRegisterExtension(void); int LiveRegisterDeviceName(const char *dev);