1 /***************************************************************************
2  $RCSfile$
3                              -------------------
4     cvs         : $Id$
5     begin       : Fri Sep 12 2003
6     copyright   : (C) 2003 by Martin Preuss
7     email       : martin@libchipcard.de
8 
9  ***************************************************************************
10  *                                                                         *
11  *   This library is free software; you can redistribute it and/or         *
12  *   modify it under the terms of the GNU Lesser General Public            *
13  *   License as published by the Free Software Foundation; either          *
14  *   version 2.1 of the License, or (at your option) any later version.    *
15  *                                                                         *
16  *   This library is distributed in the hope that it will be useful,       *
17  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
18  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
19  *   Lesser General Public License for more details.                       *
20  *                                                                         *
21  *   You should have received a copy of the GNU Lesser General Public      *
22  *   License along with this library; if not, write to the Free Software   *
23  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
24  *   MA  02111-1307  USA                                                   *
25  *                                                                         *
26  ***************************************************************************/
27 
28 
29 #ifndef GWENHYWFAR_PLUGIN_P_H
30 #define GWENHYWFAR_PLUGIN_P_H
31 
32 #include "plugin_l.h"
33 #include <gwenhywfar/inherit.h>
34 #include <gwenhywfar/misc.h>
35 
36 
37 
38 struct GWEN_PLUGIN_MANAGER {
39   GWEN_INHERIT_ELEMENT(GWEN_PLUGIN_MANAGER)
40   GWEN_LIST_ELEMENT(GWEN_PLUGIN_MANAGER)
41   char *name;
42   char *destLib;
43   GWEN_PLUGIN_LIST *plugins;
44 };
45 
46 
47 
48 struct GWEN_PLUGIN {
49   GWEN_INHERIT_ELEMENT(GWEN_PLUGIN)
50   GWEN_LIST_ELEMENT(GWEN_PLUGIN)
51   GWEN_PLUGIN_MANAGER *manager;
52   char *name;
53   char *fileName;
54   GWEN_LIBLOADER *libLoader;
55   uint32_t refCount;
56 };
57 
58 
59 
60 void GWEN_Plugin_SetLibLoader(GWEN_PLUGIN *p, GWEN_LIBLOADER *ll);
61 GWEN_PLUGIN *GWEN_PluginManager__FindPlugin(GWEN_PLUGIN_MANAGER *pm,
62                                             const char *s);
63 
64 
65 
66 
67 
68 
69 #endif
70 
71 
72