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 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 [email protected] http://mail.gnome.org/mailman/listinfo/tracker-list
