Add open() and close() skeletons that only recognize the image as a correct one.

This commit is contained in:
2019-03-17 20:39:40 +00:00
parent 5bd7a5664c
commit 28145013c4
7 changed files with 200 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
//
// Created by claunia on 17/03/19.
//
#ifndef LIBDICFORMAT_CONTEXT_H
#define LIBDICFORMAT_CONTEXT_H
#include <stdint.h>
#include <stdio.h>
typedef struct dicformatContext
{
uint64_t magic;
uint8_t libraryMajorVersion;
uint8_t libraryMinorVersion;
FILE *imageStream;
DicHeader header;
} dicformatContext;
#endif //LIBDICFORMAT_CONTEXT_H