]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Remove librsvg-2.0 binding
authorAlistair Thomas <astavale@yahoo.co.uk>
Wed, 13 Dec 2017 15:32:39 +0000 (15:32 +0000)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 13 Dec 2017 16:44:30 +0000 (17:44 +0100)
This binding was upstreamed 19 June 2012. See:
https://git.gnome.org/browse/librsvg/commit/?id=729a3d6b6486faa92c7a56a5a4f5bf04173c8624

https://bugzilla.gnome.org/show_bug.cgi?id=776025

vapi/Makefile.am
vapi/librsvg-2.0.deps [deleted file]
vapi/librsvg-2.0.vapi [deleted file]
vapi/metadata/Rsvg-2.0-custom.vala [deleted file]
vapi/metadata/Rsvg-2.0.metadata [deleted file]

index 53d3cd49870066d572cdca94f0cdfc11d63be14d..a2550d1729fd02347ac4e026a2def493a44b4e89 100644 (file)
@@ -227,8 +227,6 @@ dist_vapi_DATA = \
        libpeas-gtk-1.0.deps \
        libpeas-gtk-1.0.vapi \
        libpq.vapi \
-       librsvg-2.0.vapi \
-       librsvg-2.0.deps \
        libsexy.deps \
        libsexy.vapi \
        libsoup-2.2.vapi \
@@ -763,9 +761,6 @@ libpeas-1.0:
 libpeas-gtk-1.0:
        $(GENVAPI) --library $(srcdir)/libpeas-gtk-1.0 --pkg libpeas-1.0 --pkg gtk+-3.0 --metadatadir $(METADATADIR) $(GIRDIR)/PeasGtk-1.0.gir
 
-librsvg-2.0:
-       $(GENVAPI) --library $(srcdir)/librsvg-2.0 --pkg gdk-pixbuf-2.0 --pkg gio-2.0 --metadatadir $(METADATADIR) $(METADATADIR)/Rsvg-2.0-custom.vala $(GIRDIR)/Rsvg-2.0.gir
-
 libsexy:
        $(GENVAPI) --library $(srcdir)/libsexy $(PACKAGESDIR)/libsexy/libsexy.gi
 
