|
NAMEAG_Version —
agar data file versioning
SYNOPSIS#include <agar/core.h> DESCRIPTIONThe agarAG_Version interface encodes or decodes
versioning information. This includes a magic string and two 32-bit version
numbers:
typedef struct ag_version { Uint32 major, minor; } AG_Version; The major is incremented whenever a change introduces binary incompatibility with previous versions of the data files. The Major changes that would otherwise break binary compatibility can be dealt with by increasing only the minor version number and adding compatibility code in the loader routine. VERSIONINGintAG_ReadVersion (AG_DataSource
*ds, const char
*magic, const AG_Version
*ver, AG_Version
*rver);
The The The SEE ALSOAG_DataSource(3), AG_Intro(3)HISTORYTheAG_Version interface first appeared in Agar 1.0
Visit the GSP FreeBSD Man Page Interface. |