FireBirdLib - Topfield TMS PVR TAP Programming Library
TryResolve.c
Go to the documentation of this file.
1
#include "
libFireBird.h
"
2
3
#include <dlfcn.h>
4
5
dword
TryResolve
(
char
*Function)
6
{
7
TRACEENTER
();
8
9
void
*pvr;
10
dword *ret;
11
12
pvr = dlopen(NULL, RTLD_GLOBAL | RTLD_LAZY);
13
if
(!pvr)
14
{
15
TRACEEXIT
();
16
return
0;
17
}
18
19
ret = dlsym(pvr, Function);
20
if
(dlerror())
21
{
22
dlclose(pvr);
23
24
TRACEEXIT
();
25
return
0;
26
}
27
28
dlclose(pvr);
29
30
TRACEEXIT
();
31
return
(dword)ret;
32
}
TryResolve
dword TryResolve(char *Function)
Definition:
TryResolve.c:5
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
InstructionSequences
TryResolve.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3