use separate version headers for apis

This commit is contained in:
Daniel Wolf 2021-02-22 17:17:22 -05:00
parent 6c73983376
commit 9b67525318
Signed by: nephatrine
GPG Key ID: F402AF4822FB01F5
3 changed files with 20 additions and 18 deletions

View File

@ -20,8 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef __REF_H
#define __REF_H
#include "refapi_export.h"
#include "../qcommon/qcommon.h"
#define MAX_DLIGHTS 32
@ -125,9 +123,6 @@ typedef struct
particle_t *particles;
} refdef_t;
//NEPHATRINE: Moved into refapi_export.
//#define API_VERSION 3
//
// these are the functions exported by the refresh module
//
@ -222,8 +217,13 @@ typedef struct
void (*Vid_NewWindow)( int width, int height );
} refimport_t;
// ==============================================================
#include "refapi_export.h"
#include "refapi_version.h"
#define REF_API_VERSION REFAPI_VERSION_MAJOR
//NEPHATRINE: Let's declare this here for ease of use.
REFAPI_CEXPORT refexport_t GetRefAPI (refimport_t rimp);
#endif // __REF_H

View File

@ -20,11 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// game.h -- game dll information visible to server
#include "gameapi_export.h"
//NEPHATRINE: Moved into gameapi_export.
//#define GAME_API_VERSION 3
// edict->svflags
#define SVF_NOCLIENT 0x00000001 // don't send entity to clients, even if it has effects
@ -242,5 +237,11 @@ typedef struct
int max_edicts;
} game_export_t;
//NEPHATRINE: Let's declare these here for ease of use.
// ==============================================================
#include "gameapi_export.h"
#include "gameapi_version.h"
#define GAME_API_VERSION GAMEAPI_VERSION_MAJOR
GAMEAPI_CEXPORT game_export_t *GetGameAPI (game_import_t *import);

View File

@ -20,11 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// game.h -- game dll information visible to server
#include "gameapi_export.h"
//NEPHATRINE: Moved into gameapi_export.
//#define GAME_API_VERSION 3
// edict->svflags
#define SVF_NOCLIENT 0x00000001 // don't send entity to clients, even if it has effects
@ -235,5 +230,11 @@ typedef struct
int max_edicts;
} game_export_t;
//NEPHATRINE: Let's declare these here for ease of use.
// ==============================================================
#include "gameapi_export.h"
#include "gameapi_version.h"
#define GAME_API_VERSION GAMEAPI_VERSION_MAJOR
GAMEAPI_CEXPORT game_export_t *GetGameAPI (game_import_t *import);