mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-22 14:32:25 +00:00
12 lines
303 B
C
12 lines
303 B
C
|
#include <dlfcn.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(int argc,char **argv)
|
||
|
{
|
||
|
void *h = dlopen("/data/data/org.servalproject/lib/libdnalib.so",RTLD_LAZY);
|
||
|
int (*dnamain)(int,char **) = dlsym(h,"main");
|
||
|
if (!dnamain) return fprintf(stderr,"Could not load libdnalib.so\n");
|
||
|
return (*dnamain)(argc,argv);
|
||
|
|
||
|
}
|