#include #include #include #include #include "libguestfs-inspect.h" #define STREQ(a, b) (strcmp((a), (b)) == 0) void print_help(char *); enum guestfs_inpsect_command parse_command(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); struct guestfs_inpsect_command *command = malloc(80); strcpy(command->name, argv[1]); /* command->command = parse_command(argv[2]); */ /* command->args.ls = 5; */ return EXIT_SUCCESS; } void print_help(char *name) { printf("Usage: %s [name] [command] \n", name); printf("Commands:\n"); printf(" ls \n"); printf(" cat \n"); }