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

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

Issue 412006: posix: upgrade libevent from 1.4.7 to 1.4.13 (Closed)
Patch Set: better readme Created 11 years, 1 month 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
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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 /** 339 /**
340 Lookup a PTR record for a given IP address. 340 Lookup a PTR record for a given IP address.
341 341
342 @param in an IPv4 address 342 @param in an IPv4 address
343 @param flags either 0, or DNS_QUERY_NO_SEARCH to disable searching for this qu ery. 343 @param flags either 0, or DNS_QUERY_NO_SEARCH to disable searching for this qu ery.
344 @param callback a callback function to invoke when the request is completed 344 @param callback a callback function to invoke when the request is completed
345 @param ptr an argument to pass to the callback function 345 @param ptr an argument to pass to the callback function
346 @return 0 if successful, or -1 if an error occurred 346 @return 0 if successful, or -1 if an error occurred
347 @see evdns_resolve_reverse_ipv6() 347 @see evdns_resolve_reverse_ipv6()
348 */ 348 */
349 int evdns_resolve_reverse(struct in_addr *in, int flags, evdns_callback_type cal lback, void *ptr); 349 int evdns_resolve_reverse(const struct in_addr *in, int flags, evdns_callback_ty pe callback, void *ptr);
350 350
351 351
352 /** 352 /**
353 Lookup a PTR record for a given IPv6 address. 353 Lookup a PTR record for a given IPv6 address.
354 354
355 @param in an IPv6 address 355 @param in an IPv6 address
356 @param flags either 0, or DNS_QUERY_NO_SEARCH to disable searching for this qu ery. 356 @param flags either 0, or DNS_QUERY_NO_SEARCH to disable searching for this qu ery.
357 @param callback a callback function to invoke when the request is completed 357 @param callback a callback function to invoke when the request is completed
358 @param ptr an argument to pass to the callback function 358 @param ptr an argument to pass to the callback function
359 @return 0 if successful, or -1 if an error occurred 359 @return 0 if successful, or -1 if an error occurred
360 @see evdns_resolve_reverse_ipv6() 360 @see evdns_resolve_reverse_ipv6()
361 */ 361 */
362 int evdns_resolve_reverse_ipv6(struct in6_addr *in, int flags, evdns_callback_ty pe callback, void *ptr); 362 int evdns_resolve_reverse_ipv6(const struct in6_addr *in, int flags, evdns_callb ack_type callback, void *ptr);
363 363
364 364
365 /** 365 /**
366 Set the value of a configuration option. 366 Set the value of a configuration option.
367 367
368 The currently available configuration options are: 368 The currently available configuration options are:
369 369
370 ndots, timeout, max-timeouts, max-inflight, and attempts 370 ndots, timeout, max-timeouts, max-inflight, and attempts
371 371
372 @param option the name of the configuration option to be modified 372 @param option the name of the configuration option to be modified
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 /** 404 /**
405 Obtain nameserver information using the Windows API. 405 Obtain nameserver information using the Windows API.
406 406
407 Attempt to configure a set of nameservers based on platform settings on 407 Attempt to configure a set of nameservers based on platform settings on
408 a win32 host. Preferentially tries to use GetNetworkParams; if that fails, 408 a win32 host. Preferentially tries to use GetNetworkParams; if that fails,
409 looks in the registry. 409 looks in the registry.
410 410
411 @return 0 if successful, or -1 if an error occurred 411 @return 0 if successful, or -1 if an error occurred
412 @see evdns_resolv_conf_parse() 412 @see evdns_resolv_conf_parse()
413 */ 413 */
414 #ifdef MS_WINDOWS 414 #ifdef WIN32
415 int evdns_config_windows_nameservers(void); 415 int evdns_config_windows_nameservers(void);
416 #endif 416 #endif
417 417
418 418
419 /** 419 /**
420 Clear the list of search domains. 420 Clear the list of search domains.
421 */ 421 */
422 void evdns_search_clear(void); 422 void evdns_search_clear(void);
423 423
424 424
(...skipping 94 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

Powered by Google App Engine
This is Rietveld 408576698