diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-25 20:00:55 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-25 20:00:55 +0300 |
commit | 9ea18ddc413a8c1eae6c32fe16e162a1998079c1 (patch) | |
tree | 0fcf08adc603e6420fae94bf79d7ede357b96edb /include/m_database.h | |
parent | c104e058686d3d36bc9b15d84bfd9b84740cd3fa (diff) |
Telegram: offline files to be links from the very beginning
Diffstat (limited to 'include/m_database.h')
-rw-r--r-- | include/m_database.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/m_database.h b/include/m_database.h index 42c787aa81..dd8afaca1a 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -721,6 +721,9 @@ namespace DB bool isCompleted() const;
__forceinline bool isOffline() const { return m_szProtoString != nullptr; }
+
+ __forceinline void setUrl(const char *pszUrl) { m_szProtoString = mir_strdup(pszUrl); }
+ __forceinline void setSize(int64_t iSize) { m_iFileSize = iSize; }
};
/////////////////////////////////////////////////////////////////////////////////////////
|