Initial client
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <czmq.h>
|
||||
#include <guestfs.h>
|
||||
|
||||
#include "libguestfs-inspect.h"
|
||||
|
||||
#define STREQ(a, b) (strcmp((a), (b)) == 0)
|
||||
|
||||
void print_help(char *);
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
if (argc == 1) {
|
||||
print_help(argv[0]);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
char *ep = endpoint();
|
||||
zsock_t *daemon = zsock_new_req(ep);
|
||||
free(ep);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
void print_help(char *name) {
|
||||
printf("Usage: %s [name] [command] <arguments>\n", name);
|
||||
printf("Commands:\n");
|
||||
printf(" ls <path>\n");
|
||||
printf(" cat <path>\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user