diff options
| author | George Hazan <ghazan@miranda.im> | 2022-02-09 17:40:09 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2022-02-09 17:40:09 +0300 |
| commit | a43d5bcb1e0bdafb0193662168976aac989ed922 (patch) | |
| tree | c4f154f05f36626678efc64ae7a1139b30b5f4fe /include | |
| parent | 760867149a99443036f53c73190d53bd87039def (diff) | |
db_is_module_empty & db_copy_module - new database helpers
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_database.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/m_database.h b/include/m_database.h index dbf8455e56..34d4b3d128 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -59,6 +59,14 @@ EXTERN_C MIR_CORE_DLL(void) db_set_safety_mode(BOOL bNewMode); EXTERN_C MIR_CORE_DLL(int) db_get_contact_count(void); +// Checks if a module doesn't contain any settings (for the contact given) + +MIR_CORE_DLL(bool) db_is_module_empty(MCONTACT hContact, const char *module); + +// Copies a module to another module for the contact given (0 by default) + +EXTERN_C MIR_CORE_DLL(int) db_copy_module(const char *szModule, const char *szNewModule, MCONTACT hContact = 0); + // Removes all settings for the specified module. // hContact is 0 for global settings or matches the concrete contact |
