rygel r280 - in trunk: . src/media-providers/tracker
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r280 - in trunk: . src/media-providers/tracker
- Date: Tue, 11 Nov 2008 17:41:51 +0000 (UTC)
Author: zeeshanak
Date: Tue Nov 11 17:41:51 2008
New Revision: 280
URL: http://svn.gnome.org/viewvc/rygel?rev=280&view=rev
Log:
Refactor: Add TrackerContainer.get_file_category().
Now MediaTracker doesn't talk to tracker directly.
Modified:
trunk/ChangeLog
trunk/src/media-providers/tracker/rygel-media-tracker.vala
trunk/src/media-providers/tracker/rygel-tracker-container.vala
Modified: trunk/src/media-providers/tracker/rygel-media-tracker.vala
==============================================================================
--- trunk/src/media-providers/tracker/rygel-media-tracker.vala (original)
+++ trunk/src/media-providers/tracker/rygel-media-tracker.vala Tue Nov 11 17:41:51 2008
@@ -192,7 +192,7 @@
string category;
try {
- category = TrackerContainer.files.GetServiceType (uri);
+ category = TrackerContainer.get_file_category (uri);
} catch (GLib.Error error) {
critical ("failed to find service type for %s: %s",
uri,
Modified: trunk/src/media-providers/tracker/rygel-tracker-container.vala
==============================================================================
--- trunk/src/media-providers/tracker/rygel-tracker-container.vala (original)
+++ trunk/src/media-providers/tracker/rygel-tracker-container.vala Tue Nov 11 17:41:51 2008
@@ -366,5 +366,13 @@
this.context.port,
escaped_path);
}
+
+ public static string get_file_category (string uri) throws GLib.Error {
+ string category;
+
+ category = TrackerContainer.files.GetServiceType (uri);
+
+ return category;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]