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:
Pino Toscano
2015-10-21 11:04:50 +02:00
parent 64cb0f5dad
commit 7c10cda266
20 changed files with 116 additions and 56 deletions

View File

@@ -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