]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
f1b82359 | 2 | #pragma once |
5a64c869 | 3 | |
69a283c5 | 4 | #include "forward.h" |
da3920c3 | 5 | |
f1b82359 | 6 | #if HAVE_QRENCODE |
ad914843 LP |
7 | int dlopen_qrencode(void); |
8 | ||
5a64c869 ZJS |
9 | int print_qrcode_full( |
10 | FILE *out, | |
11 | const char *header, | |
12 | const char *string, | |
13 | unsigned row, | |
14 | unsigned column, | |
15 | unsigned tty_width, | |
16 | unsigned tty_height, | |
17 | bool check_tty); | |
f1b82359 | 18 | #else |
5a64c869 ZJS |
19 | static inline int print_qrcode_full( |
20 | FILE *out, | |
21 | const char *header, | |
22 | const char *string, | |
23 | unsigned row, | |
24 | unsigned column, | |
25 | unsigned tty_width, | |
26 | unsigned tty_height, | |
27 | bool check_tty) { | |
fc7eb132 OJ |
28 | return -EOPNOTSUPP; |
29 | } | |
5a64c869 ZJS |
30 | #endif |
31 | ||
f1b82359 | 32 | static inline int print_qrcode(FILE *out, const char *header, const char *string) { |
5a64c869 | 33 | return print_qrcode_full(out, header, string, UINT_MAX, UINT_MAX, UINT_MAX, UINT_MAX, true); |
f1b82359 | 34 | } |