CrystalSpace

Public API Reference

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

csutil/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, char const* iName);
00057 
00062 CS_CSUTIL_EXPORT bool csUnloadLibrary (csLibraryHandle Handle);
00063 
00069 CS_CSUTIL_EXPORT void csPrintLibraryError (char const* iModule);
00070 
00080 CS_CSUTIL_EXPORT void csSetLoadLibraryVerbose(bool);
00081 
00085 CS_CSUTIL_EXPORT bool csGetLoadLibraryVerbose();
00086 
00098 CS_CSUTIL_EXPORT csRef<iStringArray> csScanPluginDir (const char* dir, 
00099                                    csRef<iStringArray>& plugins,
00100                                    bool recursive = true);
00101 
00107 CS_CSUTIL_EXPORT csRef<iStringArray> csScanPluginDirs (csPluginPaths* dirs, 
00108                                     csRef<iStringArray>& plugins);
00109 
00129 CS_CSUTIL_EXPORT csRef<iString> csGetPluginMetadata (const char* fullPath, 
00130                                     csRef<iDocument>& metadata);
00131 
00136 #endif // __CS_CSSHLIB_H__

Generated for Crystal Space by doxygen 1.2.18