command/Request: new struct wrapping ConstBuffer<const char *>

This commit is contained in:
Max Kellermann
2015-08-11 22:11:28 +02:00
parent cbdc3194cc
commit 0f92d021a1
27 changed files with 263 additions and 215 deletions

View File

@@ -19,6 +19,7 @@
#include "config.h"
#include "StickerCommands.hxx"
#include "Request.hxx"
#include "SongPrint.hxx"
#include "db/Interface.hxx"
#include "db/DatabaseGlue.hxx"
@@ -52,7 +53,7 @@ sticker_song_find_print_cb(const LightSong &song, const char *value,
}
static CommandResult
handle_sticker_song(Client &client, ConstBuffer<const char *> args)
handle_sticker_song(Client &client, Request args)
{
Error error;
const Database *db = client.GetDatabase(error);
@@ -191,7 +192,7 @@ handle_sticker_song(Client &client, ConstBuffer<const char *> args)
}
CommandResult
handle_sticker(Client &client, ConstBuffer<const char *> args)
handle_sticker(Client &client, Request args)
{
assert(args.size >= 3);