mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-06 19:54:55 +01:00
Hide some structs from the plugins.
This commit is contained in:
parent
30b9be61dd
commit
1e2ff0557e
4 changed files with 17 additions and 11 deletions
|
@ -15,6 +15,7 @@
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "page-widget.h"
|
#include "page-widget.h"
|
||||||
#include "page.h"
|
#include "page.h"
|
||||||
|
#include "internal.h"
|
||||||
|
|
||||||
#include <girara/session.h>
|
#include <girara/session.h>
|
||||||
#include <girara/datastructures.h>
|
#include <girara/datastructures.h>
|
||||||
|
|
13
internal.h
13
internal.h
|
@ -15,6 +15,19 @@ typedef struct zathura_password_dialog_info_s
|
||||||
zathura_t* zathura; /**< Zathura session */
|
zathura_t* zathura; /**< Zathura session */
|
||||||
} zathura_password_dialog_info_t;
|
} 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
|
* Returns the associated plugin
|
||||||
*
|
*
|
||||||
|
|
1
types.c
1
types.c
|
@ -5,6 +5,7 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
#include "internal.h"
|
||||||
|
|
||||||
zathura_link_t*
|
zathura_link_t*
|
||||||
zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position,
|
zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position,
|
||||||
|
|
13
types.h
13
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
|
* Represents a single entry in the returned list from the \ref
|
||||||
* zathura_document_get_information function
|
* zathura_document_get_information function
|
||||||
*/
|
*/
|
||||||
typedef struct zathura_document_information_entry_s
|
typedef struct zathura_document_information_entry_s zathura_document_information_entry_t;
|
||||||
{
|
|
||||||
zathura_document_information_type_t type; /**< Type of the information */
|
|
||||||
char* value; /**< Value */
|
|
||||||
} zathura_document_information_entry_t;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Image buffer
|
* Image buffer
|
||||||
|
@ -147,12 +143,7 @@ typedef union zathura_link_target_u
|
||||||
/**
|
/**
|
||||||
* Link
|
* Link
|
||||||
*/
|
*/
|
||||||
typedef struct zathura_link_s
|
typedef struct zathura_link_s zathura_link_t;
|
||||||
{
|
|
||||||
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;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Index element
|
* Index element
|
||||||
|
|
Loading…
Reference in a new issue