summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-01-26 19:25:27 +0000
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-01-26 19:25:27 +0000
commit0ea52823daa16ec80b201de0b4d2a1c950f79991 (patch)
tree6f8ba50c79b1406fcc9204bdf7171b65be943549 /python
parent6459abfdb57a532c177083491426c81556f19d11 (diff)
Freshly autogenerated bindings
Diffstat (limited to 'python')
-rw-r--r--python/pytpfarsight.defs62
1 files changed, 41 insertions, 21 deletions
diff --git a/python/pytpfarsight.defs b/python/pytpfarsight.defs
index 1a17dd2..b992d3e 100644
--- a/python/pytpfarsight.defs
+++ b/python/pytpfarsight.defs
@@ -5,6 +5,13 @@
(gtype-id "TF_TYPE_CHANNEL")
)
+(define-object Content
+ (in-module "Tf")
+ (parent "GObject")
+ (c-name "TfContent")
+ (gtype-id "TF_TYPE_CONTENT")
+)
+
(define-object Stream
(in-module "Tf")
(parent "GObject")
@@ -12,23 +19,21 @@
(gtype-id "TF_TYPE_STREAM")
)
-(define-function tf_channel_new
- (c-name "tf_channel_new")
- (is-constructor-of "TfChannel")
- (return-type "TfChannel*")
- (parameters
+(define-function tf_channel_new_async
+ (c-name "tf_channel_new_async")
+ (return-type "none")
+ (parameters
'("const-gchar*" "connection_busname")
'("const-gchar*" "connection_path")
'("const-gchar*" "channel_path")
- )
+ '("GAsyncReadyCallback" "callback")
+ )
)
-
;; Overide these because TpMediaStreamError is not a real GObject enum
;
; Can we directly override it instead ?
-
(define-method error
(of-object "TfChannel")
(c-name "tf_channel_error")
@@ -61,31 +66,46 @@
(return-type "GType")
)
-(define-method lookup_stream
+(define-method bus_message
(of-object "TfChannel")
- (c-name "tf_channel_lookup_stream")
- (return-type "TfStream*")
+ (c-name "tf_channel_bus_message")
+ (return-type "gboolean")
(parameters
- '("guint" "stream_id")
+ '("GstMessage*" "message")
)
)
-(define-method foreach_stream
- (of-object "TfChannel")
- (c-name "tf_channel_foreach_stream")
+
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From content.h
+
+(define-function tf_content_get_type
+ (c-name "tf_content_get_type")
+ (return-type "GType")
+)
+
+(define-method error
+ (of-object "TfContent")
+ (c-name "tf_content_error")
(return-type "none")
(parameters
- '("TfChannelStreamFunc" "func")
- '("gpointer" "user_data")
+ '("guint" "reason")
+ '("const-gchar*" "detailed_reason")
+ '("const-gchar*" "message")
)
)
-(define-method bus_message
- (of-object "TfChannel")
- (c-name "tf_channel_bus_message")
+(define-method set_codec_preferences
+ (of-object "TfContent")
+ (c-name "tf_content_set_codec_preferences")
(return-type "gboolean")
(parameters
- '("GstMessage*" "message")
+ '("GList*" "codec_preferences")
+ '("GError**" "error")
)
)