]> xenbits.xensource.com Git - xen.git/commitdiff
tools: blktap2: copy xenstore/hashtable.h into blktap2
authorIan Campbell <ian.campbell@citrix.com>
Thu, 31 Mar 2011 17:13:50 +0000 (18:13 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Mar 2011 17:13:50 +0000 (18:13 +0100)
hashtable.c has already been copied, forked and modified, there
doesn't seem much point in avoiding the same for the header until
someone feels motivated to properly refactor.

Add comments to the various duplicated files cross-referencing each
other for future reference and as a barrier to forking again...

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
12 files changed:
tools/blktap2/drivers/Makefile
tools/blktap2/drivers/hashtable.c
tools/blktap2/drivers/hashtable_itr.c
tools/blktap2/drivers/hashtable_itr.h
tools/vtpm_manager/util/hashtable.c
tools/vtpm_manager/util/hashtable.h
tools/vtpm_manager/util/hashtable_itr.c
tools/vtpm_manager/util/hashtable_itr.h
tools/vtpm_manager/util/hashtable_private.h
tools/xenstore/hashtable.c
tools/xenstore/hashtable.h
tools/xenstore/hashtable_private.h

index 472dd62d9db2fafc0e3139abe6d5ee955d370f23..d205fa07d456e5eaf69971a9322aff1639503096 100644 (file)
@@ -30,8 +30,6 @@ REMUS-OBJS  += hashtable.o
 REMUS-OBJS  += hashtable_itr.o
 REMUS-OBJS  += hashtable_utility.o
 
-$(REMUS-OBJS): CFLAGS += -I$(XEN_XENSTORE)
-
 LIBAIO_DIR = $(XEN_ROOT)/tools/libaio/src
 MEMSHR_DIR = $(XEN_ROOT)/tools/memshr
 
index 67697498a7fb967a7fd1f43f5242eb0f8533163b..631306b3e43fa7df23211598fbf71e3b3b57a6cf 100644 (file)
@@ -1,5 +1,11 @@
 /* Copyright (C) 2004 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/xenstore/hashtable.c
+ *  - tools/vtpm_manager/util/hashtable.c
+ */
+
 #include "hashtable.h"
 #include "hashtable_private.h"
 #include <stdlib.h>
index 731917ccf16576905230c03f85eaf3e674a76094..402e06b45de3efd8dc463a107f40db36ce5472df 100644 (file)
@@ -1,5 +1,10 @@
 /* Copyright (C) 2002, 2004 Christopher Clark  <firstname.lastname@cl.cam.ac.uk> */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/vtpm_manager/util/hashtable_itr.c
+ */
+
 #include "hashtable.h"
 #include "hashtable_private.h"
 #include "hashtable_itr.h"
index 81da83855dc00535acfa55ff96af9a1681b0e56c..3d806384d37ac11a1ffcabc332603cd4502a33d6 100644 (file)
@@ -1,5 +1,10 @@
 /* Copyright (C) 2002, 2004 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/vtpm_manager/util/hashtable_itr.h
+ */
+
 #ifndef __HASHTABLE_ITR_CWC22__
 #define __HASHTABLE_ITR_CWC22__
 #include "hashtable.h"
index 57ef0a35cdf0f7422ba05559fa883898239759ab..aff0e2bae6dd4c0a4c6f8c0b65489fd31dafad8d 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/xenstore/hashtable.c
+ *  - tools/blktap2/drivers/hashtable.c
+ */
+
 #include "hashtable.h"
 #include "hashtable_private.h"
 #include <stdlib.h>
index 57698b06420d7c48c30bbadc430199949dbc981e..dedc60a91981e58fc1937b04bc050ccc84028d27 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/xenstore/hashtable.h
+ *  - tools/blktap2/drivers/hashtable.h
+ */
 
 #ifndef __HASHTABLE_CWC22_H__
 #define __HASHTABLE_CWC22_H__
index 5586f061f535e6f7d6f70e6702f48b30ca885a4f..dcf42c87c52ef784f88622a67299deb3652f4da8 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/blktap2/drivers/hashtable_itr.c
+ */
+
 #include "hashtable.h"
 #include "hashtable_private.h"
 #include "hashtable_itr.h"
index 91dc41b9bf79b6213d983aaa4e2f03b3b7a5a178..35654e0b01f250f4df20cae842661df0bdd8a2f8 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/blktap2/drivers/hashtable_itr.h
+ */
+
 
 #ifndef __HASHTABLE_ITR_CWC22__
 #define __HASHTABLE_ITR_CWC22__
index 34426276a45f0ea0ba51884cee421eae9b1e8d9f..d87a7f920864145b8aa694292a4a62b6c2fc2bf4 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/xenstore/hashtable_private.h
+ *  - tools/blktap2/drivers/hashtable_private.h
+ */
+
 #ifndef __HASHTABLE_PRIVATE_CWC22_H__
 #define __HASHTABLE_PRIVATE_CWC22_H__
 
index 394b1cf9d0cba94dd1354ba1803e07e29d19b1f3..3b89223085999687a1531e6904588a638b63fc34 100644 (file)
@@ -1,5 +1,11 @@
 /* Copyright (C) 2004 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/blktap2/drivers/hashtable.c
+ *  - tools/vtpm_manager/util/hashtable.c
+ */
+
 #include "hashtable.h"
 #include "hashtable_private.h"
 #include <stdlib.h>
index b90781abd4a75e6f910cf1450c8ad159bdeac33a..8e6bb5b85cdba1147a04e3014cdf6a0cb4f38354 100644 (file)
@@ -1,5 +1,11 @@
 /* Copyright (C) 2002 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/blktap2/drivers/hashtable.h
+ *  - tools/vtpm_manager/util/hashtable.h
+ */
+
 #ifndef __HASHTABLE_CWC22_H__
 #define __HASHTABLE_CWC22_H__
 
index 3e95f600577540095d20b2551d1198556cf36361..cabaffe72ac5d2ef491fa88a240c801269047510 100644 (file)
@@ -1,5 +1,11 @@
 /* Copyright (C) 2002, 2004 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */
 
+/*
+ * There are duplicates of this code in:
+ *  - tools/blktap2/drivers/hashtable_private.h
+ *  - tools/vtpm_manager/util/hashtable_private.h
+ */
+
 #ifndef __HASHTABLE_PRIVATE_CWC22_H__
 #define __HASHTABLE_PRIVATE_CWC22_H__