)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
-use gio_sys as gio;
-use glib_sys as glib;
-use gobject_sys as gobject;
-
mod manual;
pub use manual::*;
#[allow(unused_imports)]
use libc::{
c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
- intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE,
+ intptr_t, size_t, ssize_t, uintptr_t, FILE,
};
#[allow(unused_imports)]
>;
// Records
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeAsyncProgressClass {
pub parent_class: gobject::GObjectClass,
pub changed: Option<unsafe extern "C" fn(*mut OstreeAsyncProgress, gpointer)>,
}
#[repr(C)]
-pub struct _OstreeBootloader(c_void);
+pub struct _OstreeBootloader {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeBootloader = *mut _OstreeBootloader;
#[repr(C)]
-pub struct _OstreeBootloaderGrub2(c_void);
+pub struct _OstreeBootloaderGrub2 {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeBootloaderGrub2 = *mut _OstreeBootloaderGrub2;
#[repr(C)]
-pub struct _OstreeBootloaderSyslinux(c_void);
+pub struct _OstreeBootloaderSyslinux {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeBootloaderSyslinux = *mut _OstreeBootloaderSyslinux;
#[repr(C)]
-pub struct _OstreeBootloaderUboot(c_void);
+pub struct _OstreeBootloaderUboot {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeBootloaderUboot = *mut _OstreeBootloaderUboot;
#[repr(C)]
-pub struct _OstreeBootloaderZipl(c_void);
+pub struct _OstreeBootloaderZipl {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeBootloaderZipl = *mut _OstreeBootloaderZipl;
#[repr(C)]
-pub struct _OstreeChecksumInputStreamPrivate(c_void);
+pub struct _OstreeChecksumInputStreamPrivate {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeChecksumInputStreamPrivate = *mut _OstreeChecksumInputStreamPrivate;
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeCollectionRef {
pub collection_id: *mut c_char,
pub ref_name: *mut c_char,
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeCommitSizesEntry {
pub checksum: *mut c_char,
pub objtype: OstreeObjectType,
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeContentWriterClass {
pub parent_class: gio::GOutputStreamClass,
}
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeDiffDirsOptions {
pub owner_uid: c_int,
pub owner_gid: c_int,
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeDiffItem {
pub refcount: c_int,
pub src: *mut gio::GFile,
}
#[repr(C)]
-pub struct _OstreeGpgVerifier(c_void);
+pub struct _OstreeGpgVerifier {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeGpgVerifier = *mut _OstreeGpgVerifier;
#[repr(C)]
-pub struct _OstreeKernelArgs(c_void);
+pub struct _OstreeKernelArgs {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeKernelArgs = *mut _OstreeKernelArgs;
#[repr(C)]
-pub struct _OstreeKernelArgsEntry(c_void);
+pub struct _OstreeKernelArgsEntry {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeKernelArgsEntry = *mut _OstreeKernelArgsEntry;
#[repr(C)]
-pub struct _OstreeLibarchiveInputStreamPrivate(c_void);
+pub struct _OstreeLibarchiveInputStreamPrivate {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeLibarchiveInputStreamPrivate = *mut _OstreeLibarchiveInputStreamPrivate;
#[repr(C)]
-pub struct _OstreeLzmaCompressor(c_void);
+pub struct _OstreeLzmaCompressor {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeLzmaCompressor = *mut _OstreeLzmaCompressor;
#[repr(C)]
-pub struct _OstreeLzmaDecompressor(c_void);
+pub struct _OstreeLzmaDecompressor {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeLzmaDecompressor = *mut _OstreeLzmaDecompressor;
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeMutableTreeClass {
pub parent_class: gobject::GObjectClass,
}
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeMutableTreeIter {
pub in_files: gboolean,
pub iter: glib::GHashTableIter,
}
#[repr(C)]
-pub struct OstreeRemote(c_void);
+pub struct OstreeRemote {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRemote {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoCheckoutAtOptions {
pub mode: OstreeRepoCheckoutMode,
pub overwrite_mode: OstreeRepoCheckoutOverwriteMode,
}
#[repr(C)]
-pub struct OstreeRepoCommitModifier(c_void);
+pub struct OstreeRepoCommitModifier {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepoCommitModifier {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoCommitTraverseIter {
pub initialized: gboolean,
pub dummy: [gpointer; 10],
}
#[repr(C)]
-pub struct OstreeRepoDevInoCache(c_void);
+pub struct OstreeRepoDevInoCache {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepoDevInoCache {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoFileClass {
pub parent_class: gobject::GObjectClass,
}
}
#[repr(C)]
-pub struct _OstreeRepoFileEnumerator(c_void);
+pub struct _OstreeRepoFileEnumerator {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
pub type OstreeRepoFileEnumerator = *mut _OstreeRepoFileEnumerator;
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoFinderAvahiClass {
pub parent_class: gobject::GObjectClass,
}
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoFinderConfigClass {
pub parent_class: gobject::GObjectClass,
}
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoFinderInterface {
pub g_iface: gobject::GTypeInterface,
pub resolve_async: Option<
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoFinderMountClass {
pub parent_class: gobject::GObjectClass,
}
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoFinderOverrideClass {
pub parent_class: gobject::GObjectClass,
}
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoFinderResult {
pub remote: *mut OstreeRemote,
pub finder: *mut OstreeRepoFinder,
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoPruneOptions {
pub flags: OstreeRepoPruneFlags,
pub reachable: *mut glib::GHashTable,
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeRepoTransactionStats {
pub metadata_objects_total: c_uint,
pub metadata_objects_written: c_uint,
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeSignInterface {
pub g_iface: gobject::GTypeInterface,
pub get_name: Option<unsafe extern "C" fn(*mut OstreeSign) -> *const c_char>,
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeSysrootDeployTreeOpts {
pub unused_bools: [gboolean; 8],
pub unused_ints: [c_int; 8],
}
}
-#[repr(C)]
#[derive(Copy, Clone)]
+#[repr(C)]
pub struct OstreeSysrootWriteDeploymentsOpts {
pub do_postclean: gboolean,
pub unused_bools: [gboolean; 7],
// Classes
#[repr(C)]
-pub struct OstreeAsyncProgress(c_void);
+pub struct OstreeAsyncProgress {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeAsyncProgress {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeBootconfigParser(c_void);
+pub struct OstreeBootconfigParser {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeBootconfigParser {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeContentWriter(c_void);
+pub struct OstreeContentWriter {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeContentWriter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeDeployment(c_void);
+pub struct OstreeDeployment {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeDeployment {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeGpgVerifyResult(c_void);
+pub struct OstreeGpgVerifyResult {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeGpgVerifyResult {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeMutableTree(c_void);
+pub struct OstreeMutableTree {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeMutableTree {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeRepo(c_void);
+pub struct OstreeRepo {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeRepoFile(c_void);
+pub struct OstreeRepoFile {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepoFile {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeRepoFinderAvahi(c_void);
+pub struct OstreeRepoFinderAvahi {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepoFinderAvahi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeRepoFinderConfig(c_void);
+pub struct OstreeRepoFinderConfig {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepoFinderConfig {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeRepoFinderMount(c_void);
+pub struct OstreeRepoFinderMount {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepoFinderMount {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeRepoFinderOverride(c_void);
+pub struct OstreeRepoFinderOverride {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepoFinderOverride {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeSePolicy(c_void);
+pub struct OstreeSePolicy {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeSePolicy {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeSysroot(c_void);
+pub struct OstreeSysroot {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeSysroot {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeSysrootUpgrader(c_void);
+pub struct OstreeSysrootUpgrader {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeSysrootUpgrader {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
// Interfaces
#[repr(C)]
-pub struct OstreeRepoFinder(c_void);
+pub struct OstreeRepoFinder {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeRepoFinder {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
}
#[repr(C)]
-pub struct OstreeSign(c_void);
+pub struct OstreeSign {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
impl ::std::fmt::Debug for OstreeSign {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {