From 98691d4203f4e578b84b2014db0fbe0c1209cc48 Mon Sep 17 00:00:00 2001 From: yzrh Date: Wed, 30 Dec 2020 03:09:00 +0000 Subject: Add HN text extraction. --- src/cnki.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cnki.h') diff --git a/src/cnki.h b/src/cnki.h index f9adeba..cf5a818 100644 --- a/src/cnki.h +++ b/src/cnki.h @@ -64,7 +64,7 @@ typedef struct _object_hn_t { int32_t text_size; int16_t image_length; int16_t page; - int32_t zero[2]; + int32_t unknown[2]; /* TODO: what is it? */ char *text; struct _hn_image_t *image_data; struct _object_hn_t *next; @@ -88,6 +88,8 @@ int cnki_outline_tree(object_outline_tree_t **outline_tree, object_outline_t **outline, int *ids); /* cnki_zlib.c */ +int cnki_zlib(char **dst, int *dst_size, + const char * restrict src, int src_size); /* cnki_xml.c */ int cnki_xml(char **xml, FILE **fp); -- cgit v1.2.3