194N/A - Copyright (C) 2000, 2001, 2004, 2005, 2007, 2014-2016 Internet Systems Consortium, Inc. ("ISC") 194N/A - This Source Code Form is subject to the terms of the Mozilla Public 194N/A - License, v. 2.0. If a copy of the MPL was not distributed with this 194N/A<!-- Converted by db4-upgrade version 1.0 --> 194N/A <
date>2007-06-18</
date>
194N/A <
corpname>ISC</
corpname>
194N/A <
corpauthor>Internet Systems Consortium, Inc.</
corpauthor>
194N/A <
refentrytitle>lwres_config</
refentrytitle>
194N/A <
manvolnum>3</
manvolnum>
194N/A <
refmiscinfo>BIND9</
refmiscinfo>
194N/A <
holder>Internet Systems Consortium, Inc. ("ISC")</
holder>
3661N/A <
refname>lwres_conf_init</
refname>
3996N/A <
refname>lwres_conf_clear</
refname>
3996N/A <
refname>lwres_conf_parse</
refname>
3996N/A <
refname>lwres_conf_print</
refname>
194N/A <
refname>lwres_conf_get</
refname>
194N/A <
refpurpose>lightweight resolver configuration</
refpurpose>
194N/A<
function>lwres_conf_init</
function></
funcdef>
194N/A <
paramdef>lwres_context_t *<
parameter>ctx</
parameter></
paramdef>
194N/A<
function>lwres_conf_clear</
function></
funcdef>
194N/A <
paramdef>lwres_context_t *<
parameter>ctx</
parameter></
paramdef>
<
function>lwres_conf_parse</
function></
funcdef>
<
paramdef>lwres_context_t *<
parameter>ctx</
parameter></
paramdef>
<
paramdef>const char *<
parameter>filename</
parameter></
paramdef>
<
function>lwres_conf_print</
function></
funcdef>
<
paramdef>lwres_context_t *<
parameter>ctx</
parameter></
paramdef>
<
paramdef>FILE *<
parameter>fp</
parameter></
paramdef>
<
function>lwres_conf_get</
function></
funcdef>
<
paramdef>lwres_context_t *<
parameter>ctx</
parameter></
paramdef>
<
refsection><
info><
title>DESCRIPTION</
title></
info>
<
para><
function>lwres_conf_init()</
function>
<
type>lwres_conf_t</
type>
structure for lightweight resolver context
<
parameter>ctx</
parameter>.
<
para><
function>lwres_conf_clear()</
function>
frees up all the internal memory used by
<
type>lwres_conf_t</
type>
structure in resolver context
<
parameter>ctx</
parameter>.
<
para><
function>lwres_conf_parse()</
function>
<
parameter>filename</
parameter>
and parses it to initialise the resolver context
<
parameter>ctx</
parameter>'s
<
type>lwres_conf_t</
type>
<
para><
function>lwres_conf_print()</
function>
<
type>lwres_conf_t</
type>
structure for resolver context
<
parameter>ctx</
parameter>
<
parameter>fp</
parameter>.
<
refsection><
info><
title>RETURN VALUES</
title></
info>
<
para><
function>lwres_conf_parse()</
function>
returns <
errorcode>LWRES_R_SUCCESS</
errorcode>
if it successfully read and parsed
<
parameter>filename</
parameter>.
It returns <
errorcode>LWRES_R_FAILURE</
errorcode>
if <
parameter>filename</
parameter>
could not be opened or contained incorrect
<
para><
function>lwres_conf_print()</
function>
returns <
errorcode>LWRES_R_SUCCESS</
errorcode>
unless an error occurred when converting the network addresses to a
numeric host address string.
If this happens, the function returns
<
errorcode>LWRES_R_FAILURE</
errorcode>.
<
refsection><
info><
title>SEE ALSO</
title></
info>
<
refentrytitle>stdio</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>resolver</
refentrytitle><
manvolnum>5</
manvolnum>
<
refsection><
info><
title>FILES</
title></
info>