summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-04 21:49:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-04 21:49:37 +0300
commitad2a5992f1fa9558ad653f8d5c81896472ce8363 (patch)
tree9c43ee9b96c20395f38a897382a7321325fb1d13 /include
parentb064f2ebde6d4a58141e5b2e8186c6ea53680f64 (diff)
- CLIST_INTERFACE::pfnGetProtocolMenu => Menu_GetProtocolMenu
- CLIST_INTERFACE::pfnReloadProtoMenus => Menu_ReloadProtoMenus - CLIST_INTERFACE::pfnGetProtoIndexByPos considered unused... thus removed
Diffstat (limited to 'include')
-rw-r--r--include/m_clist.h7
-rw-r--r--include/m_clistint.h4
2 files changed, 6 insertions, 5 deletions
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
*************************************************************************************/