5ee53fbe4d
Co-authored-by: ethan <55000224+ethan4984@users.noreply.github.com>
14 lines
248 B
C
14 lines
248 B
C
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <lib/image.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;
|
|
}
|