Carry typed encrypted metadata with PM file transfers

This commit is contained in:
evgeny committed 2026-10-01 17:39:48 +03:00
1 parent c9480204d3
commit 36697f1d6a
2 files changed
+22 -13

No files matched your search

+4 -2
View File
@@ -9,6 +9,7 @@
#include <stdint.h>
#include <stddef.h>
#include "../media_async/attachment.h"
struct UTUN_INSTANCE;
@@ -31,12 +32,13 @@ void dm_media_quiesce(struct UTUN_INSTANCE* inst);
void dm_media_destroy(struct UTUN_INSTANCE* inst);
/* Подготовить копию и enqueue file-сообщение асинхронно. 0=задача принята. */
int dm_send_file(struct UTUN_INSTANCE* inst, const char* conv, const char* path, const char* display_name);
int dm_send_file(struct UTUN_INSTANCE* inst, const char* conv, const char* path, const struct attachment_info* info);
struct dm_file_req {
struct UTUN_INSTANCE* inst;
char conv[64];
char path[1024];
char name[256];
struct attachment_info info;
int remove_source; /* Только принадлежащий приложению временный файл. */
};
void dm_send_file_trampoline(void* arg);