]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Rename hash.h and hash.c to virhash.h and virhash.c
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Jan 2012 16:13:59 +0000 (16:13 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 26 Jan 2012 14:11:13 +0000 (14:11 +0000)
In preparation for the patch to include Murmurhash3, which
introduces a virhashcode.h and virhashcode.c files, rename
the existing hash.h and hash.c to virhash.h and virhash.c
respectively.

17 files changed:
po/POTFILES.in
src/Makefile.am
src/conf/domain_conf.h
src/conf/nwfilter_conf.h
src/conf/nwfilter_params.h
src/cpu/cpu_generic.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_text.h
src/uml/uml_conf.h
src/util/cgroup.c
src/util/virhash.c [moved from src/util/hash.c with 98% similarity]
src/util/virhash.h [moved from src/util/hash.h with 98% similarity]
src/xen/xen_driver.h
src/xen/xm_internal.c
tests/Makefile.am
tests/virhashdata.h [moved from tests/hashdata.h with 100% similarity]
tests/virhashtest.c [moved from tests/hashtest.c with 99% similarity]

index 0126320ec4666e4a9ac727672db57a3e2e1c61fe..674d6df578808b6867c1f478e020cfd692807638 100644 (file)
@@ -110,7 +110,6 @@ src/util/command.c
 src/util/conf.c
 src/util/dnsmasq.c
 src/util/event_poll.c
-src/util/hash.c
 src/util/hooks.c
 src/util/hostusb.c
 src/util/iohelper.c
@@ -126,6 +125,7 @@ src/util/sysinfo.c
 src/util/util.c
 src/util/viraudit.c
 src/util/virfile.c
+src/util/virhash.c
 src/util/virnetdev.c
 src/util/virnetdevbridge.c
 src/util/virnetdevmacvlan.c
index 4629700a0daba002e5cc61cd428cb26f3367044b..eacc741e0eef1ebe69b3025e81147277c97330f1 100644 (file)
@@ -60,7 +60,6 @@ UTIL_SOURCES =                                                        \
                util/cgroup.c util/cgroup.h                     \
                util/event.c util/event.h                       \
                util/event_poll.c util/event_poll.h             \
-               util/hash.c util/hash.h                         \
                util/hooks.c util/hooks.h                       \
                util/iptables.c util/iptables.h                 \
                util/ebtables.c util/ebtables.h                 \
@@ -90,6 +89,7 @@ UTIL_SOURCES =                                                        \
                util/virtypedparam.c util/virtypedparam.h       \
                util/xml.c util/xml.h                           \
                util/virterror.c util/virterror_internal.h      \
+               util/virhash.c util/virhash.h                   \
                util/virkeycode.c util/virkeycode.h             \
                util/virkeymaps.h                               \
                util/virnetdev.h util/virnetdev.c               \
index 3b522a9a28113ddf7b366ef28a6ba4b4abcab4da..7a8f12dd81a2038e1fe1db39fd79e7fa86f9c229 100644 (file)
@@ -34,7 +34,7 @@
 # include "cpu_conf.h"
 # include "util.h"
 # include "threads.h"
-# include "hash.h"
+# include "virhash.h"
 # include "virsocketaddr.h"
 # include "nwfilter_params.h"
 # include "nwfilter_conf.h"
index 4331ab1831da85a00bb5f5c13f8ac13de6e7d8e5..3cb4b82f379ec688d0d53f225562c22ba5c79638 100644 (file)
@@ -32,7 +32,7 @@
 # include "internal.h"
 
 # include "util.h"
-# include "hash.h"
+# include "virhash.h"
 # include "xml.h"
 # include "buf.h"
 # include "virsocketaddr.h"
index fa8f770f232e5ef8e555a8b473f3bbf1177f16df..eab46ec573b76bce03c61489bd67de01807273da 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef NWFILTER_PARAMS_H
 # define NWFILTER_PARAMS_H
 
-# include "hash.h"
+# include "virhash.h"
 # include "buf.h"
 
 enum virNWFilterVarValueType {
index a98b10900a19d849d8bfaa0ac52beb130df08f45..2a31b49243ffd334110e93038c080fa2b2c3ed9c 100644 (file)
@@ -25,7 +25,7 @@
 #include <config.h>
 
 #include "memory.h"
-#include "hash.h"
+#include "virhash.h"
 #include "cpu.h"
 #include "cpu_generic.h"
 
index 15acf8b7740862c0482be63931eef2d427a8758d..88ce303dd90d9441df41e69f0e641ec43f7628fd 100644 (file)
@@ -29,7 +29,7 @@
 
 # include "domain_conf.h"
 # include "qemu_conf.h"
-# include "hash.h"
+# include "virhash.h"
 
 typedef struct _qemuMonitor qemuMonitor;
 typedef qemuMonitor *qemuMonitorPtr;
index dee29809da817e3699f7d199568093feb7489c1c..47a946d292351fbb63784a755362febed56fc6af 100644 (file)
@@ -28,7 +28,6 @@
 # include "internal.h"
 
 # include "qemu_monitor.h"
-# include "hash.h"
 
 int qemuMonitorTextIOProcess(qemuMonitorPtr mon,
                              const char *data,
index 383ae6600dbd271e333126c2afebe8618f0eb4f7..f942116ecafa06d2f2fb4f812f00a1bad2bd2a5e 100644 (file)
@@ -32,7 +32,7 @@
 # include "virterror_internal.h"
 # include "threads.h"
 # include "command.h"
-# include "hash.h"
+# include "virhash.h"
 
 # define umlDebug(fmt, ...) do {} while(0)
 
index 32f59c8230dcb0b76436a70ef249801704f8e99f..e1a90b2a9a6dd66b6280958716fb433acaadbbf8 100644 (file)
@@ -32,7 +32,7 @@
 #include "cgroup.h"
 #include "logging.h"
 #include "virfile.h"
-#include "hash.h"
+#include "virhash.h"
 
 #define CGROUP_MAX_VAL 512
 
similarity index 98%
rename from src/util/hash.c
rename to src/util/virhash.c
index 20d3a12d2a3e894b9988946c4851e36c45eb6b31..238a6fe73a162846c20d47d4bb68a6de5ef4cd1e 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * hash.c: chained hash tables for domain and domain/connection deallocations
+ * virhash.c: chained hash tables for domain and domain/connection deallocatiosn
  *
  * Reference: Your favorite introductory book on algorithms
  *
- * Copyright (C) 2011 Red Hat, Inc.
+ * Copyright (C) 2005-2012 Red Hat, Inc.
  * Copyright (C) 2000 Bjorn Reese and Daniel Veillard.
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
  * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
  * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
  *
- * Author: breese@users.sourceforge.net
+ * Author: Bjorn Reese <bjorn.reese@systematic.dk>
  *         Daniel Veillard <veillard@redhat.com>
  */
 
@@ -25,7 +25,7 @@
 #include <stdlib.h>
 
 #include "virterror_internal.h"
-#include "hash.h"
+#include "virhash.h"
 #include "memory.h"
 #include "logging.h"
 
similarity index 98%
rename from src/util/hash.h
rename to src/util/virhash.h
index 2420045dbef1430e648486e6e83f1f670908b707..8462cb3e3cbfa3c234b0d43ebecf52f2e9faca5f 100644 (file)
@@ -3,7 +3,8 @@
  * Description: This module implements the hash table and allocation and
  *              deallocation of domains and connections
  *
- * Copy: Copyright (C) 2005, 2011 Red Hat, Inc.
+ * Copyright (C) 2005-2012 Red Hat, Inc.
+ * Copyright (C) 2000 Bjorn Reese and Daniel Veillard.
  *
  * Author: Bjorn Reese <bjorn.reese@systematic.dk>
  *         Daniel Veillard <veillard@redhat.com>
index 412237830185944dad804461e832b36a9d0cf247..3cefea336a251a108edcd462693047ea414e5975 100644 (file)
@@ -20,7 +20,7 @@
 #  include "xen_inotify.h"
 # endif
 # include "domain_event.h"
-# include "hash.h"
+# include "virhash.h"
 
 # ifndef HAVE_WINSOCK2_H
 #  include <sys/un.h>
index 9c376fb9dbeb2838fcfd00c8fa091271495c9f41..a34e906c429f6c89e29701f98c608509e255f520 100644 (file)
@@ -42,7 +42,7 @@
 #include "xend_internal.h"
 #include "xen_sxpr.h"
 #include "xen_xm.h"
-#include "hash.h"
+#include "virhash.h"
 #include "buf.h"
 #include "uuid.h"
 #include "util.h"
index f3b0c09185c8d70bf502fdd7618f276ce551ee17..ed47779cbbbf333e063c0e96c482cf943b1b62b4 100644 (file)
@@ -95,7 +95,7 @@ EXTRA_DIST =          \
 check_PROGRAMS = virshtest conftest sockettest \
        nodeinfotest qparamtest virbuftest \
        commandtest commandhelper seclabeltest \
-       hashtest virnetmessagetest virnetsockettest ssh \
+       virhashtest virnetmessagetest virnetsockettest ssh \
        utiltest virnettlscontexttest shunloadtest \
        virtimetest
 
@@ -214,7 +214,7 @@ TESTS = virshtest \
        sockettest \
        commandtest \
        seclabeltest \
-       hashtest \
+       virhashtest \
        virnetmessagetest \
        virnetsockettest \
        virnettlscontexttest \
@@ -515,9 +515,9 @@ virbuftest_SOURCES = \
        virbuftest.c testutils.h testutils.c
 virbuftest_LDADD = $(LDADDS)
 
-hashtest_SOURCES = \
-       hashtest.c hashdata.h testutils.h testutils.c
-hashtest_LDADD = $(LDADDS)
+virhashtest_SOURCES = \
+       virhashtest.c virhashdata.h testutils.h testutils.c
+virhashtest_LDADD = $(LDADDS)
 
 jsontest_SOURCES = \
        jsontest.c testutils.h testutils.c
similarity index 100%
rename from tests/hashdata.h
rename to tests/virhashdata.h
similarity index 99%
rename from tests/hashtest.c
rename to tests/virhashtest.c
index 8df690682d97ca4e98ced03630dbfca55e58e176..ba0cf02ff52d6efe7980973bba690cb111f81e3d 100644 (file)
@@ -6,8 +6,8 @@
 #include <time.h>
 
 #include "internal.h"
-#include "hash.h"
-#include "hashdata.h"
+#include "virhash.h"
+#include "virhashdata.h"
 #include "testutils.h"
 #include "memory.h"