[rygel-gst-0-10-plugins] Added missing file



commit 3237dadb423d8432597b1bd59d1c037e11d96ee9
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Dec 11 11:54:37 2012 +0100

    Added missing file

 src/media-export/Makefile.am                  |    2 +-
 src/media-export/rygel-media-export-collate.c |   38 +++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 1 deletions(-)
---
diff --git a/src/media-export/Makefile.am b/src/media-export/Makefile.am
index 95a8dfc..53e6708 100644
--- a/src/media-export/Makefile.am
+++ b/src/media-export/Makefile.am
@@ -36,7 +36,7 @@ librygel_media_export_gst_0_10_la_SOURCES = \
 	rygel-media-export-collate.c
 
 librygel_media_export_gst_0_10_la_VALAFLAGS = \
-	$(RYGEL_PLUGIN_MEDIA_EXPORT_DEPS_CFLAGS)
+	$(RYGEL_PLUGIN_MEDIA_EXPORT_DEPS_VALAFLAGS)
 
 librygel_media_export_gst_0_10_la_CFLAGS = \
 	$(RYGEL_PLUGIN_MEDIA_EXPORT_DEPS_CFLAGS) \
diff --git a/src/media-export/rygel-media-export-collate.c b/src/media-export/rygel-media-export-collate.c
new file mode 100644
index 0000000..eccf527
--- /dev/null
+++ b/src/media-export/rygel-media-export-collate.c
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2012 Jens Georg <mail jensge org>.
+ *
+ * Author: Jens Georg <mail jensge org>
+ *
+ * This file is part of Rygel.
+ *
+ * Rygel 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 of the License, or
+ * (at your option) any later version.
+ *
+ * Rygel 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 program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include <glib.h>
+
+#ifdef HAVE_UNISTRING
+#include <unistr.h>
+gint rygel_media_export_utf8_collate_str (const char *a, const char *b)
+{
+    return u8_strcoll (a, b);
+}
+
+#else
+
+gint rygel_media_export_utf8_collate_str (const char *a, const char *b)
+{
+    return g_utf8_collate (a, b);
+}
+#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]