mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
generator: add a FilenameList parameter type
Mostly like StringList (so it can used in current StringList parameters), but checking client- and daemon-side that the elements are file names.
This commit is contained in:
@@ -310,7 +310,7 @@ extern int64_t get_int64 (ETERM *term);
|
||||
pr " ETERM *%s_bin = erl_iolist_to_binary (ARG (%d));\n" n i;
|
||||
pr " const void *%s = ERL_BIN_PTR (%s_bin);\n" n n;
|
||||
pr " size_t %s_size = ERL_BIN_SIZE (%s_bin);\n" n n
|
||||
| StringList n | DeviceList n ->
|
||||
| StringList n | DeviceList n | FilenameList n ->
|
||||
pr " CLEANUP_FREE_STRING_LIST char **%s = get_string_list (ARG (%d));\n" n i
|
||||
| Bool n ->
|
||||
pr " int %s = get_bool (ARG (%d));\n" n i
|
||||
|
||||
Reference in New Issue
Block a user