Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: third_party/libevent/evdns.h

Issue 5484001: Web2socket proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for signed/unsigned confusion + cosmetic Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/libevent/chromium.patch ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « third_party/libevent/chromium.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698