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
d37b4bb1
Commit
d37b4bb1
authored
Nov 17, 2009
by
Viliam Mateicka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdline: print out list of encoders in --version info
parent
ea92dee1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
0 deletions
+30
-0
configure.ac
configure.ac
+4
-0
cmdline.c
src/cmdline.c
+11
-0
encoder_list.c
src/encoder_list.c
+10
-0
encoder_list.h
src/encoder_list.h
+5
-0
No files found.
configure.ac
View file @
d37b4bb1
...
...
@@ -1173,6 +1173,10 @@ if test x$enable_httpd_output = xyes; then
fi
AM_CONDITIONAL(ENABLE_ENCODER, test x$enable_encoder = xyes)
if test x$enable_encoder = xyes; then
AC_DEFINE(ENABLE_ENCODER, 1,
[Define to enable the encoder plugins])
fi
AM_CONDITIONAL(ENABLE_VORBIS_ENCODER, test x$enable_vorbis_encoder = xyes)
if test x$enable_vorbis_encoder = xyes; then
...
...
src/cmdline.c
View file @
d37b4bb1
...
...
@@ -27,6 +27,10 @@
#include "output_list.h"
#include "ls.h"
#ifdef ENABLE_ENCODER
#include "encoder_list.h"
#endif
#ifdef ENABLE_ARCHIVE
#include "archive_list.h"
#endif
...
...
@@ -82,6 +86,13 @@ static void version(void)
"Supported outputs:
\n
"
);
audio_output_plugin_print_all_types
(
stdout
);
#ifdef ENABLE_ENCODER
puts
(
"
\n
"
"Supported encoders:
\n
"
);
encoder_plugin_print_all_types
(
stdout
);
#endif
#ifdef ENABLE_ARCHIVE
puts
(
"
\n
"
"Supported archives:
\n
"
);
...
...
src/encoder_list.c
View file @
d37b4bb1
...
...
@@ -59,3 +59,13 @@ encoder_plugin_get(const char *name)
return
NULL
;
}
void
encoder_plugin_print_all_types
(
FILE
*
fp
)
{
for
(
unsigned
i
=
0
;
encoder_plugins
[
i
]
!=
NULL
;
++
i
)
fprintf
(
fp
,
"%s "
,
encoder_plugins
[
i
]
->
name
);
fprintf
(
fp
,
"
\n
"
);
fflush
(
fp
);
}
src/encoder_list.h
View file @
d37b4bb1
...
...
@@ -20,6 +20,8 @@
#ifndef MPD_ENCODER_LIST_H
#define MPD_ENCODER_LIST_H
#include <stdio.h>
struct
encoder_plugin
;
/**
...
...
@@ -32,4 +34,7 @@ struct encoder_plugin;
const
struct
encoder_plugin
*
encoder_plugin_get
(
const
char
*
name
);
void
encoder_plugin_print_all_types
(
FILE
*
fp
);
#endif
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