2019-03-17 20:39:40 +00:00
|
|
|
//
|
|
|
|
|
// Created by claunia on 17/03/19.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef LIBDICFORMAT_CONTEXT_H
|
|
|
|
|
#define LIBDICFORMAT_CONTEXT_H
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
typedef struct dicformatContext
|
|
|
|
|
{
|
2019-03-17 21:14:40 +00:00
|
|
|
uint64_t magic;
|
|
|
|
|
uint8_t libraryMajorVersion;
|
|
|
|
|
uint8_t libraryMinorVersion;
|
|
|
|
|
FILE *imageStream;
|
|
|
|
|
DicHeader header;
|
|
|
|
|
struct dataLinkedList *mediaTagsHead;
|
|
|
|
|
struct dataLinkedList *mediaTagsTail;
|
2019-03-17 20:39:40 +00:00
|
|
|
} dicformatContext;
|
|
|
|
|
|
2019-03-17 21:14:40 +00:00
|
|
|
typedef struct dataLinkedList
|
|
|
|
|
{
|
|
|
|
|
struct dataLinkedList *previous;
|
|
|
|
|
struct dataLinkedList *next;
|
|
|
|
|
unsigned char *data;
|
|
|
|
|
int type;
|
|
|
|
|
} dataLinkedList;
|
|
|
|
|
|
2019-03-17 20:39:40 +00:00
|
|
|
#endif //LIBDICFORMAT_CONTEXT_H
|