mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
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:
parent
d4ad0cd659
commit
36508058ea
17 changed files with 25 additions and 17 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -78,7 +78,7 @@ I_CD_f (void)
|
|||
{
|
||||
}
|
||||
|
||||
plugin_t *
|
||||
QFPLUGIN plugin_t *
|
||||
cd_null_PluginInfo (void)
|
||||
{
|
||||
plugin_info.type = qfp_cd;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -491,7 +491,7 @@ I_CDAudio_Init (void)
|
|||
}
|
||||
}
|
||||
|
||||
plugin_t *
|
||||
QFPLUGIN plugin_t *
|
||||
cd_win_PluginInfo (void)
|
||||
{
|
||||
plugin_info.type = qfp_cd;
|
||||
|
|
|
@ -450,7 +450,7 @@ I_XMMS_f (void)
|
|||
|
||||
}
|
||||
|
||||
plugin_t *
|
||||
QFPLUGIN plugin_t *
|
||||
cd_xmms_PluginInfo (void)
|
||||
{
|
||||
plugin_info.type = qfp_cd;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -172,7 +172,7 @@ SND_UnblockSound (void)
|
|||
{
|
||||
}
|
||||
|
||||
plugin_t *
|
||||
QFPLUGIN plugin_t *
|
||||
snd_render_null_PluginInfo (void)
|
||||
{
|
||||
plugin_info.type = qfp_sound;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -609,7 +609,7 @@ static plugin_t plugin_info = {
|
|||
&plugin_info_data,
|
||||
};
|
||||
|
||||
plugin_t *
|
||||
QFPLUGIN plugin_t *
|
||||
console_client_PluginInfo (void)
|
||||
{
|
||||
return &plugin_info;
|
||||
|
|
|
@ -461,7 +461,7 @@ static plugin_t plugin_info = {
|
|||
&plugin_info_data,
|
||||
};
|
||||
|
||||
plugin_t *
|
||||
QFPLUGIN plugin_t *
|
||||
console_server_PluginInfo (void)
|
||||
{
|
||||
return &plugin_info;
|
||||
|
|
Loading…
Reference in a new issue