system.h

Go to the documentation of this file.
00001 
00006 /*
00007 All original material Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018 See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 
00024 */
00025 
00026 #ifndef SYSTEM_H_
00027 #define SYSTEM_H_
00028 
00029 #include "../common/list.h"
00030 
00031 /*
00032 ==============================================================
00033 NON-PORTABLE SYSTEM SERVICES
00034 ==============================================================
00035 */
00036 
00037 void Sys_Init(void);
00038 void Sys_NormPath(char *path);
00039 void Sys_Sleep(int milliseconds);
00040 const char *Sys_GetCurrentUser(void);
00041 int Sys_Setenv(const char *name, const char *value);
00042 void Sys_InitSignals(void);
00043 const char *Sys_SetLocale(const char *localeID);
00044 const char *Sys_GetLocale(void);
00045 
00046 const char *Sys_ConsoleInput(void);
00047 void Sys_ConsoleOutput(const char *string);
00048 void Sys_Error(const char *error, ...) __attribute__((noreturn, format(printf, 1, 2)));
00049 void Sys_Quit(void);
00050 char *Sys_GetHomeDirectory(void);
00051 
00052 void Sys_ConsoleShutdown(void);
00053 void Sys_ConsoleInit(void);
00054 void Sys_ShowConsole(qboolean show);
00055 
00056 /* pass in an attribute mask of things you wish to REJECT */
00057 char *Sys_FindFirst(const char *path, unsigned musthave, unsigned canthave);
00058 char *Sys_FindNext(unsigned musthave, unsigned canthave);
00059 void Sys_FindClose(void);
00060 void Sys_ListFilteredFiles(const char *basedir, const char *subdirs, const char *filter, linkedList_t **list);
00061 void Sys_Mkdir(const char *path);
00062 char *Sys_Cwd(void);
00063 void Sys_SetAffinityAndPriority(void);
00064 int Sys_Milliseconds(void);
00065 void Sys_Backtrace(void);
00066 
00067 
00068 #endif

Generated by  doxygen 1.6.2