diff options
author | Mataes <mataes2007@gmail.com> | 2020-04-04 00:32:54 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-04-04 00:33:19 +0300 |
commit | 067cd1176e7b6e57107e3926ddaba3a7e7880949 (patch) | |
tree | ed7938060d19f8ffe18ba5ec674142a9a9a4b3df /plugins/NewStory/src/templates.h | |
parent | 43a10fea91545df9128f0792d3b6cee78f4fd3ec (diff) |
newstory: change some function to mir_*. Maybe create memleaks
Diffstat (limited to 'plugins/NewStory/src/templates.h')
-rw-r--r-- | plugins/NewStory/src/templates.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/plugins/NewStory/src/templates.h b/plugins/NewStory/src/templates.h index 8ac3cf7b07..71c41c5539 100644 --- a/plugins/NewStory/src/templates.h +++ b/plugins/NewStory/src/templates.h @@ -10,15 +10,9 @@ enum struct TemplateVars { bool del[256]; - TCHAR *val[256]; + wchar_t *val[256]; }; -/* -struct VFArgs -{ - HANDLE hContact; - DBEVENTINFO *event; -}; -*/ + typedef void(*VarFunc)(int mode, TemplateVars *vars, MCONTACT hContact, HistoryArray::ItemData *item); struct TemplateInfo @@ -26,12 +20,12 @@ struct TemplateInfo enum { VF_COUNT = 5 }; char *setting; - TCHAR *group; + wchar_t *group; int icon; - TCHAR *title; - TCHAR *defvalue; - TCHAR *value; - TCHAR *tmpValue; + wchar_t *title; + wchar_t *defvalue; + wchar_t *value; + wchar_t *tmpValue; VarFunc vf[VF_COUNT]; }; @@ -66,7 +60,7 @@ extern TemplateInfo templates[TPL_COUNT]; void LoadTemplates(); void SaveTemplates(); -TCHAR *TplFormatString(int tpl, MCONTACT hContact, HistoryArray::ItemData *args); -TCHAR *TplFormatStringEx(int tpl, TCHAR *sztpl, MCONTACT hContact, HistoryArray::ItemData *args); +wchar_t *TplFormatString(int tpl, MCONTACT hContact, HistoryArray::ItemData *args); +wchar_t *TplFormatStringEx(int tpl, wchar_t *sztpl, MCONTACT hContact, HistoryArray::ItemData *args); #endif // __templates_h__
\ No newline at end of file |