"Fossies" - the Fresh Open Source Software Archive

Member "libspf2-1.2.10/src/include/spf_dns_resolv.h" (28 Jan 2012, 1288 Bytes) of package /linux/privat/libspf2-1.2.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "spf_dns_resolv.h" see the Fossies "Dox" file reference documentation.

    1 /* 
    2  * This program is free software; you can redistribute it and/or modify
    3  * it under the terms of either:
    4  * 
    5  *   a) The GNU Lesser General Public License as published by the Free
    6  *      Software Foundation; either version 2.1, or (at your option) any
    7  *      later version,
    8  * 
    9  *   OR
   10  * 
   11  *   b) The two-clause BSD license.
   12  *
   13  * These licenses can be found with the distribution in the file LICENSES
   14  */
   15 
   16 
   17 
   18 
   19 #ifndef INC_SPF_DNS_RESOLV
   20 #define INC_SPF_DNS_RESOLV
   21 
   22 /**
   23  * @file
   24  * The resolv DNS layer is an interface to the libresolv stub DNS resolver.
   25  *
   26  * While multiple resolv DNS layers can be created, I can't see much
   27  * use for more than one.
   28  *
   29  * For an overview of the DNS layer system, see spf_dns.h
   30  */
   31 
   32 
   33 /**
   34  * These routines take care of creating/destroying/etc. the objects
   35  * that hold the DNS layer configuration. SPF_dns_server_t objects contain
   36  * malloc'ed data, so they must be destroyed when you are finished
   37  * with them, or you will leak memory. 
   38  *
   39  * if debugging is enabled, information about the results from
   40  * libresolv will be displayed.  This information is often not passed
   41  * on to (and not needed by) the higher level DNS layers.
   42  */
   43 SPF_dns_server_t    *SPF_dns_resolv_new(SPF_dns_server_t *layer_below,
   44                 const char *name, int debug);
   45 
   46 #endif