Files
xen/tools/xenstore/xenstore_control.c
T
Ian Campbell debddaa56c 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
2012-05-14 17:15:36 +01:00

36 lines
543 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "xenstore.h"
int main(int argc, char **argv)
{
struct xs_handle * xsh;
if (argc < 2 ||
strcmp(argv[1], "check"))
{
fprintf(stderr,
"Usage:\n"
"\n"
" %s check\n"
"\n", argv[0]);
return 2;
}
xsh = xs_daemon_open();
if (xsh == NULL) {
fprintf(stderr, "Failed to contact Xenstored.\n");
return 1;
}
xs_debug_command(xsh, argv[1], NULL, 0);
xs_daemon_close(xsh);
return 0;
}