[librsvg/wip/aruiz/rust-pixbuf-loader] pixbuf-loader: use gboolean instead of custom c_bool type alias



commit 5d503c53c6baa4e586d0ccc79ec9b2fe09fba79b
Author: Alberto Ruiz <aruiz redhat com>
Date:   Fri Aug 5 22:07:58 2022 +0100

    pixbuf-loader: use gboolean instead of custom c_bool type alias

 gdk-pixbuf-loader/src/lib.rs | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gdk-pixbuf-loader/src/lib.rs b/gdk-pixbuf-loader/src/lib.rs
index ebbbedd1f..2e2c4b68c 100644
--- a/gdk-pixbuf-loader/src/lib.rs
+++ b/gdk-pixbuf-loader/src/lib.rs
@@ -6,7 +6,7 @@ use gdk_pixbuf_sys::{
     GDK_PIXBUF_FORMAT_THREADSAFE,
 };
 
-use glib_sys::GError;
+use glib_sys::{GError, gboolean};
 use gobject_sys::GObject;
 use libc::{c_char, c_int, c_uint};
 
@@ -15,9 +15,6 @@ use gio::MemoryInputStream;
 use glib::Bytes;
 use librsvg::Loader;
 
-#[allow(non_camel_case_types)]
-type c_bool = c_int;
-
 use cstr::cstr;
 
 struct SvgContext {
@@ -58,7 +55,7 @@ unsafe extern "C" fn load_increment(
     buffer: *const u8,
     size: c_uint,
     error: *mut *mut GError,
-) -> c_bool {
+) -> gboolean {
     if error != null_mut() {
         *error = null_mut();
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]