summaryrefslogtreecommitdiffstats
path: root/zbar/sqcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'zbar/sqcode.h')
-rw-r--r--zbar/sqcode.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/zbar/sqcode.h b/zbar/sqcode.h
new file mode 100644
index 0000000..b3f5430
--- /dev/null
+++ b/zbar/sqcode.h
@@ -0,0 +1,21 @@
+/*Copyright (C) 2018 Javier Serrano Polo <javier@jasp.net>
+ You can redistribute this library and/or modify it under the terms of the
+ GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2.1 of the License, or (at your option) any later
+ version.*/
+#ifndef _SQCODE_H_
+#define _SQCODE_H_
+
+#include <zbar.h>
+
+typedef struct sq_reader sq_reader;
+
+sq_reader *_zbar_sq_create(void);
+void _zbar_sq_destroy(sq_reader *reader);
+void _zbar_sq_reset(sq_reader *reader);
+
+int _zbar_sq_new_config(sq_reader *reader, unsigned config);
+int _zbar_sq_decode(sq_reader *reader, zbar_image_scanner_t *iscn,
+ zbar_image_t *img);
+
+#endif