[farsight2/master] Add special source class header

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:21:28 PST 2008


---
 gst/fsrtpconference/fs-rtp-special-source.h |   88 +++++++++++++++++++++++++++
 1 files changed, 88 insertions(+), 0 deletions(-)
 create mode 100644 gst/fsrtpconference/fs-rtp-special-source.h

diff --git a/gst/fsrtpconference/fs-rtp-special-source.h b/gst/fsrtpconference/fs-rtp-special-source.h
new file mode 100644
index 0000000..4b106d9
--- /dev/null
+++ b/gst/fsrtpconference/fs-rtp-special-source.h
@@ -0,0 +1,88 @@
+/*
+ * Farsight2 - Farsight RTP Special Source
+ *
+ * Copyright 2007 Collabora Ltd.
+ *  @author: Olivier Crete <olivier.crete at collabora.co.uk>
+ * Copyright 2007 Nokia Corp.
+ *
+ * fs-rtp-substream.h - A Farsight RTP Substream gobject
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
+ */
+
+
+#ifndef __FS_RTP_SPECIAL_SOURCE_H__
+#define __FS_RTP_SPECIAL_SOURCE_H__
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+/* TYPE MACROS */
+#define FS_TYPE_RTP_SPECIAL_SOURCE \
+  (fs_rtp_special_source_get_type())
+#define FS_RTP_SPECIAL_SOURCE(obj) \
+  (G_TYPE_CHECK_INSTANCE_CAST((obj), FS_TYPE_RTP_SPECIAL_SOURCE, \
+      FsRtpSpecialSource))
+#define FS_RTP_SPECIAL_SOURCE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), FS_TYPE_RTP_SPECIAL_SOURCE, \
+     FsRtpSpecialSourceClass))
+#define FS_IS_RTP_SPECIAL_SOURCE(obj) \
+  (G_TYPE_CHECK_INSTANCE_TYPE((obj), FS_TYPE_RTP_SPECIAL_SOURCE))
+#define FS_IS_RTP_SPECIAL_SOURCE_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_TYPE((klass), FS_TYPE_RTP_SPECIAL_SOURCE))
+#define FS_RTP_SPECIAL_SOURCE_GET_CLASS(obj) \
+  (G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_RTP_SPECIAL_SOURCE,   \
+    FsRtpSpecialSourceClass))
+#define FS_RTP_SPECIAL_SOURCE_CAST(obj) ((FsRtpSpecialSource*) (obj))
+
+typedef struct _FsRtpSpecialSource FsRtpSpecialSource;
+typedef struct _FsRtpSpecialSourceClass FsRtpSpecialSourceClass;
+typedef struct _FsRtpSpecialSourcePrivate FsRtpSpecialSourcePrivate;
+
+struct _FsRtpSpecialSourceClass
+{
+  GObjectClass parent_class;
+
+  gboolean (*want_source) (GList *negotiated_codecs, GError **error);
+
+  GList* (*add_blueprint) (GList *blueprints);
+};
+
+/**
+ * FsRtpSpecialSource:
+ *
+ */
+struct _FsRtpSpecialSource
+{
+  GObject parent;
+  FsRtpSpecialSourcePrivate *priv;
+};
+
+GType fs_rtp_special_source_get_type (void);
+
+GList *
+fs_rtp_special_sources_update (
+    GList *current_extra_sources,
+    GList *negotiated_codecs,
+    GError **error);
+
+GList *
+fs_rtp_special_sources_add_blueprints (GList *blueprints);
+
+
+G_END_DECLS
+
+#endif /* __FS_RTP_SPECIAL_SOURCE_H__ */
-- 
1.5.6.5




More information about the farsight-commits mailing list