2020-09-21 18:43:37 +03:00
|
|
|
#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>
|
2020-09-21 18:43:37 +03:00
|
|
|
#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;
|
|
|
|
}
|