From 12fdd6b802721fcdf48060a1f9bf6b81055a16d9 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 28 Apr 2025 12:43:17 -0600 Subject: [PATCH] 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. --- src/util-device.c | 5 +++++ src/util-device.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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);