summaryrefslogtreecommitdiff
path: root/examples/decode_bmp.c
diff options
context:
space:
mode:
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);