[rhythmbox] vala: update rb.vapi to current standards, add a few methods (bug #619907)



commit e1b4f6cdcc0d2946a9d545a4316d77ece3437634
Author: Sean McNamara <smcnam gmail com>
Date:   Sat May 29 23:56:46 2010 +1000

    vala: update rb.vapi to current standards, add a few methods (bug #619907)

 bindings/vala/rb.vapi |   74 +++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 65 insertions(+), 9 deletions(-)
---
diff --git a/bindings/vala/rb.vapi b/bindings/vala/rb.vapi
index 6487286..c23ee77 100644
--- a/bindings/vala/rb.vapi
+++ b/bindings/vala/rb.vapi
@@ -4,34 +4,90 @@
 namespace RB {
 	[CCode (cheader_filename = "rb-shell.h")]
 	public class Shell {
-		[NoArrayLength]
+		[CCode (array_length = false)]
 		[CCode (cname = "rb_shell_get_type")]
 		public static GLib.Type get_type ();
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_shell_get_player")]
+		public unowned ShellPlayer get_player ();
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_shell_get_ui_manager")]
+		public unowned GLib.Object get_ui_manager();
 	}
 
 	[CCode (cheader_filename = "rb-plugin.h")]
 	public abstract class Plugin : GLib.Object {
-		[NoArrayLength]
+		[CCode (array_length = false)]
 		[CCode (cname = "rb_plugin_get_type")]
 		public static GLib.Type get_type ();
 
-		[NoArrayLength]
+		[CCode (array_length = false)]
 		[CCode (cname = "rb_plugin_activate")]
 		public abstract void activate (RB.Shell shell);
-		[NoArrayLength]
+
+		[CCode (array_length = false)]
 		[CCode (cname = "rb_plugin_deactivate")]
 		public abstract void deactivate (RB.Shell shell);
 
-		[NoArrayLength]
+		[CCode (array_length = false)]
 		[CCode (cname = "rb_plugin_is_configurable")]
 		public virtual bool is_configurable ();
-		[NoArrayLength]
+
+		[CCode (array_length = false)]
 		[CCode (cname = "rb_plugin_create_configure_dialog")]
 		public virtual Gtk.Widget create_configure_dialog ();
-		
-		[NoArrayLength]
+
+		[CCode (array_length = false)]
 		[CCode (cname = "rb_plugin_find_file")]
-		public virtual weak string find_file (string file);
+		public virtual unowned string find_file (string file);
+	}
+
+	[CCode (cheader_filename = "rb-player-gst-filter.h")]
+	public interface PlayerGstFilter : GLib.Object {
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_player_gst_filter_add_filter")]
+		public virtual bool add_filter(Gst.Element e);
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_player_gst_filter_remove_filter")]
+		public virtual bool remove_filter(Gst.Element e);
+	}
+
+	[NoCompact, CCode (cheader_filename = "rb-shell-player.h")]
+	public class ShellPlayer : Gtk.HBox {
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_shell_player_pause")]
+		public bool pause(ref GLib.Error? err = null);
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_shell_player_play")]
+		public bool play(ref GLib.Error? err = null);
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_shell_player_stop")]
+		public bool stop();
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_shell_player_get_playing")]
+		public bool get_playing(ref bool playing, ref GLib.Error? err = null);
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_shell_player_do_next")]
+		public bool do_next(ref GLib.Error? err = null);
+
+		[CCode (array_length = false)]
+		[CCode (cname = "rb_shell_player_do_previous")]
+		public bool do_previous(ref GLib.Error? err = null);
+
+		public virtual signal void playing_changed(bool playing);
 	}
 
+	[CCode (cheader_filename = "rb-player.h")]
+	public interface Player : GLib.Object {
+		[CCode (cname = "rb_player_opened")]
+		public bool opened();
+	}
 }



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