client: convert to C++
This commit is contained in:
parent
94b2ee627c
commit
70b87f2eb6
36
Makefile.am
36
Makefile.am
@ -102,8 +102,6 @@ mpd_headers = \
|
||||
src/text_input_stream.h \
|
||||
src/icy_server.h \
|
||||
src/icy_metadata.h \
|
||||
src/client.h \
|
||||
src/client_internal.h \
|
||||
src/server_socket.h \
|
||||
src/log.h \
|
||||
src/ls.h \
|
||||
@ -192,10 +190,10 @@ src_mpd_SOURCES = \
|
||||
src/audio_check.c \
|
||||
src/audio_format.c \
|
||||
src/audio_parser.c \
|
||||
src/protocol/argparser.c src/protocol/argparser.h \
|
||||
src/protocol/result.c src/protocol/result.h \
|
||||
src/protocol/ArgParser.cxx src/protocol/ArgParser.hxx \
|
||||
src/protocol/Result.cxx src/protocol/Result.hxx \
|
||||
src/CommandError.cxx src/CommandError.hxx \
|
||||
src/AllCommands.cxx src/AllCommands.h \
|
||||
src/AllCommands.cxx src/AllCommands.hxx \
|
||||
src/QueueCommands.cxx src/QueueCommands.hxx \
|
||||
src/PlayerCommands.cxx src/PlayerCommands.hxx \
|
||||
src/PlaylistCommands.cxx src/PlaylistCommands.hxx \
|
||||
@ -243,22 +241,20 @@ src_mpd_SOURCES = \
|
||||
src/UpdateContainer.cxx src/UpdateContainer.hxx \
|
||||
src/UpdateInternal.hxx \
|
||||
src/UpdateRemove.cxx src/UpdateRemove.hxx \
|
||||
src/client.c \
|
||||
src/client_event.c \
|
||||
src/client_expire.c \
|
||||
src/client_global.c \
|
||||
src/client_idle.h \
|
||||
src/client_idle.c \
|
||||
src/client_list.c \
|
||||
src/Client.cxx src/Client.hxx \
|
||||
src/ClientInternal.hxx \
|
||||
src/ClientEvent.cxx \
|
||||
src/ClientExpire.cxx \
|
||||
src/ClientGlobal.cxx \
|
||||
src/ClientIdle.cxx src/ClientIdle.hxx \
|
||||
src/ClientList.cxx \
|
||||
src/ClientNew.cxx \
|
||||
src/client_process.c \
|
||||
src/client_read.c \
|
||||
src/client_write.c \
|
||||
src/client_message.h \
|
||||
src/client_message.c \
|
||||
src/client_subscribe.h \
|
||||
src/client_subscribe.c \
|
||||
src/client_file.c src/client_file.h \
|
||||
src/ClientProcess.cxx \
|
||||
src/ClientRead.cxx \
|
||||
src/ClientWrite.cxx \
|
||||
src/ClientMessage.cxx src/ClientMessage.hxx \
|
||||
src/ClientSubscribe.cxx src/ClientSubscribe.hxx \
|
||||
src/ClientFile.cxx src/ClientFile.hxx \
|
||||
src/server_socket.c \
|
||||
src/Listen.cxx src/Listen.hxx \
|
||||
src/log.c \
|
||||
|
@ -18,11 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
extern "C" {
|
||||
#include "AllCommands.h"
|
||||
}
|
||||
|
||||
#include "AllCommands.hxx"
|
||||
#include "command.h"
|
||||
#include "QueueCommands.hxx"
|
||||
#include "PlayerCommands.hxx"
|
||||
@ -33,11 +29,11 @@ extern "C" {
|
||||
#include "OtherCommands.hxx"
|
||||
#include "Permission.hxx"
|
||||
#include "tag.h"
|
||||
#include "protocol/Result.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/result.h"
|
||||
#include "tokenizer.h"
|
||||
#include "client.h"
|
||||
}
|
||||
|
||||
#ifdef ENABLE_SQLITE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_ALL_COMMANDS_H
|
||||
#define MPD_ALL_COMMANDS_H
|
||||
#ifndef MPD_ALL_COMMANDS_HXX
|
||||
#define MPD_ALL_COMMANDS_HXX
|
||||
|
||||
#include "command.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_internal.h"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
bool client_is_expired(const struct client *client)
|
||||
{
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_internal.h"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "Main.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
@ -27,7 +27,7 @@ static gboolean
|
||||
client_out_event(G_GNUC_UNUSED GIOChannel *source, GIOCondition condition,
|
||||
gpointer data)
|
||||
{
|
||||
struct client *client = data;
|
||||
struct client *client = (struct client *)data;
|
||||
|
||||
assert(!client_is_expired(client));
|
||||
|
||||
@ -49,7 +49,7 @@ client_out_event(G_GNUC_UNUSED GIOChannel *source, GIOCondition condition,
|
||||
/* done sending deferred buffers exist: schedule
|
||||
read */
|
||||
client->source_id = g_io_add_watch(client->channel,
|
||||
G_IO_IN|G_IO_ERR|G_IO_HUP,
|
||||
GIOCondition(G_IO_IN|G_IO_ERR|G_IO_HUP),
|
||||
client_in_event, client);
|
||||
return false;
|
||||
}
|
||||
@ -62,7 +62,7 @@ gboolean
|
||||
client_in_event(G_GNUC_UNUSED GIOChannel *source, GIOCondition condition,
|
||||
gpointer data)
|
||||
{
|
||||
struct client *client = data;
|
||||
struct client *client = (struct client *)data;
|
||||
enum command_return ret;
|
||||
|
||||
assert(!client_is_expired(client));
|
||||
@ -99,7 +99,7 @@ client_in_event(G_GNUC_UNUSED GIOChannel *source, GIOCondition condition,
|
||||
if (!g_queue_is_empty(client->deferred_send)) {
|
||||
/* deferred buffers exist: schedule write */
|
||||
client->source_id = g_io_add_watch(client->channel,
|
||||
G_IO_OUT|G_IO_ERR|G_IO_HUP,
|
||||
GIOCondition(G_IO_OUT|G_IO_ERR|G_IO_HUP),
|
||||
client_out_event, client);
|
||||
return false;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_internal.h"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
static guint expire_source_id;
|
||||
|
||||
@ -42,7 +42,7 @@ client_set_expired(struct client *client)
|
||||
static void
|
||||
client_check_expired_callback(gpointer data, G_GNUC_UNUSED gpointer user_data)
|
||||
{
|
||||
struct client *client = data;
|
||||
struct client *client = (struct client *)data;
|
||||
|
||||
if (client_is_expired(client)) {
|
||||
g_debug("[%u] expired", client->num);
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "client_file.h"
|
||||
#include "client.h"
|
||||
#include "ClientFile.hxx"
|
||||
#include "Client.hxx"
|
||||
#include "ack.h"
|
||||
#include "io_error.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_CLIENT_FILE_H
|
||||
#define MPD_CLIENT_FILE_H
|
||||
#ifndef MPD_CLIENT_FILE_HXX
|
||||
#define MPD_CLIENT_FILE_HXX
|
||||
|
||||
#include "gerror.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,8 +18,11 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_internal.h"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "conf.h"
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,9 +18,12 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_idle.h"
|
||||
#include "client_internal.h"
|
||||
#include "ClientIdle.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "idle.h"
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
@ -68,7 +71,7 @@ client_idle_add(struct client *client, unsigned flags)
|
||||
static void
|
||||
client_idle_callback(gpointer data, gpointer user_data)
|
||||
{
|
||||
struct client *client = data;
|
||||
struct client *client = (struct client *)data;
|
||||
unsigned flags = GPOINTER_TO_UINT(user_data);
|
||||
|
||||
client_idle_add(client, flags);
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,10 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_CLIENT_IDLE_H
|
||||
#define MPD_CLIENT_IDLE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#ifndef MPD_CLIENT_IDLE_HXX
|
||||
#define MPD_CLIENT_IDLE_HXX
|
||||
|
||||
struct client;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,11 +17,11 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_CLIENT_INTERNAL_H
|
||||
#define MPD_CLIENT_INTERNAL_H
|
||||
#ifndef MPD_CLIENT_INTERNAL_HXX
|
||||
#define MPD_CLIENT_INTERNAL_HXX
|
||||
|
||||
#include "client.h"
|
||||
#include "client_message.h"
|
||||
#include "Client.hxx"
|
||||
#include "ClientMessage.hxx"
|
||||
#include "command.h"
|
||||
|
||||
#include <glib.h>
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_internal.h"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
@ -42,7 +42,7 @@ client_list_get_first(void)
|
||||
{
|
||||
assert(clients != NULL);
|
||||
|
||||
return clients->data;
|
||||
return (struct client *)clients->data;
|
||||
}
|
||||
|
||||
void
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,7 +17,7 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "client_message.h"
|
||||
#include "ClientMessage.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <glib.h>
|
@ -18,9 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
extern "C" {
|
||||
#include "client_internal.h"
|
||||
}
|
||||
#include "ClientInternal.hxx"
|
||||
#include "fd_util.h"
|
||||
extern "C" {
|
||||
#include "fifo_buffer.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,9 +18,9 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_internal.h"
|
||||
#include "protocol/result.h"
|
||||
#include "AllCommands.h"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "protocol/Result.hxx"
|
||||
#include "AllCommands.hxx"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@ -35,7 +35,7 @@ client_process_command_list(struct client *client, bool list_ok, GSList *list)
|
||||
unsigned num = 0;
|
||||
|
||||
for (GSList *cur = list; cur != NULL; cur = g_slist_next(cur)) {
|
||||
char *cmd = cur->data;
|
||||
char *cmd = (char *)cur->data;
|
||||
|
||||
g_debug("command_process_list: process command \"%s\"",
|
||||
cmd);
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,8 +18,11 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_internal.h"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "fifo_buffer.h"
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
@ -27,19 +30,16 @@
|
||||
static char *
|
||||
client_read_line(struct client *client)
|
||||
{
|
||||
const char *p, *newline;
|
||||
size_t length;
|
||||
char *line;
|
||||
|
||||
p = fifo_buffer_read(client->input, &length);
|
||||
const char *p = (const char *)fifo_buffer_read(client->input, &length);
|
||||
if (p == NULL)
|
||||
return NULL;
|
||||
|
||||
newline = memchr(p, '\n', length);
|
||||
const char *newline = (const char *)memchr(p, '\n', length);
|
||||
if (newline == NULL)
|
||||
return NULL;
|
||||
|
||||
line = g_strndup(p, newline - p);
|
||||
char *line = g_strndup(p, newline - p);
|
||||
fifo_buffer_consume(client->input, newline - p + 1);
|
||||
|
||||
return g_strchomp(line);
|
||||
@ -71,8 +71,6 @@ client_input_received(struct client *client, size_t bytesRead)
|
||||
enum command_return
|
||||
client_read(struct client *client)
|
||||
{
|
||||
char *p;
|
||||
size_t max_length;
|
||||
GError *error = NULL;
|
||||
GIOStatus status;
|
||||
gsize bytes_read;
|
||||
@ -80,7 +78,8 @@ client_read(struct client *client)
|
||||
assert(client != NULL);
|
||||
assert(client->channel != NULL);
|
||||
|
||||
p = fifo_buffer_write(client->input, &max_length);
|
||||
size_t max_length;
|
||||
char *p = (char *)fifo_buffer_write(client->input, &max_length);
|
||||
if (p == NULL) {
|
||||
g_warning("[%u] buffer overflow", client->num);
|
||||
return COMMAND_RETURN_CLOSE;
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,10 +17,13 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "client_subscribe.h"
|
||||
#include "client_internal.h"
|
||||
#include "client_idle.h"
|
||||
#include "ClientSubscribe.hxx"
|
||||
#include "ClientIdle.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "idle.h"
|
||||
}
|
||||
|
||||
#include <string.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,13 +17,11 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_CLIENT_SUBSCRIBE_H
|
||||
#define MPD_CLIENT_SUBSCRIBE_H
|
||||
#ifndef MPD_CLIENT_SUBSCRIBE_HXX
|
||||
#define MPD_CLIENT_SUBSCRIBE_HXX
|
||||
|
||||
#include "gcc.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct _GSList GSList;
|
||||
struct client;
|
||||
struct client_message;
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "client_internal.h"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
@ -73,6 +73,7 @@ client_write_deferred(struct client *client)
|
||||
|
||||
while (!g_queue_is_empty(client->deferred_send)) {
|
||||
struct deferred_buffer *buf =
|
||||
(struct deferred_buffer *)
|
||||
g_queue_peek_head(client->deferred_send);
|
||||
|
||||
assert(buf->size > 0);
|
||||
@ -129,7 +130,7 @@ static void client_defer_output(struct client *client,
|
||||
return;
|
||||
}
|
||||
|
||||
buf = g_malloc(alloc);
|
||||
buf = (struct deferred_buffer *)g_malloc(alloc);
|
||||
buf->size = length;
|
||||
memcpy(buf->data, data, length);
|
||||
|
||||
@ -246,7 +247,6 @@ void client_vprintf(struct client *client, const char *fmt, va_list args)
|
||||
#ifndef G_OS_WIN32
|
||||
va_list tmp;
|
||||
int length;
|
||||
char *buffer;
|
||||
|
||||
va_copy(tmp, args);
|
||||
length = vsnprintf(NULL, 0, fmt, tmp);
|
||||
@ -256,7 +256,7 @@ void client_vprintf(struct client *client, const char *fmt, va_list args)
|
||||
/* wtf.. */
|
||||
return;
|
||||
|
||||
buffer = g_malloc(length + 1);
|
||||
char *buffer = (char *)g_malloc(length + 1);
|
||||
vsnprintf(buffer, length + 1, fmt, args);
|
||||
client_write(client, buffer, length);
|
||||
g_free(buffer);
|
@ -21,10 +21,7 @@
|
||||
#include "CommandError.hxx"
|
||||
#include "db_error.h"
|
||||
#include "io_error.h"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/result.h"
|
||||
}
|
||||
#include "protocol/Result.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -24,14 +24,11 @@
|
||||
#include "DatabasePrint.hxx"
|
||||
#include "DatabaseSelection.hxx"
|
||||
#include "CommandError.hxx"
|
||||
#include "client_internal.h"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "tag.h"
|
||||
#include "uri.h"
|
||||
#include "SongFilter.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/result.h"
|
||||
}
|
||||
#include "protocol/Result.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -25,9 +25,9 @@
|
||||
#include "SongPrint.hxx"
|
||||
#include "TimePrint.hxx"
|
||||
#include "Directory.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "client.h"
|
||||
#include "song.h"
|
||||
#include "tag.h"
|
||||
}
|
||||
|
@ -21,10 +21,7 @@
|
||||
#include "DecoderPrint.hxx"
|
||||
#include "decoder_list.h"
|
||||
#include "decoder_plugin.h"
|
||||
|
||||
extern "C" {
|
||||
#include "client.h"
|
||||
}
|
||||
#include "Client.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
@ -20,10 +20,10 @@
|
||||
#include "config.h"
|
||||
#include "Listen.hxx"
|
||||
#include "Main.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "server_socket.h"
|
||||
#include "client.h"
|
||||
#include "conf.h"
|
||||
}
|
||||
|
||||
|
@ -29,14 +29,14 @@
|
||||
#include "DatabaseSimple.hxx"
|
||||
#include "Permission.hxx"
|
||||
#include "Listen.hxx"
|
||||
#include "ClientIdle.hxx"
|
||||
#include "Client.hxx"
|
||||
#include "AllCommands.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "daemon.h"
|
||||
#include "io_thread.h"
|
||||
#include "client.h"
|
||||
#include "client_idle.h"
|
||||
#include "idle.h"
|
||||
#include "AllCommands.h"
|
||||
#include "playlist.h"
|
||||
#include "cmdline.h"
|
||||
#include "conf.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -19,13 +19,10 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "MessageCommands.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/argparser.h"
|
||||
#include "protocol/result.h"
|
||||
#include "client_internal.h"
|
||||
#include "client_subscribe.h"
|
||||
}
|
||||
#include "ClientSubscribe.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "protocol/Result.hxx"
|
||||
#include "protocol/ArgParser.hxx"
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -29,10 +29,10 @@
|
||||
#include "TimePrint.hxx"
|
||||
#include "Mapper.hxx"
|
||||
#include "DecoderPrint.hxx"
|
||||
#include "protocol/ArgParser.hxx"
|
||||
#include "protocol/Result.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/argparser.h"
|
||||
#include "protocol/result.h"
|
||||
#include "ls.h"
|
||||
#include "uri.h"
|
||||
#include "volume.h"
|
||||
@ -41,11 +41,11 @@ extern "C" {
|
||||
|
||||
#include "Permission.hxx"
|
||||
#include "PlaylistFile.hxx"
|
||||
#include "ClientIdle.hxx"
|
||||
#include "ClientFile.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "client.h"
|
||||
#include "client_idle.h"
|
||||
#include "client_file.h"
|
||||
#include "idle.h"
|
||||
}
|
||||
|
||||
|
@ -20,10 +20,10 @@
|
||||
#include "config.h"
|
||||
#include "OutputCommands.hxx"
|
||||
#include "OutputPrint.hxx"
|
||||
#include "protocol/Result.hxx"
|
||||
#include "protocol/ArgParser.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/argparser.h"
|
||||
#include "protocol/result.h"
|
||||
#include "output_command.h"
|
||||
}
|
||||
|
||||
|
@ -25,10 +25,10 @@
|
||||
#include "config.h"
|
||||
#include "OutputPrint.hxx"
|
||||
#include "output_internal.h"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "output_all.h"
|
||||
#include "client.h"
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -22,15 +22,14 @@
|
||||
#include "CommandError.hxx"
|
||||
#include "PlaylistPrint.hxx"
|
||||
#include "UpdateGlue.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "protocol/Result.hxx"
|
||||
#include "protocol/ArgParser.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/argparser.h"
|
||||
#include "protocol/result.h"
|
||||
#include "player_control.h"
|
||||
#include "playlist.h"
|
||||
#include "volume.h"
|
||||
#include "client.h"
|
||||
#include "client_internal.h"
|
||||
#include "replay_gain_config.h"
|
||||
}
|
||||
|
||||
|
@ -26,14 +26,14 @@
|
||||
#include "PlaylistFile.hxx"
|
||||
#include "PlaylistQueue.hxx"
|
||||
#include "TimePrint.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "protocol/ArgParser.hxx"
|
||||
#include "protocol/Result.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/argparser.h"
|
||||
#include "protocol/result.h"
|
||||
#include "playlist.h"
|
||||
#include "ls.h"
|
||||
#include "uri.h"
|
||||
#include "client_internal.h"
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -26,13 +26,13 @@
|
||||
#include "SongPrint.hxx"
|
||||
#include "DatabaseGlue.hxx"
|
||||
#include "DatabasePlugin.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "playlist_list.h"
|
||||
#include "playlist_plugin.h"
|
||||
#include "playlist.h"
|
||||
#include "song.h"
|
||||
#include "client.h"
|
||||
#include "input_stream.h"
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -23,15 +23,15 @@
|
||||
#include "DatabaseQueue.hxx"
|
||||
#include "SongFilter.hxx"
|
||||
#include "PlaylistPrint.hxx"
|
||||
#include "ClientFile.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "protocol/ArgParser.hxx"
|
||||
#include "protocol/Result.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/argparser.h"
|
||||
#include "protocol/result.h"
|
||||
#include "playlist.h"
|
||||
#include "ls.h"
|
||||
#include "uri.h"
|
||||
#include "client_internal.h"
|
||||
#include "client_file.h"
|
||||
}
|
||||
|
||||
#include <string.h>
|
||||
|
@ -22,11 +22,11 @@
|
||||
#include "SongFilter.hxx"
|
||||
#include "SongPrint.hxx"
|
||||
#include "Mapper.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "queue.h"
|
||||
#include "song.h"
|
||||
#include "client.h"
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -24,9 +24,9 @@
|
||||
#include "TimePrint.hxx"
|
||||
#include "TagPrint.hxx"
|
||||
#include "Mapper.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "client.h"
|
||||
#include "uri.h"
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -21,11 +21,10 @@
|
||||
|
||||
extern "C" {
|
||||
#include "stats.h"
|
||||
#include "client.h"
|
||||
#include "player_control.h"
|
||||
#include "client_internal.h"
|
||||
}
|
||||
|
||||
#include "ClientInternal.hxx"
|
||||
#include "DatabaseSelection.hxx"
|
||||
#include "DatabaseGlue.hxx"
|
||||
#include "DatabasePlugin.hxx"
|
||||
|
@ -28,10 +28,7 @@
|
||||
#include "StickerPrint.hxx"
|
||||
#include "StickerDatabase.hxx"
|
||||
#include "CommandError.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "protocol/result.h"
|
||||
}
|
||||
#include "protocol/Result.hxx"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@ -20,10 +20,7 @@
|
||||
#include "config.h"
|
||||
#include "StickerPrint.hxx"
|
||||
#include "StickerDatabase.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "client.h"
|
||||
}
|
||||
#include "Client.hxx"
|
||||
|
||||
void
|
||||
sticker_print_value(struct client *client,
|
||||
|
@ -22,10 +22,7 @@
|
||||
#include "tag.h"
|
||||
#include "tag_internal.h"
|
||||
#include "song.h"
|
||||
|
||||
extern "C" {
|
||||
#include "client.h"
|
||||
}
|
||||
#include "Client.hxx"
|
||||
|
||||
void tag_print_types(struct client *client)
|
||||
{
|
||||
|
@ -19,10 +19,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "TimePrint.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "client.h"
|
||||
}
|
||||
#include "Client.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -22,9 +22,10 @@
|
||||
extern "C" {
|
||||
#include "ls.h"
|
||||
#include "uri.h"
|
||||
#include "client.h"
|
||||
}
|
||||
|
||||
#include "Client.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,8 +18,8 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "argparser.h"
|
||||
#include "result.h"
|
||||
#include "ArgParser.hxx"
|
||||
#include "Result.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_PROTOCOL_ARGPARSER_H
|
||||
#define MPD_PROTOCOL_ARGPARSER_H
|
||||
#ifndef MPD_PROTOCOL_ARGPARSER_HXX
|
||||
#define MPD_PROTOCOL_ARGPARSER_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -18,8 +18,8 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "result.h"
|
||||
#include "client.h"
|
||||
#include "Result.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -17,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_PROTOCOL_RESULT_H
|
||||
#define MPD_PROTOCOL_RESULT_H
|
||||
#ifndef MPD_PROTOCOL_RESULT_HXX
|
||||
#define MPD_PROTOCOL_RESULT_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "gcc.h"
|
Loading…
Reference in New Issue
Block a user