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

libloader.h

Go to the documentation of this file.
00001 /***************************************************************************
00002   $RCSfile: libloader.h,v $
00003                              -------------------
00004     cvs         : $Id: libloader.h,v 1.3 2003/02/10 15:16:04 aquamaniac Exp $
00005     begin       : Fri Nov 22 2002
00006     copyright   : (C) 2002 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009 
00010  ***************************************************************************
00011  *                                                                         *
00012  *   This library is free software; you can redistribute it and/or         *
00013  *   modify it under the terms of the GNU Lesser General Public            *
00014  *   License as published by the Free Software Foundation; either          *
00015  *   version 2.1 of the License, or (at your option) any later version.    *
00016  *                                                                         *
00017  *   This library is distributed in the hope that it will be useful,       *
00018  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00019  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00020  *   Lesser General Public License for more details.                       *
00021  *                                                                         *
00022  *   You should have received a copy of the GNU Lesser General Public      *
00023  *   License along with this library; if not, write to the Free Software   *
00024  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00025  *   MA  02111-1307  USA                                                   *
00026  *                                                                         *
00027  ***************************************************************************/
00028 
00029 
00030 #ifndef CHAMELEON_LIBLOADER_H
00031 #define CHAMELEON_LIBLOADER_H "$Id"
00032 
00033 #define LIBLOADER_TYPE "LIB"
00034 #define LIBLOADER_ERROR_COULD_NOT_LOAD  1
00035 #define LIBLOADER_ERROR_NOT_OPEN        2
00036 #define LIBLOADER_ERROR_COULD_NOT_CLOSE 3
00037 #define LIBLOADER_ERROR_COULD_RESOLVE   4
00038 
00039 #include <chameleon/error.h>
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045 
00046 CHIPCARD_API struct CHLIBLOADERSTRUCT {
00047   void *handle;
00048 };
00049 
00050 
00051 CHIPCARD_API typedef struct CHLIBLOADERSTRUCT CHLIBLOADERTABLE;
00052 CHIPCARD_API typedef CHLIBLOADERTABLE* CHLIBLOADERHANDLE;
00053 
00054 
00055 CHIPCARD_API ERRORCODE LibLoader_ModuleInit();
00056 CHIPCARD_API ERRORCODE LibLoader_ModuleFini();
00057 
00058 
00059 CHIPCARD_API CHLIBLOADERHANDLE LibLoader_new();
00060 CHIPCARD_API void LibLoader_free(CHLIBLOADERHANDLE h);
00061 
00062 CHIPCARD_API ERRORCODE LibLoader_OpenLibrary(CHLIBLOADERHANDLE h, const char *name);
00063 CHIPCARD_API ERRORCODE LibLoader_CloseLibrary(CHLIBLOADERHANDLE h);
00064 CHIPCARD_API ERRORCODE LibLoader_Resolve(CHLIBLOADERHANDLE h, const char *name, void **p);
00065 
00066 #ifdef __cplusplus
00067 }
00068 #endif
00069 
00070 
00071 #endif /* CHAMELEON_LIBLOADER_H */
00072 
00073 

Generated on Fri Dec 3 23:10:24 2004 for libchipcard by  doxygen 1.3.9.1