[librsvg] drawing_ctx::state_free() - Bind rsvg_state_free() for Rust
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] drawing_ctx::state_free() - Bind rsvg_state_free() for Rust
- Date: Wed, 31 May 2017 23:38:31 +0000 (UTC)
commit 8b39e54bef7b1d40cf5d72bc04bce31382f59419
Author: Federico Mena Quintero <federico gnome org>
Date: Wed May 31 16:22:01 2017 -0500
drawing_ctx::state_free() - Bind rsvg_state_free() for Rust
rust/src/drawing_ctx.rs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/rust/src/drawing_ctx.rs b/rust/src/drawing_ctx.rs
index eaeb333..a332ca5 100644
--- a/rust/src/drawing_ctx.rs
+++ b/rust/src/drawing_ctx.rs
@@ -60,6 +60,7 @@ extern "C" {
fn rsvg_current_state (draw_ctx: *const RsvgDrawingCtx) -> *mut RsvgState;
fn rsvg_state_new () -> *mut RsvgState;
+ fn rsvg_state_free (state: *mut RsvgState);
fn rsvg_state_reinit (state: *mut RsvgState);
fn rsvg_state_reconstruct (state: *mut RsvgState, node: *const RsvgNode);
fn rsvg_state_is_overflow (state: *const RsvgState) -> glib_sys::gboolean;
@@ -207,6 +208,10 @@ pub fn state_new () -> *mut RsvgState {
unsafe { rsvg_state_new () }
}
+pub fn state_free (state: *mut RsvgState) {
+ unsafe { rsvg_state_free (state); }
+}
+
pub fn state_reinit (state: *mut RsvgState) {
unsafe { rsvg_state_reinit (state); }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]