[librsvg/wip/aruiz/rust-pixbuf-loader] pixbuf-loader: use gboolean instead of c_int



commit 29ac15d78b104551c601aae932e114d797a7c68f
Author: Alberto Ruiz <aruiz redhat com>
Date:   Fri Aug 5 22:24:26 2022 +0100

    pixbuf-loader: use gboolean instead of c_int

 gdk-pixbuf-loader/src/lib.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk-pixbuf-loader/src/lib.rs b/gdk-pixbuf-loader/src/lib.rs
index da46c357d..af94e6612 100644
--- a/gdk-pixbuf-loader/src/lib.rs
+++ b/gdk-pixbuf-loader/src/lib.rs
@@ -9,7 +9,7 @@ use gdk_pixbuf_sys::{
 use glib::translate::IntoGlib;
 use glib_sys::{gboolean, GError};
 use gobject_sys::GObject;
-use libc::{c_char, c_int, c_uint};
+use libc::{c_char, c_uint};
 
 use gio::prelude::MemoryInputStreamExt;
 use gio::MemoryInputStream;
@@ -84,7 +84,7 @@ fn argb_to_rgba(data: &mut Vec<u8>, width: usize, height: usize, stride: usize)
 }
 
 #[no_mangle]
-unsafe extern "C" fn stop_load(user_data: glib_sys::gpointer, error: *mut *mut GError) -> c_int {
+unsafe extern "C" fn stop_load(user_data: glib_sys::gpointer, error: *mut *mut GError) -> gboolean {
     let ctx = Box::from_raw(user_data as *mut SvgContext);
     if error != null_mut() {
         *error = null_mut();


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