ppc/pnv: remove pnv-phb3-root-port
[qemu.git] / qga / commands-common.h
blobd0e4a9696f37e7ff3641ed7325fd495015ff0838
1 /*
2 * QEMU Guest Agent common/cross-platform common commands
4 * Copyright (c) 2020 Red Hat, Inc.
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
9 #ifndef QGA_COMMANDS_COMMON_H
10 #define QGA_COMMANDS_COMMON_H
12 #include "qga-qapi-types.h"
14 typedef struct GuestFileHandle GuestFileHandle;
16 GuestFileHandle *guest_file_handle_find(int64_t id, Error **errp);
18 GuestFileRead *guest_file_read_unsafe(GuestFileHandle *gfh,
19 int64_t count, Error **errp);
21 /**
22 * qga_get_host_name:
23 * @errp: Error object
25 * Operating system agnostic way of querying host name.
26 * Compared to g_get_host_name(), it doesn't cache the result.
28 * Returns allocated hostname (caller should free), NULL on failure.
30 char *qga_get_host_name(Error **errp);
32 #endif