mirror of
https://github.com/simon987/libscan.git
synced 2025-04-24 12:45:51 +00:00
22 lines
532 B
C
22 lines
532 B
C
#ifndef SCAN_EBOOK_H
|
|
#define SCAN_EBOOK_H
|
|
|
|
#include "../scan.h"
|
|
|
|
typedef struct {
|
|
long content_size;
|
|
int tn_size;
|
|
const char *tesseract_lang;
|
|
const char *tesseract_path;
|
|
pthread_mutex_t mupdf_mutex;
|
|
|
|
log_callback_t log;
|
|
logf_callback_t logf;
|
|
store_callback_t store;
|
|
} scan_ebook_ctx_t;
|
|
|
|
void parse_ebook(scan_ebook_ctx_t *ctx, vfile_t *f, const char* mime_str, document_t *doc);
|
|
void parse_ebook_mem(scan_ebook_ctx_t *ctx, void* buf, size_t buf_len, const char* mime_str, document_t *doc);
|
|
|
|
#endif
|