diff --git a/vapi/librsvg-2.0.deps b/vapi/librsvg-2.0.deps
deleted file mode 100644 (file)
index 4cbbfb4..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-pango
-cairo
-gio-2.0
-gdk-pixbuf-2.0
diff --git a/vapi/librsvg-2.0.vapi b/vapi/librsvg-2.0.vapi
deleted file mode 100644 (file)
index e163805..0000000
+++ /dev/null
@@ -1,160 +0,0 @@
-/* librsvg-2.0.vapi generated by vapigen, do not modify. */
-
-[CCode (cprefix = "Rsvg", gir_namespace = "Rsvg", gir_version = "2.0", lower_case_cprefix = "rsvg_")]
-[Version (deprecated = true, deprecated_since = "2.36.2", replacement = "bindings distributed with librsvg-2.0")]
-namespace Rsvg {
-       namespace Version {
-               [CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_MAJOR_VERSION")]
-               public const int MAJOR;
-               [CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_MICRO_VERSION")]
-               public const int MICRO;
-               [CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_MINOR_VERSION")]
-               public const int MINOR;
-               [CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_VERSION")]
-               public const string STRING;
-               [CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_CHECK_VERSION")]
-               public static bool check (int major, int minor, int micro);
-       }
-       [CCode (cheader_filename = "librsvg/rsvg.h", type_id = "rsvg_handle_get_type ()")]
-       public class Handle : GLib.Object {
-               [CCode (has_construct_function = false)]
-               public Handle ();
-               public bool close () throws GLib.Error;
-               [Version (replacement = "GLib.Object.unref")]
-               public void free ();
-               [CCode (has_construct_function = false)]
-               [Version (since = "2.14")]
-               public Handle.from_data ([CCode (array_length_cname = "data_len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data) throws GLib.Error;
-               [CCode (has_construct_function = false)]
-               [Version (since = "2.14")]
-               public Handle.from_file (string file_name) throws GLib.Error;
-               [CCode (has_construct_function = false)]
-               [Version (since = "2.32")]
-               public Handle.from_gfile_sync (GLib.File file, Rsvg.HandleFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               [CCode (has_construct_function = false)]
-               [Version (since = "2.32")]
-               public Handle.from_stream_sync (GLib.InputStream input_stream, GLib.File? base_file, Rsvg.HandleFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               [Version (since = "2.8")]
-               public unowned string get_base_uri ();
-               [Version (deprecated_since = "2.36")]
-               public unowned string get_desc ();
-               [Version (since = "2.14")]
-               public Rsvg.DimensionData get_dimensions ();
-               [Version (since = "2.22")]
-               public bool get_dimensions_sub (out Rsvg.DimensionData dimension_data, string? id);
-               [Version (deprecated_since = "2.36")]
-               public unowned string get_metadata ();
-               public Gdk.Pixbuf? get_pixbuf ();
-               [Version (since = "2.14")]
-               public Gdk.Pixbuf? get_pixbuf_sub (string? id);
-               [Version (since = "2.22")]
-               public bool get_position_sub (out Rsvg.PositionData position_data, string id);
-               [Version (deprecated_since = "2.36")]
-               public unowned string get_title ();
-               [Version (since = "2.22")]
-               public bool has_sub (string id);
-               public void internal_set_testing (bool testing);
-               [Version (since = "2.32")]
-               public bool read_stream_sync (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               [Version (since = "2.14")]
-               public bool render_cairo (Cairo.Context cr);
-               [Version (since = "2.14")]
-               public bool render_cairo_sub (Cairo.Context cr, string? id);
-               [Version (since = "2.32")]
-               public void set_base_gfile (GLib.File base_file);
-               [Version (since = "2.9")]
-               public void set_base_uri (string base_uri);
-               [Version (since = "2.8")]
-               public void set_dpi (double dpi);
-               [Version (since = "2.8")]
-               public void set_dpi_x_y (double dpi_x, double dpi_y);
-               [Version (replacement = "render_cairo")]
-               public void set_size_callback (owned Rsvg.SizeFunc size_func);
-               [CCode (has_construct_function = false)]
-               [Version (since = "2.36")]
-               public Handle.with_flags (Rsvg.HandleFlags flags);
-               public bool write ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
-               public string base_uri { get; set construct; }
-               [NoAccessorMethod]
-               [Version (deprecated = true, deprecated_since = "2.36")]
-               public string desc { owned get; }
-               [NoAccessorMethod]
-               public double dpi_x { get; set construct; }
-               [NoAccessorMethod]
-               public double dpi_y { get; set construct; }
-               [NoAccessorMethod]
-               public double em { get; }
-               [NoAccessorMethod]
-               public double ex { get; }
-               [NoAccessorMethod]
-               [Version (since = "2.36")]
-               public Rsvg.HandleFlags flags { get; construct; }
-               [NoAccessorMethod]
-               public int height { get; }
-               [NoAccessorMethod]
-               [Version (deprecated = true, deprecated_since = "2.36")]
-               public string metadata { owned get; }
-               [NoAccessorMethod]
-               [Version (deprecated = true, deprecated_since = "2.36")]
-               public string title { owned get; }
-               [NoAccessorMethod]
-               public int width { get; }
-       }
-       [CCode (cheader_filename = "librsvg/rsvg.h", has_type_id = false)]
-       public struct DimensionData {
-               public int width;
-               public int height;
-               public double em;
-               public double ex;
-       }
-       [CCode (cheader_filename = "librsvg/rsvg.h", has_type_id = false)]
-       public struct PositionData {
-               public int x;
-               public int y;
-       }
-       [CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_HANDLE_", type_id = "rsvg_handle_flags_get_type ()")]
-       [Flags]
-       public enum HandleFlags {
-               FLAGS_NONE,
-               FLAG_UNLIMITED,
-               FLAG_KEEP_IMAGE_DATA
-       }
-       [CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_ERROR_")]
-       public errordomain Error {
-               FAILED;
-               public static GLib.Quark quark ();
-       }
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (deprecated = true)]
-       public delegate void SizeFunc (ref int width, ref int height);
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (since = "2.36")]
-       public static void cleanup ();
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (deprecated_since = "2.36")]
-       public static void init ();
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file_at_max_size (string file_name, int max_width, int max_height) throws GLib.Error;
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file_at_zoom (string file_name, double x_zoom, double y_zoom) throws GLib.Error;
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file_at_zoom_with_max (string file_name, double x_zoom, double y_zoom, int max_width, int max_height) throws GLib.Error;
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (since = "2.8")]
-       public static void set_default_dpi (double dpi);
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (since = "2.8")]
-       public static void set_default_dpi_x_y (double dpi_x, double dpi_y);
-       [CCode (cheader_filename = "librsvg/rsvg.h")]
-       [Version (deprecated_since = "2.36")]
-       public static void term ();
-}
diff --git a/vapi/metadata/Rsvg-2.0-custom.vala b/vapi/metadata/Rsvg-2.0-custom.vala
deleted file mode 100644 (file)
index 9210a11..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-namespace Rsvg {
-       public class Handle : GLib.Object {
-               [Version (deprecated_since = "2.36")]
-               public unowned string get_desc ();
-               [Version (replacement = "GLib.Object.unref")]
-               public void free ();
-               [Version (replacement = "render_cairo")]
-               public void set_size_callback (owned Rsvg.SizeFunc size_func);
-               [Version (deprecated_since = "2.36")]
-               public unowned string get_title ();
-               [Version (deprecated_since = "2.36")]
-               public unowned string get_metadata ();
-       }
-
-       namespace Version {
-               [CCode (cname = "LIBRSVG_CHECK_VERSION")]
-               public static bool check (int major, int minor, int micro);
-       }
-
-       [Version (deprecated = true)]
-       public delegate void SizeFunc (ref int width, ref int height);
-
-       [Version (deprecated_since = "2.36")]
-       public static void init ();
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file_at_max_size (string file_name, int max_width, int max_height) throws GLib.Error;
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file_at_zoom (string file_name, double x_zoom, double y_zoom) throws GLib.Error;
-       [Version (deprecated = true)]
-       public static Gdk.Pixbuf pixbuf_from_file_at_zoom_with_max (string file_name, double x_zoom, double y_zoom, int max_width, int max_height) throws GLib.Error;
-       [Version (deprecated_since = "2.36")]
-       public static void term ();
-}
diff --git a/vapi/metadata/Rsvg-2.0.metadata b/vapi/metadata/Rsvg-2.0.metadata
deleted file mode 100644 (file)
index 32cf9b6..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-Rsvg deprecated_since="2.36.2" replacement="bindings distributed with librsvg-2.0"
-
-*_VERSION parent="Rsvg.Version" name="(.+)_VERSION"
-VERSION parent="Rsvg.Version" name="STRING"