diff options
author | yzrh <yzrh@noema.org> | 2020-12-30 03:09:00 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2020-12-30 03:09:00 +0000 |
commit | 98691d4203f4e578b84b2014db0fbe0c1209cc48 (patch) | |
tree | c528e3ea964111b934ae5e61e847831d62944f41 /src/cnki.h | |
parent | 8d6fbb43c9bc840d4217bf4f0b49b1213f1601a1 (diff) | |
download | melon-98691d4203f4e578b84b2014db0fbe0c1209cc48.tar.gz melon-98691d4203f4e578b84b2014db0fbe0c1209cc48.tar.zst |
Add HN text extraction.
Diffstat (limited to 'src/cnki.h')
-rw-r--r-- | src/cnki.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |