From c67ee19b7db5bd93c5dbc11865834ff8dd1db924 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 7 Jun 2013 19:34:51 +0000 Subject: - clist_modern: we don't redeclare code services anymore; - new CLIST_INTERFACE member: pfnGetContactIcon - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4898 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/clistmod.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/modules/clist/clistmod.cpp') diff --git a/src/modules/clist/clistmod.cpp b/src/modules/clist/clistmod.cpp index e25dcad0d3..75e63a242f 100644 --- a/src/modules/clist/clistmod.cpp +++ b/src/modules/clist/clistmod.cpp @@ -181,15 +181,18 @@ int fnIconFromStatusMode(const char *szProto, int status, HANDLE) return 1; } -static INT_PTR GetContactIcon(WPARAM wParam, LPARAM) +int fnGetContactIcon(HANDLE hContact) { - char *szProto = GetContactProto((HANDLE)wParam); - HANDLE hContact = (HANDLE)wParam; - + char *szProto = GetContactProto(hContact); return cli.pfnIconFromStatusMode(szProto, szProto == NULL ? ID_STATUS_OFFLINE : db_get_w(hContact, szProto, "Status", ID_STATUS_OFFLINE), hContact); } +static INT_PTR GetContactIcon(WPARAM wParam, LPARAM) +{ + return cli.pfnGetContactIcon((HANDLE)wParam); +} + static void AddProtoIconIndex(PROTOACCOUNT* pa) { ProtoIconIndex *pii = new ProtoIconIndex; -- cgit v1.2.3