summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-22 17:14:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-22 17:14:39 +0300
commit737d05018bbc2da54414bea0c2ccce6f1e15bde2 (patch)
tree35f84ba2f7e3db56618b8925654b9e84593fe4fe /include
parent869094d2aabef8ab10a1178907cb31ae84f504f9 (diff)
Hotkey_Register => CMPlugin::addHotkey
Diffstat (limited to 'include')
-rw-r--r--include/m_hotkeys.h2
-rw-r--r--include/m_icolib.h2
-rw-r--r--include/newpluginapi.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/include/m_hotkeys.h b/include/m_hotkeys.h
index 016a4864b1..3964415921 100644
--- a/include/m_hotkeys.h
+++ b/include/m_hotkeys.h
@@ -53,7 +53,7 @@ struct HOTKEYDESC
// Registers new hotkey
// Returns 0 on failure or hotkey atom id on success
-EXTERN_C MIR_APP_DLL(int) Hotkey_Register(const HOTKEYDESC *hk, int = hLangpack);
+EXTERN_C MIR_APP_DLL(int) Hotkey_Register(const HOTKEYDESC *hk, int langId);
/////////////////////////////////////////////////////////////////////////////////////////
// Unregister existing hotkey
diff --git a/include/m_icolib.h b/include/m_icolib.h
index 3e8bdef226..465ccf36b2 100644
--- a/include/m_icolib.h
+++ b/include/m_icolib.h
@@ -60,7 +60,7 @@ extern "C"
// Adds an icon into the icon library
// returns a handle to the newly added item
-MIR_APP_DLL(HANDLE) IcoLib_AddIcon(SKINICONDESC *sid, int langId);
+MIR_APP_DLL(HANDLE) IcoLib_AddIcon(const SKINICONDESC *sid, int langId);
///////////////////////////////////////////////////////////////////////////////
// Removes an icon from icon library by icon's name or handle
diff --git a/include/newpluginapi.h b/include/newpluginapi.h
index 3e8f2d6993..611b92b7b0 100644
--- a/include/newpluginapi.h
+++ b/include/newpluginapi.h
@@ -199,8 +199,9 @@ public:
void openOptions(const wchar_t *pszGroup, const wchar_t *pszPage = 0, const wchar_t *pszTab = 0);
void openOptionsPage(const wchar_t *pszGroup, const wchar_t *pszPage = 0, const wchar_t *pszTab = 0);
- HANDLE addIcon(struct SKINICONDESC*);
+ HANDLE addIcon(const struct SKINICONDESC*);
+ int addHotkey(const struct HOTKEYDESC*);
int addSound(const char *name, const wchar_t *section, const wchar_t *description, const wchar_t *defaultFile = nullptr);
int addUserInfo(WPARAM wParam, struct OPTIONSDIALOGPAGE *odp);