CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csshlib.h

Go to the documentation of this file.
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 "csextern.h"
00035 #include "syspath.h"
00036 #include "ref.h"
00037 #include "refarr.h"
00038 #include "iutil/string.h"
00039 
00040 typedef void* csLibraryHandle;
00041 
00047 CS_CSUTIL_EXPORT csLibraryHandle csLoadLibrary (char const* iName);
00048 
00056 CS_CSUTIL_EXPORT void* csGetLibrarySymbol (csLibraryHandle Handle,
00057                                            char const* iName);
00058 
00063 CS_CSUTIL_EXPORT bool csUnloadLibrary (csLibraryHandle Handle);
00064 
00070 CS_CSUTIL_EXPORT void csPrintLibraryError (char const* iModule);
00071 
00081 CS_CSUTIL_EXPORT void csSetLoadLibraryVerbose(bool);
00082 
00086 CS_CSUTIL_EXPORT bool csGetLoadLibraryVerbose();
00087 
00099 CS_CSUTIL_EXPORT csRef<iStringArray> csScanPluginDir (const char* dir, 
00100                                    csRef<iStringArray>& plugins,
00101                                    bool recursive = true);
00102 
00108 CS_CSUTIL_EXPORT csRef<iStringArray> csScanPluginDirs (csPluginPaths* dirs, 
00109                                     csRef<iStringArray>& plugins);
00110 
00130 CS_CSUTIL_EXPORT csRef<iString> csGetPluginMetadata (const char* fullPath, 
00131                                     csRef<iDocument>& metadata);
00132 
00137 #endif // __CS_CSSHLIB_H__

Generated for Crystal Space by doxygen 1.3.9.1