Deleted Added
full compact
resconf.h (234010) resconf.h (262706)
1/*
1/*
2 * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
2 * Copyright (C) 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,

--- 30 unchanged lines hidden (view full) ---

41typedef ISC_LIST(irs_resconf_search_t) irs_resconf_searchlist_t;
42
43ISC_LANG_BEGINDECLS
44
45isc_result_t
46irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp);
47/*%<
48 * Load the resolver configuration file 'filename' in the "resolv.conf" format,
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,

--- 30 unchanged lines hidden (view full) ---

41typedef ISC_LIST(irs_resconf_search_t) irs_resconf_searchlist_t;
42
43ISC_LANG_BEGINDECLS
44
45isc_result_t
46irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp);
47/*%<
48 * Load the resolver configuration file 'filename' in the "resolv.conf" format,
49 * and create a new irs_resconf_t object from the configuration.
49 * and create a new irs_resconf_t object from the configuration. If the file
50 * is not found ISC_R_FILENOTFOUND is returned with the structure initialized
51 * as if file contained only:
50 *
52 *
53 * nameserver ::1
54 * nameserver 127.0.0.1
55 *
51 * Notes:
52 *
53 *\li Currently, only the following options are supported:
54 * nameserver, domain, search, sortlist, ndots, and options.
55 * In addition, 'sortlist' is not actually effective; it's parsed, but
56 * the application cannot use the configuration.
57 *
56 * Notes:
57 *
58 *\li Currently, only the following options are supported:
59 * nameserver, domain, search, sortlist, ndots, and options.
60 * In addition, 'sortlist' is not actually effective; it's parsed, but
61 * the application cannot use the configuration.
62 *
63 * Returns:
64 * \li ISC_R_SUCCESS on success
65 * \li ISC_R_FILENOTFOUND if the file was not found. *confp will be valid.
66 * \li other on error.
67 *
58 * Requires:
59 *
60 *\li 'mctx' is a valid memory context.
61 *
62 *\li 'filename' != NULL
63 *
64 *\li 'confp' != NULL && '*confp' == NULL
65 */

--- 48 unchanged lines hidden ---
68 * Requires:
69 *
70 *\li 'mctx' is a valid memory context.
71 *
72 *\li 'filename' != NULL
73 *
74 *\li 'confp' != NULL && '*confp' == NULL
75 */

--- 48 unchanged lines hidden ---