diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-05-14 17:15:36 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-05-14 17:15:36 +0100 |
commit | debddaa56c84f5809774f34fdd190bc5f4a6cf16 (patch) | |
tree | da59df5612d82de5a163d67c7f9e4b3d86d84fe3 /tools/xenstore | |
parent | 633979eeb74ecf9200a2f86eff9ed3f09c12bea9 (diff) | |
download | xen-debddaa56c84f5809774f34fdd190bc5f4a6cf16.tar.gz xen-debddaa56c84f5809774f34fdd190bc5f4a6cf16.tar.bz2 xen-debddaa56c84f5809774f34fdd190bc5f4a6cf16.zip |
nstore: rename public xenstore headers
The xenstore header xs.h is producing conflicts with other software[1].
xs is a too short identifier and does not matche the library. Renaming
the headers to xenstore.h and xenstore_lib.h is the easiest way to make
them easy recognizable and prevent furthe problems.
[1]: http://bugs.debian.org/668550
[ Also update QEMU_TAG, to bring in corresponding change to
qemu-xen-traditional. -iwj ]
Signed-off-by: Bastian Blank <waldi@debian.org>
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>
--HG--
rename : tools/xenstore/xs.h => tools/xenstore/xenstore.h
rename : tools/xenstore/xs_lib.h => tools/xenstore/xenstore_lib.h
Diffstat (limited to 'tools/xenstore')
-rw-r--r-- | tools/xenstore/COPYING | 4 | ||||
-rw-r--r-- | tools/xenstore/Makefile | 9 | ||||
-rw-r--r-- | tools/xenstore/compat/xs.h | 2 | ||||
-rw-r--r-- | tools/xenstore/compat/xs_lib.h | 2 | ||||
-rw-r--r-- | tools/xenstore/init-xenstore-domain.c | 2 | ||||
-rw-r--r-- | tools/xenstore/xenstore.h (renamed from tools/xenstore/xs.h) | 8 | ||||
-rw-r--r-- | tools/xenstore/xenstore_client.c | 2 | ||||
-rw-r--r-- | tools/xenstore/xenstore_control.c | 2 | ||||
-rw-r--r-- | tools/xenstore/xenstore_lib.h (renamed from tools/xenstore/xs_lib.h) | 6 | ||||
-rw-r--r-- | tools/xenstore/xenstored_core.c | 2 | ||||
-rw-r--r-- | tools/xenstore/xenstored_core.h | 2 | ||||
-rw-r--r-- | tools/xenstore/xenstored_transaction.c | 2 | ||||
-rw-r--r-- | tools/xenstore/xenstored_watch.c | 2 | ||||
-rw-r--r-- | tools/xenstore/xs.c | 2 | ||||
-rw-r--r-- | tools/xenstore/xs_lib.c | 2 | ||||
-rw-r--r-- | tools/xenstore/xs_tdb_dump.c | 2 |
16 files changed, 30 insertions, 21 deletions
diff --git a/tools/xenstore/COPYING b/tools/xenstore/COPYING index c20f517203..5a6237bb0b 100644 --- a/tools/xenstore/COPYING +++ b/tools/xenstore/COPYING @@ -1,6 +1,6 @@ This license (LGPL) applies to the xenstore library which interfaces -with the xenstore daemon (as stated in xs.c, xs.h, xs_lib.c and -xs_lib.h). The remaining files in the directory are licensed as +with the xenstore daemon (as stated in xs.c, xenstore.h, xs_lib.c and +xenstore_lib.h). The remaining files in the directory are licensed as stated in the comments (as of this writing, GPL, see ../../COPYING). diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile index e95790165c..4ded89225b 100644 --- a/tools/xenstore/Makefile +++ b/tools/xenstore/Makefile @@ -109,6 +109,7 @@ install: all $(INSTALL_DIR) $(DESTDIR)$(BINDIR) $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR) + $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xenstore-compat $(INSTALL_DIR) $(DESTDIR)/var/run/xenstored $(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR) @@ -122,8 +123,12 @@ install: all ln -sf libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libxenstore.so.$(MAJOR) ln -sf libxenstore.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libxenstore.so $(INSTALL_DATA) libxenstore.a $(DESTDIR)$(LIBDIR) - $(INSTALL_DATA) xs.h $(DESTDIR)$(INCLUDEDIR) - $(INSTALL_DATA) xs_lib.h $(DESTDIR)$(INCLUDEDIR) + $(INSTALL_DATA) xenstore.h $(DESTDIR)$(INCLUDEDIR) + $(INSTALL_DATA) xenstore_lib.h $(DESTDIR)$(INCLUDEDIR) + $(INSTALL_DATA) compat/xs.h $(DESTDIR)$(INCLUDEDIR)/xenstore-compat/xs.h + $(INSTALL_DATA) compat/xs_lib.h $(DESTDIR)$(INCLUDEDIR)/xenstore-compat/xs_lib.h + ln -sf xenstore-compat/xs.h $(DESTDIR)$(INCLUDEDIR)/xs.h + ln -sf xenstore-compat/xs_lib.h $(DESTDIR)$(INCLUDEDIR)/xs_lib.h -include $(DEPS) diff --git a/tools/xenstore/compat/xs.h b/tools/xenstore/compat/xs.h new file mode 100644 index 0000000000..99cf39bb1a --- /dev/null +++ b/tools/xenstore/compat/xs.h @@ -0,0 +1,2 @@ +#warning xs.h is deprecated use xenstore.h instead +#include <xenstore.h> diff --git a/tools/xenstore/compat/xs_lib.h b/tools/xenstore/compat/xs_lib.h new file mode 100644 index 0000000000..ad81b54c0e --- /dev/null +++ b/tools/xenstore/compat/xs_lib.h @@ -0,0 +1,2 @@ +#warning xs_lib.h is deprecated use xenstore_lib.h instead +#include <xenstore_lib.h> diff --git a/tools/xenstore/init-xenstore-domain.c b/tools/xenstore/init-xenstore-domain.c index f3a4497bcc..18c075bebd 100644 --- a/tools/xenstore/init-xenstore-domain.c +++ b/tools/xenstore/init-xenstore-domain.c @@ -7,7 +7,7 @@ #include <sys/mman.h> #include <xenctrl.h> #include <xc_dom.h> -#include <xs.h> +#include <xenstore.h> #include <xen/sys/xenbus_dev.h> static uint32_t domid = -1; diff --git a/tools/xenstore/xs.h b/tools/xenstore/xenstore.h index 8d49e50e46..7259e49cd6 100644 --- a/tools/xenstore/xs.h +++ b/tools/xenstore/xenstore.h @@ -17,10 +17,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _XS_H -#define _XS_H +#ifndef XENSTORE_H +#define XENSTORE_H -#include <xs_lib.h> +#include <xenstore_lib.h> #define XBT_NULL 0 @@ -223,7 +223,7 @@ char *xs_debug_command(struct xs_handle *h, const char *cmd, void *data, unsigned int len); int xs_suspend_evtchn_port(int domid); -#endif /* _XS_H */ +#endif /* XENSTORE_H */ /* * Local variables: diff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c index 94b82b99af..37b1bc65e1 100644 --- a/tools/xenstore/xenstore_client.c +++ b/tools/xenstore/xenstore_client.c @@ -18,7 +18,7 @@ #include <string.h> #include <termios.h> #include <unistd.h> -#include <xs.h> +#include <xenstore.h> #include <sys/ioctl.h> diff --git a/tools/xenstore/xenstore_control.c b/tools/xenstore/xenstore_control.c index 0be80261e4..0a108df0aa 100644 --- a/tools/xenstore/xenstore_control.c +++ b/tools/xenstore/xenstore_control.c @@ -2,7 +2,7 @@ #include <stdlib.h> #include <string.h> -#include "xs.h" +#include "xenstore.h" int main(int argc, char **argv) diff --git a/tools/xenstore/xs_lib.h b/tools/xenstore/xenstore_lib.h index bea010d78f..5c2baf6b40 100644 --- a/tools/xenstore/xs_lib.h +++ b/tools/xenstore/xenstore_lib.h @@ -17,8 +17,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _XS_LIB_H -#define _XS_LIB_H +#ifndef XENSTORE_LIB_H +#define XENSTORE_LIB_H #include <stdbool.h> #include <limits.h> @@ -82,4 +82,4 @@ char *sanitise_value(struct expanding_buffer *, const char *val, unsigned len); /* *out_len_r on entry is ignored; out must be at least strlen(in)+1 bytes. */ void unsanitise_value(char *out, unsigned *out_len_r, const char *in); -#endif /* _XS_LIB_H */ +#endif /* XENSTORE_LIB_H */ diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c index a42f55291d..bd44645370 100644 --- a/tools/xenstore/xenstored_core.c +++ b/tools/xenstore/xenstored_core.c @@ -44,7 +44,7 @@ #include "utils.h" #include "list.h" #include "talloc.h" -#include "xs_lib.h" +#include "xenstore_lib.h" #include "xenstored_core.h" #include "xenstored_watch.h" #include "xenstored_transaction.h" diff --git a/tools/xenstore/xenstored_core.h b/tools/xenstore/xenstored_core.h index 92c27ba92f..492ca0d9a7 100644 --- a/tools/xenstore/xenstored_core.h +++ b/tools/xenstore/xenstored_core.h @@ -27,7 +27,7 @@ #include <stdbool.h> #include <stdint.h> #include <errno.h> -#include "xs_lib.h" +#include "xenstore_lib.h" #include "list.h" #include "tdb.h" diff --git a/tools/xenstore/xenstored_transaction.c b/tools/xenstore/xenstored_transaction.c index 380c691bb2..50a32fbcba 100644 --- a/tools/xenstore/xenstored_transaction.c +++ b/tools/xenstore/xenstored_transaction.c @@ -33,7 +33,7 @@ #include "xenstored_transaction.h" #include "xenstored_watch.h" #include "xenstored_domain.h" -#include "xs_lib.h" +#include "xenstore_lib.h" #include "utils.h" struct changed_node diff --git a/tools/xenstore/xenstored_watch.c b/tools/xenstore/xenstored_watch.c index 65d4025239..2ac498ae7f 100644 --- a/tools/xenstore/xenstored_watch.c +++ b/tools/xenstore/xenstored_watch.c @@ -27,7 +27,7 @@ #include "talloc.h" #include "list.h" #include "xenstored_watch.h" -#include "xs_lib.h" +#include "xenstore_lib.h" #include "utils.h" #include "xenstored_domain.h" diff --git a/tools/xenstore/xs.c b/tools/xenstore/xs.c index 0a01675a78..f141066efc 100644 --- a/tools/xenstore/xs.c +++ b/tools/xenstore/xs.c @@ -32,7 +32,7 @@ #include <signal.h> #include <stdint.h> #include <errno.h> -#include "xs.h" +#include "xenstore.h" #include "list.h" #include "utils.h" diff --git a/tools/xenstore/xs_lib.c b/tools/xenstore/xs_lib.c index 03a9ee4393..f7076cc62c 100644 --- a/tools/xenstore/xs_lib.c +++ b/tools/xenstore/xs_lib.c @@ -23,7 +23,7 @@ #include <stdlib.h> #include <errno.h> #include <assert.h> -#include "xs_lib.h" +#include "xenstore_lib.h" /* Common routines for the Xen store daemon and client library. */ diff --git a/tools/xenstore/xs_tdb_dump.c b/tools/xenstore/xs_tdb_dump.c index d3c515418c..7aa7158595 100644 --- a/tools/xenstore/xs_tdb_dump.c +++ b/tools/xenstore/xs_tdb_dump.c @@ -5,7 +5,7 @@ #include <stdio.h> #include <stdarg.h> #include <string.h> -#include "xs_lib.h" +#include "xenstore_lib.h" #include "tdb.h" #include "talloc.h" #include "utils.h" |