spf_dns_null.h

Go to the documentation of this file.
00001 /* 
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of either:
00004  * 
00005  *   a) The GNU Lesser General Public License as published by the Free
00006  *      Software Foundation; either version 2.1, or (at your option) any
00007  *      later version,
00008  * 
00009  *   OR
00010  * 
00011  *   b) The two-clause BSD license.
00012  *
00013  * These licenses can be found with the distribution in the file LICENSES
00014  */
00015 
00016 
00017 
00018 
00019 #ifndef INC_SPF_DNS_NULL
00020 #define INC_SPF_DNS_NULL
00021 
00022 /* For an overview of the DNS layer system, see spf_dns.h */
00023 
00024 /* The null DNS layer is really just a minimal DNS layer.  It is
00025  * useful when you don't want to do any real DNS lookups, or when you
00026  * want to be able to get debugging information about the requests
00027  * flowing between DNS layers.
00028  *
00029  * Multiple null DNS layers can be created, which can be useful for
00030  * debugging purposes.
00031  */
00032 
00033 
00034 /*
00035  * These routines take care of creating/destroying/etc. the objects
00036  * that hold the DNS layer configuration.  spfdcid objects contain
00037  * malloc'ed data, so they must be destroyed when you are finished
00038  * with them, or you will leak memory. 
00039  */
00040 
00041 /*
00042  * if debugging is enabled, information about the DNS queries sent to
00043  * the lower DNS layer, and the results returned from that layer will
00044  * be displayed.
00045  *
00046  * The "name" will be used when displaying debugging information so
00047  * that you can tell which location in the stack of DNS layers
00048  * generated the output.
00049  */
00050  
00051 SPF_dns_server_t        *SPF_dns_null_new( SPF_dns_server_t *layer_below,
00052                                 const char *name, int debug);
00053 
00054 
00055 #endif

Generated on Tue Nov 4 13:27:38 2008 for libspf2 by  doxygen 1.5.4