mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
plugin.h:
enable the cd_data_t entry so func and data structures are consistent. cd.h: create cd_data_t (empty) console.h: better understanding of how these things work :)
This commit is contained in:
parent
a3c6cd8e29
commit
fcaa687d56
3 changed files with 4 additions and 5 deletions
|
@ -59,7 +59,7 @@ typedef struct plugin_funcs_s {
|
||||||
typedef struct plugin_data_s {
|
typedef struct plugin_data_s {
|
||||||
general_data_t *general;
|
general_data_t *general;
|
||||||
input_data_t *input;
|
input_data_t *input;
|
||||||
// cd_data_t *cd;
|
cd_data_t *cd;
|
||||||
sound_data_t *sound;
|
sound_data_t *sound;
|
||||||
console_data_t *console;
|
console_data_t *console;
|
||||||
} plugin_data_t;
|
} plugin_data_t;
|
||||||
|
|
|
@ -53,4 +53,7 @@ typedef struct cd_funcs_s {
|
||||||
P_CDAudio_Init pCDAudio_Init;
|
P_CDAudio_Init pCDAudio_Init;
|
||||||
} cd_funcs_t;
|
} cd_funcs_t;
|
||||||
|
|
||||||
|
typedef struct cd_data_s {
|
||||||
|
} cd_data_t;
|
||||||
|
|
||||||
#endif // __QF_plugin_cd_h_
|
#endif // __QF_plugin_cd_h_
|
||||||
|
|
|
@ -34,13 +34,9 @@
|
||||||
#include <QF/qtypes.h>
|
#include <QF/qtypes.h>
|
||||||
#include <QF/plugin.h>
|
#include <QF/plugin.h>
|
||||||
|
|
||||||
typedef void (QFPLUGIN *P_C_Init) (void);
|
|
||||||
typedef void (QFPLUGIN *P_C_Shutdown) (void);
|
|
||||||
typedef void (QFPLUGIN *P_C_Print) (const char *fmt, va_list args);
|
typedef void (QFPLUGIN *P_C_Print) (const char *fmt, va_list args);
|
||||||
|
|
||||||
typedef struct console_func_s {
|
typedef struct console_func_s {
|
||||||
P_C_Init pC_Init;
|
|
||||||
P_C_Shutdown pC_Shutdown;
|
|
||||||
P_C_Print pC_Print;
|
P_C_Print pC_Print;
|
||||||
} console_funcs_t;
|
} console_funcs_t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue