rulimine/stage2/lib/image.c

16 lines
291 B
C
Raw Normal View History

#include <stdint.h>
#include <stddef.h>
2020-10-01 02:08:08 +03:00
#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;
}