OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2006 Niels Provos <provos@citi.umich.edu> | 2 * Copyright (c) 2006 Niels Provos <provos@citi.umich.edu> |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 */ | 158 */ |
159 | 159 |
160 #ifndef EVENTDNS_H | 160 #ifndef EVENTDNS_H |
161 #define EVENTDNS_H | 161 #define EVENTDNS_H |
162 | 162 |
163 #ifdef __cplusplus | 163 #ifdef __cplusplus |
164 extern "C" { | 164 extern "C" { |
165 #endif | 165 #endif |
166 | 166 |
167 /* For integer types. */ | 167 /* For integer types. */ |
168 #include <evutil.h> | 168 #include "evutil.h" |
169 | 169 |
170 /** Error codes 0-5 are as described in RFC 1035. */ | 170 /** Error codes 0-5 are as described in RFC 1035. */ |
171 #define DNS_ERR_NONE 0 | 171 #define DNS_ERR_NONE 0 |
172 /** The name server was unable to interpret the query */ | 172 /** The name server was unable to interpret the query */ |
173 #define DNS_ERR_FORMAT 1 | 173 #define DNS_ERR_FORMAT 1 |
174 /** The name server was unable to process this query due to a problem with the | 174 /** The name server was unable to process this query due to a problem with the |
175 * name server */ | 175 * name server */ |
176 #define DNS_ERR_SERVERFAILED 2 | 176 #define DNS_ERR_SERVERFAILED 2 |
177 /** The domain name does not exist */ | 177 /** The domain name does not exist */ |
178 #define DNS_ERR_NOTEXIST 3 | 178 #define DNS_ERR_NOTEXIST 3 |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 int evdns_server_request_respond(struct evdns_server_request *req, int err); | 519 int evdns_server_request_respond(struct evdns_server_request *req, int err); |
520 int evdns_server_request_drop(struct evdns_server_request *req); | 520 int evdns_server_request_drop(struct evdns_server_request *req); |
521 struct sockaddr; | 521 struct sockaddr; |
522 int evdns_server_request_get_requesting_addr(struct evdns_server_request *_req,
struct sockaddr *sa, int addr_len); | 522 int evdns_server_request_get_requesting_addr(struct evdns_server_request *_req,
struct sockaddr *sa, int addr_len); |
523 | 523 |
524 #ifdef __cplusplus | 524 #ifdef __cplusplus |
525 } | 525 } |
526 #endif | 526 #endif |
527 | 527 |
528 #endif /* !EVENTDNS_H */ | 528 #endif /* !EVENTDNS_H */ |
OLD | NEW |