649 lines
19 KiB
Rust
649 lines
19 KiB
Rust
/* automatically generated by rust-bindgen 0.65.1 */
|
|
|
|
#[derive(PartialEq, Copy, Clone, Hash, Debug, Default)]
|
|
#[repr(C)]
|
|
pub struct __BindgenComplex<T> {
|
|
pub re: T,
|
|
pub im: T,
|
|
}
|
|
pub type wchar_t = ::std::os::raw::c_int;
|
|
#[repr(C)]
|
|
#[repr(align(16))]
|
|
#[derive(Debug, Copy, Clone)]
|
|
pub struct max_align_t {
|
|
pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
|
|
pub __bindgen_padding_0: u64,
|
|
pub __clang_max_align_nonce2: u128,
|
|
}
|
|
#[test]
|
|
fn bindgen_test_layout_max_align_t() {
|
|
const UNINIT: ::std::mem::MaybeUninit<max_align_t> = ::std::mem::MaybeUninit::uninit();
|
|
let ptr = UNINIT.as_ptr();
|
|
assert_eq!(
|
|
::std::mem::size_of::<max_align_t>(),
|
|
32usize,
|
|
concat!("Size of: ", stringify!(max_align_t))
|
|
);
|
|
assert_eq!(
|
|
::std::mem::align_of::<max_align_t>(),
|
|
16usize,
|
|
concat!("Alignment of ", stringify!(max_align_t))
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize },
|
|
0usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(max_align_t),
|
|
"::",
|
|
stringify!(__clang_max_align_nonce1)
|
|
)
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize },
|
|
16usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(max_align_t),
|
|
"::",
|
|
stringify!(__clang_max_align_nonce2)
|
|
)
|
|
);
|
|
}
|
|
#[repr(C)]
|
|
#[derive(Debug, Copy, Clone)]
|
|
pub struct _GoString_ {
|
|
pub p: *const ::std::os::raw::c_char,
|
|
pub n: isize,
|
|
}
|
|
#[test]
|
|
fn bindgen_test_layout__GoString_() {
|
|
const UNINIT: ::std::mem::MaybeUninit<_GoString_> = ::std::mem::MaybeUninit::uninit();
|
|
let ptr = UNINIT.as_ptr();
|
|
assert_eq!(
|
|
::std::mem::size_of::<_GoString_>(),
|
|
16usize,
|
|
concat!("Size of: ", stringify!(_GoString_))
|
|
);
|
|
assert_eq!(
|
|
::std::mem::align_of::<_GoString_>(),
|
|
8usize,
|
|
concat!("Alignment of ", stringify!(_GoString_))
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize },
|
|
0usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(_GoString_),
|
|
"::",
|
|
stringify!(p)
|
|
)
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize },
|
|
8usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(_GoString_),
|
|
"::",
|
|
stringify!(n)
|
|
)
|
|
);
|
|
}
|
|
pub type GoInt8 = ::std::os::raw::c_schar;
|
|
pub type GoUint8 = ::std::os::raw::c_uchar;
|
|
pub type GoInt16 = ::std::os::raw::c_short;
|
|
pub type GoUint16 = ::std::os::raw::c_ushort;
|
|
pub type GoInt32 = ::std::os::raw::c_int;
|
|
pub type GoUint32 = ::std::os::raw::c_uint;
|
|
pub type GoInt64 = ::std::os::raw::c_longlong;
|
|
pub type GoUint64 = ::std::os::raw::c_ulonglong;
|
|
pub type GoInt = GoInt64;
|
|
pub type GoUint = GoUint64;
|
|
pub type GoUintptr = usize;
|
|
pub type GoFloat32 = f32;
|
|
pub type GoFloat64 = f64;
|
|
pub type GoComplex64 = __BindgenComplex<f32>;
|
|
pub type GoComplex128 = __BindgenComplex<f64>;
|
|
pub type _check_for_64_bit_pointer_matching_GoInt = [::std::os::raw::c_char; 1usize];
|
|
pub type GoString = _GoString_;
|
|
pub type GoMap = *mut ::std::os::raw::c_void;
|
|
pub type GoChan = *mut ::std::os::raw::c_void;
|
|
#[repr(C)]
|
|
#[derive(Debug, Copy, Clone)]
|
|
pub struct GoInterface {
|
|
pub t: *mut ::std::os::raw::c_void,
|
|
pub v: *mut ::std::os::raw::c_void,
|
|
}
|
|
#[test]
|
|
fn bindgen_test_layout_GoInterface() {
|
|
const UNINIT: ::std::mem::MaybeUninit<GoInterface> = ::std::mem::MaybeUninit::uninit();
|
|
let ptr = UNINIT.as_ptr();
|
|
assert_eq!(
|
|
::std::mem::size_of::<GoInterface>(),
|
|
16usize,
|
|
concat!("Size of: ", stringify!(GoInterface))
|
|
);
|
|
assert_eq!(
|
|
::std::mem::align_of::<GoInterface>(),
|
|
8usize,
|
|
concat!("Alignment of ", stringify!(GoInterface))
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).t) as usize - ptr as usize },
|
|
0usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(GoInterface),
|
|
"::",
|
|
stringify!(t)
|
|
)
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).v) as usize - ptr as usize },
|
|
8usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(GoInterface),
|
|
"::",
|
|
stringify!(v)
|
|
)
|
|
);
|
|
}
|
|
#[repr(C)]
|
|
#[derive(Debug, Copy, Clone)]
|
|
pub struct GoSlice {
|
|
pub data: *mut ::std::os::raw::c_void,
|
|
pub len: GoInt,
|
|
pub cap: GoInt,
|
|
}
|
|
#[test]
|
|
fn bindgen_test_layout_GoSlice() {
|
|
const UNINIT: ::std::mem::MaybeUninit<GoSlice> = ::std::mem::MaybeUninit::uninit();
|
|
let ptr = UNINIT.as_ptr();
|
|
assert_eq!(
|
|
::std::mem::size_of::<GoSlice>(),
|
|
24usize,
|
|
concat!("Size of: ", stringify!(GoSlice))
|
|
);
|
|
assert_eq!(
|
|
::std::mem::align_of::<GoSlice>(),
|
|
8usize,
|
|
concat!("Alignment of ", stringify!(GoSlice))
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
|
|
0usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(GoSlice),
|
|
"::",
|
|
stringify!(data)
|
|
)
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize },
|
|
8usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(GoSlice),
|
|
"::",
|
|
stringify!(len)
|
|
)
|
|
);
|
|
assert_eq!(
|
|
unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize },
|
|
16usize,
|
|
concat!(
|
|
"Offset of field: ",
|
|
stringify!(GoSlice),
|
|
"::",
|
|
stringify!(cap)
|
|
)
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_FreePointer(ptr: *mut ::std::os::raw::c_char);
|
|
}
|
|
extern "C" {
|
|
pub fn c_Started() -> ::std::os::raw::c_int;
|
|
}
|
|
extern "C" {
|
|
pub fn c_StartCwtch(
|
|
dir_c: *mut ::std::os::raw::c_char,
|
|
len: ::std::os::raw::c_int,
|
|
tor_c: *mut ::std::os::raw::c_char,
|
|
torLen: ::std::os::raw::c_int,
|
|
) -> ::std::os::raw::c_int;
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetAppBusEvent() -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_ReconnectCwtchForeground();
|
|
}
|
|
extern "C" {
|
|
pub fn c_ShutdownCwtch();
|
|
}
|
|
extern "C" {
|
|
pub fn c_SetProfileAttribute(
|
|
profile_ptr: *mut ::std::os::raw::c_char,
|
|
profile_len: ::std::os::raw::c_int,
|
|
key_ptr: *mut ::std::os::raw::c_char,
|
|
key_len: ::std::os::raw::c_int,
|
|
val_ptr: *mut ::std::os::raw::c_char,
|
|
val_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetProfileAttribute(
|
|
profile_ptr: *mut ::std::os::raw::c_char,
|
|
profile_len: ::std::os::raw::c_int,
|
|
key_ptr: *mut ::std::os::raw::c_char,
|
|
key_len: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_SetConversationAttribute(
|
|
profile_ptr: *mut ::std::os::raw::c_char,
|
|
profile_len: ::std::os::raw::c_int,
|
|
conversation_id: ::std::os::raw::c_int,
|
|
key_ptr: *mut ::std::os::raw::c_char,
|
|
key_len: ::std::os::raw::c_int,
|
|
val_ptr: *mut ::std::os::raw::c_char,
|
|
val_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetConversationAttribute(
|
|
profile_ptr: *mut ::std::os::raw::c_char,
|
|
profile_len: ::std::os::raw::c_int,
|
|
conversation_id: ::std::os::raw::c_int,
|
|
key_ptr: *mut ::std::os::raw::c_char,
|
|
key_len: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_ResetTor();
|
|
}
|
|
extern "C" {
|
|
pub fn c_UpdateSettings(json_ptr: *mut ::std::os::raw::c_char, json_len: ::std::os::raw::c_int);
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetDebugInfo() -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_ActivatePeerEngine(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_DeactivatePeerEngine(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_ConfigureConnections(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
listen1: ::std::os::raw::c_char,
|
|
peers2: ::std::os::raw::c_char,
|
|
servers3: ::std::os::raw::c_char,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_CreateProfile(
|
|
name_ptr: *mut ::std::os::raw::c_char,
|
|
name_len: ::std::os::raw::c_int,
|
|
password_ptr: *mut ::std::os::raw::c_char,
|
|
password_len: ::std::os::raw::c_int,
|
|
autostart4: ::std::os::raw::c_char,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_LoadProfiles(
|
|
password_ptr: *mut ::std::os::raw::c_char,
|
|
password_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_DeleteProfile(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
password_ptr: *mut ::std::os::raw::c_char,
|
|
password_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_ImportProfile(
|
|
file5_ptr: *mut ::std::os::raw::c_char,
|
|
file5_len: ::std::os::raw::c_int,
|
|
password_ptr: *mut ::std::os::raw::c_char,
|
|
password_len: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_ChangePassword(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
current6_ptr: *mut ::std::os::raw::c_char,
|
|
current6_len: ::std::os::raw::c_int,
|
|
newPassword7_ptr: *mut ::std::os::raw::c_char,
|
|
newPassword7_len: ::std::os::raw::c_int,
|
|
newPasswordAgain8_ptr: *mut ::std::os::raw::c_char,
|
|
newPasswordAgain8_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_ExportProfile(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
file9_ptr: *mut ::std::os::raw::c_char,
|
|
file9_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_ImportBundle(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
bundle10_ptr: *mut ::std::os::raw::c_char,
|
|
bundle10_len: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_ArchiveConversation(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_AcceptConversation(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_BlockConversation(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_UnblockConversation(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_DeleteConversation(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_PeerWithOnion(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
handle11_ptr: *mut ::std::os::raw::c_char,
|
|
handle11_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_DisconnectFromPeer(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
handle12_ptr: *mut ::std::os::raw::c_char,
|
|
handle12_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetConversationAccessControlList(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_UpdateConversationAccessControlList(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
json13_ptr: *mut ::std::os::raw::c_char,
|
|
json13_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_SearchConversations(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
pattern14_ptr: *mut ::std::os::raw::c_char,
|
|
pattern14_len: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_SendMessage(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
msg15_ptr: *mut ::std::os::raw::c_char,
|
|
msg15_len: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetMessageById(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
message_id: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetMessageByContentHash(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
contentHash16_ptr: *mut ::std::os::raw::c_char,
|
|
contentHash16_len: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetMessages(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
index: ::std::os::raw::c_int,
|
|
count: ::std::os::raw::c_uint,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_SendInviteMessage(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
target: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_UpdateMessageAttribute(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
channel_id: ::std::os::raw::c_int,
|
|
message_id: ::std::os::raw::c_int,
|
|
attributeKey17_ptr: *mut ::std::os::raw::c_char,
|
|
attributeKey17_len: ::std::os::raw::c_int,
|
|
attributeValue18_ptr: *mut ::std::os::raw::c_char,
|
|
attributeValue18_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_StartGroup(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
name19_ptr: *mut ::std::os::raw::c_char,
|
|
name19_len: ::std::os::raw::c_int,
|
|
server20_ptr: *mut ::std::os::raw::c_char,
|
|
server20_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_QueueJoinServer(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
handle21_ptr: *mut ::std::os::raw::c_char,
|
|
handle21_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_DisconnectFromServer(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
handle22_ptr: *mut ::std::os::raw::c_char,
|
|
handle22_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_PublishServerUpdate(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetServerInfoList(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_DeleteServerInfo(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
serverOnion23_ptr: *mut ::std::os::raw::c_char,
|
|
serverOnion23_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_DownloadFileDefaultLimit(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
filepath24_ptr: *mut ::std::os::raw::c_char,
|
|
filepath24_len: ::std::os::raw::c_int,
|
|
manifest25_ptr: *mut ::std::os::raw::c_char,
|
|
manifest25_len: ::std::os::raw::c_int,
|
|
filekey26_ptr: *mut ::std::os::raw::c_char,
|
|
filekey26_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_RestartFileShare(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
filekey27_ptr: *mut ::std::os::raw::c_char,
|
|
filekey27_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_StopFileShare(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
filekey28_ptr: *mut ::std::os::raw::c_char,
|
|
filekey28_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_CheckDownloadStatus(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
filekey29_ptr: *mut ::std::os::raw::c_char,
|
|
filekey29_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_VerifyOrResumeDownloadDefaultLimit(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
filekey30_ptr: *mut ::std::os::raw::c_char,
|
|
filekey30_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_ShareFile(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
filepath31_ptr: *mut ::std::os::raw::c_char,
|
|
filepath31_len: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_GetSharedFiles(
|
|
onion_ptr: *mut ::std::os::raw::c_char,
|
|
onion_len: ::std::os::raw::c_int,
|
|
conversation: ::std::os::raw::c_int,
|
|
) -> *mut ::std::os::raw::c_char;
|
|
}
|
|
extern "C" {
|
|
pub fn c_CreateServer(
|
|
password_ptr: *mut ::std::os::raw::c_char,
|
|
password_len: ::std::os::raw::c_int,
|
|
description32_ptr: *mut ::std::os::raw::c_char,
|
|
description32_len: ::std::os::raw::c_int,
|
|
autostart33: ::std::os::raw::c_char,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_SetServerAttribute(
|
|
handle34_ptr: *mut ::std::os::raw::c_char,
|
|
handle34_len: ::std::os::raw::c_int,
|
|
key35_ptr: *mut ::std::os::raw::c_char,
|
|
key35_len: ::std::os::raw::c_int,
|
|
val36_ptr: *mut ::std::os::raw::c_char,
|
|
val36_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_LoadServers(
|
|
password_ptr: *mut ::std::os::raw::c_char,
|
|
password_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_LaunchServers();
|
|
}
|
|
extern "C" {
|
|
pub fn c_LaunchServer(
|
|
handle37_ptr: *mut ::std::os::raw::c_char,
|
|
handle37_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_StopServer(
|
|
handle38_ptr: *mut ::std::os::raw::c_char,
|
|
handle38_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|
|
extern "C" {
|
|
pub fn c_StopServers();
|
|
}
|
|
extern "C" {
|
|
pub fn c_DestroyServers();
|
|
}
|
|
extern "C" {
|
|
pub fn c_DeleteServer(
|
|
handle39_ptr: *mut ::std::os::raw::c_char,
|
|
handle39_len: ::std::os::raw::c_int,
|
|
password_ptr: *mut ::std::os::raw::c_char,
|
|
password_len: ::std::os::raw::c_int,
|
|
);
|
|
}
|