[farsight2/master] Add FsCandidateList boxed type

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


---
 docs/libs/farsight-libs-sections.txt |    2 ++
 gst-libs/gst/farsight/fs-candidate.c |   15 +++++++++++++++
 gst-libs/gst/farsight/fs-candidate.h |    5 +++++
 3 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/docs/libs/farsight-libs-sections.txt b/docs/libs/farsight-libs-sections.txt
index f16bfb8..d7559bc 100644
--- a/docs/libs/farsight-libs-sections.txt
+++ b/docs/libs/farsight-libs-sections.txt
@@ -100,6 +100,8 @@ fs_candidate_are_equal
 <SUBSECTION Standard>
 FS_TYPE_CANDIDATE
 fs_candidate_get_type
+FS_TYPE_CANDIDATE_LIST
+fs_candidate_list_get_type
 </SECTION>
 
 <SECTION>
diff --git a/gst-libs/gst/farsight/fs-candidate.c b/gst-libs/gst/farsight/fs-candidate.c
index be30f75..5be6bf4 100644
--- a/gst-libs/gst/farsight/fs-candidate.c
+++ b/gst-libs/gst/farsight/fs-candidate.c
@@ -50,6 +50,21 @@ fs_candidate_get_type (void)
   return candidate_type;
 }
 
+GType
+fs_candidate_list_get_type (void)
+{
+  static GType candidate_list_type = 0;
+  if (candidate_list_type == 0)
+  {
+    candidate_list_type = g_boxed_type_register_static (
+        "FsCandidateList",
+        (GBoxedCopyFunc)fs_candidate_list_destroy,
+        (GBoxedFreeFunc)fs_candidate_list_copy);
+  }
+
+  return candidate_list_type;
+}
+
 /* TODO Create a fs_candidate_new() function since there is a _destroy() func */
 
 /**
diff --git a/gst-libs/gst/farsight/fs-candidate.h b/gst-libs/gst/farsight/fs-candidate.h
index 132965b..98f1fcf 100644
--- a/gst-libs/gst/farsight/fs-candidate.h
+++ b/gst-libs/gst/farsight/fs-candidate.h
@@ -33,6 +33,10 @@ G_BEGIN_DECLS
 #define FS_TYPE_CANDIDATE \
   (fs_candidate_get_type())
 
+
+#define FS_TYPE_CANDIDATE_LIST \
+  (fs_candidate_list_get_type())
+
 /**
  * FsCandidateType:
  * @FS_CANDIDATE_TYPE_HOST: A host candidate (local)
@@ -111,6 +115,7 @@ struct _FsCandidate
 };
 
 GType fs_candidate_get_type (void);
+GType fs_candidate_list_get_type (void);
 
 void fs_candidate_destroy (FsCandidate *cand);
 
-- 
1.5.6.5




More information about the farsight-commits mailing list