command: use ConstBuffer<const char *> for argument list

This commit is contained in:
Max Kellermann
2014-12-06 00:08:08 +01:00
parent 5837a63942
commit 6edfc56c9d
25 changed files with 417 additions and 420 deletions

View File

@@ -24,6 +24,7 @@
class Client;
class Storage;
template<typename T> struct ConstBuffer;
CommandResult
handle_listfiles_storage(Client &client, Storage &storage, const char *uri);
@@ -32,12 +33,12 @@ CommandResult
handle_listfiles_storage(Client &client, const char *uri);
CommandResult
handle_listmounts(Client &client, unsigned argc, char *argv[]);
handle_listmounts(Client &client, ConstBuffer<const char *> args);
CommandResult
handle_mount(Client &client, unsigned argc, char *argv[]);
handle_mount(Client &client, ConstBuffer<const char *> args);
CommandResult
handle_unmount(Client &client, unsigned argc, char *argv[]);
handle_unmount(Client &client, ConstBuffer<const char *> args);
#endif