/***************************************************************************
 *            favorites.h
 *
 *  2011-05-28
 *  Copyright (C) 2011  Steffen Pohle
 *  steffen@gulpe.de
 ****************************************************************************/

/* 
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * main.c is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU  General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _FAVORITES_H_
#define _FAVORITES_H_

#include "osmroute.h"
#include "map.h"

#define FAV_NAME_LEN 32

struct favorite {
	struct map_pos pos;
	char name[FAV_NAME_LEN];
};


extern struct favorite *favorites;
extern int favorites_alloc;
extern int favorites_cnt;

extern char *fav_getfilename ();
extern void fav_load (char *filename);
extern void fav_save (char *filename);

extern void fav_add (int nr, struct favorite *f);
extern void fav_del (int nr);
extern void fav_new ();

#endif
