diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/nsmkv/Attachments.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/nsmkv/Attachments.h')
-rw-r--r-- | Src/nsmkv/Attachments.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Src/nsmkv/Attachments.h b/Src/nsmkv/Attachments.h new file mode 100644 index 00000000..8fe7e42d --- /dev/null +++ b/Src/nsmkv/Attachments.h @@ -0,0 +1,47 @@ +#pragma once +#include <bfc/platform/types.h> +#include "mkv_reader.h" + +// Attachments +const uint32_t mkv_segment_attachments = 0x941a469; +const uint32_t mkv_attachments_attachedfile = 0x21a7; +const uint32_t mkv_attachments_filename = 0x66e; +const uint32_t mkv_attachments_filemimetype = 0x660; +const uint32_t mkv_attachments_filedata =0x65c; +const uint32_t mkv_attachments_fileuid = 0x6ae; + +namespace nsmkv +{ + class AttachedFile + { + public: + AttachedFile() + { + file_uid=0; + filename=0; + mime_type=0; + } + ~AttachedFile() + { + free(filename); + free(mime_type); + } + void Own(char *&field, char *value) + { + if (field) + free(field); + field = value; + } + + uint64_t file_uid; + char *filename; + char *mime_type; + }; + + class Attachments + { + public: + }; + + uint64_t ReadAttachment(MKVReader *reader, uint64_t size, nsmkv::Attachments &attachments); +}
\ No newline at end of file |