infostring.h

Go to the documentation of this file.
00001 
00006 /*
00007 All original material Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 Copyright (C) 1997-2001 Id Software, Inc.
00010 
00011 This program is free software; you can redistribute it and/or
00012 modify it under the terms of the GNU General Public License
00013 as published by the Free Software Foundation; either version 2
00014 of the License, or (at your option) any later version.
00015 
00016 This program is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00019 
00020 See the GNU General Public License for more details.
00021 
00022 You should have received a copy of the GNU General Public License
00023 along with this program; if not, write to the Free Software
00024 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00025 
00026 */
00027 
00028 #ifndef __INFOSTRING_H__
00029 #define __INFOSTRING_H__
00030 
00031 /* key / value info strings */
00032 #define MAX_INFO_KEY        64
00033 #define MAX_INFO_VALUE      64
00034 #define MAX_INFO_STRING     512
00035 
00036 const char *Info_ValueForKey(const char *s, const char *key);
00037 const char *Info_BoolForKey(const char *s, const char *key);
00038 int Info_IntegerForKey(const char *s, const char *key);
00039 void Info_RemoveKey(char *s, const char *key);
00040 void Info_SetValueForKey(char *s, const size_t size, const char *key, const char *value);
00041 void Info_SetValueForKeyAsInteger(char *s, const size_t size, const char *key, const int value);
00042 void Info_Print(const char *s);
00043 qboolean Info_Validate(const char *s);
00044 
00045 #endif /* __INFOSTRING_H__ */

Generated by  doxygen 1.6.2