Hide some structs from the plugins.

This commit is contained in:
Sebastian Ramacher 2012-04-06 13:54:17 +02:00
parent 30b9be61dd
commit 1e2ff0557e
4 changed files with 17 additions and 11 deletions

View file

@ -15,6 +15,7 @@
#include "utils.h"
#include "page-widget.h"
#include "page.h"
#include "internal.h"
#include <girara/session.h>
#include <girara/datastructures.h>

View file

@ -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
*

View file

@ -5,6 +5,7 @@
#include <glib.h>
#include "types.h"
#include "internal.h"
zathura_link_t*
zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position,

13
types.h
View file

@ -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