mirror of
https://github.com/signalapp/libsignal.git
synced 2026-04-25 17:25:18 +02:00
112 lines
2.9 KiB
TOML
112 lines
2.9 KiB
TOML
#
|
|
# Copyright (C) 2024 Signal Messenger, LLC.
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
#
|
|
|
|
language = "C"
|
|
|
|
header = "/*\nCopyright (C) 2024 Signal Messenger, LLC.\nSPDX-License-Identifier: AGPL-3.0-only\n*/\n"
|
|
|
|
include_guard = "SIGNAL_FFI_TESTING_H_"
|
|
|
|
autogen_warning = "/* This file was automatically generated by cbindgen */"
|
|
|
|
includes = ["signal_ffi.h"]
|
|
|
|
style = "type"
|
|
|
|
usize_is_size_t = true
|
|
|
|
[defines]
|
|
"feature = signal-media" = "SIGNAL_MEDIA_SUPPORTED"
|
|
|
|
[enum]
|
|
prefix_with_name = true
|
|
|
|
[export]
|
|
exclude = [
|
|
# Already in signal_ffi.h
|
|
"BorrowedBytestringArray",
|
|
"BorrowedSliceOfBorrowedSliceOfc_uchar",
|
|
"BorrowedSliceOfc_uchar",
|
|
"BorrowedSliceOfusize",
|
|
"BytestringArray",
|
|
"ConstPointerAuthChat",
|
|
"ConstPointerBridgedStringMap",
|
|
"ConstPointerConnectionManager",
|
|
"ConstPointerFfiChatListenerStruct",
|
|
"ConstPointerFfiInputStreamStruct",
|
|
"ConstPointerFfiProvisioningListenerStruct",
|
|
"ConstPointerHttpRequest",
|
|
"ConstPointerPublicKey",
|
|
"ConstPointerTokioAsyncContext",
|
|
"CPromisebool",
|
|
"CPromiseFfiCdsiLookupResponse",
|
|
"CPromiseMutPointerRegistrationService",
|
|
"FfiCdsiLookupResponse",
|
|
"FfiCdsiLookupResponseEntry",
|
|
"FfiChatListenerStruct",
|
|
"FfiChatResponse",
|
|
"FfiChatServiceDebugInfo",
|
|
"FfiCheckSvr2CredentialsResponse",
|
|
"FfiProvisioningListenerStruct",
|
|
"FfiRegistrationCreateSessionRequest",
|
|
"FfiResponseAndDebugInfo",
|
|
"FfiSignedPublicPreKey",
|
|
"MutPointerAuthenticatedChatConnection",
|
|
"MutPointerHttpRequest",
|
|
"MutPointerProvisioningChatConnection",
|
|
"MutPointerRegisterAccountResponse",
|
|
"MutPointerRegistrationService",
|
|
"MutPointerRegistrationSession",
|
|
"MutPointerTokioAsyncContext",
|
|
"MutPointerUnauthenticatedChatConnection",
|
|
"OptionalBorrowedSliceOfc_uchar",
|
|
"OptionalUuid",
|
|
"OwnedBufferOfc_uchar",
|
|
"OwnedBufferOfCStringPtr",
|
|
"OwnedBufferOfFfiCdsiLookupResponseEntry",
|
|
"OwnedBufferOfusize",
|
|
]
|
|
item_types = [
|
|
"enums",
|
|
"functions",
|
|
"opaque",
|
|
"structs",
|
|
"typedefs",
|
|
"constants",
|
|
]
|
|
# FIXME: this doesn't work well with constants in SCREAMING_SNAKE_CASE
|
|
prefix = "Signal"
|
|
renaming_overrides_prefixing = true
|
|
|
|
[export.rename]
|
|
"FfiInputStreamStruct" = "SignalInputStream"
|
|
|
|
"BorrowedSliceOfc_uchar" = "SignalBorrowedBuffer"
|
|
"BorrowedSliceOfBorrowedSliceOfc_uchar" = "SignalBorrowedSliceOfBuffers"
|
|
"BorrowedMutableSliceOfc_uchar" = "SignalBorrowedMutableBuffer"
|
|
"OwnedBufferOfc_uchar" = "SignalOwnedBuffer"
|
|
"OwnedBufferOfFfiLookupResponseEntry" = "SignalOwnedLookupResponseEntryList"
|
|
|
|
"CPromisec_void" = "SignalCPromiseRawPointer"
|
|
|
|
# Avoid double-prefixing these
|
|
"SignalFfiError" = "SignalFfiError"
|
|
"SignalErrorCode" = "SignalErrorCode"
|
|
|
|
[export.mangle]
|
|
remove_underscores = true
|
|
|
|
[fn]
|
|
sort_by = "Name"
|
|
args = "horizontal"
|
|
|
|
[parse]
|
|
parse_deps = true
|
|
include = ["libsignal-bridge-types"]
|
|
|
|
[parse.expand]
|
|
crates = ["libsignal-bridge-testing"]
|
|
features = ["libsignal-bridge-testing/ffi"]
|