Initial client
This commit is contained in:
@@ -11,19 +11,9 @@
|
||||
|
||||
static void *worker_task(zsock_t*, char*);
|
||||
|
||||
char *endpoint(void);
|
||||
|
||||
static int compare_key_len(const void*, const void*);
|
||||
static int count_mountpoints(char *const *argv);
|
||||
|
||||
char *endpoint() {
|
||||
// TODO: This should be based on GUESTFS_INSPECT_ENDPOINT, or XDG_RUNTIME_DIR if the former is not set, and default to a sensible path if neither are set.
|
||||
const char* ep = "ipc:///tmp/guestfs-inspect.sock";
|
||||
char *res = malloc(strlen(ep) + 1);
|
||||
strcpy(res, ep);
|
||||
return res;
|
||||
}
|
||||
|
||||
static int compare_key_len(const void *p1, const void *p2) {
|
||||
const char *key1 = *(char* const*) p1;
|
||||
const char *key2 = *(char* const*) p2;
|
||||
|
||||
Reference in New Issue
Block a user