gwenhywfar 5.11.2beta
libloader.h
Go to the documentation of this file.
1/***************************************************************************
2 $RCSfile$
3 -------------------
4 cvs : $Id$
5 begin : Fri Nov 22 2002
6 copyright : (C) 2002 by Martin Preuss
7 email : martin@libchipcard.de
8
9
10 ***************************************************************************
11 * *
12 * This library is free software; you can redistribute it and/or *
13 * modify it under the terms of the GNU Lesser General Public *
14 * License as published by the Free Software Foundation; either *
15 * version 2.1 of the License, or (at your option) any later version. *
16 * *
17 * This library is distributed in the hope that it will be useful, *
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20 * Lesser General Public License for more details. *
21 * *
22 * You should have received a copy of the GNU Lesser General Public *
23 * License along with this library; if not, write to the Free Software *
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
25 * MA 02111-1307 USA *
26 * *
27 ***************************************************************************/
28
29
30#ifndef GWENHYWFAR_LIBLOADER_H
31#define GWENHYWFAR_LIBLOADER_H "$Id"
32
33#define GWEN_LIBLOADER_ERROR_TYPE "LIBLOADER"
34#define GWEN_LIBLOADER_ERROR_COULD_NOT_LOAD 1
35#define GWEN_LIBLOADER_ERROR_NOT_OPEN 2
36#define GWEN_LIBLOADER_ERROR_COULD_NOT_CLOSE 3
37#define GWEN_LIBLOADER_ERROR_COULD_NOT_RESOLVE 4
38#define GWEN_LIBLOADER_ERROR_NOT_FOUND 5
39
41#include <gwenhywfar/error.h>
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47
58
59
61
62
64
72
75 const char *name);
78 const char *path,
79 const char *name);
80
85 const char *name, void **p);
86
89#ifdef __cplusplus
90}
91#endif
92
93
94#endif /* GWENHYWFAR_LIBLOADER_H */
95
96
#define GWENHYWFAR_API
GWENHYWFAR_API int GWEN_LibLoader_OpenLibraryWithPath(GWEN_LIBLOADER *h, const char *path, const char *name)
GWENHYWFAR_API GWEN_LIBLOADER * GWEN_LibLoader_new(void)
GWENHYWFAR_API int GWEN_LibLoader_OpenLibrary(GWEN_LIBLOADER *h, const char *name)
GWENHYWFAR_API int GWEN_LibLoader_CloseLibrary(GWEN_LIBLOADER *h)
GWENHYWFAR_API int GWEN_LibLoader_Resolve(GWEN_LIBLOADER *h, const char *name, void **p)
GWENHYWFAR_API void GWEN_LibLoader_free(GWEN_LIBLOADER *h)
struct GWEN_LIBLOADER GWEN_LIBLOADER
Definition libloader.h:60