mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 21:36:00 +01:00
document_index_generate should return tree-like data structures
This commit is contained in:
parent
7c6b081984
commit
7d73b15e85
6 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue