zathura
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
bookmarks.h
Go to the documentation of this file.
1 /* See LICENSE file for license and copyright information */
2 
3 #ifndef BOOKMARKS_H
4 #define BOOKMARKS_H
5 
6 #include <stdbool.h>
7 #include "zathura.h"
8 
10 {
11  gchar* id;
12  unsigned int page;
13  double x;
14  double y;
15 };
16 
17 typedef struct zathura_bookmark_s zathura_bookmark_t;
18 
26 zathura_bookmark_t* zathura_bookmark_add(zathura_t* zathura, const gchar* id, unsigned int page);
27 
34 bool zathura_bookmark_remove(zathura_t* zathura, const gchar* id);
35 
42 zathura_bookmark_t* zathura_bookmark_get(zathura_t* zathura, const gchar* id);
43 
48 void zathura_bookmark_free(zathura_bookmark_t* bookmark);
49 
56 bool zathura_bookmarks_load(zathura_t* zathura, const gchar* file);
57 
64 int zathura_bookmarks_compare(zathura_bookmark_t* lhs, zathura_bookmark_t* rhs);
65 
66 #endif // BOOKMARKS_H