QFPLUGIN now does the __declspec stuff and all plugins now use it on their

plgin info function. doesn't actually /work/ yet :(
This commit is contained in:
Bill Currie 2001-10-08 05:54:46 +00:00
parent d4ad0cd659
commit 36508058ea
17 changed files with 25 additions and 17 deletions

View file

@ -31,7 +31,15 @@
#define QFPLUGIN_VERSION "1.0"
#define QFPLUGIN
#ifdef WIN32
# ifdef DLL_EXPORT
# define QFPLUGIN __declspec(dllexport)
# else
# define QFPLUGIN
# endif
#else
# define QFPLUGIN
#endif
#include <QF/qtypes.h>
#include <QF/plugin/cd.h>

View file

@ -446,7 +446,7 @@ I_CDAudio_Init (void)
Mus_CDChange, "device to use for CD music");
}
plugin_t *
QFPLUGIN plugin_t *
cd_linux_PluginInfo (void)
{
plugin_info.type = qfp_cd;

View file

@ -78,7 +78,7 @@ I_CD_f (void)
{
}
plugin_t *
QFPLUGIN plugin_t *
cd_null_PluginInfo (void)
{
plugin_info.type = qfp_cd;

View file

@ -280,7 +280,7 @@ I_CDAudio_Init (void)
Sys_Printf ("CD Audio Initialized.\n");
}
plugin_t *
QFPLUGIN plugin_t *
cd_sdl_PluginInfo (void)
{
plugin_info.type = qfp_cd;

View file

@ -491,7 +491,7 @@ I_CDAudio_Init (void)
}
}
plugin_t *
QFPLUGIN plugin_t *
cd_win_PluginInfo (void)
{
plugin_info.type = qfp_cd;

View file

@ -450,7 +450,7 @@ I_XMMS_f (void)
}
plugin_t *
QFPLUGIN plugin_t *
cd_xmms_PluginInfo (void)
{
plugin_info.type = qfp_cd;

View file

@ -969,7 +969,7 @@ SND_UnblockSound (void)
S_O_UnblockSound ();
}
plugin_t *
QFPLUGIN plugin_t *
snd_render_default_PluginInfo (void)
{
plugin_info.type = qfp_snd_render;

View file

@ -172,7 +172,7 @@ SND_UnblockSound (void)
{
}
plugin_t *
QFPLUGIN plugin_t *
snd_render_null_PluginInfo (void)
{
plugin_info.type = qfp_sound;

View file

@ -148,7 +148,7 @@ SNDDMA_UnblockSound (void)
--snd_blocked;
}
plugin_t *
QFPLUGIN plugin_t *
snd_output_disk_PluginInfo (void) {
plugin_info.type = qfp_snd_output;
plugin_info.api_version = QFPLUGIN_VERSION;

View file

@ -166,7 +166,7 @@ SND_UnblockSound (void)
{
}
plugin_t *
QFPLUGIN plugin_t *
snd_output_null_PluginInfo (void) {
plugin_info.type = qfp_sound;
plugin_info.api_version = QFPLUGIN_VERSION;

View file

@ -356,7 +356,7 @@ SNDDMA_UnblockSound (void)
{
}
plugin_t *
QFPLUGIN plugin_t *
snd_output_oss_PluginInfo (void) {
plugin_info.type = qfp_snd_output;
plugin_info.api_version = QFPLUGIN_VERSION;

View file

@ -228,7 +228,7 @@ SNDDMA_UnblockSound (void)
--snd_blocked;
}
plugin_t *
QFPLUGIN plugin_t *
snd_output_sdl_PluginInfo (void)
{
plugin_info.type = qfp_snd_output;

View file

@ -332,7 +332,7 @@ SNDDMA_UnblockSound (void)
{
}
plugin_t *
QFPLUGIN plugin_t *
snd_output_sgi_PluginInfo (void) {
plugin_info.type = qfp_sound;
plugin_info.api_version = QFPLUGIN_VERSION;

View file

@ -253,7 +253,7 @@ SNDDMA_UnblockSound (void)
--snd_blocked;
}
plugin_t *
QFPLUGIN plugin_t *
snd_output_sun_PluginInfo (void) {
plugin_info.type = qfp_sound;
plugin_info.api_version = QFPLUGIN_VERSION;

View file

@ -718,7 +718,7 @@ DSOUND_Restore (void)
return;
}
plugin_t *
QFPLUGIN plugin_t *
snd_output_win_PluginInfo (void) {
plugin_info.type = qfp_snd_output;
plugin_info.api_version = QFPLUGIN_VERSION;

View file

@ -609,7 +609,7 @@ static plugin_t plugin_info = {
&plugin_info_data,
};
plugin_t *
QFPLUGIN plugin_t *
console_client_PluginInfo (void)
{
return &plugin_info;

View file

@ -461,7 +461,7 @@ static plugin_t plugin_info = {
&plugin_info_data,
};
plugin_t *
QFPLUGIN plugin_t *
console_server_PluginInfo (void)
{
return &plugin_info;