From 7d73b15e852f96e1be53b9eace564e6ed00960b1 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 24 Dec 2010 16:21:54 +0100 Subject: [PATCH] document_index_generate should return tree-like data structures --- ft/djvu/djvu.c | 2 +- ft/djvu/djvu.h | 2 +- ft/document.c | 2 +- ft/document.h | 6 ++++-- ft/pdf/pdf.c | 2 +- ft/pdf/pdf.h | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ft/djvu/djvu.c b/ft/djvu/djvu.c index de965ba..c66cc5d 100644 --- a/ft/djvu/djvu.c +++ b/ft/djvu/djvu.c @@ -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; diff --git a/ft/djvu/djvu.h b/ft/djvu/djvu.h index 6ece4a6..bc3b4a9 100644 --- a/ft/djvu/djvu.h +++ b/ft/djvu/djvu.h @@ -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); diff --git a/ft/document.c b/ft/document.c index 69180b8..e049486 100644 --- a/ft/document.c +++ b/ft/document.c @@ -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) { diff --git a/ft/document.h b/ft/document.h index 8b5c2fb..c322f0d 100644 --- a/ft/document.h +++ b/ft/document.h @@ -6,6 +6,8 @@ #include #include +#include + 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); diff --git a/ft/pdf/pdf.c b/ft/pdf/pdf.c index d43ffb9..688d59b 100644 --- a/ft/pdf/pdf.c +++ b/ft/pdf/pdf.c @@ -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; diff --git a/ft/pdf/pdf.h b/ft/pdf/pdf.h index 971bedc..1506880 100644 --- a/ft/pdf/pdf.h +++ b/ft/pdf/pdf.h @@ -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);