plugin.c 1.56 KB
Newer Older
1 2 3 4 5 6
/* See LICENSE file for license and copyright information */

#define _POSIX_C_SOURCE 1

#include "plugin.h"

7
ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS(
8 9
  "pdf-mupdf",
  VERSION_MAJOR, VERSION_MINOR, VERSION_REV,
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  ZATHURA_PLUGIN_FUNCTIONS({
    .document_open            = (zathura_plugin_document_open_t) pdf_document_open,
    .document_free            = (zathura_plugin_document_free_t) pdf_document_free,
    .document_save_as         = (zathura_plugin_document_save_as_t) pdf_document_save_as,
    .document_index_generate  = (zathura_plugin_document_index_generate_t) pdf_document_index_generate,
    .document_get_information = (zathura_plugin_document_get_information_t) pdf_document_get_information,
    .page_init                = (zathura_plugin_page_init_t) pdf_page_init,
    .page_clear               = (zathura_plugin_page_clear_t) pdf_page_clear,
    .page_search_text         = (zathura_plugin_page_search_text_t) pdf_page_search_text,
    .page_links_get           = (zathura_plugin_page_links_get_t) pdf_page_links_get,
    .page_images_get          = (zathura_plugin_page_images_get_t) pdf_page_images_get,
    .page_get_text            = (zathura_plugin_page_get_text_t) pdf_page_get_text,
    .page_render              = (zathura_plugin_page_render_t) pdf_page_render,
    .page_render_cairo        = (zathura_plugin_page_render_cairo_t) pdf_page_render_cairo,
    .page_image_get_cairo     = (zathura_plugin_page_image_get_cairo_t) pdf_page_image_get_cairo
  }),
26 27
  ZATHURA_PLUGIN_MIMETYPES({
    "application/pdf",
Moritz Lipp's avatar
Moritz Lipp committed
28 29
    "application/oxps",
    "application/epub+zip"
30 31
  })
)