示例#1
0
void
reset_db() {
	NMP_DEBUG("RESET DB!!!\n");
	commit_no = 0;
	unlink(nmp_client_path);
	SAFE_FREE(nmp_client_list);
	refresh_sig();
}
示例#2
0
void
reset_db() {
NMP_DEBUG("RESET DB!!!\n");
	commit_no = 0;
	nvram_set("nmp_client_list", "");
	nvram_commit();
	*nmp_client_list = NULL;
	nmp_client_list = strdup(nvram_get("nmp_client_list"));
	refresh_sig();
}