servalwrap.c now knows to use libserval instead of libdnalib

This commit is contained in:
gardners 2012-04-26 16:50:58 +09:30
parent beb2ecbdf3
commit 51d933d8e2

View File

@ -22,9 +22,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
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");
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);
}