X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmodules.cpp;fp=src%2Fmodules.cpp;h=cbaffc76c17bddc61c06f1631b342e8ca6d8fe70;hb=36388cfc9c49bf00dfbb3cc9932504a77af9b6f2;hp=83ba144e396daa12fa92bebc705ba21b9b26505c;hpb=7163b9178c89a7fc866dd33309ca6a1067758b92;p=yazproxy-moved-to-github.git diff --git a/src/modules.cpp b/src/modules.cpp index 83ba144..cbaffc7 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -1,4 +1,4 @@ -/* $Id: modules.cpp,v 1.5 2006-03-09 14:12:24 adam Exp $ +/* $Id: modules.cpp,v 1.6 2006-03-25 10:59:14 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -33,13 +33,13 @@ class Yaz_ProxyModule { private: void *m_dl_handle; /* dlopen/close handle */ Yaz_ProxyModule_entry *m_entry; - Yaz_ProxyModule *m_next; + Yaz_ProxyModule *m_next; void *m_user_handle; /* user handle */ public: Yaz_ProxyModule(void *dl_handle, Yaz_ProxyModule_entry *ent, Yaz_ProxyModule *next); ~Yaz_ProxyModule(); - + Yaz_ProxyModule *get_next() { return m_next; }; int is_module(const char *name); int authenticate(const char *target_name, void *element_ptr, @@ -94,7 +94,7 @@ int Yaz_ProxyModule::authenticate(const char *name, { struct Yaz_ProxyModule_int0 *int0 = reinterpret_cast(m_entry->fl); - + if (!int0->authenticate) return YAZPROXY_RET_NOT_ME; return (*int0->authenticate)(m_user_handle, name, element_ptr, @@ -159,7 +159,7 @@ int Yaz_ProxyModules::add_module(const char *fname) if (dl_handle) { Yaz_ProxyModule_entry *fl_ptr = 0; - fl_ptr = reinterpret_cast + fl_ptr = reinterpret_cast (dlsym(dl_handle, "yazproxy_module")); if (fl_ptr) {