Let's not leak details from src/shared and src/libsystemd into src/basic, even though you can't actually do anything useful with just forward declarations from src/shared. The sd-forward.h header is put in src/libsystemd/sd-common as we don't have a directory for shared internal headers for libsystemd yet. Let's also rename forward.h to basic-forward.h to keep things self-explanatory.
13 lines
351 B
C
13 lines
351 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include "basic-forward.h"
|
|
#include "sha256-fundamental.h" /* IWYU pragma: export */
|
|
|
|
int sha256_fd(int fd, uint64_t max_size, uint8_t ret[static SHA256_DIGEST_SIZE]);
|
|
|
|
int parse_sha256(const char *s, uint8_t res[static SHA256_DIGEST_SIZE]);
|
|
|
|
bool sha256_is_valid(const char *s) _pure_;
|