00001 #include "lpbot.h" 00002 00010 int main() 00011 { 00012 int i; 00013 GMainLoop *loop; 00014 config = g_new0(lp_config, 1); 00015 00016 parseConfig("config.xml"); 00017 parseRecords("db.xml"); 00018 lp_serve(); 00019 g_timeout_add(config->rss_interval*1000, lp_check_rss, NULL); 00020 00021 for(i=0;i<g_list_length(config->servers);i++) 00022 lp_connect(g_list_nth_data(config->servers, i)); 00023 00024 loop = g_main_loop_new(NULL, TRUE); 00025 g_main_loop_run(loop); 00026 lp_config_free(config); 00027 return 0; 00028 } 00029 /* @} */