1 /* Copyright (C) 2001-2006 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied, modified
8    or distributed except as expressly authorized under the terms of that
9    license.  Refer to licensing information at http://www.artifex.com/
10    or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11    San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12 */
13 
14 /* $Id: iscanbin.h 9043 2008-08-28 22:48:19Z giles $ */
15 /* Interface to binary token scanner */
16 
17 #ifndef iscanbin_INCLUDED
18 #  define iscanbin_INCLUDED
19 
20 /*
21  * Scan a binary token.  The main scanner calls this iff recognize_btokens()
22  * is true.  Return e_unregistered if Level 2 features are not included.
23  * Return 0 or scan_BOS on success, <0 on failure.
24  *
25  * This header file exists only because there are two implementations of
26  * this procedure: a dummy one for Level 1 systems, and the real one.
27  * The interface is entirely internal to the scanner.
28  */
29 int scan_binary_token(i_ctx_t *i_ctx_p, ref *pref, scanner_state *pstate);
30 
31 #endif /* iscanbin_INCLUDED */
32