From 91b56239e0835edea68ea46edfa2e547d6724b89 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 15 Sep 2009 18:30:17 +0100 Subject: [PATCH] Move node device drivers to src/node_device/ * daemon/qemud.c, src/Makefile.am: Update for changed paths * src/node_device*.{h,c}: Move to src/node_device/ * src/storage/storage_backend.c: Remove bogus import of node_device.c --- daemon/qemud.c | 2 +- src/Makefile.am | 10 +++++----- src/{ => node_device}/node_device_devkit.c | 0 .../node_device_driver.c} | 2 +- .../node_device_driver.h} | 0 src/{ => node_device}/node_device_hal.c | 2 +- src/{ => node_device}/node_device_hal.h | 0 src/{ => node_device}/node_device_hal_linux.c | 2 +- src/storage/storage_backend.c | 1 - 9 files changed, 9 insertions(+), 10 deletions(-) rename src/{ => node_device}/node_device_devkit.c (100%) rename src/{node_device.c => node_device/node_device_driver.c} (99%) rename src/{node_device.h => node_device/node_device_driver.h} (100%) rename src/{ => node_device}/node_device_hal.c (99%) rename src/{ => node_device}/node_device_hal.h (100%) rename src/{ => node_device}/node_device_hal_linux.c (99%) diff --git a/daemon/qemud.c b/daemon/qemud.c index aa7ea9d6d5..7972efe2ca 100644 --- a/daemon/qemud.c +++ b/daemon/qemud.c @@ -90,7 +90,7 @@ #include "storage/storage_driver.h" #endif #ifdef WITH_NODE_DEVICES -#include "node_device.h" +#include "node_device/node_device_driver.h" #endif #include "secret_driver.h" #endif diff --git a/src/Makefile.am b/src/Makefile.am index 8360879c2c..81c40e45a8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -226,15 +226,15 @@ SECURITY_DRIVER_SELINUX_SOURCES = \ NODE_DEVICE_DRIVER_SOURCES = \ - node_device.c node_device.h + node_device/node_device_driver.c node_device/node_device_driver.h NODE_DEVICE_DRIVER_HAL_SOURCES = \ - node_device_hal.c \ - node_device_hal.h \ - node_device_hal_linux.c + node_device/node_device_hal.c \ + node_device/node_device_hal.h \ + node_device/node_device_hal_linux.c NODE_DEVICE_DRIVER_DEVKIT_SOURCES = \ - node_device_devkit.c + node_device/node_device_devkit.c ######################### diff --git a/src/node_device_devkit.c b/src/node_device/node_device_devkit.c similarity index 100% rename from src/node_device_devkit.c rename to src/node_device/node_device_devkit.c diff --git a/src/node_device.c b/src/node_device/node_device_driver.c similarity index 99% rename from src/node_device.c rename to src/node_device/node_device_driver.c index 69e15b66a2..93ca28c226 100644 --- a/src/node_device.c +++ b/src/node_device/node_device_driver.c @@ -34,7 +34,7 @@ #include "logging.h" #include "node_device_conf.h" #include "node_device_hal.h" -#include "node_device.h" +#include "node_device_driver.h" #include "util.h" #define VIR_FROM_THIS VIR_FROM_NODEDEV diff --git a/src/node_device.h b/src/node_device/node_device_driver.h similarity index 100% rename from src/node_device.h rename to src/node_device/node_device_driver.h diff --git a/src/node_device_hal.c b/src/node_device/node_device_hal.c similarity index 99% rename from src/node_device_hal.c rename to src/node_device/node_device_hal.c index 3e3df7f4f4..18be5ed936 100644 --- a/src/node_device_hal.c +++ b/src/node_device/node_device_hal.c @@ -36,7 +36,7 @@ #include "memory.h" #include "uuid.h" #include "logging.h" -#include "node_device.h" +#include "node_device_driver.h" #define VIR_FROM_THIS VIR_FROM_NODEDEV diff --git a/src/node_device_hal.h b/src/node_device/node_device_hal.h similarity index 100% rename from src/node_device_hal.h rename to src/node_device/node_device_hal.h diff --git a/src/node_device_hal_linux.c b/src/node_device/node_device_hal_linux.c similarity index 99% rename from src/node_device_hal_linux.c rename to src/node_device/node_device_hal_linux.c index ddb1eef7c7..b7cf782232 100644 --- a/src/node_device_hal_linux.c +++ b/src/node_device/node_device_hal_linux.c @@ -24,7 +24,7 @@ #include -#include "node_device.h" +#include "node_device_driver.h" #include "node_device_hal.h" #include "virterror_internal.h" #include "memory.h" diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 800d4ea7b6..b3c9b0ea7f 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -47,7 +47,6 @@ #include "virterror_internal.h" #include "util.h" #include "memory.h" -#include "node_device.h" #include "internal.h" #include "secret_conf.h" #include "uuid.h"