]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
device: move LiveDeviceName from header into source
authorJason Ish <jason.ish@oisf.net>
Mon, 28 Apr 2025 18:43:17 +0000 (12:43 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 30 Apr 2025 20:22:25 +0000 (22:22 +0200)
This data structure is only used by the C file and has no reason to be
exposed in the header.

src/util-device.c
src/util-device.h

index 18450937e5e762cb4d6fdcfab0b644274f5a9719..e493428038a53f1b349d8243b81485f1cd7310a3 100644 (file)
@@ -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
index e5569694e7049841e2a8a1b9cce7feef162f1935..53c730cc4961b61714dd4a2ccefc93d022ae4f89 100644 (file)
@@ -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);