-/* $Id: module.h,v 1.3 2005-05-30 20:09:20 adam Exp $
+/* $Id: module.h,v 1.4 2005-06-10 22:53:43 adam Exp $
Copyright (c) 1998-2005, Index Data.
This file is part of the yaz-proxy.
void unload_modules();
private:
Yaz_ProxyModule *m_list;
+ int m_no_open;
};
#endif
-/* $Id: modules.cpp,v 1.1 2005-05-30 20:09:21 adam Exp $
+/* $Id: modules.cpp,v 1.2 2005-06-10 22:53:43 adam Exp $
Copyright (c) 1998-2005, Index Data.
This file is part of the yaz-proxy.
#endif
#include <yaz/nmem.h>
+#include <yaz/log.h>
#include <yazproxy/module.h>
class Yaz_ProxyModule {
Yaz_ProxyModules::Yaz_ProxyModules()
{
m_list = 0;
+ m_no_open = 0;
}
{
Yaz_ProxyModule *m_next = m->get_next();
delete m;
+ m_no_open--;
m = m_next;
}
m_list = 0;
m_list);
m_list = m;
+ m_no_open++;
+ yaz_log(YLOG_LOG, "Loaded module no_open=%d", m_no_open);
return 0;
}
else