/*
* Copyright (C) 2000, 2001, 2004, 2006, 2007, 2009, 2013, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: netdb.h,v 1.9 2009/01/18 23:48:14 tbox Exp $ */
#ifndef NETDB_H
#include <stddef.h>
#include <winsock2.h>
/*
* Define if <netdb.h> does not declare struct addrinfo.
*/
#if _MSC_VER < 1600
struct addrinfo {
};
#endif
/*
* Undefine all \#defines we are interested in as <netdb.h> may or may not have
* defined them.
*/
/*
* Error return codes from gethostbyname() and gethostbyaddr()
* (left in extern int h_errno).
*/
/*
* Error return codes from getaddrinfo()
*/
/*
* Flag values for getaddrinfo()
*/
/*
* Flag values for getipnodebyname()
*/
/*
* Constants for getnameinfo()
*/
/*
* Flag values for getnameinfo()
*/
/*
* Structures for getrrsetbyname()
*/
struct rdatainfo {
unsigned int rdi_length;
unsigned char *rdi_data;
};
struct rrsetinfo {
unsigned int rri_flags;
int rri_rdclass;
int rri_rdtype;
unsigned int rri_ttl;
unsigned int rri_nrdatas;
unsigned int rri_nsigs;
char *rri_name;
};
/*
* Flags for getrrsetbyname()
*/
/* Set was dnssec validated */
/*
* Return codes for getrrsetbyname()
*/
#define ERRSET_SUCCESS 0
#endif /* NETDB_H */