[grilo] [core] Make grl_media_source_gen_browse_id protected



commit f41e11180b3867c017f20bb2330ec52404949157
Author: Iago Toral Quiroga <itoral igalia com>
Date:   Tue Jun 1 16:44:52 2010 +0200

    [core] Make grl_media_source_gen_browse_id protected

 src/Makefile.am             |    6 ++++--
 src/grl-media-source-priv.h |   41 +++++++++++++++++++++++++++++++++++++++++
 src/grl-media-source.c      |    5 +----
 3 files changed, 46 insertions(+), 6 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 8770014..9287c03 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,8 +23,9 @@ lib GRL_NAME@_la_SOURCES =					\
 	grl-plugin-registry.c					\
 	grl-metadata-key.c grl-metadata-key-priv.h		\
 	grl-metadata-source.c grl-metadata-source-priv.h	\
-	grl-media-source.c					\
-	grl-log.c grilo.c
+	grl-media-source.c grl-media-source-priv.h		\
+	grl-log.c						\
+	grilo.c
 
 data_c_sources =		\
 	data/grl-data.c		\
@@ -64,6 +65,7 @@ lib GRL_NAME@inc_HEADERS += $(data_h_headers)
 noinst_HEADERS =			\
 	grl-media-plugin-priv.h		\
 	grl-metadata-source-priv.h	\
+	grl-media-source-priv.h		\
 	grl-metadata-key-priv.h
 
 MAINTAINERCLEANFILES =	\
diff --git a/src/grl-media-source-priv.h b/src/grl-media-source-priv.h
new file mode 100644
index 0000000..c3c8198
--- /dev/null
+++ b/src/grl-media-source-priv.h
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2010 Igalia S.L.
+ *
+ * Contact: Iago Toral Quiroga <itoral igalia com>
+ *
+ * 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; 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 St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#ifndef _GRL_MEDIA_SOURCE_PRIV_H_
+#define _GRL_MEDIA_SOURCE_PRIV_H_
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "grl-media-source.h"
+
+#include <glib.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+guint grl_media_source_gen_browse_id (GrlMediaSource *source);
+
+G_END_DECLS
+
+#endif /* _GRL_MEDIA_SOURCE_PRIV_H_ */
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index 4af6031..61f9670 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -156,9 +156,6 @@ static void grl_media_source_set_property (GObject *object,
                                            const GValue *value,
                                            GParamSpec *pspec);
 
-static guint
-grl_media_source_gen_browse_id (GrlMediaSource *source);
-
 static GrlSupportedOps
 grl_media_source_supported_operations (GrlMetadataSource *metadata_source);
 
@@ -1079,7 +1076,7 @@ metadata_full_resolution_ctl_cb (GrlMediaSource *source,
   }
 }
 
-static guint
+guint
 grl_media_source_gen_browse_id (GrlMediaSource *source)
 {
   GrlMediaSourceClass *klass;



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