diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_core.inc | 5 | ||||
-rw-r--r-- | include/m_core.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc index e462aeac27..0b14858923 100644 --- a/include/delphi/m_core.inc +++ b/include/delphi/m_core.inc @@ -553,6 +553,11 @@ procedure mir_sha1_hash(dataIn:pmir_sha1_byte_t; len:int;hashout:SHA1Hash); stdc ///////////////////////////////////////////////////////////////////////////////
// strings
+function mir_base64_decode(str:pAnsiChar):pAnsiChar; stdcall;
+ external CoreDLL name 'mir_base64_decode';
+function mir_base64_encode(str:pAnsiChar):pAnsiChar; stdcall;
+ external CoreDLL name 'mir_base64_encode';
+
function rtrim(str:pAnsiChar):pAnsiChar; stdcall;
external CoreDLL name 'rtrim';
function rtrimw(str:pWideChar):pWideChar; stdcall;
diff --git a/include/m_core.h b/include/m_core.h index f67faf7be1..8c8602f921 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -453,6 +453,9 @@ MIR_CORE_DLL(void) mir_sha1_hash(mir_sha1_byte_t *dataIn, int len, mir_sha1_byte ///////////////////////////////////////////////////////////////////////////////
// strings
+MIR_CORE_DLL(void*) mir_base64_decode(const char *input, unsigned *outputLen);
+MIR_CORE_DLL(char*) mir_base64_encode(const BYTE *input, unsigned inputLen);
+
MIR_CORE_DLL(char*) rtrim(char *str);
MIR_CORE_DLL(WCHAR*) rtrimw(WCHAR *str);
|