From ad2a5992f1fa9558ad653f8d5c81896472ce8363 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Apr 2018 21:49:37 +0300 Subject: - CLIST_INTERFACE::pfnGetProtocolMenu => Menu_GetProtocolMenu - CLIST_INTERFACE::pfnReloadProtoMenus => Menu_ReloadProtoMenus - CLIST_INTERFACE::pfnGetProtoIndexByPos considered unused... thus removed --- include/m_clist.h | 7 ++++++- include/m_clistint.h | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/m_clist.h b/include/m_clist.h index 43d67477bd..fb41feefc9 100644 --- a/include/m_clist.h +++ b/include/m_clist.h @@ -125,9 +125,14 @@ EXTERN_C MIR_APP_DLL(HGENMENU) Menu_AddStatusMenuItem(TMO_MenuItem *pmi, const c // PROTOCOL MENU // adds an item to status or main menu, according to the option - EXTERN_C MIR_APP_DLL(HGENMENU) Menu_AddProtoMenuItem(TMO_MenuItem *pmi, const char *pszProto = nullptr); +// returns root protocol menu for an account (either in main menu or in status bar) +EXTERN_C MIR_APP_DLL(HGENMENU) Menu_GetProtocolMenu(const char *szModuleName); + +// rebuilds all protocol menus +EXTERN_C MIR_APP_DLL(void) Menu_ReloadProtoMenus(void); + ///////////////////////////////////////////////////////////////////////////////////////// // GROUP MENU diff --git a/include/m_clistint.h b/include/m_clistint.h index 8eb695413e..a9170b64e5 100644 --- a/include/m_clistint.h +++ b/include/m_clistint.h @@ -441,10 +441,6 @@ struct CLIST_INTERFACE int currentStatusMenuItem, currentDesiredStatusMode; BOOL bDisplayLocked, bAutoRebuild; - HGENMENU (*pfnGetProtocolMenu)(const char*); - int (*pfnGetProtoIndexByPos)(PROTOCOLDESCRIPTOR **proto, int protoCnt, int Pos); - void (*pfnReloadProtoMenus)(void); - /************************************************************************************* * version 5 additions (0.7.0.x) - tray icons *************************************************************************************/ -- cgit v1.2.3