86 if(filename == NULL)
return EINVAL;
90 stream = fopen(filename,
"rb");
92 if(stream == NULL)
return errno;
165 if(image_stream == NULL)
return 0;
167 if(fseek(image_stream, 0, SEEK_SET) != 0)
return 0;
171 const size_t ret = fread(&header,
sizeof(
AaruHeader), 1, image_stream);
173 if(ret != 1)
return 0;
#define DIC_MAGIC
Magic identifier for legacy DiscImageChef container (ASCII "DICMFRMT").
#define AARU_MAGIC
Magic identifier for AaruFormat container (ASCII "AARUFRMT").
#define AARUF_VERSION
Current image format major version (incompatible changes bump this).
int aaruf_identify_stream(FILE *image_stream)
Identifies a file as an AaruFormat image using an open stream.
int aaruf_identify(const char *filename)
Identifies a file as an AaruFormat image using a file path.