debuggers.hg

view tools/xenstore/xenstore_control.c @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents 1a1e3dcbbf19
children
line source
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 #include "xs.h"
8 int main(int argc, char **argv)
9 {
10 struct xs_handle * xsh;
12 if (argc < 2 ||
13 strcmp(argv[1], "check"))
14 {
15 fprintf(stderr,
16 "Usage:\n"
17 "\n"
18 " %s check\n"
19 "\n", argv[0]);
20 return 2;
21 }
23 xsh = xs_daemon_open();
25 if (xsh == NULL) {
26 fprintf(stderr, "Failed to contact Xenstored.\n");
27 return 1;
28 }
30 xs_debug_command(xsh, argv[1], NULL, 0);
32 xs_daemon_close(xsh);
34 return 0;
35 }