1 /*	$NetBSD: result.h,v 1.4 2014/12/10 04:38:02 christos Exp $	*/
2 
3 /*
4  * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
5  * Copyright (C) 2000, 2001  Internet Software Consortium.
6  *
7  * Permission to use, copy, modify, and/or distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /* Id: result.h,v 1.21 2007/06/19 23:47:23 tbox Exp  */
21 
22 #ifndef LWRES_RESULT_H
23 #define LWRES_RESULT_H 1
24 
25 /*! \file lwres/result.h */
26 
27 typedef unsigned int lwres_result_t;
28 
29 #define LWRES_R_SUCCESS			0
30 #define LWRES_R_NOMEMORY		1
31 #define LWRES_R_TIMEOUT			2
32 #define LWRES_R_NOTFOUND		3
33 #define LWRES_R_UNEXPECTEDEND		4	/* unexpected end of input */
34 #define LWRES_R_FAILURE			5	/* generic failure */
35 #define LWRES_R_IOERROR			6
36 #define LWRES_R_NOTIMPLEMENTED		7
37 #define LWRES_R_UNEXPECTED		8
38 #define LWRES_R_TRAILINGDATA		9
39 #define LWRES_R_INCOMPLETE		10
40 #define LWRES_R_RETRY			11
41 #define LWRES_R_TYPENOTFOUND		12
42 #define LWRES_R_TOOLARGE		13
43 
44 #endif /* LWRES_RESULT_H */
45