|
|
|
@ -32,7 +32,7 @@ use libc::{off_t, time_t, FILE};
|
|
|
|
|
/* automatically generated by rust-bindgen */
|
|
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
|
|
|
|
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
|
|
|
|
pub struct __BindgenBitfieldUnit<Storage, Align> {
|
|
|
|
|
storage: Storage,
|
|
|
|
|
align: [Align; 0],
|
|
|
|
@ -184,13 +184,13 @@ pub type gpg_err_code_from_syserror = extern "C" fn() -> gpg_err_code_t;
|
|
|
|
|
pub type gpg_error_check_version =
|
|
|
|
|
extern "C" fn(req_version: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct gpgme_context {
|
|
|
|
|
_unused: [u8; 0],
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_ctx_t = *mut gpgme_context;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct gpgme_data {
|
|
|
|
|
_unused: [u8; 0],
|
|
|
|
|
}
|
|
|
|
@ -307,7 +307,7 @@ pub type gpgme_pinentry_mode_t = u32;
|
|
|
|
|
pub type gpgme_export_mode_t = ::std::os::raw::c_uint;
|
|
|
|
|
pub type gpgme_sig_notation_flags_t = ::std::os::raw::c_uint;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_sig_notation {
|
|
|
|
|
pub next: *mut _gpgme_sig_notation,
|
|
|
|
|
pub name: *mut ::std::os::raw::c_char,
|
|
|
|
@ -450,7 +450,7 @@ impl _gpgme_sig_notation {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_sig_notation_t = *mut _gpgme_sig_notation;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_engine_info {
|
|
|
|
|
pub next: *mut _gpgme_engine_info,
|
|
|
|
|
pub protocol: gpgme_protocol_t,
|
|
|
|
@ -535,7 +535,7 @@ fn bindgen_test_layout__gpgme_engine_info() {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_engine_info_t = *mut _gpgme_engine_info;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_tofu_info {
|
|
|
|
|
pub next: *mut _gpgme_tofu_info,
|
|
|
|
|
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
|
|
|
|
@ -700,7 +700,7 @@ impl _gpgme_tofu_info {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_tofu_info_t = *mut _gpgme_tofu_info;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_subkey {
|
|
|
|
|
pub next: *mut _gpgme_subkey,
|
|
|
|
|
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
|
|
|
|
@ -1058,7 +1058,7 @@ impl _gpgme_subkey {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_subkey_t = *mut _gpgme_subkey;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_key_sig {
|
|
|
|
|
pub next: *mut _gpgme_key_sig,
|
|
|
|
|
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
|
|
|
|
@ -1332,7 +1332,7 @@ impl _gpgme_key_sig {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_key_sig_t = *mut _gpgme_key_sig;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_user_id {
|
|
|
|
|
pub next: *mut _gpgme_user_id,
|
|
|
|
|
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
|
|
|
|
@ -1546,7 +1546,7 @@ impl _gpgme_user_id {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_user_id_t = *mut _gpgme_user_id;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_key {
|
|
|
|
|
pub _refs: ::std::os::raw::c_uint,
|
|
|
|
|
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
|
|
|
|
@ -1910,7 +1910,7 @@ impl _gpgme_key {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_key_t = *mut _gpgme_key;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_invalid_key {
|
|
|
|
|
pub next: *mut _gpgme_invalid_key,
|
|
|
|
|
pub fpr: *mut ::std::os::raw::c_char,
|
|
|
|
@ -2107,7 +2107,7 @@ pub const gpgme_event_io_t_GPGME_EVENT_NEXT_KEY: gpgme_event_io_t = 2;
|
|
|
|
|
pub const gpgme_event_io_t_GPGME_EVENT_NEXT_TRUSTITEM: gpgme_event_io_t = 3;
|
|
|
|
|
pub type gpgme_event_io_t = u32;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct gpgme_io_event_done_data {
|
|
|
|
|
pub err: gpgme_error_t,
|
|
|
|
|
pub op_err: gpgme_error_t,
|
|
|
|
@ -2155,7 +2155,7 @@ pub type gpgme_event_io_cb_t = ::std::option::Option<
|
|
|
|
|
),
|
|
|
|
|
>;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct gpgme_io_cbs {
|
|
|
|
|
pub add: gpgme_register_io_cb_t,
|
|
|
|
|
pub add_priv: *mut ::std::os::raw::c_void,
|
|
|
|
@ -2282,7 +2282,7 @@ pub type gpgme_data_seek_cb_t = ::std::option::Option<
|
|
|
|
|
pub type gpgme_data_release_cb_t =
|
|
|
|
|
::std::option::Option<unsafe extern "C" fn(handle: *mut ::std::os::raw::c_void)>;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct gpgme_data_cbs {
|
|
|
|
|
pub read: gpgme_data_read_cb_t,
|
|
|
|
|
pub write: gpgme_data_write_cb_t,
|
|
|
|
@ -2415,7 +2415,7 @@ pub type gpgme_key_from_uid =
|
|
|
|
|
pub type gpgme_key_ref = unsafe extern "C" fn(key: gpgme_key_t);
|
|
|
|
|
pub type gpgme_key_unref = unsafe extern "C" fn(key: gpgme_key_t);
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_encrypt_result {
|
|
|
|
|
pub invalid_recipients: gpgme_invalid_key_t,
|
|
|
|
|
}
|
|
|
|
@ -2519,7 +2519,7 @@ pub type gpgme_op_encrypt_sign_ext = extern "C" fn(
|
|
|
|
|
cipher: gpgme_data_t,
|
|
|
|
|
) -> gpgme_error_t;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_recipient {
|
|
|
|
|
pub next: *mut _gpgme_recipient,
|
|
|
|
|
pub keyid: *mut ::std::os::raw::c_char,
|
|
|
|
@ -2593,7 +2593,7 @@ fn bindgen_test_layout__gpgme_recipient() {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_recipient_t = *mut _gpgme_recipient;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_decrypt_result {
|
|
|
|
|
pub unsupported_algorithm: *mut ::std::os::raw::c_char,
|
|
|
|
|
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
|
|
|
|
@ -2795,7 +2795,7 @@ pub type gpgme_op_decrypt_ext = extern "C" fn(
|
|
|
|
|
plain: gpgme_data_t,
|
|
|
|
|
) -> gpgme_error_t;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_new_signature {
|
|
|
|
|
pub next: *mut _gpgme_new_signature,
|
|
|
|
|
pub type_: gpgme_sig_mode_t,
|
|
|
|
@ -2917,7 +2917,7 @@ fn bindgen_test_layout__gpgme_new_signature() {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_new_signature_t = *mut _gpgme_new_signature;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_sign_result {
|
|
|
|
|
pub invalid_signers: gpgme_invalid_key_t,
|
|
|
|
|
pub signatures: gpgme_new_signature_t,
|
|
|
|
@ -2988,7 +2988,7 @@ pub const gpgme_sigsum_t_GPGME_SIGSUM_SYS_ERROR: gpgme_sigsum_t = 2048;
|
|
|
|
|
pub const gpgme_sigsum_t_GPGME_SIGSUM_TOFU_CONFLICT: gpgme_sigsum_t = 4096;
|
|
|
|
|
pub type gpgme_sigsum_t = u32;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_signature {
|
|
|
|
|
pub next: *mut _gpgme_signature,
|
|
|
|
|
pub summary: gpgme_sigsum_t,
|
|
|
|
@ -3242,7 +3242,7 @@ impl _gpgme_signature {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_signature_t = *mut _gpgme_signature;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_verify_result {
|
|
|
|
|
pub signatures: gpgme_signature_t,
|
|
|
|
|
pub file_name: *mut ::std::os::raw::c_char,
|
|
|
|
@ -3343,7 +3343,7 @@ pub type gpgme_op_verify = extern "C" fn(
|
|
|
|
|
plaintext: gpgme_data_t,
|
|
|
|
|
) -> gpgme_error_t;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_import_status {
|
|
|
|
|
pub next: *mut _gpgme_import_status,
|
|
|
|
|
pub fpr: *mut ::std::os::raw::c_char,
|
|
|
|
@ -3406,7 +3406,7 @@ fn bindgen_test_layout__gpgme_import_status() {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_import_status_t = *mut _gpgme_import_status;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_import_result {
|
|
|
|
|
pub considered: ::std::os::raw::c_int,
|
|
|
|
|
pub no_user_id: ::std::os::raw::c_int,
|
|
|
|
@ -3677,7 +3677,7 @@ pub type gpgme_op_export_keys = extern "C" fn(
|
|
|
|
|
keydata: gpgme_data_t,
|
|
|
|
|
) -> gpgme_error_t;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_genkey_result {
|
|
|
|
|
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
|
|
|
|
|
pub fpr: *mut ::std::os::raw::c_char,
|
|
|
|
@ -3943,7 +3943,7 @@ pub type gpgme_op_tofu_policy =
|
|
|
|
|
extern "C" fn(ctx: gpgme_ctx_t, key: gpgme_key_t, policy: gpgme_tofu_policy_t) -> gpgme_error_t;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[repr(align(4))]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_keylist_result {
|
|
|
|
|
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
|
|
|
|
|
}
|
|
|
|
@ -4033,7 +4033,7 @@ pub type gpgme_op_passwd = extern "C" fn(
|
|
|
|
|
flags: ::std::os::raw::c_uint,
|
|
|
|
|
) -> gpgme_error_t;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_trust_item {
|
|
|
|
|
pub _refs: ::std::os::raw::c_uint,
|
|
|
|
|
pub keyid: *mut ::std::os::raw::c_char,
|
|
|
|
@ -4243,7 +4243,7 @@ pub type gpgme_op_assuan_transact_ext = extern "C" fn(
|
|
|
|
|
op_err: *mut gpgme_error_t,
|
|
|
|
|
) -> gpgme_error_t;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_vfs_mount_result {
|
|
|
|
|
pub mount_dir: *mut ::std::os::raw::c_char,
|
|
|
|
|
}
|
|
|
|
@ -4307,14 +4307,14 @@ pub const gpgme_conf_type_t_GPGME_CONF_SEC_KEY: gpgme_conf_type_t = 36;
|
|
|
|
|
pub const gpgme_conf_type_t_GPGME_CONF_ALIAS_LIST: gpgme_conf_type_t = 37;
|
|
|
|
|
pub type gpgme_conf_type_t = u32;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy)]
|
|
|
|
|
pub struct gpgme_conf_arg {
|
|
|
|
|
pub next: *mut gpgme_conf_arg,
|
|
|
|
|
pub no_arg: ::std::os::raw::c_uint,
|
|
|
|
|
pub value: gpgme_conf_arg__bindgen_ty_1,
|
|
|
|
|
}
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy)]
|
|
|
|
|
pub union gpgme_conf_arg__bindgen_ty_1 {
|
|
|
|
|
pub count: ::std::os::raw::c_uint,
|
|
|
|
|
pub uint32: ::std::os::raw::c_uint,
|
|
|
|
@ -4430,7 +4430,7 @@ fn bindgen_test_layout_gpgme_conf_arg() {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_conf_arg_t = *mut gpgme_conf_arg;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct gpgme_conf_opt {
|
|
|
|
|
pub next: *mut gpgme_conf_opt,
|
|
|
|
|
pub name: *mut ::std::os::raw::c_char,
|
|
|
|
@ -4629,7 +4629,7 @@ fn bindgen_test_layout_gpgme_conf_opt() {
|
|
|
|
|
}
|
|
|
|
|
pub type gpgme_conf_opt_t = *mut gpgme_conf_opt;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct gpgme_conf_comp {
|
|
|
|
|
pub next: *mut gpgme_conf_comp,
|
|
|
|
|
pub _last_opt_p: *mut gpgme_conf_opt_t,
|
|
|
|
@ -4735,7 +4735,7 @@ pub type gpgme_op_conf_dir = extern "C" fn(
|
|
|
|
|
result: *mut *mut ::std::os::raw::c_char,
|
|
|
|
|
) -> gpgme_error_t;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_query_swdb_result {
|
|
|
|
|
pub next: *mut _gpgme_op_query_swdb_result,
|
|
|
|
|
pub name: *mut ::std::os::raw::c_char,
|
|
|
|
@ -5283,7 +5283,7 @@ pub type gpgme_trust_item_get_int_attr = extern "C" fn(
|
|
|
|
|
idx: ::std::os::raw::c_int,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct _gpgme_op_assuan_result {
|
|
|
|
|
pub err: gpgme_error_t,
|
|
|
|
|
}
|
|
|
|
@ -5359,7 +5359,7 @@ pub type GpgmeTrustItem = gpgme_trust_item_t;
|
|
|
|
|
pub use self::gpgme_status_code_t as GpgmeStatusCode;
|
|
|
|
|
pub type __builtin_va_list = [__va_list_tag; 1usize];
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
|
pub struct __va_list_tag {
|
|
|
|
|
pub gp_offset: ::std::os::raw::c_uint,
|
|
|
|
|
pub fp_offset: ::std::os::raw::c_uint,
|
|
|
|
|