diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-08-20 22:02:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-20 22:02:19 +0200 |
commit | f6a971bc0bf1252e9614919ccca0d53db5fc53d9 (patch) | |
tree | 9bd5bd2df95eb4ff419f5bde84998f2a62ff9012 /src/journal/journal-qrcode.h | |
parent | 3e4b9b506d676d1cb8692306b38c05f8529e5cdb (diff) |
journalctl: output FSS key as QR code on generating
Diffstat (limited to 'src/journal/journal-qrcode.h')
-rw-r--r-- | src/journal/journal-qrcode.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/journal/journal-qrcode.h b/src/journal/journal-qrcode.h new file mode 100644 index 0000000000..da6244c160 --- /dev/null +++ b/src/journal/journal-qrcode.h @@ -0,0 +1,30 @@ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ + +#pragma once + +/*** + This file is part of systemd. + + Copyright 2012 Lennart Poettering + + systemd is free software; you can redistribute it 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. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with systemd; If not, see <http://www.gnu.org/licenses/>. +***/ + +#include <inttypes.h> +#include <sys/types.h> +#include <stdio.h> + +#include <systemd/sd-id128.h> + +int print_qr_code(FILE *f, const void *seed, size_t seed_size, uint64_t start, uint64_t interval, const char *hn, sd_id128_t machine); |