Pharos
0.7.23
Modern Web Framework & Web App Hosting Service.
Toggle main menu visibility
Loading...
Searching...
No Matches
native_barcode_decode.c
Go to the documentation of this file.
1
#include "
native_barcode_decode.h
"
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
13
int
native_barcode_decoder_is_direct_linked
(
void
) {
14
#if defined(PHAROS_ENABLE_ZXING_DIRECT) && PHAROS_ENABLE_ZXING_DIRECT
15
return
1;
16
#else
17
return
0;
18
#endif
19
}
20
21
int
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
}
native_barcode_decode_image_path
int native_barcode_decode_image_path(const char *image_path, char **decoded_text_out)
Definition
native_barcode_decode.c:21
native_barcode_decoder_is_direct_linked
int native_barcode_decoder_is_direct_linked(void)
Definition
native_barcode_decode.c:13
native_barcode_decode.h
pharos_zxing_decode_image_path
int pharos_zxing_decode_image_path(const char *image_path, char **decoded_text_out)
Definition
pharos_zxing_reader.c:80
pharos_zxing_reader.h
src
native_runtime
c
native_barcode_decode.c
Generated by
1.17.0