Re: [Tracker] URI support



On mar, 2008-11-18 at 13:55 +0100, JÃrg Billeter wrote:
Hi,

Tracker currently uses a mix of local file paths and URIs and they are
used in different encodings and sometimes split into dirname and
basename and sometimes not. I've been working on the uri branch in SVN
to clean up the confusion.

The Path column in the Services table has been replaced by a Uri column
which stores the full URI, not just the dirname as was the case before.
The Name column stays the same but is not used anymore to identify a
service. To accommodate the database changes, I had to increase the
database version, which means that Tracker will perform a reindexing.
Functions in libtracker-data that had dirname and basename parameters
now have a uri parameter as they are not only used for files.

tracker-indexer has been modified to use URIs when we don't know whether
it's a file or an email and to use GFile when dealing with files. This
also changes the tracker-indexer-module API.

The tracker-indexer-module is largely rewritten here in my local branch
and it already takes GFiles into account, so I suggest you not to do any
change at all there. Wonders of communication


The D-Bus methods already had a uri parameter, however, you had to
sometimes use local file paths before, now you always have to pass a
valid URI.

The code is available in the uri branch in SVN. I've tested it here and
it seems to work well, however, it'd be nice if other people could
review and test the changes, too. Any questions or comments on the DB
and API changes?

 38 files changed, 625 insertions(+), 924 deletions(-)

JÃrg

_______________________________________________
tracker-list mailing list
tracker-list gnome org
http://mail.gnome.org/mailman/listinfo/tracker-list
-- 
Carlos Garnacho
Imendio AB - Expert solutions in GTK+
http://www.imendio.com




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