summaryrefslogtreecommitdiff
path: root/navit/bookmarks.h
diff options
context:
space:
mode:
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-04-26 15:08:58 +0000
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-04-26 15:08:58 +0000
commit9c8ba04f3f5089732bff2e52a51f26c19622c6a4 (patch)
treeb2ef491a10c8957ff3be76e6248dbad8bf4a1bce /navit/bookmarks.h
parentda9af8b157b4c4f4aa1d5367dfc5ad932aa7b42d (diff)
downloadnavit-9c8ba04f3f5089732bff2e52a51f26c19622c6a4.tar.gz
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
Diffstat (limited to 'navit/bookmarks.h')
-rw-r--r--navit/bookmarks.h6
1 files changed, 6 insertions, 0 deletions
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);