diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2015-01-19 16:56:04 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2015-01-27 12:02:04 +0000 |
commit | 220c01aa0a18919f83047f07d7adcf417659a480 (patch) | |
tree | 1f285981b91218f6e3f2804ae38227ad74dd4e55 /src/driver.h | |
parent | f35fa0fd957b02b29695413208492c77f74c447e (diff) | |
download | libvirt-220c01aa0a18919f83047f07d7adcf417659a480.tar.gz |
don't disable state driver when libvirtd is not built
A bunch of code is wrapped in #if WITH_LIBVIRTD in order to
enable the virStateDriver to be disabled when libvirtd is not
built. Disabling this code doesn't have any real functional
benefit beyond removing 1 pointer from the virConnectPtr struct,
while having a cost of many more conditionals.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'src/driver.h')
-rw-r--r-- | src/driver.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/driver.h b/src/driver.h index f7e10a1cb8..5b7862bd9e 100644 --- a/src/driver.h +++ b/src/driver.h @@ -91,9 +91,7 @@ typedef enum { # include "driver-nodedev.h" # include "driver-nwfilter.h" # include "driver-secret.h" -# ifdef WITH_LIBVIRTD -# include "driver-state.h" -# endif +# include "driver-state.h" # include "driver-stream.h" # include "driver-storage.h" @@ -106,9 +104,7 @@ int virRegisterNetworkDriver(virNetworkDriverPtr) ATTRIBUTE_RETURN_CHECK; int virRegisterNodeDeviceDriver(virNodeDeviceDriverPtr) ATTRIBUTE_RETURN_CHECK; int virRegisterNWFilterDriver(virNWFilterDriverPtr) ATTRIBUTE_RETURN_CHECK; int virRegisterSecretDriver(virSecretDriverPtr) ATTRIBUTE_RETURN_CHECK; -# ifdef WITH_LIBVIRTD int virRegisterStateDriver(virStateDriverPtr) ATTRIBUTE_RETURN_CHECK; -# endif int virRegisterStorageDriver(virStorageDriverPtr) ATTRIBUTE_RETURN_CHECK; void *virDriverLoadModule(const char *name); |