From f04b54e3fc162d475e8688784631a316f264f733 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 May 2023 14:56:39 +0300 Subject: Clist_RemoveEvent became static, pfnRemoveEvent is replaced with pfnFreeEvent --- include/delphi/m_clist.inc | 5 +++++ include/delphi/m_clistint.inc | 38 -------------------------------------- include/m_clistint.h | 3 ++- 3 files changed, 7 insertions(+), 39 deletions(-) (limited to 'include') diff --git a/include/delphi/m_clist.inc b/include/delphi/m_clist.inc index 89eb9ebcbd..195b19fbc5 100644 --- a/include/delphi/m_clist.inc +++ b/include/delphi/m_clist.inc @@ -92,6 +92,11 @@ const } function Clist_GetContactDisplayName(hContact:TMCONTACT; mode:int):PWideChar; stdcall; external AppDll; + { + removes an event + } + function Clist_RemoveEvent(hContact:TMCONTACT;hDbEvent:TMEVENT) : integer; stdcall; external AppDll; + { wParam : 0 lParam : 0 diff --git a/include/delphi/m_clistint.inc b/include/delphi/m_clistint.inc index cd32d0f067..fa7db4320f 100644 --- a/include/delphi/m_clistint.inc +++ b/include/delphi/m_clistint.inc @@ -85,44 +85,6 @@ type (* clistmod.c *) pfnIconFromStatusMode : function (szProto:PAnsiChar; status:int; hContact:TMCONTACT):int; cdecl; - pfnShowHide : procedure; cdecl; - - (* clistsettings.c *) - pfnCreateCacheItem : procedure; cdecl; - pfnCheckCacheItem : procedure; cdecl; - pfnFreeCacheItem : procedure; cdecl; - - pfnInvalidateDisplayNameCacheEntry : procedure; cdecl; - - (* clisttray.c *) - pfnTrayIconPauseAutoHide : procedure; cdecl; - pfnTrayIconProcessMessage : procedure; cdecl; - - (* clui.c *) - pfnContactListWndProc : procedure; cdecl; - - pfnCluiProtocolStatusChanged : procedure; cdecl; - pfnLoadCluiGlobalOpts : procedure; cdecl; - pfnInvalidateRect : procedure; cdecl; - pfnOnCreateClc : procedure; cdecl; - - (* contact.c *) - pfnCompareContacts : procedure; cdecl; - pfnSetHideOffline : procedure; cdecl; - - (* docking.c *) - pfnDocking_ProcessWindowMessage : procedure; cdecl; - - (************************************************************************************* - * version 2 - events processing - *************************************************************************************) - - bzzz : pointer; - - pfnAddEvent : procedure; cdecl; - pfnGetEvent : procedure; cdecl; - - pfnRemoveEvent : function (hContact:TMCONTACT; hDbEvent:TMEVENT):int; cdecl; end; function Clist_GetInterface : PCLIST_INTERFACE; stdcall; external AppDll; diff --git a/include/m_clistint.h b/include/m_clistint.h index c38a3ff812..9f9bfa4a37 100644 --- a/include/m_clistint.h +++ b/include/m_clistint.h @@ -273,6 +273,7 @@ EXTERN_C MIR_APP_DLL(int) Clist_IsHiddenMode(ClcData *dat, int status); EXTERN_C MIR_APP_DLL(void) Clist_LoadContactTree(void); EXTERN_C MIR_APP_DLL(void) Clist_NotifyNewContact(HWND hwnd, MCONTACT hContact); EXTERN_C MIR_APP_DLL(void) Clist_RecalculateGroupCheckboxes(ClcData *dat); +EXTERN_C MIR_APP_DLL(int) Clist_RemoveEvent(MCONTACT hContact, MEVENT hDbEvent); EXTERN_C MIR_APP_DLL(ClcGroup*) Clist_RemoveItemFromGroup(HWND hwnd, ClcGroup *group, ClcContact *contact, int updateTotalCount); EXTERN_C MIR_APP_DLL(void) Clist_SaveStateAndRebuildList(HWND hwnd, ClcData *dat); EXTERN_C MIR_APP_DLL(void) Clist_SetGroupChildCheckboxes(ClcGroup *group, int checked); @@ -397,7 +398,7 @@ struct CLIST_INTERFACE CListEvent* (*pfnAddEvent)(CLISTEVENT*); - int (*pfnRemoveEvent)(MCONTACT hContact, MEVENT hDbEvent); + int (*pfnFreeEvent)(CListEvent *); int (*pfnGetImlIconIndex)(HICON hIcon); /************************************************************************************* -- cgit v1.2.3