/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1998-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* find and load a pzip dll
*/
#include "pzlib.h"
#include <dlldefs.h>
int
{
char* id;
id++;
else
/*
* see if the dll is already loaded
*/
if (!dll)
{
/*
* add to the list and open
*/
return -1;
if (ignore)
return 0;
if (!(dll->dll = dllplugin(id, dll->name, NiL, PZ_PLUGIN_VERSION, NiL, RTLD_LAZY, path, sizeof(path))))
{
return -1;
}
/*
* get the initialization function
*/
{
(*pz->disc->errorf)(pz, pz->disc, 2, "%s: %s: initialization function not found in library", path, buf);
return -1;
}
}
/*
* see if pz already initialized
*/
{
if (!pzs)
{
return -1;
return -1;
}
}
return 0;
}