celtool/initapp.h
00001 /* 00002 Copyright (C) 2004 by Eric Sunshine 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __CELTOOL_INITAPP_H__ 00020 #define __CELTOOL_INITAPP_H__ 00021 00022 #include <cssysdef.h> 00023 #include <cstool/initapp.h> 00024 00025 #ifndef CEL_DETECTED_PLUGIN_DIR 00026 # ifdef CEL_PLUGIN_DIR 00027 # define CEL_DETECTED_PLUGIN_DIR CEL_PLUGIN_DIR 00028 # else 00029 # define CEL_DETECTED_PLUGIN_DIR ((char const*)0) 00030 # endif 00031 #endif 00032 00033 #include "celtool/celtoolextern.h" 00034 00041 class CEL_CELTOOL_EXPORT celInitializer : public csInitializer 00042 { 00043 private: 00044 typedef csInitializer superclass; 00045 static bool LoadCelVFS(iObjectRegistry* r); 00046 static bool LoadMountsFromFile(iObjectRegistry* r, char const* configPath); 00047 protected: 00048 static void setup_plugin_dirs(iObjectRegistry*, char const* detected_dir); 00049 00050 public: 00074 static void SetupCelPluginDirs(iObjectRegistry* r) 00075 { setup_plugin_dirs(r, CEL_DETECTED_PLUGIN_DIR); } 00076 00088 static bool RequestPlugins(iObjectRegistry*, ...); 00089 00095 static bool RequestPluginsV (iObjectRegistry*, va_list); 00096 00117 static bool RequestPlugins(iObjectRegistry*,csArray<csPluginRequest> const&); 00118 00123 static iVFS* SetupVFS(iObjectRegistry* objectReg, 00124 const char* pluginID = "crystalspace.kernel.vfs"); 00125 00130 static bool SetupConfigManager (iObjectRegistry* r, char const* configName, 00131 char const* AppID = 0); 00132 00133 }; 00134 00135 #endif // __CELTOOL_INITAPP_H__
Generated for CEL: Crystal Entity Layer 1.4.1 by doxygen 1.7.1