Rename hash.h and hash.c to virhash.h and virhash.c

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.
This commit is contained in:
Daniel P. Berrange 2012-01-25 16:13:59 +00:00
parent 9f2bf8fd03
commit 1d5c7a9fdf
17 changed files with 24 additions and 24 deletions

View 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

View 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 \

View 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"

View 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"

View File

@ -23,7 +23,7 @@
#ifndef NWFILTER_PARAMS_H
# define NWFILTER_PARAMS_H
# include "hash.h"
# include "virhash.h"
# include "buf.h"
enum virNWFilterVarValueType {

View File

@ -25,7 +25,7 @@
#include <config.h>
#include "memory.h"
#include "hash.h"
#include "virhash.h"
#include "cpu.h"
#include "cpu_generic.h"

View 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;

View File

@ -28,7 +28,6 @@
# include "internal.h"
# include "qemu_monitor.h"
# include "hash.h"
int qemuMonitorTextIOProcess(qemuMonitorPtr mon,
const char *data,

View 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)

View 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

View 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"

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

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

View 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"

View 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

View 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"