add binary data structure definitions and image writer function prototypes

This commit is contained in:
2024-12-18 18:01:28 +00:00
parent 59d40ea4d8
commit eb210fa167
3 changed files with 86 additions and 0 deletions

22
src/write.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef WRITE_H_
#define WRITE_H_
#include "status.h"
#include <stdint.h>
#include <stdio.h>
struct ec3_writer;
struct ec3_tag_writer;
extern enum ec3_status ec3_writer_create(void);
extern void ec3_writer_destroy(struct ec3_writer *w);
extern void ec3_writer_write_image(struct ec3_writer *w, FILE *fp);
extern enum ec3_status ec3_writer_create_tag(
struct ec3_writer *w,
uint32_t tag_type,
uint64_t tag_ident,
struct ec3_tag_writer **out_writer);
#endif