[farsight2/master] Add fs_transmitter_emit_error method
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:59 PST 2008
---
docs/libs/farsight2-libs-sections.txt | 1 +
gst-libs/gst/farsight/fs-transmitter.c | 19 +++++++++++++++++++
gst-libs/gst/farsight/fs-transmitter.h | 9 +++++++--
3 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/docs/libs/farsight2-libs-sections.txt b/docs/libs/farsight2-libs-sections.txt
index d5e0844..1042c2a 100644
--- a/docs/libs/farsight2-libs-sections.txt
+++ b/docs/libs/farsight2-libs-sections.txt
@@ -157,6 +157,7 @@ FsTransmitterClass
fs_transmitter_new
fs_transmitter_new_stream_transmitter
fs_transmitter_get_stream_transmitter_type
+fs_transmitter_emit_error
<SUBSECTION Standard>
FS_IS_TRANSMITTER
FS_IS_TRANSMITTER_CLASS
diff --git a/gst-libs/gst/farsight/fs-transmitter.c b/gst-libs/gst/farsight/fs-transmitter.c
index 5cb94c4..98c5981 100644
--- a/gst-libs/gst/farsight/fs-transmitter.c
+++ b/gst-libs/gst/farsight/fs-transmitter.c
@@ -326,3 +326,22 @@ fs_transmitter_get_stream_transmitter_type (FsTransmitter *transmitter,
return 0;
}
+
+
+/**
+ * fs_transmitter_emit_error:
+ * @transmitter: #FsTransmitter on which to emit the error signal
+ * @error_no: The number of the error
+ * @error_msg: Error message to be displayed to user
+ * @debug_msg: Debugging error message
+ *
+ * This function emit the "error" signal on a #FsTransmitter, it should
+ * only be called by subclasses.
+ */
+void
+fs_transmitter_emit_error (FsTransmitter *transmitter,
+ gint error_no, gchar *error_msg, gchar *debug_msg)
+{
+ g_signal_emit (transmitter, signals[ERROR_SIGNAL], 0, error_no,
+ error_msg, debug_msg);
+}
diff --git a/gst-libs/gst/farsight/fs-transmitter.h b/gst-libs/gst/farsight/fs-transmitter.h
index c410689..a07741f 100644
--- a/gst-libs/gst/farsight/fs-transmitter.h
+++ b/gst-libs/gst/farsight/fs-transmitter.h
@@ -108,10 +108,15 @@ FsStreamTransmitter *fs_transmitter_new_stream_transmitter (
FsTransmitter *fs_transmitter_new (const gchar *type, guint components,
GError **error);
-GType
-fs_transmitter_get_stream_transmitter_type (FsTransmitter *transmitter,
+GType fs_transmitter_get_stream_transmitter_type (FsTransmitter *transmitter,
GError **error);
+void fs_transmitter_emit_error (FsTransmitter *transmitter,
+ gint error_no,
+ gchar *error_msg,
+ gchar *debug_msg);
+
+
G_END_DECLS
#endif /* __FS_TRANSMITTER_H__ */
--
1.5.6.5
More information about the farsight-commits
mailing list