result.h revision 55396fb3fba8ba140c12623acac27e007d4119a6
1633838b8255282d10af15c5c84cee5a51466712Bob Halley/*
aa3a328647720d733397b67c62f15331295fac09Bob Halley * Copyright (C) 1998, 1999 Internet Software Consortium.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley *
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * Permission to use, copy, modify, and distribute this software for any
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * purpose with or without fee is hereby granted, provided that the above
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * copyright notice and this permission notice appear in all copies.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley *
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * SOFTWARE.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley */
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#ifndef ISC_RESULT_H
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_RESULT_H 1
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley#include <isc/boolean.h>
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#include <isc/lang.h>
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#include <isc/list.h>
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#include <isc/types.h>
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob HalleyISC_LANG_BEGINDECLS
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_SUCCESS 0
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_NOMEMORY 1
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_TIMEDOUT 2
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_NOTHREADS 3
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_ADDRNOTAVAIL 4
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_ADDRINUSE 5
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_NOPERM 6
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_NOCONN 7
35921f41cfcbde6c5bdcb54abd3d5e0ed2256205Michael Graff#define ISC_R_NETUNREACH 8
f02c1d9431a7bad59ef2d40a341fa2f68a8a7550Michael Graff#define ISC_R_HOSTUNREACH 9
f02c1d9431a7bad59ef2d40a341fa2f68a8a7550Michael Graff#define ISC_R_NETDOWN 10
59b2e9c36162bf5868fb98082f3e131b1a85ca04Michael Graff#define ISC_R_HOSTDOWN 11
903c1c35fcec1aa32b6cea9cbdf0a2f055abed2dBob Halley#define ISC_R_CONNREFUSED 12
6a632f69681d2af06026345f92f8ee879ce18e08Bob Halley#define ISC_R_NORESOURCES 13 /* not enough resources */
af0fce400bfa79289aae239c10ae7f4fb2be8fa6Bob Halley#define ISC_R_EOF 14 /* end of file */
a0084eaa9f134e32d456537c67d2db7516aba867Michael Graff#define ISC_R_BOUND 15 /* already bound */
3ee2a218d778588094889b1cfb40dd32e9ce02c4Bob Halley#define ISC_R_TASKDONE 16 /* task is done */
3ee2a218d778588094889b1cfb40dd32e9ce02c4Bob Halley#define ISC_R_LOCKBUSY 17
b2df2dafcd42e0ffefc9a9a47d72afcb551a9c2bBob Halley#define ISC_R_EXISTS 18
af0fce400bfa79289aae239c10ae7f4fb2be8fa6Bob Halley#define ISC_R_NOSPACE 19 /* ran out of space */
af0fce400bfa79289aae239c10ae7f4fb2be8fa6Bob Halley#define ISC_R_CANCELED 20
af0fce400bfa79289aae239c10ae7f4fb2be8fa6Bob Halley#define ISC_R_TASKNOSEND 21
aa3a328647720d733397b67c62f15331295fac09Bob Halley#define ISC_R_TASKSHUTTINGDOWN 22 /* task is shutting down */
516d43e889d4fba3711671b6329f4145748c78ffBob Halley#define ISC_R_NOTFOUND 23
f3d38475531f218d0a2c2917b506b7ce60664b7cBob Halley#define ISC_R_UNEXPECTEDEND 24 /* unexpected end of input */
4182ae60b066051487fea5318d379bfa78eb67f1James Brister#define ISC_R_FAILURE 25 /* generic failure */
4182ae60b066051487fea5318d379bfa78eb67f1James Brister#define ISC_R_IOERROR 26
35921f41cfcbde6c5bdcb54abd3d5e0ed2256205Michael Graff#define ISC_R_NOTIMPLEMENTED 27
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_R_UNBALANCED 28
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_R_NOMORE 29
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_INVALIDFILE 30
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_R_BADBASE64 31
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_R_UNEXPECTEDTOKEN 32
#define ISC_R_QUOTA 33
#define ISC_R_UNEXPECTED 34
#define ISC_R_ALREADYRUNNING 35
#define ISC_R_NRESULTS 36 /* Number of results */
char * isc_result_totext(isc_result_t);
isc_result_t isc_result_register(unsigned int base,
unsigned int nresults,
char **text,
isc_msgcat_t *msgcat,
int set);
ISC_LANG_ENDDECLS
#endif /* ISC_RESULT_H */