1
0
Fork 0
hvif-light/src/hvif-light.h

31 lines
468 B
C
Raw Normal View History

#ifndef HVIF_LIGHT_H
#define HVIF_LIGHT_H
2020-02-21 20:34:29 +01:00
#include <stdbool.h>
#include <stdio.h>
typedef enum hvif_status
{
SUCCESS = 0,
ERROR_EOF,
ERROR_NOMEM,
ERROR_MAGIC,
ERROR_STYLE,
ERROR_PATH,
ERROR_SHAPE
} hvif_status;
2020-02-21 20:34:29 +01:00
typedef struct hvif_image hvif_image;
typedef struct hvif_result hvif_result;
struct hvif_result
{
hvif_status status;
hvif_image* image;
2020-02-21 20:34:29 +01:00
};
2020-02-21 20:34:29 +01:00
hvif_result hvif_from_file(FILE* file);
void hvif_free(hvif_image* image);
#endif /* HVIF_LIGHT_H */