mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
PLUGIN_INFO decl cleanup
This commit is contained in:
parent
fd15377532
commit
9210829573
18 changed files with 24 additions and 55 deletions
|
@ -50,9 +50,9 @@
|
|||
#include <QF/plugin/snd_render.h>
|
||||
|
||||
#ifdef STATIC_PLUGINS
|
||||
#define PLUGIN_INFO(type,name) type##_##name##_PluginInfo
|
||||
#define PLUGIN_INFO(type,name) QFPLUGIN plugin_t *type##_##name##_PluginInfo (void); QFPLUGIN plugin_t * type##_##name##_PluginInfo (void)
|
||||
#else
|
||||
#define PLUGIN_INFO(type,name) PluginInfo
|
||||
#define PLUGIN_INFO(type,name) QFPLUGIN plugin_t *PluginInfo (void);QFPLUGIN plugin_t *PluginInfo (void)
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
|
|
|
@ -455,9 +455,7 @@ I_CDAudio_Init (void)
|
|||
"Volume of CD music");
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(cd, linux) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(cd, linux) (void)
|
||||
PLUGIN_INFO(cd, linux)
|
||||
{
|
||||
plugin_info.type = qfp_cd;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -282,9 +282,7 @@ I_CDAudio_Init (void)
|
|||
Sys_Printf ("CD Audio Initialized.\n");
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(cd, sdl) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(cd, sdl) (void)
|
||||
PLUGIN_INFO(cd, sdl)
|
||||
{
|
||||
plugin_info.type = qfp_cd;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -363,9 +363,7 @@ I_SGI_Init (void)
|
|||
return ;
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(cd, sgi) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(cd, sgi) (void)
|
||||
PLUGIN_INFO(cd, sgi)
|
||||
{
|
||||
plugin_info.type = qfp_cd;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -500,9 +500,7 @@ I_CDAudio_Init (void)
|
|||
}
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(cd, win) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(cd, win) (void)
|
||||
PLUGIN_INFO(cd, win)
|
||||
{
|
||||
plugin_info.type = qfp_cd;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -533,9 +533,7 @@ I_XMMS_f (void)
|
|||
return;
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(cd, xmms) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(cd, xmms) (void)
|
||||
PLUGIN_INFO(cd, xmms)
|
||||
{
|
||||
plugin_info.type = qfp_cd;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -1029,9 +1029,7 @@ static plugin_t plugin_info = {
|
|||
&plugin_info_data,
|
||||
};
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_render, default) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_render, default) (void)
|
||||
PLUGIN_INFO(snd_render, default)
|
||||
{
|
||||
return &plugin_info;
|
||||
}
|
||||
|
|
|
@ -403,9 +403,7 @@ SNDDMA_UnblockSound (void)
|
|||
snd_pcm_playback_pause (pcm_handle, 0);
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, alsa0_5) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, alsa0_5) (void)
|
||||
PLUGIN_INFO(snd_output, alsa0_5)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -362,9 +362,7 @@ SNDDMA_UnblockSound (void)
|
|||
qfsnd_pcm_pause (pcm, 0);
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, alsa0_9) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, alsa0_9) (void)
|
||||
PLUGIN_INFO(snd_output, alsa0_9)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -152,9 +152,8 @@ SNDDMA_UnblockSound (void)
|
|||
--snd_blocked;
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, disk) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, disk) (void) {
|
||||
PLUGIN_INFO(snd_output, disk)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
plugin_info.plugin_version = "0.1";
|
||||
|
|
|
@ -497,9 +497,8 @@ DSOUND_Restore (void)
|
|||
return;
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, dx) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, dx) (void) {
|
||||
PLUGIN_INFO(snd_output, dx)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
plugin_info.plugin_version = "0.1";
|
||||
|
@ -530,4 +529,3 @@ PLUGIN_INFO(snd_output, dx) (void) {
|
|||
|
||||
return &plugin_info;
|
||||
}
|
||||
|
||||
|
|
|
@ -384,9 +384,8 @@ SNDDMA_UnblockSound (void)
|
|||
{
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, oss) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, oss) (void) {
|
||||
PLUGIN_INFO(snd_output, oss)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
plugin_info.plugin_version = "0.1";
|
||||
|
|
|
@ -229,9 +229,7 @@ SNDDMA_UnblockSound (void)
|
|||
--snd_blocked;
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, sdl) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, sdl) (void)
|
||||
PLUGIN_INFO(snd_output, sdl)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -340,9 +340,7 @@ SNDDMA_UnblockSound (void)
|
|||
{
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, sgi) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, sgi) (void)
|
||||
PLUGIN_INFO(snd_output, sgi)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
|
|
|
@ -252,9 +252,8 @@ SNDDMA_UnblockSound (void)
|
|||
--snd_blocked;
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, sun) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, sun) (void) {
|
||||
PLUGIN_INFO(snd_output, sun)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
plugin_info.plugin_version = "0.1";
|
||||
|
|
|
@ -345,9 +345,8 @@ SNDDMA_Shutdown (void)
|
|||
FreeSound ();
|
||||
}
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(snd_output, win) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(snd_output, win) (void) {
|
||||
PLUGIN_INFO(snd_output, win)
|
||||
{
|
||||
plugin_info.type = qfp_snd_output;
|
||||
plugin_info.api_version = QFPLUGIN_VERSION;
|
||||
plugin_info.plugin_version = "0.1";
|
||||
|
@ -378,4 +377,3 @@ PLUGIN_INFO(snd_output, win) (void) {
|
|||
|
||||
return &plugin_info;
|
||||
}
|
||||
|
||||
|
|
|
@ -959,9 +959,7 @@ static plugin_t plugin_info = {
|
|||
&plugin_info_data,
|
||||
};
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(console, client) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(console, client) (void)
|
||||
PLUGIN_INFO(console, client)
|
||||
{
|
||||
return &plugin_info;
|
||||
}
|
||||
|
|
|
@ -517,9 +517,7 @@ static plugin_t plugin_info = {
|
|||
&plugin_info_data,
|
||||
};
|
||||
|
||||
QFPLUGIN plugin_t *PLUGIN_INFO(console, server) (void);
|
||||
QFPLUGIN plugin_t *
|
||||
PLUGIN_INFO(console, server) (void)
|
||||
PLUGIN_INFO(console, server)
|
||||
{
|
||||
return &plugin_info;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue