"Fossies" - the Fresh Open Source Software Archive
Member "libspf2-1.2.10/src/include/spf_dns_test.h" (28 Jan 2012, 1349 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
Alternatively you can here view
the uninterpreted source code file.
For more information about "spf_dns_test.h" see the Fossies "Dox" file reference
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of either:
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,
9 * OR
11 * b) The two-clause BSD license.
13 * These licenses can be found with the distribution in the file LICENSES
19 #ifndef INC_SPF_DNS_TEST
20 #define INC_SPF_DNS_TEST
22 #include "spf_dns.h"
25 * @file
26 * @brief A testing layer for DNS.
28 * The test DNS layer is actually just a thin wrapper around the zone
29 * DNS layer. It provides all the DNS information needed to do the
30 * SPF regression tests. This happens to be useful to me when I'm
31 * developing the library on my laptop and am not connected to the
32 * net.
34 * While multiple test DNS layers can be created, I can't see any
35 * use for more than one.
37 * For an overview of the DNS layer system, see spf_dns.h
41 * These routines take care of creating/destroying/etc. the objects
42 * that hold the DNS layer configuration. SPF_dns_server_t objects contain
43 * malloc'ed data, so they must be destroyed when you are finished
44 * with them, or you will leak memory.
46 SPF_dns_server_t *SPF_dns_test_new( SPF_dns_server_t *layer_below,
47 const char *name, int debug);