diff options
Diffstat (limited to 'server_communication.c')
-rw-r--r-- | server_communication.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server_communication.c b/server_communication.c index 448ebbf..cc37cde 100644 --- a/server_communication.c +++ b/server_communication.c @@ -102,3 +102,11 @@ gchar **server_find(struct server *server, const gchar *type, const gchar *str) return data; } + +gchar **server_list(struct server *server, const gchar *directory) { + gchar *cmd = g_strdup_printf("list %s\nexit\n", directory); + gchar **data = server_get_stringlist(server, cmd); + g_free(cmd); + + return data; +} |