1 /* 2 * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, you can obtain one at https://mozilla.org/MPL/2.0/. 7 * 8 * See the COPYRIGHT file distributed with this work for additional 9 * information regarding copyright ownership. 10 */ 11 12 #ifndef LWRES_RESULT_H 13 #define LWRES_RESULT_H 1 14 15 /*! \file lwres/result.h */ 16 17 typedef unsigned int lwres_result_t; 18 19 #define LWRES_R_SUCCESS 0 20 #define LWRES_R_NOMEMORY 1 21 #define LWRES_R_TIMEOUT 2 22 #define LWRES_R_NOTFOUND 3 23 #define LWRES_R_UNEXPECTEDEND 4 /* unexpected end of input */ 24 #define LWRES_R_FAILURE 5 /* generic failure */ 25 #define LWRES_R_IOERROR 6 26 #define LWRES_R_NOTIMPLEMENTED 7 27 #define LWRES_R_UNEXPECTED 8 28 #define LWRES_R_TRAILINGDATA 9 29 #define LWRES_R_INCOMPLETE 10 30 #define LWRES_R_RETRY 11 31 #define LWRES_R_TYPENOTFOUND 12 32 #define LWRES_R_TOOLARGE 13 33 34 #endif /* LWRES_RESULT_H */ 35