mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
committed by
GitHub
parent
a247e5b143
commit
f0cfcef864
@@ -421,33 +421,6 @@ pub enum Event {
|
||||
/// Return 0 if the ui cannot provide the requested string
|
||||
/// the core will use a default string in english language then.
|
||||
GET_STRING = 2091,
|
||||
|
||||
/// Request a HTTP-file or HTTPS-file from the frontend using HTTP-GET.
|
||||
/// @param data1 (const char*) Null-terminated UTF-8 string containing the URL.
|
||||
/// The string starts with https:// or http://.
|
||||
/// Must not be free()'d or modified and is valid only until the callback returns.
|
||||
/// @param data2 0
|
||||
/// @return (const char*) The content of the requested file as a null-terminated UTF-8 string;
|
||||
/// Response headers, encodings etc. must be stripped.
|
||||
/// Only the raw file should be returned.
|
||||
/// CAVE: The string will be free()'d by the core,
|
||||
/// so make sure it is allocated using malloc() or a compatible function.
|
||||
/// If you cannot provide the content, just return 0 or an empty string.
|
||||
HTTP_GET = 2100,
|
||||
|
||||
/// Request a HTTP-file or HTTPS-file from the frontend using HTTP-POST.
|
||||
/// @param data1 (const char*) Null-terminated UTF-8 string containing the URL.
|
||||
/// The string starts with https:// or http://.
|
||||
/// Must not be free()'d or modified and is valid only until the callback returns.
|
||||
/// Parameter to POST are added to the url after `?`.
|
||||
/// @param data2 0
|
||||
/// @return (const char*) The content of the requested file as a null-terminated UTF-8 string;
|
||||
/// Response headers, encodings etc. must be stripped.
|
||||
/// Only the raw file should be returned.
|
||||
/// CAVE: The string will be free()'d by the core,
|
||||
/// so make sure it is allocated using malloc() or a compatible function.
|
||||
/// If you cannot provide the content, just return 0 or an empty string.
|
||||
HTTP_POST = 2110,
|
||||
}
|
||||
|
||||
pub const DC_EVENT_FILE_COPIED: usize = 2055; // deprecated;
|
||||
|
||||
Reference in New Issue
Block a user