globalplatform
dyn_generic.h
Go to the documentation of this file.
1 /* Copyright (c) 2009, Karsten Ohme
2  * This file is part of GlobalPlatform.
3  *
4  * GlobalPlatform is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * GlobalPlatform is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with GlobalPlatform. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * Based on a implementation from the Muscle MUSCLE SmartCard Development ( http://www.linuxnet.com ) by David Corcoran <corcoran@linuxnet.com>
20  */
21 
27 #ifndef __dyn_generic_h__
28 #define __dyn_generic_h__
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
35 #include "globalplatform/unicode.h"
36 #include "globalplatform/types.h"
37 #include "globalplatform/error.h"
38 #include "globalplatform/library.h"
39 
41 OPGP_NO_API
42 OPGP_ERROR_STATUS DYN_LoadLibrary(PVOID *libraryHandle, LPCTSTR libraryName, LPCTSTR version);
43 
45 OPGP_NO_API
47 
49 OPGP_NO_API
50 OPGP_ERROR_STATUS DYN_GetAddress(PVOID libraryHandle, PVOID *functionHandle, LPCTSTR functionName);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif
DYN_CloseLibrary
OPGP_NO_API OPGP_ERROR_STATUS DYN_CloseLibrary(PVOID *libraryHandle)
Unloads a library.
types.h
DYN_GetAddress
OPGP_NO_API OPGP_ERROR_STATUS DYN_GetAddress(PVOID libraryHandle, PVOID *functionHandle, LPCTSTR functionName)
Gets the address of a function in a library.
OPGP_ERROR_STATUS
Definition: error.h:45
PVOID
void * PVOID
Pointer definition.
Definition: types.h:36
DYN_LoadLibrary
OPGP_NO_API OPGP_ERROR_STATUS DYN_LoadLibrary(PVOID *libraryHandle, LPCTSTR libraryName, LPCTSTR version)
Loads a library.
error.h
library.h
unicode.h