From: Antonio Ospite Date: Wed, 25 Jan 2012 14:50:41 +0000 (+0100) Subject: Don't use fixed size integer types in the public header X-Git-Tag: v0.1.0~9 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/9056bbf801edbf7699249fa545f097ead27acbde?ds=inline Don't use fixed size integer types in the public header The rationale behind this is that a user of the library is interested in the meaning of the data passed, not on its storage size. --- diff --git a/src/am7xxx.h b/src/am7xxx.h index 39e12e3..e30057b 100644 --- a/src/am7xxx.h +++ b/src/am7xxx.h @@ -19,7 +19,6 @@ #ifndef __AM7XXX_H #define __AM7XXX_H -#include #include #ifdef __cplusplus @@ -55,7 +54,7 @@ int am7xxx_send_image(am7xxx_device dev, am7xxx_image_format format, unsigned int width, unsigned int height, - uint8_t *image, + unsigned char *image, unsigned int size); /* diff --git a/src/picoproj.c b/src/picoproj.c index 8d511b9..f8eb5bc 100644 --- a/src/picoproj.c +++ b/src/picoproj.c @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) int format = AM7XXX_IMAGE_FORMAT_JPEG; int width = 800; int height = 480; - uint8_t *image; + unsigned char *image; unsigned int size; unsigned int native_width; unsigned int native_height;