16 lines
291 B
C
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;
|
|
}
|