mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Make all header files self-suffienct
Almost all the headers in cryptsetup are self-suffienct (in that they compile on their own). By including <stddef.h>, <stdint.h>, or <sys/types.h>, all headers will now compile on their own. This is useful for importing cryptsetup into Bazel/Blaze.
This commit is contained in:
committed by
Milan Broz
parent
e8b6890318
commit
59b5f360af
@@ -22,6 +22,7 @@
|
||||
#ifndef _LOOPAES_H
|
||||
#define _LOOPAES_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
|
||||
struct crypt_device;
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#ifndef INCLUDED_CRYPTSETUP_LUKS_AF_H
|
||||
#define INCLUDED_CRYPTSETUP_LUKS_AF_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/*
|
||||
* AF_split operates on src and produces information split data in
|
||||
* dst. src is assumed to be of the length blocksize. The data stripe
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#ifndef _CRYPTSETUP_UTILS_IO_H
|
||||
#define _CRYPTSETUP_UTILS_IO_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
ssize_t read_buffer(int fd, void *buf, size_t length);
|
||||
ssize_t write_buffer(int fd, const void *buf, size_t length);
|
||||
ssize_t write_blockwise(int fd, size_t bsize, size_t alignment,
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#ifndef _UTILS_KEYRING
|
||||
#define _UTILS_KEYRING
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
int keyring_check(void);
|
||||
|
||||
int keyring_get_passphrase(const char *key_desc,
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#ifndef _VERITY_H
|
||||
#define _VERITY_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define VERITY_MAX_HASH_TYPE 1
|
||||
|
||||
Reference in New Issue
Block a user