Exemple #1
0
void storage_close(const char *imsi, const char *store, GKeyFile *keyfile,
			gboolean save)
{
	if (save == TRUE)
		storage_sync(imsi, store, keyfile);

	g_key_file_free(keyfile);
}
Exemple #2
0
void info_handler(void *arg) {
	struct config *config = (struct config*)arg;
	storage_sync(config->api);
	int pool_items, pool_bytes;
	get_pool_size(&pool_items, &pool_bytes);
	log_info("Memory stats: %iMB in %i items in pool. Pool freed.",
				pool_bytes/1024/1024, pool_items);
	pool_free();
}
Exemple #3
0
void quit_handler(void *arg) {
	struct config *config = (struct config*)arg;
	log_info("Received signal, syncing database.");
	storage_sync(config->api);
	log_info("Synced.");
}