summaryrefslogtreecommitdiffstats
path: root/src/shared/qrcode-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-08-17 15:59:00 +0200
committerLennart Poettering <lennart@poettering.net>2020-08-25 17:58:02 +0200
commitda3920c3a4f9de10b1a6249c7084b52a13699a2e (patch)
tree82117bd078568e0f1f3dd908eaed907d3a1bfb03 /src/shared/qrcode-util.h
parentuser-record: add recovery key fields to user record (diff)
downloadsystemd-da3920c3a4f9de10b1a6249c7084b52a13699a2e.tar.xz
systemd-da3920c3a4f9de10b1a6249c7084b52a13699a2e.zip
journal: move qrcode printing code to src/shared/
That way we can make use of it in homctl, too.
Diffstat (limited to 'src/shared/qrcode-util.h')
-rw-r--r--src/shared/qrcode-util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/qrcode-util.h b/src/shared/qrcode-util.h
new file mode 100644
index 0000000000..9a21ffd7fe
--- /dev/null
+++ b/src/shared/qrcode-util.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+#pragma once
+
+#if HAVE_QRENCODE
+#include <qrencode.h>
+#include <stdio.h>
+
+void write_qrcode(FILE *output, QRcode *qr);
+#endif