Re: [Tracker] Tracker / Tomboy / Maemo
- From: Cornelius Hald <hald icandy de>
- To: Xin Lai <Xin Lai Sun COM>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] Tracker / Tomboy / Maemo
- Date: Sat, 20 Jun 2009 14:49:31 +0200
On Thu, 2009-06-18 at 08:18 +0200, Cornelius Hald wrote:
On Thu, 2009-06-18 at 13:27 +0800, Xin Lai wrote:
I think you need to add your module name "TomboyNotes" in
tracker_service_types which is defined in src/libtracker/tracker.c.
Because the main function of tracker-search which resides in
src/tracker-utils/tracker-search.c calls tracker_service_name_to_type
which is also defined in src/libtracker/tracker.c,to check the service
name users entered. tracker_service_name_to_type will compare every
service name in tracker_service_types with that user entered.But now
your service name is not included in that array. So, the result
"Service not recognized, searching in other files...".
Hope that will help you. :-)
It certainly helps! Thank you! But unfortunately it would mean that the
available services are hard coded into tracker?! Is this the case? If
yes it would mean I cannot ship my application with a tracker indexer
without replacing the complete tracker install. Or do I just have to
reuse one of the existing services, e.g. "Documents" and it will work
Sorry for all those questions, but I'm a bit confused now. I was
assuming that it's part of trackers design to be extendable.
Ok, let me try to rephrase my question :)
Is it possible to write indexer modules which I can ship/package
independently from tracker? If yes, how?
It would be very nice if someone could explain that to me.
] [Thread Prev