[farsight2/master] Add FS_ERROR_IS_FATAL macro
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:24:13 PST 2008
---
docs/libs/farsight2-libs-sections.txt | 1 +
gst-libs/gst/farsight/fs-conference-iface.h | 12 ++++++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/docs/libs/farsight2-libs-sections.txt b/docs/libs/farsight2-libs-sections.txt
index 12664f0..63f6aaf 100644
--- a/docs/libs/farsight2-libs-sections.txt
+++ b/docs/libs/farsight2-libs-sections.txt
@@ -74,6 +74,7 @@ fs_conference_new_session
fs_conference_new_participant
FS_ERROR
FsError
+FS_ERROR_IS_FATAL
<SUBSECTION Standard>
FS_CONFERENCE
FS_IS_CONFERENCE
diff --git a/gst-libs/gst/farsight/fs-conference-iface.h b/gst-libs/gst/farsight/fs-conference-iface.h
index c629f16..5517ec8 100644
--- a/gst-libs/gst/farsight/fs-conference-iface.h
+++ b/gst-libs/gst/farsight/fs-conference-iface.h
@@ -131,6 +131,18 @@ typedef enum {
#define FS_ERROR (fs_error_quark ())
+/**
+ * FS_ERROR_IS_FATAL:
+ * @error: a #FsError
+ *
+ * Tells the programmer if an error if fatal or not, if it returns %TRUE,
+ * the error is fatal, and the object that created it should
+ * be discarded. It returns %FALSE otherwise.
+ */
+
+#define FS_ERROR_IS_FATAL(error) \
+ (error < 100)
+
GQuark fs_error_quark (void);
/* virtual class function wrappers */
--
1.5.6.5
More information about the farsight-commits
mailing list