![]() |
Public API Reference |
00001 /* 00002 Copyright (C) 1999 by Andrew Zabolotny 00003 Crystal Space cross-platform shared library management 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CS_CSSHLIB_H__ 00021 #define __CS_CSSHLIB_H__ 00022 00034 #include "syspath.h" 00035 #include "csutil/ref.h" 00036 #include "csutil/refarr.h" 00037 #include "iutil/string.h" 00038 00039 typedef void* csLibraryHandle; 00040 00046 csLibraryHandle csLoadLibrary (char const* iName); 00047 00055 void* csGetLibrarySymbol (csLibraryHandle Handle, char const* iName); 00056 00061 bool csUnloadLibrary (csLibraryHandle Handle); 00062 00068 void csPrintLibraryError (char const* iModule); 00069 00079 void csSetLoadLibraryVerbose(bool); 00080 00084 bool csGetLoadLibraryVerbose(); 00085 00097 csRef<iStringArray> csScanPluginDir (const char* dir, 00098 csRef<iStringArray>& plugins, 00099 bool recursive = true); 00100 00106 csRef<iStringArray> csScanPluginDirs (csPluginPaths* dirs, 00107 csRef<iStringArray>& plugins); 00108 00117 csRef<iString> csGetPluginMetadata (const char* fullPath, 00118 csRef<iDocument>& metadata); 00119 00124 #endif // __CS_CSSHLIB_H__