Martyn Russell <[email protected]> writes:
>> I would like to use tracker's apparently quite extensive data-extraction
>> facilities in my own program. It seems that "tracker-extract -f<file>"
>> provides all the functionality that I want, but I am wondering if there
>> is a way to avoid having to re-parse output.
>
> The -f command line is a convenience for testing. There is a d-bus API
> you can use which tracker-miner-fs uses, for the spec see:
>
> http://git.gnome.org/browse/tracker/tree/data/dbus/tracker-extract.xml

Will this work if the file that I'm interested is not included in the
tracker database? Because I would like to use really just the extractor,
without having the files being indexed by tracker.

> I should add, we use the "Fast" interface, which uses file descriptor
> passing to avoid memory fragmentation and copious copying. There is
> also a non-fast API you can use for testing purposes or if you're not
> intending to send/receive a lot of requests anyway (though we
> discourage it generally if possible).

I will be using the Python dbus API, I'm not sure if this will allow fd
passing. But requests will only be generated one at a time by explicit
user interaction, so I hope that this will not be a problem.

>> It would also be nice if there would be a way to process multiple files
>> without having to start a new tracker-extract instance for every file.
>
> Using d-bus you shouldn't need to worry about the invocation of
> tracker-extract.

In that case I believe that I still need to start (and then stop) a
tracker instance that will provide the dbus service though...?


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to