labyrinth

diff src/image.h @ 0:8ba79034e8a6

labyrinth example initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 15 Jan 2015 14:59:38 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/image.h	Thu Jan 15 14:59:38 2015 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +#ifndef IMAGE_H_
     1.5 +#define IMAGE_H_
     1.6 +
     1.7 +struct image {
     1.8 +	int width, height;
     1.9 +	unsigned char *pixels;
    1.10 +};
    1.11 +
    1.12 +#ifdef __cplusplus
    1.13 +extern "C" {
    1.14 +#endif
    1.15 +
    1.16 +struct image *load_image(const char *fname);
    1.17 +void free_image(struct image *img);
    1.18 +
    1.19 +#ifdef __cplusplus
    1.20 +}
    1.21 +#endif
    1.22 +
    1.23 +#endif	/* IMAGE_H_ */