cryptsetup: Provide implementation without cgo

This commit is contained in:
Malte Poll 2023-05-19 14:30:46 +02:00 committed by Malte Poll
parent 524718d82c
commit c1dbbf34c3
3 changed files with 21 additions and 1 deletions

View file

@ -1,16 +0,0 @@
/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
// Package cryptsetup contains CGO bindings for cryptsetup.
package cryptsetup
// #include <libcryptsetup.h>
import "C"
const (
// ReadWriteQueueBypass is a flag to disable the write and read workqueues for a crypt device.
ReadWriteQueueBypass = C.CRYPT_ACTIVATE_NO_WRITE_WORKQUEUE | C.CRYPT_ACTIVATE_NO_READ_WORKQUEUE
)