From 1e2ff0557efac1681321700f308e590530d53a21 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 6 Apr 2012 13:54:17 +0200 Subject: [PATCH] Hide some structs from the plugins. --- commands.c | 1 + internal.h | 13 +++++++++++++ types.c | 1 + types.h | 13 ++----------- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/commands.c b/commands.c index 4b6b373..8db95ad 100644 --- a/commands.c +++ b/commands.c @@ -15,6 +15,7 @@ #include "utils.h" #include "page-widget.h" #include "page.h" +#include "internal.h" #include #include diff --git a/internal.h b/internal.h index 65bc548..4483a99 100644 --- a/internal.h +++ b/internal.h @@ -15,6 +15,19 @@ typedef struct zathura_password_dialog_info_s zathura_t* zathura; /**< Zathura session */ } zathura_password_dialog_info_t; +struct zathura_document_information_entry_s +{ + zathura_document_information_type_t type; /**< Type of the information */ + char* value; /**< Value */ +}; + +struct zathura_link_s +{ + zathura_rectangle_t position; /**< Position of the link */ + zathura_link_type_t type; /**< Link type */ + zathura_link_target_t target; /**< Link target */ +}; + /** * Returns the associated plugin * diff --git a/types.c b/types.c index 6b37d32..de73c19 100644 --- a/types.c +++ b/types.c @@ -5,6 +5,7 @@ #include #include "types.h" +#include "internal.h" zathura_link_t* zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position, diff --git a/types.h b/types.h index 3188a0d..06af6ea 100644 --- a/types.h +++ b/types.h @@ -63,11 +63,7 @@ typedef struct zathura_plugin_s zathura_plugin_t; * Represents a single entry in the returned list from the \ref * zathura_document_get_information function */ -typedef struct zathura_document_information_entry_s -{ - zathura_document_information_type_t type; /**< Type of the information */ - char* value; /**< Value */ -} zathura_document_information_entry_t; +typedef struct zathura_document_information_entry_s zathura_document_information_entry_t; /** * Image buffer @@ -147,12 +143,7 @@ typedef union zathura_link_target_u /** * Link */ -typedef struct zathura_link_s -{ - zathura_rectangle_t position; /**< Position of the link */ - zathura_link_type_t type; /**< Link type */ - zathura_link_target_t target; /**< Link target */ -} zathura_link_t; +typedef struct zathura_link_s zathura_link_t; /** * Index element