diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-11-04 17:27:29 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-11-04 21:57:36 +0000 |
commit | 947586eb1b14c267ee996ba655af13899488c0f3 (patch) | |
tree | 52a0cfb8a364678d8f2badefb4d2ac9b2b42a5f5 /include | |
parent | 24c503f95e1f9ef726e546e616649120b666d15d (diff) | |
download | libnsgif-947586eb1b14c267ee996ba655af13899488c0f3.tar.gz |
GIF: Constify raw source data.
Diffstat (limited to 'include')
-rw-r--r-- | include/libnsgif.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libnsgif.h b/include/libnsgif.h index ae6691c..36f59a4 100644 --- a/include/libnsgif.h +++ b/include/libnsgif.h @@ -15,8 +15,8 @@ #ifndef _LIBNSGIF_H_ #define _LIBNSGIF_H_ +#include <stdint.h> #include <stdbool.h> -#include <inttypes.h> /* Error return values */ typedef enum { @@ -100,7 +100,7 @@ typedef struct gif_animation { /** callbacks for bitmap functions */ gif_bitmap_callback_vt bitmap_callbacks; /** pointer to GIF data */ - unsigned char *gif_data; + const uint8_t *gif_data; /** width of GIF (may increase during decoding) */ unsigned int width; /** heigth of GIF (may increase during decoding) */ @@ -173,7 +173,7 @@ void gif_create(gif_animation *gif, gif_bitmap_callback_vt *bitmap_callbacks); * - GIF_OK for successful decoding * - GIF_WORKING for successful decoding if more frames are expected */ -gif_result gif_initialise(gif_animation *gif, size_t size, unsigned char *data); +gif_result gif_initialise(gif_animation *gif, size_t size, const uint8_t *data); /** * Decodes a GIF frame. |