listen: convert to C++
This commit is contained in:
@@ -106,7 +106,6 @@ mpd_headers = \
|
|||||||
src/client.h \
|
src/client.h \
|
||||||
src/client_internal.h \
|
src/client_internal.h \
|
||||||
src/server_socket.h \
|
src/server_socket.h \
|
||||||
src/listen.h \
|
|
||||||
src/log.h \
|
src/log.h \
|
||||||
src/ls.h \
|
src/ls.h \
|
||||||
src/mixer_all.h \
|
src/mixer_all.h \
|
||||||
@@ -262,7 +261,7 @@ src_mpd_SOURCES = \
|
|||||||
src/client_subscribe.c \
|
src/client_subscribe.c \
|
||||||
src/client_file.c src/client_file.h \
|
src/client_file.c src/client_file.h \
|
||||||
src/server_socket.c \
|
src/server_socket.c \
|
||||||
src/listen.c \
|
src/Listen.cxx src/Listen.hxx \
|
||||||
src/log.c \
|
src/log.c \
|
||||||
src/ls.cxx \
|
src/ls.cxx \
|
||||||
src/io_error.h \
|
src/io_error.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
|
* http://www.musicpd.org
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@@ -18,11 +18,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "listen.h"
|
#include "Listen.hxx"
|
||||||
|
#include "Main.hxx"
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
#include "server_socket.h"
|
#include "server_socket.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "Main.hxx"
|
}
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.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
|
* http://www.musicpd.org
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MPD_LISTEN_H
|
#ifndef MPD_LISTEN_HXX
|
||||||
#define MPD_LISTEN_H
|
#define MPD_LISTEN_HXX
|
||||||
|
|
||||||
#include "gerror.h"
|
#include "gerror.h"
|
||||||
|
|
@@ -28,6 +28,7 @@
|
|||||||
#include "DatabaseGlue.hxx"
|
#include "DatabaseGlue.hxx"
|
||||||
#include "DatabaseSimple.hxx"
|
#include "DatabaseSimple.hxx"
|
||||||
#include "Permission.hxx"
|
#include "Permission.hxx"
|
||||||
|
#include "Listen.hxx"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "daemon.h"
|
#include "daemon.h"
|
||||||
@@ -37,7 +38,6 @@ extern "C" {
|
|||||||
#include "idle.h"
|
#include "idle.h"
|
||||||
#include "AllCommands.h"
|
#include "AllCommands.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
#include "listen.h"
|
|
||||||
#include "cmdline.h"
|
#include "cmdline.h"
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "zeroconf-internal.h"
|
#include "zeroconf-internal.h"
|
||||||
#include "listen.h"
|
#include "Listen.hxx"
|
||||||
#include "mpd_error.h"
|
#include "mpd_error.h"
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#include "zeroconf.h"
|
#include "zeroconf.h"
|
||||||
#include "zeroconf-internal.h"
|
#include "zeroconf-internal.h"
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "listen.h"
|
#include "Listen.hxx"
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user