|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 // Emacs style mode select -*- C++ -*- 00002 //----------------------------------------------------------------------------- 00003 // 00004 // $Id: sv_sqp.h 1788 2010-08-24 04:42:57Z russellrice $ 00005 // 00006 // Copyright (C) 2006-2010 by The Odamex Team. 00007 // 00008 // This program is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU General Public License 00010 // as published by the Free Software Foundation; either version 2 00011 // of the License, or (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // DESCRIPTION: 00019 // Query protocol for server 00020 // 00021 //----------------------------------------------------------------------------- 00022 00023 #ifndef __SV_SQP_H__ 00024 #define __SV_SQP_H__ 00025 00026 #include "version.h" 00027 #include "doomtype.h" 00028 00029 #define ASSEMBLEVERSION(MAJOR,MINOR,PATCH) ((MAJOR) * 256 + (MINOR)(PATCH)) 00030 #define DISECTVERSION(VERSION,MAJOR,MINOR,PATCH) \ 00031 { \ 00032 MAJOR = (VERSION / 256); \ 00033 MINOR = ((VERSION % 256) / 10); \ 00034 PATCH = ((VERSION % 256) % 10); \ 00035 } 00036 00037 #define VERSIONMAJOR(VERSION) (VERSION / 256) 00038 #define VERSIONMINOR(VERSION) ((VERSION % 256) / 10) 00039 #define VERSIONPATCH(VERSION) ((VERSION % 256) % 10) 00040 00041 DWORD SV_QryParseEnquiry(const DWORD &Tag); 00042 00043 #endif // __SV_SQP_H__