Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura-pdf-poppler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura-pdf-poppler
Commits
7936e0d0
Commit
7936e0d0
authored
Mar 17, 2017
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use plugin init without callback
Signed-off-by:
Sebastian Ramacher
<
sebastian@ramacher.at
>
parent
b3f94120
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
23 deletions
+19
-23
plugin.c
plugin.c
+19
-23
No files found.
plugin.c
View file @
7936e0d0
...
...
@@ -2,31 +2,27 @@
#include "plugin.h"
static
void
register_functions
(
zathura_plugin_functions_t
*
functions
)
{
functions
->
document_open
=
pdf_document_open
;
functions
->
document_free
=
pdf_document_free
;
functions
->
document_index_generate
=
pdf_document_index_generate
;
functions
->
document_save_as
=
pdf_document_save_as
;
functions
->
document_attachments_get
=
pdf_document_attachments_get
;
functions
->
document_attachment_save
=
pdf_document_attachment_save
;
functions
->
document_get_information
=
pdf_document_get_information
;
functions
->
page_init
=
pdf_page_init
;
functions
->
page_clear
=
pdf_page_clear
;
functions
->
page_search_text
=
pdf_page_search_text
;
functions
->
page_links_get
=
pdf_page_links_get
;
functions
->
page_form_fields_get
=
pdf_page_form_fields_get
;
functions
->
page_images_get
=
pdf_page_images_get
;
functions
->
page_get_text
=
pdf_page_get_text
;
functions
->
page_render_cairo
=
pdf_page_render_cairo
;
functions
->
page_image_get_cairo
=
pdf_page_image_get_cairo
;
}
ZATHURA_PLUGIN_REGISTER
(
ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS
(
"pdf-poppler"
,
VERSION_MAJOR
,
VERSION_MINOR
,
VERSION_REV
,
register_functions
,
ZATHURA_PLUGIN_FUNCTIONS
({
.
document_open
=
pdf_document_open
,
.
document_free
=
pdf_document_free
,
.
document_index_generate
=
pdf_document_index_generate
,
.
document_save_as
=
pdf_document_save_as
,
.
document_attachments_get
=
pdf_document_attachments_get
,
.
document_attachment_save
=
pdf_document_attachment_save
,
.
document_get_information
=
pdf_document_get_information
,
.
page_init
=
pdf_page_init
,
.
page_clear
=
pdf_page_clear
,
.
page_search_text
=
pdf_page_search_text
,
.
page_links_get
=
pdf_page_links_get
,
.
page_form_fields_get
=
pdf_page_form_fields_get
,
.
page_images_get
=
pdf_page_images_get
,
.
page_get_text
=
pdf_page_get_text
,
.
page_render_cairo
=
pdf_page_render_cairo
,
.
page_image_get_cairo
=
pdf_page_image_get_cairo
}),
ZATHURA_PLUGIN_MIMETYPES
({
"application/pdf"
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment