diff options
author | akashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-03-03 15:18:33 +0000 |
---|---|---|
committer | akashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-03-03 15:18:33 +0000 |
commit | ea35eff00db98a767b875004bf9a0d0c59a74450 (patch) | |
tree | 681428be5e772dcaf30605efac458d17852a2105 /navit/bookmarks.h | |
parent | 8a742fb958743850f8d9cd60f22f97f0bd896d0d (diff) | |
download | navit-ea35eff00db98a767b875004bf9a0d0c59a74450.tar.gz |
Add:Core:Added basement for bookmarks manager. Most of the bookmarking
related code moved from navit.c to bookmarks.c
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2977 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/bookmarks.h')
-rw-r--r-- | navit/bookmarks.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/navit/bookmarks.h b/navit/bookmarks.h new file mode 100644 index 000000000..e33bf22ca --- /dev/null +++ b/navit/bookmarks.h @@ -0,0 +1,45 @@ +/** + * Navit, a modular navigation system. + * Copyright (C) 2005-2010 Navit Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program 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, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + + #ifndef NAVIT_BOOKMARKS_H + #define NAVIT_BOOKMARKS_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* prototypes */ +struct bookmarks; +struct bookmarks *bookmarks_new(struct attr *parent,/* struct attr **attrs,*/ struct transformation *trans); +void bookmarks_destroy(struct bookmarks *this_); +void bookmarks_add_bookmark(struct bookmarks *this_, struct pcoord *c, const char *description); +struct map* bookmarks_get_map(struct bookmarks *this_); +char* bookmarks_get_destination_file(gboolean create); +void bookmarks_add_bookmarks_from_file(struct bookmarks *this_); +void bookmarks_set_center_from_file(struct bookmarks *this_, char *file); +char* bookmarks_get_center_file(gboolean create); +void bookmarks_write_center_to_file(struct bookmarks *this_, char *file); +void bookmarks_append_coord(struct bookmarks *this_, char *file, struct pcoord *c, const char *type, const char *description, GHashTable *h, int limit); +/* end of prototypes */ + +#ifdef __cplusplus +} +#endif + + #endif /* NAVIT_BOOKMARKS_H */ |