Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
49567f1f
Commit
49567f1f
authored
Jan 25, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input_{internal,plugin}: convert to C++
parent
94fffb33
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
36 additions
and
45 deletions
+36
-45
Makefile.am
Makefile.am
+2
-2
CommandLine.cxx
src/CommandLine.cxx
+1
-1
InputInit.cxx
src/InputInit.cxx
+1
-1
InputInternal.cxx
src/InputInternal.cxx
+2
-2
InputInternal.hxx
src/InputInternal.hxx
+3
-11
InputPlugin.hxx
src/InputPlugin.hxx
+3
-4
InputStream.cxx
src/InputStream.cxx
+1
-1
Bzip2ArchivePlugin.cxx
src/archive/Bzip2ArchivePlugin.cxx
+2
-2
Iso9660ArchivePlugin.cxx
src/archive/Iso9660ArchivePlugin.cxx
+2
-2
ZzipArchivePlugin.cxx
src/archive/ZzipArchivePlugin.cxx
+2
-2
ArchiveInputPlugin.cxx
src/input/ArchiveInputPlugin.cxx
+1
-1
CdioParanoiaInputPlugin.cxx
src/input/CdioParanoiaInputPlugin.cxx
+2
-2
CurlInputPlugin.cxx
src/input/CurlInputPlugin.cxx
+2
-2
DespotifyInputPlugin.cxx
src/input/DespotifyInputPlugin.cxx
+2
-2
FfmpegInputPlugin.cxx
src/input/FfmpegInputPlugin.cxx
+2
-2
FileInputPlugin.cxx
src/input/FileInputPlugin.cxx
+2
-2
MmsInputPlugin.cxx
src/input/MmsInputPlugin.cxx
+2
-2
RewindInputPlugin.cxx
src/input/RewindInputPlugin.cxx
+2
-2
SoupInputPlugin.cxx
src/input/SoupInputPlugin.cxx
+2
-2
No files found.
Makefile.am
View file @
49567f1f
...
...
@@ -79,7 +79,6 @@ mpd_headers = \
src/gcc.h
\
src/decoder_list.h
\
src/decoder/pcm_decoder_plugin.h
\
src/input_plugin.h
\
src/input_stream.h
\
src/text_input_stream.h
\
src/icy_server.h
\
...
...
@@ -710,7 +709,8 @@ libinput_a_SOURCES = \
src/InputInit.cxx src/InputInit.hxx
\
src/InputRegistry.cxx src/InputRegistry.hxx
\
src/InputStream.cxx
\
src/input_internal.c src/input_internal.h
\
src/InputPlugin.hxx
\
src/InputInternal.cxx src/InputInternal.hxx
\
src/input/RewindInputPlugin.cxx src/input/RewindInputPlugin.hxx
\
src/input/FileInputPlugin.cxx src/input/FileInputPlugin.hxx
...
...
src/CommandLine.cxx
View file @
49567f1f
...
...
@@ -27,7 +27,7 @@
#include "OutputList.hxx"
#include "output_plugin.h"
#include "InputRegistry.hxx"
#include "
input_plugin.h
"
#include "
InputPlugin.hxx
"
#include "playlist_list.h"
#include "playlist_plugin.h"
#include "mpd_error.h"
...
...
src/InputInit.cxx
View file @
49567f1f
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "InputInit.hxx"
#include "InputRegistry.hxx"
#include "
input_plugin.h
"
#include "
InputPlugin.hxx
"
#include "conf.h"
#include <assert.h>
...
...
src/
input_internal.c
→
src/
InputInternal.cxx
View file @
49567f1f
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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 "
input_internal.h
"
#include "
InputInternal.hxx
"
#include "input_stream.h"
#include <assert.h>
...
...
src/
input_internal.h
→
src/
InputInternal.hxx
View file @
49567f1f
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_INPUT_INTERNAL_H
#define MPD_INPUT_INTERNAL_H
#ifndef MPD_INPUT_INTERNAL_H
XX
#define MPD_INPUT_INTERNAL_H
XX
#include "check.h"
...
...
@@ -27,10 +27,6 @@
struct
input_stream
;
struct
input_plugin
;
#ifdef __cplusplus
extern
"C"
{
#endif
void
input_stream_init
(
struct
input_stream
*
is
,
const
struct
input_plugin
*
plugin
,
const
char
*
uri
,
GMutex
*
mutex
,
GCond
*
cond
);
...
...
@@ -44,8 +40,4 @@ input_stream_signal_client(struct input_stream *is);
void
input_stream_set_ready
(
struct
input_stream
*
is
);
#ifdef __cplusplus
}
#endif
#endif
src/
input_plugin.h
→
src/
InputPlugin.hxx
View file @
49567f1f
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,13 +17,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_INPUT_PLUGIN_H
#define MPD_INPUT_PLUGIN_H
#ifndef MPD_INPUT_PLUGIN_H
XX
#define MPD_INPUT_PLUGIN_H
XX
#include "input_stream.h"
#include <stddef.h>
#include <stdbool.h>
#include <sys/types.h>
struct
config_param
;
...
...
src/InputStream.cxx
View file @
49567f1f
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "input_stream.h"
#include "InputRegistry.hxx"
#include "
input_plugin.h
"
#include "
InputPlugin.hxx
"
#include "input/RewindInputPlugin.hxx"
extern
"C"
{
...
...
src/archive/Bzip2ArchivePlugin.cxx
View file @
49567f1f
...
...
@@ -25,8 +25,8 @@
#include "Bzip2ArchivePlugin.hxx"
#include "ArchiveInternal.hxx"
#include "ArchivePlugin.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
#include "refcount.h"
#include <stdint.h>
...
...
src/archive/Iso9660ArchivePlugin.cxx
View file @
49567f1f
...
...
@@ -25,8 +25,8 @@
#include "Iso9660ArchivePlugin.hxx"
#include "ArchiveInternal.hxx"
#include "ArchivePlugin.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
#include "refcount.h"
#include <cdio/cdio.h>
...
...
src/archive/ZzipArchivePlugin.cxx
View file @
49567f1f
...
...
@@ -25,8 +25,8 @@
#include "ZzipArchivePlugin.hxx"
#include "ArchiveInternal.hxx"
#include "ArchivePlugin.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
#include "refcount.h"
#include <zzip/zzip.h>
...
...
src/input/ArchiveInputPlugin.cxx
View file @
49567f1f
...
...
@@ -22,7 +22,7 @@
#include "ArchiveLookup.hxx"
#include "ArchiveList.hxx"
#include "ArchivePlugin.hxx"
#include "
input_plugin.h
"
#include "
InputPlugin.hxx
"
#include <glib.h>
...
...
src/input/CdioParanoiaInputPlugin.cxx
View file @
49567f1f
...
...
@@ -23,8 +23,8 @@
#include "config.h"
#include "CdioParanoiaInputPlugin.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
#include "refcount.h"
#include <stdio.h>
...
...
src/input/CurlInputPlugin.cxx
View file @
49567f1f
...
...
@@ -19,12 +19,12 @@
#include "config.h"
#include "CurlInputPlugin.hxx"
#include "
input_plugin.h
"
#include "
InputPlugin.hxx
"
#include "conf.h"
#include "tag.h"
#include "IcyMetaDataParser.hxx"
#include "event/MultiSocketMonitor.hxx"
#include "
input_internal.h
"
#include "
InputInternal.hxx
"
#include "event/Loop.hxx"
#include "IOThread.hxx"
#include "glib_compat.h"
...
...
src/input/DespotifyInputPlugin.cxx
View file @
49567f1f
...
...
@@ -20,8 +20,8 @@
#include "config.h"
#include "DespotifyInputPlugin.hxx"
#include "DespotifyUtils.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
#include "tag.h"
extern
"C"
{
...
...
src/input/FfmpegInputPlugin.cxx
View file @
49567f1f
...
...
@@ -22,8 +22,8 @@
#include "config.h"
#include "FfmpegInputPlugin.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
extern
"C"
{
#include <libavutil/avutil.h>
...
...
src/input/FileInputPlugin.cxx
View file @
49567f1f
...
...
@@ -19,8 +19,8 @@
#include "config.h"
/* must be first for large file support */
#include "FileInputPlugin.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
#include "fd_util.h"
#include "open.h"
#include "io_error.h"
...
...
src/input/MmsInputPlugin.cxx
View file @
49567f1f
...
...
@@ -19,8 +19,8 @@
#include "config.h"
#include "MmsInputPlugin.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
#include <glib.h>
#include <libmms/mmsx.h>
...
...
src/input/RewindInputPlugin.cxx
View file @
49567f1f
...
...
@@ -19,8 +19,8 @@
#include "config.h"
#include "RewindInputPlugin.hxx"
#include "
input_internal.h
"
#include "
input_plugin.h
"
#include "
InputInternal.hxx
"
#include "
InputPlugin.hxx
"
#include "tag.h"
#include <glib.h>
...
...
src/input/SoupInputPlugin.cxx
View file @
49567f1f
...
...
@@ -19,8 +19,8 @@
#include "config.h"
#include "SoupInputPlugin.hxx"
#include "
input_plugin.h
"
#include "
input_internal.h
"
#include "
InputPlugin.hxx
"
#include "
InputInternal.hxx
"
#include "IOThread.hxx"
#include "event/Loop.hxx"
#include "conf.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment