summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/m_database.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/m_database.h b/include/m_database.h
index 8f7e974b40..1e3dd69a85 100644
--- a/include/m_database.h
+++ b/include/m_database.h
@@ -463,6 +463,16 @@ EXTERN_C MIR_APP_DLL(void) Profile_SetDefault(const wchar_t *pwszPath);
// Checks if a profile is opened
EXTERN_C MIR_APP_DLL(bool) Profile_CheckOpened(const wchar_t *pwszProfileName);
+// Read an option from mirandaboot.ini
+EXTERN_C MIR_APP_DLL(int) Profile_GetSettingInt(const wchar_t *pwszSetting, int iDefault = 0);
+EXTERN_C MIR_APP_DLL(bool) Profile_GetSetting(const wchar_t *pwszSetting, wchar_t *pwszBuf, size_t cbLen, const wchar_t *pwszDefault = nullptr);
+
+template <size_t _Size>
+bool Profile_GetSetting(const wchar_t *pwszSetting, wchar_t(&pwszBuf)[_Size], const wchar_t *pwszDefault = nullptr)
+{
+ return Profile_GetSetting(pwszSetting, pwszBuf, _Size, pwszDefault);
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
// Contact services