mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-02 03:16:45 +00:00
servalwrap.c now knows to use libserval instead of libdnalib
This commit is contained in:
parent
beb2ecbdf3
commit
51d933d8e2
@ -22,9 +22,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||||||
|
|
||||||
int main(int argc,char **argv)
|
int main(int argc,char **argv)
|
||||||
{
|
{
|
||||||
void *h = dlopen("/data/data/org.servalproject/lib/libdnalib.so",RTLD_LAZY);
|
void *h = dlopen("/data/data/org.servalproject/lib/libserval.so",RTLD_LAZY);
|
||||||
int (*servalmain)(int,char **) = dlsym(h,"parseCommandLine");
|
int (*servalmain)(int,char **) = dlsym(h,"parseCommandLine");
|
||||||
if (!servalmain) return fprintf(stderr,"Could not load libdnalib.so\n");
|
if (!servalmain) return fprintf(stderr,"Could not load libserval.so\n");
|
||||||
return (*servalmain)(argc,argv);
|
return (*servalmain)(argc,argv);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user