sticker/Database: move struct Sticker to Sticker.hxx

This commit is contained in:
Max Kellermann 2019-04-24 15:03:52 +02:00
parent 92dc4a0ca7
commit 7b48ae4f85
2 changed files with 31 additions and 7 deletions

30
src/sticker/Sticker.hxx Normal file
View File

@ -0,0 +1,30 @@
/*
* Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_STICKER_HXX
#define MPD_STICKER_HXX
#include <map>
#include <string>
struct Sticker {
std::map<std::string, std::string> table;
};
#endif

View File

@ -18,6 +18,7 @@
*/
#include "StickerDatabase.hxx"
#include "Sticker.hxx"
#include "lib/sqlite/Util.hxx"
#include "fs/Path.hxx"
#include "Idle.hxx"
@ -25,15 +26,8 @@
#include "util/StringCompare.hxx"
#include "util/ScopeExit.hxx"
#include <string>
#include <map>
#include <assert.h>
struct Sticker {
std::map<std::string, std::string> table;
};
enum sticker_sql {
STICKER_SQL_GET,
STICKER_SQL_LIST,