result.h revision 15a44745412679c30a6d022733925af70a38b715
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews/*
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews * Copyright (C) 1999, 2000 Internet Software Consortium.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User *
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews * Permission to use, copy, modify, and distribute this software for any
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User * purpose with or without fee is hereby granted, provided that the above
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User * copyright notice and this permission notice appear in all copies.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User *
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt */
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews/* $Id: result.h,v 1.6 2000/07/27 09:54:35 tale Exp $ */
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#ifndef OMAPI_RESULT_H
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#define OMAPI_RESULT_H 1
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#include <isc/lang.h>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#include <isc/result.h> /* Contractual promise. */
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#include <isc/resultclass.h>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsISC_LANG_BEGINDECLS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#define OMAPI_R_NOTYET (ISC_RESULTCLASS_OMAPI + 0)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#define OMAPI_R_NOTCONNECTED (ISC_RESULTCLASS_OMAPI + 1)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#define OMAPI_R_NOKEYS (ISC_RESULTCLASS_OMAPI + 2)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#define OMAPI_R_INVALIDARG (ISC_RESULTCLASS_OMAPI + 3)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#define OMAPI_R_VERSIONMISMATCH (ISC_RESULTCLASS_OMAPI + 4)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#define OMAPI_R_PROTOCOLERROR (ISC_RESULTCLASS_OMAPI + 5)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#define OMAPI_R_NRESULTS 6 /* Number of results */
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsconst char *
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Useromapi_result_totext(isc_result_t);
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox Uservoid
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox Useromapi_result_register(void);
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserISC_LANG_ENDDECLS
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User#endif /* OMAPI_RESULT_H */
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User