9 int main(int argc, char **argv)
11 struct application_stat requests[] = {
15 };/*It's not standards compliant, but more robust */
18 struct application_stat_tree *app_tree = create_app_stat_tree();
20 init_database("./base.db");
22 for (index = 0; index != ARRAY_SIZE(requests); ++index)
23 g_tree_insert((GTree *) app_tree->tree,
24 (gpointer)index, (gpointer)(requests + index));
26 store_result(app_tree, 0); /*0 time period means alway perform storing*/
28 free_app_stat_tree(app_tree);