Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_barcode_decode.c
Go to the documentation of this file.
2
3#include <stdlib.h>
4
5#if defined(PHAROS_ENABLE_NATIVE_ZXING) && !defined(PHAROS_ENABLE_ZXING_DIRECT)
6#define PHAROS_ENABLE_ZXING_DIRECT 1
7#endif
8
9#if defined(PHAROS_ENABLE_ZXING_DIRECT) && PHAROS_ENABLE_ZXING_DIRECT
10#include "pharos_zxing_reader.h"
11#endif
12
14#if defined(PHAROS_ENABLE_ZXING_DIRECT) && PHAROS_ENABLE_ZXING_DIRECT
15 return 1;
16#else
17 return 0;
18#endif
19}
20
21int native_barcode_decode_image_path(const char *image_path, char **decoded_text_out) {
22 if (decoded_text_out == NULL) {
23 return 64;
24 }
25 *decoded_text_out = NULL;
26#if defined(PHAROS_ENABLE_ZXING_DIRECT) && PHAROS_ENABLE_ZXING_DIRECT
27 return pharos_zxing_decode_image_path(image_path, decoded_text_out);
28#else
29 (void)image_path;
30 return 69;
31#endif
32}
int native_barcode_decode_image_path(const char *image_path, char **decoded_text_out)
int native_barcode_decoder_is_direct_linked(void)
int pharos_zxing_decode_image_path(const char *image_path, char **decoded_text_out)