memsink magic

This commit is contained in:
Devaev Maxim
2021-01-18 11:27:57 +03:00
parent 3d28dcbaff
commit 9be264e176
2 changed files with 22 additions and 15 deletions

View File

@@ -39,6 +39,8 @@
#include "frame.h"
#define MEMSINK_MAGIC ((uint64_t)0xCAFEBABECAFEBABE)
#ifndef CFG_MEMSINK_MAX_DATA
# define CFG_MEMSINK_MAX_DATA 33554432
#endif
@@ -46,6 +48,7 @@
typedef struct {
uint64_t magic;
uint64_t id;
size_t used;
unsigned width;