remove zathura_list_t

This commit is contained in:
Sebastian Ramacher 2011-10-22 00:11:42 +02:00
parent f7e9c3d770
commit 37189ece79
2 changed files with 18 additions and 28 deletions

View File

@ -337,7 +337,7 @@ zathura_document_index_generate(zathura_document_t* document)
return document->functions.document_index_generate(document); return document->functions.document_index_generate(document);
} }
zathura_list_t* girara_list_t*
zathura_document_attachments_get(zathura_document_t* document) zathura_document_attachments_get(zathura_document_t* document)
{ {
if (document == NULL) { if (document == NULL) {
@ -353,7 +353,7 @@ zathura_document_attachments_get(zathura_document_t* document)
} }
bool bool
zathura_document_attachments_free(zathura_list_t* UNUSED(list)) zathura_document_attachments_free(girara_list_t* UNUSED(list))
{ {
return false; return false;
} }
@ -422,7 +422,7 @@ zathura_page_free(zathura_page_t* page)
return page->document->functions.page_free(page); return page->document->functions.page_free(page);
} }
zathura_list_t* girara_list_t*
zathura_page_search_text(zathura_page_t* page, const char* text) zathura_page_search_text(zathura_page_t* page, const char* text)
{ {
if (page == NULL || page->document == NULL || text == NULL) { if (page == NULL || page->document == NULL || text == NULL) {
@ -437,7 +437,7 @@ zathura_page_search_text(zathura_page_t* page, const char* text)
return page->document->functions.page_search_text(page, text); return page->document->functions.page_search_text(page, text);
} }
zathura_list_t* girara_list_t*
zathura_page_links_get(zathura_page_t* page) zathura_page_links_get(zathura_page_t* page)
{ {
if (page == NULL || page->document == NULL) { if (page == NULL || page->document == NULL) {
@ -453,12 +453,12 @@ zathura_page_links_get(zathura_page_t* page)
} }
bool bool
zathura_page_links_free(zathura_list_t* UNUSED(list)) zathura_page_links_free(girara_list_t* UNUSED(list))
{ {
return false; return false;
} }
zathura_list_t* girara_list_t*
zathura_page_form_fields_get(zathura_page_t* page) zathura_page_form_fields_get(zathura_page_t* page)
{ {
if (page == NULL || page->document == NULL) { if (page == NULL || page->document == NULL) {
@ -474,7 +474,7 @@ zathura_page_form_fields_get(zathura_page_t* page)
} }
bool bool
zathura_page_form_fields_free(zathura_list_t* UNUSED(list)) zathura_page_form_fields_free(girara_list_t* UNUSED(list))
{ {
return false; return false;
} }

View File

@ -12,7 +12,6 @@
#define PLUGIN_REGISTER_FUNCTION "plugin_register" #define PLUGIN_REGISTER_FUNCTION "plugin_register"
typedef struct zathura_list_s zathura_list_t;
// typedef struct zathura_document_s zathura_document_t; // typedef struct zathura_document_s zathura_document_t;
typedef bool (*zathura_document_open_t)(zathura_document_t* document); typedef bool (*zathura_document_open_t)(zathura_document_t* document);
@ -52,15 +51,6 @@ typedef enum zathura_document_meta_e
*/ */
typedef void (*zathura_plugin_register_service_t)(zathura_document_plugin_t*); typedef void (*zathura_plugin_register_service_t)(zathura_document_plugin_t*);
/**
* Structure for a list
*/
struct zathura_list_s
{
void* data; /**> Data value */
struct zathura_list_s* next; /**> Next element in the list */
};
/** /**
* Image buffer * Image buffer
*/ */
@ -205,7 +195,7 @@ struct zathura_document_s
/** /**
* Get list of attachments * Get list of attachments
*/ */
zathura_list_t* (*document_attachments_get)(zathura_document_t* document); girara_list_t* (*document_attachments_get)(zathura_document_t* document);
/** /**
* Get document information * Get document information
@ -220,17 +210,17 @@ struct zathura_document_s
/** /**
* Search text * Search text
*/ */
zathura_list_t* (*page_search_text)(zathura_page_t* page, const char* text); girara_list_t* (*page_search_text)(zathura_page_t* page, const char* text);
/** /**
* Get links on a page * Get links on a page
*/ */
zathura_list_t* (*page_links_get)(zathura_page_t* page); girara_list_t* (*page_links_get)(zathura_page_t* page);
/** /**
* Get form fields * Get form fields
*/ */
zathura_list_t* (*page_form_fields_get)(zathura_page_t* page); girara_list_t* (*page_form_fields_get)(zathura_page_t* page);
/** /**
* Renders the page * Renders the page
@ -309,7 +299,7 @@ girara_tree_node_t* zathura_document_index_generate(zathura_document_t* document
* @param document The document object * @param document The document object
* @return List of attachments * @return List of attachments
*/ */
zathura_list_t* zathura_document_attachments_get(zathura_document_t* document); girara_list_t* zathura_document_attachments_get(zathura_document_t* document);
/** /**
* Free document attachments * Free document attachments
@ -317,7 +307,7 @@ zathura_list_t* zathura_document_attachments_get(zathura_document_t* document);
* @param list list of document attachments * @param list list of document attachments
* @return * @return
*/ */
bool zathura_document_attachments_free(zathura_list_t* list); bool zathura_document_attachments_free(girara_list_t* list);
/** /**
* Returns a string of the requested information * Returns a string of the requested information
@ -352,7 +342,7 @@ bool zathura_page_free(zathura_page_t* page);
* @param text Search item * @param text Search item
* @return List of results * @return List of results
*/ */
zathura_list_t* zathura_page_search_text(zathura_page_t* page, const char* text); girara_list_t* zathura_page_search_text(zathura_page_t* page, const char* text);
/** /**
* Get page links * Get page links
@ -360,7 +350,7 @@ zathura_list_t* zathura_page_search_text(zathura_page_t* page, const char* text)
* @param page The page object * @param page The page object
* @return List of links * @return List of links
*/ */
zathura_list_t* zathura_page_links_get(zathura_page_t* page); girara_list_t* zathura_page_links_get(zathura_page_t* page);
/** /**
* Free page links * Free page links
@ -368,7 +358,7 @@ zathura_list_t* zathura_page_links_get(zathura_page_t* page);
* @param list List of links * @param list List of links
* @return true if no error occured, otherwise false * @return true if no error occured, otherwise false
*/ */
bool zathura_page_links_free(zathura_list_t* list); bool zathura_page_links_free(girara_list_t* list);
/** /**
* Get list of form fields * Get list of form fields
@ -376,7 +366,7 @@ bool zathura_page_links_free(zathura_list_t* list);
* @param page The page object * @param page The page object
* @return List of form fields * @return List of form fields
*/ */
zathura_list_t* zathura_page_form_fields_get(zathura_page_t* page); girara_list_t* zathura_page_form_fields_get(zathura_page_t* page);
/** /**
* Free list of form fields * Free list of form fields
@ -384,7 +374,7 @@ zathura_list_t* zathura_page_form_fields_get(zathura_page_t* page);
* @param list List of form fields * @param list List of form fields
* @return true if no error occured, otherwise false * @return true if no error occured, otherwise false
*/ */
bool zathura_page_form_fields_free(zathura_list_t* list); bool zathura_page_form_fields_free(girara_list_t* list);
/** /**
* Render page * Render page