static int proxy_parse_opts(QemuOpts *opts, struct FsDriverEntry *fs)

{

    const char *socket = qemu_opt_get(opts, "socket");

    const char *sock_fd = qemu_opt_get(opts, "sock_fd");



    if (!socket && !sock_fd) {

        fprintf(stderr, "socket and sock_fd none of the option specified\n");

        return -1;

    }

    if (socket && sock_fd) {

        fprintf(stderr, "Both socket and sock_fd options specified\n");

        return -1;

    }

    if (socket) {

        fs->path = g_strdup(socket);

        fs->export_flags = V9FS_PROXY_SOCK_NAME;

    } else {

        fs->path = g_strdup(sock_fd);

        fs->export_flags = V9FS_PROXY_SOCK_FD;

    }

    return 0;

}

static int proxy_parse_opts(QemuOpts *opts, struct FsDriverEntry *fs)

{

    const char *socket = qemu_opt_get(opts, "socket");

    const char *sock_fd = qemu_opt_get(opts, "sock_fd");



    if (!socket && !sock_fd) {

        fprintf(stderr, "socket and sock_fd none of the option specified\n");

        return -1;

    }

    if (socket && sock_fd) {

        fprintf(stderr, "Both socket and sock_fd options specified\n");

        return -1;

    }

    if (socket) {

        fs->path = g_strdup(socket);

        fs->export_flags = V9FS_PROXY_SOCK_NAME;

    } else {

        fs->path = g_strdup(sock_fd);

        fs->export_flags = V9FS_PROXY_SOCK_FD;

    }

    return 0;

}

static int FUNC_0(QemuOpts *VAR_0, struct FsDriverEntry *VAR_1)

{

    const char *VAR_2 = qemu_opt_get(VAR_0, "VAR_2");

    const char *VAR_3 = qemu_opt_get(VAR_0, "VAR_3");



    if (!VAR_2 && !VAR_3) {

        fprintf(stderr, "VAR_2 and VAR_3 none of the option specified\n");

        return -1;

    }

    if (VAR_2 && VAR_3) {

        fprintf(stderr, "Both VAR_2 and VAR_3 options specified\n");

        return -1;

    }

    if (VAR_2) {

        VAR_1->path = g_strdup(VAR_2);

        VAR_1->export_flags = V9FS_PROXY_SOCK_NAME;

    } else {

        VAR_1->path = g_strdup(VAR_3);

        VAR_1->export_flags = V9FS_PROXY_SOCK_FD;

    }

    return 0;

}

static int FUNC_0(QemuOpts *VAR_0, struct FsDriverEntry *VAR_1)
{ const char *VAR_2 = qemu_opt_get(VAR_0, "VAR_2"); const char *VAR_3 = qemu_opt_get(VAR_0, "VAR_3"); if (!VAR_2 && !VAR_3) { fprintf(stderr, "VAR_2 and VAR_3 none of the option specified\n"); return -1; } if (VAR_2 && VAR_3) { fprintf(stderr, "Both VAR_2 and VAR_3 options specified\n"); return -1; } if (VAR_2) { VAR_1->path = g_strdup(VAR_2); VAR_1->export_flags = V9FS_PROXY_SOCK_NAME; } else { VAR_1->path = g_strdup(VAR_3); VAR_1->export_flags = V9FS_PROXY_SOCK_FD; } return 0; }