libaddns/dnserr.h

説明を見る。
00001 /*
00002   Error codes for Linux DNS client library implementation
00003   
00004   Copyright (C) 2006 Krishna Ganugapati <krishnag@centeris.com>
00005   Copyright (C) 2006 Gerald Carter <jerry@samba.org>
00006 
00007      ** NOTE! The following LGPL license applies to the libaddns
00008      ** library. This does NOT imply that all of Samba is released
00009      ** under the LGPL
00010 
00011   This library is free software; you can redistribute it and/or
00012   modify it under the terms of the GNU Lesser General Public
00013   License as published by the Free Software Foundation; either
00014   version 2.1 of the License, or (at your option) any later version.
00015 
00016   This library is distributed in the hope that it will be useful,
00017   but WITHOUT ANY WARRANTY; without even the implied warranty of
00018   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019   Lesser General Public License for more details.
00020 
00021   You should have received a copy of the GNU Lesser General Public
00022   License along with this library; if not, write to the Free Software
00023   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  
00024   02110-1301  USA
00025 */
00026 
00027 #ifndef _DNSERR_H
00028 #define _DNSERR_H
00029 
00030 
00031 /* The Splint code analysis tool (http://www.splint.org.) doesn't 
00032    like immediate structures. */
00033    
00034 #ifdef _SPLINT_
00035 #undef HAVE_IMMEDIATE_STRUCTURES
00036 #endif
00037 
00038 /* Setup the DNS_ERROR typedef.  Technique takes from nt_status.h */
00039 
00040 #if defined(HAVE_IMMEDIATE_STRUCTURES)
00041 typedef struct {uint32 v;} DNS_ERROR;
00042 #define ERROR_DNS(x) ((DNS_ERROR) { x })
00043 #define ERROR_DNS_V(x) ((x).v)
00044 #else
00045 typedef uint32 DNS_ERROR;
00046 #define ERROR_DNS(x) (x)
00047 #define ERROR_DNS_V(x) (x)
00048 #endif
00049 
00050 #define ERR_DNS_IS_OK(x)   (ERROR_DNS_V(x) == 0)
00051 #define ERR_DNS_EQUAL(x,y) (ERROR_DNS_V(x) == ERROR_DNS_V(y))
00052 
00053 /*************************************************
00054  * Define the error codes here
00055  *************************************************/
00056 
00057 #define ERROR_DNS_SUCCESS               ERROR_DNS(0) 
00058 #define ERROR_DNS_RECORD_NOT_FOUND      ERROR_DNS(1)
00059 #define ERROR_DNS_BAD_RESPONSE          ERROR_DNS(2)
00060 #define ERROR_DNS_INVALID_PARAMETER     ERROR_DNS(3)
00061 #define ERROR_DNS_NO_MEMORY             ERROR_DNS(4)
00062 #define ERROR_DNS_INVALID_NAME_SERVER   ERROR_DNS(5)
00063 #define ERROR_DNS_CONNECTION_FAILED     ERROR_DNS(6)
00064 #define ERROR_DNS_GSS_ERROR             ERROR_DNS(7)
00065 #define ERROR_DNS_INVALID_NAME          ERROR_DNS(8)
00066 #define ERROR_DNS_INVALID_MESSAGE       ERROR_DNS(9)
00067 #define ERROR_DNS_SOCKET_ERROR          ERROR_DNS(10)
00068 #define ERROR_DNS_UPDATE_FAILED         ERROR_DNS(11)
00069 
00070 /*
00071  * About to be removed, transitional error
00072  */
00073 #define ERROR_DNS_UNSUCCESSFUL          ERROR_DNS(999)
00074 
00075 
00076 #define ERROR_BAD_RESPONSE              1
00077 #define ERROR_RECORD_NOT_FOUND          2
00078 #define ERROR_OUTOFMEMORY               8
00079 #if !defined(ERROR_INVALID_PARAMETER)
00080 #define ERROR_INVALID_PARAMETER         87
00081 #endif
00082 
00083 /*
00084  * About to be removed, transitional error
00085  */
00086 #define ERROR_UNSUCCESSFUL 999
00087 
00088 #endif  /* _DNSERR_H */
00089 

Sambaに対してSat Aug 29 21:23:00 2009に生成されました。  doxygen 1.4.7