void retrieve_rt_vars(void) { gchar **files = NULL; GArray *classes = NULL; Rtv_Data *rtv_data = NULL; gint i = 0; /*printf("retrieve rt_vars from mtx realtime maps\n");*/ files = get_files(NULL,REALTIME_MAPS_DATA_DIR,"xml",&classes); if (!files) return; while(files[i]) i++; rtv_data = g_new0(Rtv_Data, 1); rtv_data->persona_hash = g_hash_table_new_full(g_str_hash,g_str_equal,g_free,info_free); rtv_data->persona_array = g_array_new(FALSE,TRUE,sizeof(Persona_Info *)); rtv_data->total_files = i; load_rtvars(files,rtv_data); g_array_free(classes,TRUE); g_strfreev(files); g_hash_table_destroy(rtv_data->persona_hash); g_array_free(rtv_data->persona_array,TRUE); g_free(rtv_data); }
void retrieve_rt_vars(void) { gchar **files = NULL; GArray *classes = NULL; struct Rtv_Data *rtv_data = NULL; gint i = 0; /*printf("retrieve rt_vars from mtx realtime maps\n");*/ files = get_files(g_strconcat(REALTIME_MAPS_DATA_DIR,PSEP,NULL),g_strdup("rtv_map"),&classes); if (!files) return; while(files[i]) i++; rtv_data = g_new0(struct Rtv_Data, 1); rtv_data->rtv_hash = g_hash_table_new_full(g_str_hash,g_str_equal,g_free,NULL); rtv_data->int_ext_hash = g_hash_table_new_full(g_str_hash,g_str_equal,g_free,g_free); rtv_data->rtv_list = NULL; rtv_data->total_files = i; load_rtvars(files,rtv_data); g_array_free(classes,TRUE); }