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.
pull/13125/head
Jason Ish 4 months ago committed by Victor Julien
parent 272d6c8903
commit 12fdd6b802

@ -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

@ -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);

Loading…
Cancel
Save