summaryrefslogtreecommitdiff
path: root/src/modules/langpack
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-11 21:10:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-11 21:10:29 +0000
commitc67de31a8ce0b1a43b11662674ac0b64d14812d4 (patch)
tree62379beba099e0f3914dfedfb3c6cdbd2398e957 /src/modules/langpack
parent64d31b8977ef0ca184519a15bf30199e181458eb (diff)
MS_LANGPACK_LOOKUPHANDLE - helps plugins to detect another plugins' data
git-svn-id: http://svn.miranda-ng.org/main/trunk@910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/langpack')
-rw-r--r--src/modules/langpack/lpservices.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/modules/langpack/lpservices.cpp b/src/modules/langpack/lpservices.cpp
index 36f9e3c40b..01a1f9cf07 100644
--- a/src/modules/langpack/lpservices.cpp
+++ b/src/modules/langpack/lpservices.cpp
@@ -80,7 +80,7 @@ static INT_PTR srvPcharToTchar(WPARAM wParam, LPARAM lParam)
/////////////////////////////////////////////////////////////////////////////////////////
-INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
+static INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
{
ReloadLangpack(( TCHAR* )lParam);
return 0;
@@ -88,6 +88,13 @@ INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
/////////////////////////////////////////////////////////////////////////////////////////
+static INT_PTR srvGetPluginLangpack(WPARAM wParam, LPARAM lParam)
+{
+ return GetPluginLangByInstance(( HINSTANCE )lParam);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
MIR_CORE_DLL(int) LoadLangPackModule(void);
int LoadLangpackModule(void)
@@ -101,5 +108,7 @@ int LoadLangpackModule(void)
CreateServiceFunction(MS_LANGPACK_PCHARTOTCHAR, srvPcharToTchar);
CreateServiceFunction(MS_LANGPACK_REGISTER, srvRegisterLP);
CreateServiceFunction(MS_LANGPACK_RELOAD, srvReloadLangpack);
+ CreateServiceFunction(MS_LANGPACK_LOOKUPHANDLE, srvGetPluginLangpack);
+
return 0;
}