summaryrefslogtreecommitdiff
path: root/src/cos_parse.h
blob: 0bca79f9050692f592776ec7e7f60b68af9f56d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright 2018 Vincent Sanders <vince@netsurf-browser.org>
 *
 * This file is part of libnspdf.
 *
 * Licensed under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 */

/**
 * \file
 * NetSurf PDF library parsing cos objects from file
 */

#ifndef NSPDF__COS_PARSE_H_
#define NSPDF__COS_PARSE_H_

struct nspdf_doc;
struct cos_object;

/**
 * Decode input stream into an object
 *
 * lex and parse a byte stream to generate a COS object.
 */
nspdferror cos_parse_object(struct nspdf_doc *doc, uint64_t *offset_out, struct cos_object **cosobj_out);

#endif