summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/m_core.h32
1 files changed, 30 insertions, 2 deletions
diff --git a/include/m_core.h b/include/m_core.h
index 99fa85bdde..393767602c 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -197,12 +197,40 @@ MIR_CORE_DLL(pfnExceptionFilter) GetExceptionFilter(void);
MIR_CORE_DLL(pfnExceptionFilter) SetExceptionFilter(pfnExceptionFilter pMirandaExceptFilter);
///////////////////////////////////////////////////////////////////////////////
+// icons support
+
+extern int hLangpack;
+
+typedef struct tagIconItem
+{
+ char *szDescr, *szName;
+ int defIconID, size;
+ HANDLE hIcolib;
+}
+ IconItem;
+
+typedef struct tagIconItemT
+{
+ TCHAR *tszDescr;
+ char *szName;
+ int defIconID, size;
+ HANDLE hIcolib;
+}
+ IconItemT;
+
+#if defined( __cplusplus )
+MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char* szSection, IconItem* pIcons, size_t iCount, char *prefix = NULL, int = hLangpack);
+MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR* szSection, IconItemT* pIcons, size_t iCount, char *prefix = NULL, int = hLangpack);
+#else
+MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char* szSection, IconItem* pIcons, size_t iCount, char *prefix, int hLangpack);
+MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR* szSection, IconItemT* pIcons, size_t iCount, char *prefix, int hLangpack);
+#endif
+
+///////////////////////////////////////////////////////////////////////////////
// language packs support
#define LANG_UNICODE 0x1000
-extern int hLangpack;
-
MIR_CORE_DLL(void) Langpack_SortDuplicates(void);
MIR_CORE_DLL(int) Langpack_GetDefaultCodePage( void );
MIR_CORE_DLL(int) Langpack_GetDefaultLocale(void);