Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
7d73b15e
Commit
7d73b15e
authored
Dec 24, 2010
by
Sebastian Ramacher
Browse files
document_index_generate should return tree-like data structures
parent
7c6b0819
Changes
6
Hide whitespace changes
Inline
Side-by-side
ft/djvu/djvu.c
View file @
7d73b15e
...
...
@@ -95,7 +95,7 @@ djvu_document_free(zathura_document_t* document)
return
true
;
}
zathura_list
_t
*
girara_tree_node
_t
*
djvu_document_index_generate
(
zathura_document_t
*
document
)
{
return
NULL
;
...
...
ft/djvu/djvu.h
View file @
7d73b15e
...
...
@@ -17,7 +17,7 @@ typedef struct djvu_document_s
bool
djvu_document_open
(
zathura_document_t
*
document
);
bool
djvu_document_free
(
zathura_document_t
*
document
);
zathura_list
_t
*
djvu_document_index_generate
(
zathura_document_t
*
document
);
girara_tree_node
_t
*
djvu_document_index_generate
(
zathura_document_t
*
document
);
bool
djvu_document_save_as
(
zathura_document_t
*
document
,
const
char
*
path
);
zathura_list_t
*
djvu_document_attachments_get
(
zathura_document_t
*
document
);
zathura_page_t
*
djvu_page_get
(
zathura_document_t
*
document
,
unsigned
int
page
);
...
...
ft/document.c
View file @
7d73b15e
...
...
@@ -155,7 +155,7 @@ zathura_document_save_as(zathura_document_t* document, const char* path)
return
document
->
functions
.
document_save_as
(
document
,
path
);
}
zathura_list
_t
*
girara_tree_node
_t
*
zathura_document_index_generate
(
zathura_document_t
*
document
)
{
if
(
!
document
)
{
...
...
ft/document.h
View file @
7d73b15e
...
...
@@ -6,6 +6,8 @@
#include <cairo.h>
#include <stdbool.h>
#include <girara-datastructures.h>
typedef
struct
zathura_list_s
zathura_list_t
;
typedef
struct
zathura_document_s
zathura_document_t
;
...
...
@@ -81,7 +83,7 @@ struct zathura_document_s
struct
{
bool
(
*
document_free
)(
zathura_document_t
*
document
);
zathura_list
_t
*
(
*
document_index_generate
)(
zathura_document_t
*
document
);
girara_tree_node
_t
*
(
*
document_index_generate
)(
zathura_document_t
*
document
);
bool
(
*
document_save_as
)(
zathura_document_t
*
document
,
const
char
*
path
);
zathura_list_t
*
(
*
document_attachments_get
)(
zathura_document_t
*
document
);
...
...
@@ -97,7 +99,7 @@ struct zathura_document_s
zathura_document_t
*
zathura_document_open
(
const
char
*
path
,
const
char
*
password
);
bool
zathura_document_free
(
zathura_document_t
*
document
);
bool
zathura_document_save_as
(
zathura_document_t
*
document
,
const
char
*
path
);
zathura_list
_t
*
zathura_document_index_generate
(
zathura_document_t
*
document
);
girara_tree_node
_t
*
zathura_document_index_generate
(
zathura_document_t
*
document
);
bool
zathura_document_index_free
(
zathura_list_t
*
list
);
zathura_list_t
*
zathura_document_attachments_get
(
zathura_document_t
*
document
);
bool
zathura_document_attachments_free
(
zathura_list_t
*
list
);
...
...
ft/pdf/pdf.c
View file @
7d73b15e
...
...
@@ -83,7 +83,7 @@ pdf_document_free(zathura_document_t* document)
return
true
;
}
zathura_list
_t
*
girara_tree_node
_t
*
pdf_document_index_generate
(
zathura_document_t
*
document
)
{
return
NULL
;
...
...
ft/pdf/pdf.h
View file @
7d73b15e
...
...
@@ -15,7 +15,7 @@ typedef struct pdf_document_s
bool
pdf_document_open
(
zathura_document_t
*
document
);
bool
pdf_document_free
(
zathura_document_t
*
document
);
zathura_list
_t
*
pdf_document_index_generate
(
zathura_document_t
*
document
);
girara_tree_node
_t
*
pdf_document_index_generate
(
zathura_document_t
*
document
);
bool
pdf_document_save_as
(
zathura_document_t
*
document
,
const
char
*
path
);
zathura_list_t
*
pdf_document_attachments_get
(
zathura_document_t
*
document
);
zathura_page_t
*
pdf_page_get
(
zathura_document_t
*
document
,
unsigned
int
page
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment