[vala] librsvg-2.0: make DimensionData a struct, regenerate bindings



commit 1c8740642f759e82eb936af88a89ab310b9e3e12
Author: Jaap A. Haitsma <jaap haitsma org>
Date:   Sat Jul 18 10:56:27 2009 +0200

    librsvg-2.0: make DimensionData a struct, regenerate bindings
    
    Patch by Evan Nemerson <evan polussystems com>
    Fixes bug #588652

 vapi/librsvg-2.0.vapi                          |   29 ++++++++++----
 vapi/packages/librsvg-2.0/librsvg-2.0.gi       |   48 +++++++++++++++--------
 vapi/packages/librsvg-2.0/librsvg-2.0.metadata |    6 ++-
 3 files changed, 56 insertions(+), 27 deletions(-)
---
diff --git a/vapi/librsvg-2.0.vapi b/vapi/librsvg-2.0.vapi
index 2a7de27..838af79 100644
--- a/vapi/librsvg-2.0.vapi
+++ b/vapi/librsvg-2.0.vapi
@@ -1,15 +1,7 @@
-/* librsvg-2.0.vapi generated by vapigen, do not modify. */
+/* librsvg-2.0.vapi generated by lt-vapigen, do not modify. */
 
 [CCode (cprefix = "Rsvg", lower_case_cprefix = "rsvg_")]
 namespace Rsvg {
-	[Compact]
-	[CCode (cheader_filename = "librsvg/rsvg.h")]
-	public class DimensionData {
-		public double em;
-		public double ex;
-		public int height;
-		public int width;
-	}
 	[CCode (cheader_filename = "librsvg/rsvg.h")]
 	public class Handle : GLib.Object {
 		public bool close () throws GLib.Error;
@@ -21,10 +13,13 @@ namespace Rsvg {
 		public unowned string get_base_uri ();
 		public unowned string get_desc ();
 		public void get_dimensions (Rsvg.DimensionData dimension_data);
+		public bool get_dimensions_sub (ref Rsvg.DimensionData dimension_data, string id);
 		public unowned string get_metadata ();
 		public unowned Gdk.Pixbuf get_pixbuf ();
 		public unowned Gdk.Pixbuf get_pixbuf_sub (string id);
+		public bool get_position_sub (ref Rsvg.PositionData position_data, string id);
 		public unowned string get_title ();
+		public bool has_sub (string id);
 		[CCode (has_construct_function = false)]
 		public Handle ();
 		public bool render_cairo (Cairo.Context cr);
@@ -51,6 +46,18 @@ namespace Rsvg {
 		[NoAccessorMethod]
 		public int width { get; }
 	}
+	[CCode (cheader_filename = "librsvg/rsvg.h")]
+	public struct DimensionData {
+		public int width;
+		public int height;
+		public double em;
+		public double ex;
+	}
+	[CCode (cheader_filename = "librsvg/rsvg.h")]
+	public struct PositionData {
+		public int x;
+		public int y;
+	}
 	[CCode (cprefix = "RSVG_ERROR_", cheader_filename = "librsvg/rsvg.h")]
 	public enum Error {
 		FAILED
@@ -60,6 +67,10 @@ namespace Rsvg {
 	[CCode (cheader_filename = "librsvg/rsvg.h")]
 	public const int LIBRSVG_FEATURES_H;
 	[CCode (cheader_filename = "librsvg/rsvg.h")]
+	public const int LIBRSVG_HAVE_CSS;
+	[CCode (cheader_filename = "librsvg/rsvg.h")]
+	public const int LIBRSVG_HAVE_SVGZ;
+	[CCode (cheader_filename = "librsvg/rsvg.h")]
 	public const int LIBRSVG_MAJOR_VERSION;
 	[CCode (cheader_filename = "librsvg/rsvg.h")]
 	public const int LIBRSVG_MICRO_VERSION;
diff --git a/vapi/packages/librsvg-2.0/librsvg-2.0.gi b/vapi/packages/librsvg-2.0/librsvg-2.0.gi
index 0387789..272a604 100644
--- a/vapi/packages/librsvg-2.0/librsvg-2.0.gi
+++ b/vapi/packages/librsvg-2.0/librsvg-2.0.gi
@@ -96,6 +96,10 @@
 			<field name="em" type="gdouble"/>
 			<field name="ex" type="gdouble"/>
 		</struct>
+		<struct name="RsvgPositionData">
+			<field name="x" type="int"/>
+			<field name="y" type="int"/>
+		</struct>
 		<enum name="RsvgError" type-name="RsvgError" get-type="rsvg_error_get_type">
 			<member name="RSVG_ERROR_FAILED" value="0"/>
 		</enum>
@@ -132,6 +136,14 @@
 					<parameter name="dimension_data" type="RsvgDimensionData*"/>
 				</parameters>
 			</method>
+			<method name="get_dimensions_sub" symbol="rsvg_handle_get_dimensions_sub">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="handle" type="RsvgHandle*"/>
+					<parameter name="dimension_data" type="RsvgDimensionData*"/>
+					<parameter name="id" type="char*"/>
+				</parameters>
+			</method>
 			<method name="get_metadata" symbol="rsvg_handle_get_metadata">
 				<return-type type="char*"/>
 				<parameters>
@@ -151,12 +163,27 @@
 					<parameter name="id" type="char*"/>
 				</parameters>
 			</method>
+			<method name="get_position_sub" symbol="rsvg_handle_get_position_sub">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="handle" type="RsvgHandle*"/>
+					<parameter name="position_data" type="RsvgPositionData*"/>
+					<parameter name="id" type="char*"/>
+				</parameters>
+			</method>
 			<method name="get_title" symbol="rsvg_handle_get_title">
 				<return-type type="char*"/>
 				<parameters>
 					<parameter name="handle" type="RsvgHandle*"/>
 				</parameters>
 			</method>
+			<method name="has_sub" symbol="rsvg_handle_has_sub">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="handle" type="RsvgHandle*"/>
+					<parameter name="id" type="char*"/>
+				</parameters>
+			</method>
 			<constructor name="new" symbol="rsvg_handle_new">
 				<return-type type="RsvgHandle*"/>
 			</constructor>
@@ -175,21 +202,6 @@
 					<parameter name="error" type="GError**"/>
 				</parameters>
 			</constructor>
-			<method name="render_cairo" symbol="rsvg_handle_render_cairo">
-				<return-type type="gboolean"/>
-				<parameters>
-					<parameter name="handle" type="RsvgHandle*"/>
-					<parameter name="cr" type="cairo_t*"/>
-				</parameters>
-			</method>
-			<method name="render_cairo_sub" symbol="rsvg_handle_render_cairo_sub">
-				<return-type type="gboolean"/>
-				<parameters>
-					<parameter name="handle" type="RsvgHandle*"/>
-					<parameter name="cr" type="cairo_t*"/>
-					<parameter name="id" type="char*"/>
-				</parameters>
-			</method>
 			<method name="set_base_uri" symbol="rsvg_handle_set_base_uri">
 				<return-type type="void"/>
 				<parameters>
@@ -242,9 +254,11 @@
 			<property name="width" type="gint" readable="1" writable="0" construct="0" construct-only="0"/>
 		</object>
 		<constant name="LIBRSVG_FEATURES_H" type="int" value="1"/>
+		<constant name="LIBRSVG_HAVE_CSS" type="int" value="1"/>
+		<constant name="LIBRSVG_HAVE_SVGZ" type="int" value="1"/>
 		<constant name="LIBRSVG_MAJOR_VERSION" type="int" value="2"/>
-		<constant name="LIBRSVG_MICRO_VERSION" type="int" value="3"/>
-		<constant name="LIBRSVG_MINOR_VERSION" type="int" value="22"/>
+		<constant name="LIBRSVG_MICRO_VERSION" type="int" value="0"/>
+		<constant name="LIBRSVG_MINOR_VERSION" type="int" value="26"/>
 		<constant name="LIBRSVG_VERSION" type="char*" value=""/>
 	</namespace>
 </api>
diff --git a/vapi/packages/librsvg-2.0/librsvg-2.0.metadata b/vapi/packages/librsvg-2.0/librsvg-2.0.metadata
index 5d41e18..ab290c2 100644
--- a/vapi/packages/librsvg-2.0/librsvg-2.0.metadata
+++ b/vapi/packages/librsvg-2.0/librsvg-2.0.metadata
@@ -1,6 +1,10 @@
 Rsvg cheader_filename="librsvg/rsvg.h"
+RsvgDimensionData is_value_type="1" has_type_id="0"
+RsvgPositionData is_value_type="1" has_type_id="0"
 RsvgSizeFunc.width is_ref="1"
 RsvgSizeFunc.height is_ref="1"
+rsvg_handle_get_dimensions_sub.dimension_data is_ref="1"
+rsvg_handle_get_position_sub.position_data is_ref="1"
 rsvg_handle_new_from_data.data is_array="1" no_array_length="1"
 rsvg_handle_set_size_callback.size_func transfer_ownership="1"
-rsvg_handle_set_size_callback.user_data_destroy hidden="1"
+rsvg_handle_set_size_callback.user_data_destroy hidden="1"
\ No newline at end of file



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