00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CS_SYSFUNC_H__
00020 #define __CS_SYSFUNC_H__
00021
00022 #include <stdarg.h>
00023 #include <stdio.h>
00024 #include "csutil/ref.h"
00025 #include "csutil/csstring.h"
00026 #include "iutil/strvec.h"
00027
00028 struct iObjectRegistry;
00029 struct iConfigFile;
00030
00050 bool csDefaultRunLoop(iObjectRegistry*);
00051
00063 bool csPlatformStartup(iObjectRegistry*);
00064
00073 bool csPlatformShutdown(iObjectRegistry*);
00074
00076 int csPrintf (const char* str, ...) CS_GNUC_PRINTF (1, 2);
00078 int csPrintfV (const char* str, va_list arg) CS_GNUC_PRINTF (1, 0);
00079
00087 csTicks csGetTicks ();
00088
00097 char* csGetConfigPath ();
00098
00102 char** csGetPluginPaths ();
00103
00110 void csSleep (int );
00111
00117 csRef<iStrVector> csFindSystemRoots();
00118
00124 csString csGetUsername();
00125
00133 csPtr<iConfigFile> csGetPlatformConfig (const char* key);
00134
00135 #endif // __CS_SYSFUNC_H__