summaryrefslogtreecommitdiff
path: root/examples/decode_bmp.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-10-14 20:02:09 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-10-14 20:02:09 +0100
commitefc26882bde6d757e3111fa4684201ff61b30a4c (patch)
treeabd3db7d11ae2acb61ffbea63093c85671a0b28b /examples/decode_bmp.c
parent1ad808fd9b45fe40b26458989c8abd74122e0675 (diff)
downloadlibnsbmp-efc26882bde6d757e3111fa4684201ff61b30a4c.tar.gz
libnsbmp-efc26882bde6d757e3111fa4684201ff61b30a4c.tar.bz2
Remove suspend/invalidate stuff.
Diffstat (limited to 'examples/decode_bmp.c')
-rw-r--r--examples/decode_bmp.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/examples/decode_bmp.c b/examples/decode_bmp.c
index cdeaaf4..e5dc572 100644
--- a/examples/decode_bmp.c
+++ b/examples/decode_bmp.c
@@ -23,9 +23,6 @@
unsigned char *load_file(const char *path, size_t *data_size);
void warning(const char *context, bmp_result code);
void *bitmap_create(int width, int height, unsigned int state);
-void bitmap_set_suspendable(void *bitmap, void *private_word,
- void (*invalidate)(void *bitmap, void *private_word));
-void invalidate(void *bitmap, void *private_word);
unsigned char *bitmap_get_buffer(void *bitmap);
size_t bitmap_get_bpp(void *bitmap);
void bitmap_destroy(void *bitmap);
@@ -36,7 +33,6 @@ int main(int argc, char *argv[])
bmp_bitmap_callback_vt bitmap_callbacks = {
bitmap_create,
bitmap_destroy,
- bitmap_set_suspendable,
bitmap_get_buffer,
bitmap_get_bpp
};
@@ -174,22 +170,6 @@ void *bitmap_create(int width, int height, unsigned int state)
}
-void bitmap_set_suspendable(void *bitmap, void *private_word,
- void (*invalidate)(void *bitmap, void *private_word))
-{
- (void) bitmap; /* unused */
- (void) private_word; /* unused */
- (void) invalidate; /* unused */
-}
-
-
-void invalidate(void *bitmap, void *private_word)
-{
- (void) bitmap; /* unused */
- (void) private_word; /* unused */
-}
-
-
unsigned char *bitmap_get_buffer(void *bitmap)
{
assert(bitmap);