From 7148c0b2dd20f9ec58304ed6ab154e901dba1bea Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 28 Nov 2013 12:09:41 +0100 Subject: add configuration file --- cqrlogo.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'cqrlogo.h') diff --git a/cqrlogo.h b/cqrlogo.h index 7a48c18..1edc9b9 100644 --- a/cqrlogo.h +++ b/cqrlogo.h @@ -29,10 +29,16 @@ struct bitmap_t * bitmap_new(int width, int height); void bitmap_free(struct bitmap_t * bitmap); /*** encode_qrcode ***/ -struct bitmap_t * encode_qrcode (const char *text, unsigned int scale, unsigned int border, unsigned int level); +struct bitmap_t * encode_qrcode (const char *text, unsigned int scale, + unsigned int border, unsigned int level); -/*** get_value ***/ -int get_value(const char *query_string, const char *pattern, unsigned int *value, unsigned int def, unsigned int min, unsigned int max); +/*** get_query_value ***/ +unsigned int get_query_value(const char *query_string, const char *pattern, + unsigned int value, unsigned int min, unsigned int max); + +/*** get_ini_value ***/ +unsigned int get_ini_value(dictionary * ini, uint8_t type, const char * section, const char * parameter, + unsigned int value, unsigned int min, unsigned int max); #endif /* _CQRLOGO_H */ -- cgit v1.2.3-54-g00ecf