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
7dfe301b
Commit
7dfe301b
authored
Jan 01, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output plugins: don't include gcc.h
Use GLib's G_GNUC_UNUSED instead of gcc.h's mpd_unused.
parent
0734acf3
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
24 deletions
+29
-24
alsa_plugin.c
src/output/alsa_plugin.c
+2
-2
ao_plugin.c
src/output/ao_plugin.c
+2
-2
fifo_plugin.c
src/output/fifo_plugin.c
+4
-2
jack_plugin.c
src/output/jack_plugin.c
+4
-4
mvp_plugin.c
src/output/mvp_plugin.c
+4
-3
oss_plugin.c
src/output/oss_plugin.c
+3
-2
osx_plugin.c
src/output/osx_plugin.c
+7
-6
pulse_plugin.c
src/output/pulse_plugin.c
+1
-1
shout_ogg.c
src/output/shout_ogg.c
+2
-2
No files found.
src/output/alsa_plugin.c
View file @
7dfe301b
...
@@ -119,8 +119,8 @@ alsa_configure(AlsaData *ad, ConfigParam *param)
...
@@ -119,8 +119,8 @@ alsa_configure(AlsaData *ad, ConfigParam *param)
#endif
#endif
}
}
static
void
*
alsa_initDriver
(
mpd_unused
struct
audio_output
*
ao
,
static
void
*
alsa_initDriver
(
G_GNUC_UNUSED
struct
audio_output
*
ao
,
mpd_unused
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
ConfigParam
*
param
)
ConfigParam
*
param
)
{
{
/* no need for pthread_once thread-safety when reading config */
/* no need for pthread_once thread-safety when reading config */
...
...
src/output/ao_plugin.c
View file @
7dfe301b
...
@@ -75,7 +75,7 @@ static void audioOutputAo_error(const char *msg)
...
@@ -75,7 +75,7 @@ static void audioOutputAo_error(const char *msg)
}
}
static
void
*
audioOutputAo_initDriver
(
struct
audio_output
*
ao
,
static
void
*
audioOutputAo_initDriver
(
struct
audio_output
*
ao
,
mpd_unused
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
ConfigParam
*
param
)
ConfigParam
*
param
)
{
{
ao_info
*
ai
;
ao_info
*
ai
;
...
@@ -176,7 +176,7 @@ static void audioOutputAo_finishDriver(void *data)
...
@@ -176,7 +176,7 @@ static void audioOutputAo_finishDriver(void *data)
ao_shutdown
();
ao_shutdown
();
}
}
static
void
audioOutputAo_dropBufferedAudio
(
mpd_unused
void
*
data
)
static
void
audioOutputAo_dropBufferedAudio
(
G_GNUC_UNUSED
void
*
data
)
{
{
/* not supported by libao */
/* not supported by libao */
}
}
...
...
src/output/fifo_plugin.c
View file @
7dfe301b
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
#include "../utils.h"
#include "../utils.h"
#include "../timer.h"
#include "../timer.h"
#include <glib.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fcntl.h>
...
@@ -155,8 +157,8 @@ static bool openFifo(FifoData *fd)
...
@@ -155,8 +157,8 @@ static bool openFifo(FifoData *fd)
return
true
;
return
true
;
}
}
static
void
*
fifo_initDriver
(
mpd_unused
struct
audio_output
*
ao
,
static
void
*
fifo_initDriver
(
G_GNUC_UNUSED
struct
audio_output
*
ao
,
mpd_unused
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
ConfigParam
*
param
)
ConfigParam
*
param
)
{
{
FifoData
*
fd
;
FifoData
*
fd
;
...
...
src/output/jack_plugin.c
View file @
7dfe301b
...
@@ -117,7 +117,7 @@ mpd_jack_finish(void *data)
...
@@ -117,7 +117,7 @@ mpd_jack_finish(void *data)
}
}
static
int
static
int
mpd_jack_srate
(
mpd_unused
jack_nframes_t
rate
,
void
*
data
)
mpd_jack_srate
(
G_GNUC_UNUSED
jack_nframes_t
rate
,
void
*
data
)
{
{
struct
jack_data
*
jd
=
(
struct
jack_data
*
)
data
;
struct
jack_data
*
jd
=
(
struct
jack_data
*
)
data
;
struct
audio_format
*
audioFormat
=
jd
->
audio_format
;
struct
audio_format
*
audioFormat
=
jd
->
audio_format
;
...
@@ -186,7 +186,7 @@ mpd_jack_error(const char *msg)
...
@@ -186,7 +186,7 @@ mpd_jack_error(const char *msg)
static
void
*
static
void
*
mpd_jack_init
(
struct
audio_output
*
ao
,
mpd_jack_init
(
struct
audio_output
*
ao
,
mpd_unused
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
ConfigParam
*
param
)
ConfigParam
*
param
)
{
{
struct
jack_data
*
jd
;
struct
jack_data
*
jd
;
...
@@ -356,13 +356,13 @@ mpd_jack_open(void *data, struct audio_format *audio_format)
...
@@ -356,13 +356,13 @@ mpd_jack_open(void *data, struct audio_format *audio_format)
}
}
static
void
static
void
mpd_jack_close
(
mpd_unused
void
*
data
)
mpd_jack_close
(
G_GNUC_UNUSED
void
*
data
)
{
{
/*mpd_jack_finish(audioOutput);*/
/*mpd_jack_finish(audioOutput);*/
}
}
static
void
static
void
mpd_jack_cancel
(
mpd_unused
void
*
data
)
mpd_jack_cancel
(
G_GNUC_UNUSED
void
*
data
)
{
{
}
}
...
...
src/output/mvp_plugin.c
View file @
7dfe301b
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include "../output_api.h"
#include "../output_api.h"
#include <glib.h>
#include <glib.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/ioctl.h>
...
@@ -103,9 +104,9 @@ static bool mvp_testDefault(void)
...
@@ -103,9 +104,9 @@ static bool mvp_testDefault(void)
return
false
;
return
false
;
}
}
static
void
*
mvp_initDriver
(
mpd_unused
struct
audio_output
*
audio_output
,
static
void
*
mvp_initDriver
(
G_GNUC_UNUSED
struct
audio_output
*
audio_output
,
mpd_unused
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
mpd_unused
ConfigParam
*
param
)
G_GNUC_UNUSED
ConfigParam
*
param
)
{
{
MvpData
*
md
=
g_new
(
MvpData
,
1
);
MvpData
*
md
=
g_new
(
MvpData
,
1
);
md
->
audio_output
=
audio_output
;
md
->
audio_output
=
audio_output
;
...
...
src/output/oss_plugin.c
View file @
7dfe301b
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "../mixer.h"
#include "../mixer.h"
#include <glib.h>
#include <glib.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <fcntl.h>
...
@@ -386,8 +387,8 @@ static void *oss_open_default(ConfigParam *param)
...
@@ -386,8 +387,8 @@ static void *oss_open_default(ConfigParam *param)
return
NULL
;
/* some compilers can be dumb... */
return
NULL
;
/* some compilers can be dumb... */
}
}
static
void
*
oss_initDriver
(
mpd_unused
struct
audio_output
*
audioOutput
,
static
void
*
oss_initDriver
(
G_GNUC_UNUSED
struct
audio_output
*
audioOutput
,
mpd_unused
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
ConfigParam
*
param
)
ConfigParam
*
param
)
{
{
if
(
param
)
{
if
(
param
)
{
...
...
src/output/osx_plugin.c
View file @
7dfe301b
...
@@ -81,9 +81,9 @@ static bool osx_testDefault(void)
...
@@ -81,9 +81,9 @@ static bool osx_testDefault(void)
}
}
static
void
*
static
void
*
osx_initDriver
(
mpd_unused
struct
audio_output
*
audioOutput
,
osx_initDriver
(
G_GNUC_UNUSED
struct
audio_output
*
audioOutput
,
mpd_unused
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
mpd_unused
ConfigParam
*
param
)
G_GNUC_UNUSED
ConfigParam
*
param
)
{
{
return
newOsxData
();
return
newOsxData
();
}
}
...
@@ -133,9 +133,10 @@ static void osx_closeDevice(void *data)
...
@@ -133,9 +133,10 @@ static void osx_closeDevice(void *data)
static
OSStatus
static
OSStatus
osx_render
(
void
*
vdata
,
osx_render
(
void
*
vdata
,
mpd_unused
AudioUnitRenderActionFlags
*
ioActionFlags
,
G_GNUC_UNUSED
AudioUnitRenderActionFlags
*
ioActionFlags
,
mpd_unused
const
AudioTimeStamp
*
inTimeStamp
,
G_GNUC_UNUSED
const
AudioTimeStamp
*
inTimeStamp
,
mpd_unused
UInt32
inBusNumber
,
mpd_unused
UInt32
inNumberFrames
,
G_GNUC_UNUSED
UInt32
inBusNumber
,
G_GNUC_UNUSED
UInt32
inNumberFrames
,
AudioBufferList
*
bufferList
)
AudioBufferList
*
bufferList
)
{
{
OsxData
*
od
=
(
OsxData
*
)
vdata
;
OsxData
*
od
=
(
OsxData
*
)
vdata
;
...
...
src/output/pulse_plugin.c
View file @
7dfe301b
...
@@ -54,7 +54,7 @@ static void pulse_free_data(struct pulse_data *pd)
...
@@ -54,7 +54,7 @@ static void pulse_free_data(struct pulse_data *pd)
static
void
*
static
void
*
pulse_init
(
struct
audio_output
*
ao
,
pulse_init
(
struct
audio_output
*
ao
,
mpd_unused
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
ConfigParam
*
param
)
ConfigParam
*
param
)
{
{
BlockParam
*
server
=
NULL
;
BlockParam
*
server
=
NULL
;
...
...
src/output/shout_ogg.c
View file @
7dfe301b
...
@@ -222,8 +222,8 @@ static int shout_ogg_encoder_init_encoder(struct shout_data *sd)
...
@@ -222,8 +222,8 @@ static int shout_ogg_encoder_init_encoder(struct shout_data *sd)
}
}
static
int
shout_ogg_encoder_send_metadata
(
struct
shout_data
*
sd
,
static
int
shout_ogg_encoder_send_metadata
(
struct
shout_data
*
sd
,
mpd_unused
char
*
song
,
G_GNUC_UNUSED
char
*
song
,
mpd_unused
size_t
size
)
G_GNUC_UNUSED
size_t
size
)
{
{
struct
ogg_vorbis_data
*
od
=
(
struct
ogg_vorbis_data
*
)
sd
->
encoder_data
;
struct
ogg_vorbis_data
*
od
=
(
struct
ogg_vorbis_data
*
)
sd
->
encoder_data
;
...
...
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