From b4523bc74a6afcc0428034f8b2726e1b2e226475 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 21 Sep 2012 14:08:42 +0000 Subject: - fix for the Netlib_Logf event - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@1623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/mir_core.def | 1 + src/mir_core/modules.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'src/mir_core') diff --git a/src/mir_core/mir_core.def b/src/mir_core/mir_core.def index 66324ec1ed..0a13752fff 100644 --- a/src/mir_core/mir_core.def +++ b/src/mir_core/mir_core.def @@ -130,3 +130,4 @@ db_setCurrent @127 CmdLine_GetOption @128 CmdLine_Parse @129 Utf8CheckString @130 +GetSubscribersCount @131 diff --git a/src/mir_core/modules.cpp b/src/mir_core/modules.cpp index 794af53e74..4e9a518d26 100644 --- a/src/mir_core/modules.cpp +++ b/src/mir_core/modules.cpp @@ -275,6 +275,15 @@ MIR_CORE_DLL(int) NotifyEventHooks(HANDLE hEvent, WPARAM wParam, LPARAM lParam) return item->result; } +extern "C" MIR_CORE_DLL(int) GetSubscribersCount(THook* pHook) +{ + switch ( checkHook(pHook)) { + case hookInvalid: + case hookEmpty: return 0; + } + return pHook->subscriberCount; +} + static HANDLE HookEventInt(int type, const char* name, MIRANDAHOOK hookProc, void* object, LPARAM lParam) { mir_cslock lck(csHooks); -- cgit v1.2.3