Update struct to use pointers instead of flexible length structs
This commit is contained in:
@@ -6,19 +6,17 @@ enum guestfs_inspect_command_const {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct guestfs_ls_args {
|
struct guestfs_ls_args {
|
||||||
size_t path_length;
|
char **paths;
|
||||||
char path[];
|
|
||||||
};
|
};
|
||||||
struct guestfs_cat_args {};
|
struct guestfs_cat_args {};
|
||||||
|
|
||||||
struct guestfs_inpsect_command {
|
struct guestfs_inpsect_command {
|
||||||
|
char *name;
|
||||||
enum guestfs_inspect_command_const command;
|
enum guestfs_inspect_command_const command;
|
||||||
union {
|
union {
|
||||||
struct guestfs_ls_args ls;
|
struct guestfs_ls_args ls;
|
||||||
struct guestfs_cat_args cat;
|
struct guestfs_cat_args cat;
|
||||||
} args;
|
} args;
|
||||||
size_t name_length;
|
|
||||||
char name[];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *endpoint() {
|
static char *endpoint() {
|
||||||
|
|||||||
Reference in New Issue
Block a user