From 9c8ba04f3f5089732bff2e52a51f26c19622c6a4 Mon Sep 17 00:00:00 2001 From: akashihi Date: Mon, 26 Apr 2010 15:08:58 +0000 Subject: Add:core:Added reading/writing of bookmarks folders. Older (folderless) format is suppoerted and autmatically converted to new one on bookmark edit git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3195 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/bookmarks.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'navit/bookmarks.h') diff --git a/navit/bookmarks.h b/navit/bookmarks.h index 6ab760336..244a4c07c 100644 --- a/navit/bookmarks.h +++ b/navit/bookmarks.h @@ -29,17 +29,23 @@ struct bookmarks; struct bookmarks *bookmarks_new(struct attr *parent,/* struct attr **attrs,*/ struct transformation *trans); void bookmarks_destroy(struct bookmarks *this_); void bookmarks_add_callback(struct bookmarks *this_, struct callback *cb); + int bookmarks_add_bookmark(struct bookmarks *this_, struct pcoord *c, const char *description); int bookmarks_cut_bookmark(struct bookmarks *this_, const char *description); int bookmarks_copy_bookmark(struct bookmarks *this_, const char *description); int bookmarks_paste_bookmark(struct bookmarks *this_, const char *path); int bookmarks_rename_bookmark(struct bookmarks *this_, const char *oldName, const char* newName); int bookmarks_del_bookmark(struct bookmarks *this_, const char *description); + struct map* bookmarks_get_map(struct bookmarks *this_); + void bookmarks_move_root(struct bookmarks *this_); void bookmarks_move_up(struct bookmarks *this_); int bookmarks_move_down(struct bookmarks *this_,const char* name); +struct item* bookmarks_get_item(struct bookmarks* this_); +void bookmarks_rewind_item(struct bookmarks* this_); + char* bookmarks_get_user_data_directory(gboolean create); char* bookmarks_get_destination_file(gboolean create); void bookmarks_set_center_from_file(struct bookmarks *this_, char *file); -- cgit v1.2.1