aboutsummaryrefslogtreecommitdiffstats
path: root/cqrlogo.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-15 09:41:28 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-15 09:41:28 +0100
commit7332cda41120e671d5a3613ee898bb59da6a133e (patch)
treec5053fced995eaf6862a505f0a9aa379b22d4111 /cqrlogo.c
parenta2b5728db3ec316620371a98e7ff7217a18a6da1 (diff)
downloadcqrlogo-7332cda41120e671d5a3613ee898bb59da6a133e.tar.gz
cqrlogo-7332cda41120e671d5a3613ee898bb59da6a133e.tar.zst
move structs and functions definitions to new header file
Diffstat (limited to 'cqrlogo.c')
-rw-r--r--cqrlogo.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/cqrlogo.c b/cqrlogo.c
index 1c1a27c..4f4692e 100644
--- a/cqrlogo.c
+++ b/cqrlogo.c
@@ -17,16 +17,12 @@
#include "config.h"
+/* define structs and functions */
+#include "cqrlogo.h"
+
#define URLPATTERN "^[hH][tT][tT][pP][sS]\\?://%s/"
#define TEXTSTOLEN "This QR Code has been stolen from http%s://%s/!"
-/* a bitmap */
-struct bitmap_t {
- unsigned int width;
- unsigned int height;
- uint8_t *pixel;
-};
-
#if defined PNG_TEXT_SUPPORTED && PNG_ENABLE_TEXT
/*** add_png_text ***/
png_text * add_png_text(png_text *pngtext, unsigned int *textcount, char *key, char *text) {