/* Manipulation with file containing URL history */
/* $Id: urlhist.c,v 1.30 2003/11/24 12:00:34 zas Exp $ */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "elinks.h"

#include "bfu/inphist.h"
#include "config/urlhist.h"
#include "util/lists.h"

#define GOTO_HISTORY_FILENAME		"gotohist"


struct input_history goto_url_history = {
	/* items: */	{ D_LIST_HEAD(goto_url_history.entries) },
	/* size: */	0,
	/* dirty: */	0,
	/* nosave: */	0,
};

void
load_url_history(void)
{
	load_input_history(&goto_url_history, GOTO_HISTORY_FILENAME);
}

void
save_url_history(void)
{
	save_input_history(&goto_url_history, GOTO_HISTORY_FILENAME);
}
