From 30f3a005ff65f42990d2b54e8e8931448aa56415 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 12 Dec 2012 17:00:34 +0000 Subject: [PATCH] Rename hooks.{c,h} to virhook.{c,h} --- daemon/libvirtd.c | 2 +- po/POTFILES.in | 2 +- src/Makefile.am | 2 +- src/lxc/lxc_driver.c | 2 +- src/lxc/lxc_process.c | 2 +- src/qemu/qemu_driver.c | 2 +- src/qemu/qemu_migration.c | 2 +- src/qemu/qemu_process.c | 2 +- src/util/{hooks.c => virhook.c} | 4 ++-- src/util/{hooks.h => virhook.h} | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) rename src/util/{hooks.c => virhook.c} (98%) rename src/util/{hooks.h => virhook.h} (97%) diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 9b0e45a24b..2a2897a3c1 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -53,7 +53,7 @@ #include "threads.h" #include "remote.h" #include "remote_driver.h" -#include "hooks.h" +#include "virhook.h" #include "uuid.h" #include "viraudit.h" #include "locking/lock_manager.h" diff --git a/po/POTFILES.in b/po/POTFILES.in index e1fcb1bb26..be3f5d8b8d 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -138,7 +138,6 @@ src/storage/storage_driver.c src/test/test_driver.c src/uml/uml_conf.c src/uml/uml_driver.c -src/util/hooks.c src/util/hostusb.c src/util/iohelper.c src/util/iptables.c @@ -161,6 +160,7 @@ src/util/virdnsmasq.c src/util/vireventpoll.c src/util/virfile.c src/util/virhash.c +src/util/virhook.c src/util/virinitctl.c src/util/virkeyfile.c src/util/virlockspace.c diff --git a/src/Makefile.am b/src/Makefile.am index 0505d69737..5df6fff0b8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -53,7 +53,6 @@ augeastest_DATA = # These files are not related to driver APIs. Simply generic # helper APIs for various purposes UTIL_SOURCES = \ - util/hooks.c util/hooks.h \ util/iptables.c util/iptables.h \ util/json.c util/json.h \ util/logging.c util/logging.h \ @@ -85,6 +84,7 @@ UTIL_SOURCES = \ util/virevent.c util/virevent.h \ util/vireventpoll.c util/vireventpoll.h \ util/virfile.c util/virfile.h \ + util/virhook.c util/virhook.h \ util/virnodesuspend.c util/virnodesuspend.h \ util/virobject.c util/virobject.h \ util/virpidfile.c util/virpidfile.h \ diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 67d6bdb44f..6f297680b8 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -52,7 +52,7 @@ #include "nodeinfo.h" #include "uuid.h" #include "stats_linux.h" -#include "hooks.h" +#include "virhook.h" #include "virfile.h" #include "virpidfile.h" #include "fdstream.h" diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index e5f1ce2cb6..fa53217f9c 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -43,8 +43,8 @@ #include "virterror_internal.h" #include "logging.h" #include "vircommand.h" -#include "hooks.h" #include "lxc_hostdev.h" +#include "virhook.h" #define VIR_FROM_THIS VIR_FROM_LXC diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 8c1fa60904..a499cb51af 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -79,7 +79,7 @@ #include "cpu/cpu.h" #include "sysinfo.h" #include "domain_nwfilter.h" -#include "hooks.h" +#include "virhook.h" #include "storage_file.h" #include "virfile.h" #include "fdstream.h" diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 5dcbb07954..d7cdcaf3fd 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -49,7 +49,7 @@ #include "rpc/virnetsocket.h" #include "storage_file.h" #include "viruri.h" -#include "hooks.h" +#include "virhook.h" #define VIR_FROM_THIS VIR_FROM_QEMU diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 030e0005d8..ef88ba2d4c 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -54,7 +54,7 @@ #include "logging.h" #include "virterror_internal.h" #include "memory.h" -#include "hooks.h" +#include "virhook.h" #include "virfile.h" #include "virpidfile.h" #include "util.h" diff --git a/src/util/hooks.c b/src/util/virhook.c similarity index 98% rename from src/util/hooks.c rename to src/util/virhook.c index a6c056d51e..76571da17b 100644 --- a/src/util/hooks.c +++ b/src/util/virhook.c @@ -1,5 +1,5 @@ /* - * hooks.c: implementation of the synchronous hooks support + * virhook.c: implementation of the synchronous hooks support * * Copyright (C) 2010-2012 Red Hat, Inc. * Copyright (C) 2010 Daniel Veillard @@ -31,7 +31,7 @@ #include #include "virterror_internal.h" -#include "hooks.h" +#include "virhook.h" #include "util.h" #include "logging.h" #include "memory.h" diff --git a/src/util/hooks.h b/src/util/virhook.h similarity index 97% rename from src/util/hooks.h rename to src/util/virhook.h index 0ca376f6a2..2aad054d41 100644 --- a/src/util/hooks.h +++ b/src/util/virhook.h @@ -1,5 +1,5 @@ /* - * hook.h: internal entry points needed for synchronous hooks support + * virhook.h: internal entry points needed for synchronous hooks support * * Copyright (C) 2010 Red Hat, Inc. * Copyright (C) 2010 Daniel Veillard -- 2.39.5