mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
This patch switches code to SPDX one-line license identifiers according to https://spdx.dev/learn/handling-license-info/ and replacing long license text headers. I used C++ format on the first line in style // SPDX-License-Identifier: <id> except exported libcryptsetup.h, when only C comments are used. The only additional changes are: - switch backend utf8.c from LGPL2+ to LGPL2.1+ (as in systemd) - add some additional formatting lines.
22 lines
589 B
C
22 lines
589 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* loopback block device utilities
|
|
*
|
|
* Copyright (C) 2009-2024 Red Hat, Inc. All rights reserved.
|
|
* Copyright (C) 2009-2024 Milan Broz
|
|
*/
|
|
|
|
#ifndef _UTILS_LOOP_H
|
|
#define _UTILS_LOOP_H
|
|
|
|
/* loopback device helpers */
|
|
|
|
char *crypt_loop_backing_file(const char *loop);
|
|
int crypt_loop_device(const char *loop);
|
|
int crypt_loop_attach(char **loop, const char *file, int offset,
|
|
int autoclear, int *readonly, size_t blocksize);
|
|
int crypt_loop_detach(const char *loop);
|
|
int crypt_loop_resize(const char *loop);
|
|
|
|
#endif /* _UTILS_LOOP_H */
|