[farsight2/master] Add new functions to the python bindings
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:59 PST 2008
---
python/pyfarsight-filter.defs | 7 -------
python/pyfarsight.defs | 31 ++++++++++++++++++++++++-------
python/pyfarsight.override | 1 +
3 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/python/pyfarsight-filter.defs b/python/pyfarsight-filter.defs
index b6b7f23..6b8d253 100644
--- a/python/pyfarsight-filter.defs
+++ b/python/pyfarsight-filter.defs
@@ -20,10 +20,3 @@
(copy-func fs_candidate_copy)
(release-func fs_candidate_destroy)
)
-
-
-(define-function fs_candidate_new
- (c-name "fs_candidate_new")
- (is-constructor-of "FsCandidate")
- (return-type "FsCandidate*")
-)
diff --git a/python/pyfarsight.defs b/python/pyfarsight.defs
index 7f879b2..b77841d 100644
--- a/python/pyfarsight.defs
+++ b/python/pyfarsight.defs
@@ -20,13 +20,6 @@
(copy-func fs_candidate_copy)
(release-func fs_candidate_destroy)
)
-
-
-(define-function fs_candidate_new
- (c-name "fs_candidate_new")
- (is-constructor-of "FsCandidate")
- (return-type "FsCandidate*")
-)
;; -*- scheme -*-
; object definitions ...
;; Enumerations and flags ...
@@ -146,6 +139,7 @@
'("srflx" "FS_CANDIDATE_TYPE_SRFLX")
'("prflx" "FS_CANDIDATE_TYPE_PRFLX")
'("relay" "FS_CANDIDATE_TYPE_RELAY")
+ '("multicast" "FS_CANDIDATE_TYPE_MULTICAST")
)
)
@@ -228,6 +222,19 @@
)
)
+(define-function fs_candidate_new
+ (c-name "fs_candidate_new")
+ (is-constructor-of "FsCandidate")
+ (return-type "FsCandidate*")
+ (parameters
+ '("const-gchar*" "id")
+ '("FsCandidateType" "type")
+ '("FsNetworkProtocol" "proto")
+ '("const-gchar*" "ip")
+ '("guint" "port")
+ )
+)
+
;; -*- scheme -*-
; object definitions ...
@@ -502,6 +509,16 @@
)
)
+(define-method emit_src_pad_added
+ (of-object "FsStream")
+ (c-name "fs_stream_emit_src_pad_added")
+ (return-type "none")
+ (parameters
+ '("GstPad*" "ghostpad")
+ '("FsCodec*" "codec")
+ )
+)
+
;; -*- scheme -*-
; object definitions ...
diff --git a/python/pyfarsight.override b/python/pyfarsight.override
index 483d743..51bfdba 100644
--- a/python/pyfarsight.override
+++ b/python/pyfarsight.override
@@ -116,6 +116,7 @@ ignore
fs_candidate_get_by_id
%%
import gobject.GObject as PyGObject_Type
+import gst.Pad as PyGstPad_Type
%%
init
pyg_register_gtype_custom (FS_TYPE_CODEC_LIST,
--
1.5.6.5
More information about the farsight-commits
mailing list