Re: [Tracker] Email stats



On ÑÑÐ, 2007-03-10 at 15:20 +0000, jamie wrote:
On Sat, 2007-03-10 at 02:41 +0100, Marko Anastasov wrote:
Hi,

Tonight I got a little bit into the code for the first time
and tried to add the Emails category results to 
tracker_dbus_method_get_stats (), by merging the results of
tracker_exec_proc () for data and emails databases. I didn't
finish though, it's really late now so I'm just posting a
non-working patch hoping to hear some suggestion tomorrow.

Is there anything special with these rows that make up the
char *** result of tracker_exec_proc () or they're just string
arrays?


nope - they are just null terminated array of array of strings.

I guess I should add a tracker_concatenate_result function to
tracker-utils.c that appends on result set onto another.

If you have time today feel free to implement above and amend your
patch. 

Done - now the stats read the email db too.

I'm not sure about all other functions that need this merging;
I suppose tracker_get_metadata and tracker_dbus_method_get_services ?

Marko

Attachment: tracker_stats.patch
Description: Text Data



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