From 36c71a60ca82f9777fbdd239f63f62ccf68cf3f5 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 29 Jan 2009 20:49:43 +0000 Subject: Get checkwps working again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19880 a1c6a512-1295-4272-9138-f99709370657 --- tools/checkwps/checkwps.c | 52 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) (limited to 'tools/checkwps/checkwps.c') diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index 2981303701..17098d2b06 100644 --- a/tools/checkwps/checkwps.c +++ b/tools/checkwps/checkwps.c @@ -25,14 +25,16 @@ #include "config.h" #include "gwps.h" #include "checkwps.h" - -#define MIN(x,y) ((x) > (y) ? (y) : (x)) +#include "resize.h" bool debug_wps = true; int wps_verbose_level = 0; int errno; +const struct settings_list *settings; +const int nb_settings = 0; + /* static endianness conversion */ #define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \ ((unsigned short)(x) << 8))) @@ -55,6 +57,20 @@ unsigned short letoh16(unsigned short x) } } +unsigned short letoh32(unsigned short x) +{ + unsigned short n = 0x1234; + unsigned char* ch = (unsigned char*)&n; + + if (*ch == 0x34) + { + /* Little-endian */ + return x; + } else { + return SWAP_32(x); + } +} + unsigned int htole32(unsigned int x) { unsigned short n = 0x1234; @@ -109,6 +125,38 @@ bool load_remote_wps_backdrop(const char* filename) return true; } +int recalc_dimension(struct dim *dst, struct dim *src) +{ + return 0; +} + +int resize_on_load(struct bitmap *bm, bool dither, struct dim *src, + struct rowset *rset, unsigned char *buf, unsigned int len, + const struct custom_format *format, + struct img_part* (*store_part)(void *args), + void *args) +{ + return 0; +} + +int audio_status(void) +{ + return 0; +} + +struct mp3entry* audio_current_track(void) +{ + return NULL; +} + +void audio_stop(void) +{ +} + +void audio_play(long offset) +{ +} + static char pluginbuf[PLUGIN_BUFFER_SIZE]; static unsigned dummy_func2(void) -- cgit v1.2.3