rulimine/stage2/lib/image.c
2020-10-01 02:12:13 +02:00

16 lines
291 B
C

#include <stdint.h>
#include <stddef.h>
#include <lib/config.h>
#include <lib/blib.h>
#include <mm/pmm.h>
#include <lib/bmp.h>
int open_image(struct image *image, struct file_handle *file) {
image->file = file;
if (!bmp_open_image(image, file))
return 0;
return -1;
}