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
71cd2495
Commit
71cd2495
authored
Mar 18, 2009
by
Viliam Mateicka
Committed by
Max Kellermann
Mar 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move printAllOutputPluginTypes to output_list.c
parent
3d202e46
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
65 deletions
+18
-65
Makefile.am
Makefile.am
+0
-2
audioOutput.c
src/audioOutput.c
+0
-34
audioOutput.h
src/audioOutput.h
+0
-27
cmdline.c
src/cmdline.c
+2
-2
output_list.c
src/output_list.c
+12
-0
output_list.h
src/output_list.h
+4
-0
No files found.
Makefile.am
View file @
71cd2495
...
...
@@ -28,7 +28,6 @@ mpd_headers = \
src/audio.h
\
src/audio_format.h
\
src/audio_parser.h
\
src/audioOutput.h
\
src/output_internal.h
\
src/output_api.h
\
src/output_plugin.h
\
...
...
@@ -164,7 +163,6 @@ src_mpd_SOURCES = \
src/notify.c
\
src/audio.c
\
src/audio_parser.c
\
src/audioOutput.c
\
src/buffer2array.c
\
src/command.c
\
src/idle.c
\
...
...
src/audioOutput.c
deleted
100644 → 0
View file @
3d202e46
/*
* Copyright (C) 2003-2009 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.
*/
#include "audioOutput.h"
#include "output_api.h"
#include "output_list.h"
void
printAllOutputPluginTypes
(
FILE
*
fp
)
{
unsigned
i
;
const
struct
audio_output_plugin
*
plugin
;
audio_output_plugins_for_each
(
plugin
,
i
)
fprintf
(
fp
,
"%s "
,
plugin
->
name
);
fprintf
(
fp
,
"
\n
"
);
fflush
(
fp
);
}
src/audioOutput.h
deleted
100644 → 0
View file @
3d202e46
/*
* Copyright (C) 2003-2009 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_AUDIO_OUTPUT_H
#define MPD_AUDIO_OUTPUT_H
#include <stdio.h>
void
printAllOutputPluginTypes
(
FILE
*
fp
);
#endif
src/cmdline.c
View file @
71cd2495
...
...
@@ -23,7 +23,7 @@
#include "conf.h"
#include "decoder_list.h"
#include "config.h"
#include "
audioOutpu
t.h"
#include "
output_lis
t.h"
#include "ls.h"
#ifdef ENABLE_ARCHIVE
...
...
@@ -56,7 +56,7 @@ static void version(void)
puts
(
"
\n
"
"Supported outputs:
\n
"
);
printAllOutputPluginT
ypes
(
stdout
);
audio_output_plugin_print_all_t
ypes
(
stdout
);
#ifdef ENABLE_ARCHIVE
puts
(
"
\n
"
...
...
src/output_list.c
View file @
71cd2495
...
...
@@ -88,3 +88,15 @@ audio_output_plugin_get(const char *name)
return
NULL
;
}
void
audio_output_plugin_print_all_types
(
FILE
*
fp
)
{
unsigned
i
;
const
struct
audio_output_plugin
*
plugin
;
audio_output_plugins_for_each
(
plugin
,
i
)
fprintf
(
fp
,
"%s "
,
plugin
->
name
);
fprintf
(
fp
,
"
\n
"
);
fflush
(
fp
);
}
src/output_list.h
View file @
71cd2495
...
...
@@ -20,11 +20,15 @@
#ifndef MPD_OUTPUT_LIST_H
#define MPD_OUTPUT_LIST_H
#include <stdio.h>
extern
const
struct
audio_output_plugin
*
audio_output_plugins
[];
const
struct
audio_output_plugin
*
audio_output_plugin_get
(
const
char
*
name
);
void
audio_output_plugin_print_all_types
(
FILE
*
fp
);
#define audio_output_plugins_for_each(plugin, i) \
for (i = 0; (plugin = audio_output_plugins[i]) != NULL; ++i)
...
...
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