[rhythmbox] python: add bindings for rb_source_add_uri and rb_source_want_uri
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] python: add bindings for rb_source_add_uri and rb_source_want_uri
- Date: Wed, 26 May 2010 09:43:45 +0000 (UTC)
commit a69f20cebe986ac172217e681cb9708f6bc38963
Author: Matt Novenstern <fisxoj gmail com>
Date: Wed May 26 19:41:34 2010 +1000
python: add bindings for rb_source_add_uri and rb_source_want_uri
bindings/python/rb.defs | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/bindings/python/rb.defs b/bindings/python/rb.defs
index 3846108..0aa27d0 100644
--- a/bindings/python/rb.defs
+++ b/bindings/python/rb.defs
@@ -1180,6 +1180,25 @@
)
)
+(define-method want_uri
+ (of-object "RBSource")
+ (c-name "rb_source_want_uri")
+ (return-type "guint")
+ (parameters
+ '("const-char*" "uri")
+ )
+)
+
+(define-method add_uri
+ (of-object "RBSource")
+ (c-name "rb_source_add_uri")
+ (return-type "gboolean")
+ (parameters
+ '("const-char*" "uri")
+ '("const-char*" "title")
+ '("const-char*" "genre")
+ )
+)
(define-virtual impl_get_status
(of-object "RBSource")
@@ -1368,6 +1387,23 @@
(return-type "char*")
)
+(define-virtual impl_want_uri
+ (of-object "RBSource")
+ (return-type "guint")
+ (parameters
+ '("const-char*" "uri")
+ )
+)
+
+(define-virtual impl_add_uri
+ (of-object "RBSource")
+ (return-type "gboolean")
+ (parameters
+ '("const-char*" "uri")
+ '("const-char*" "title" (null-ok))
+ '("const-char*" "genre" (null-ok))
+ )
+)
;; From ../../sources/rb-sourcelist.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]