ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libspf/docs/API/doxygen/html/spfquery_8h-source.html
Revision: 1.1
Committed: Tue Nov 13 00:51:30 2007 UTC (18 years, 10 months ago) by root
Content type: text/html
Branch: MAIN
CVS Tags: HEAD
Log Message:
initial import of libspf-1.0.0-p5 from freebsd ports

File Contents

# User Rev Content
1 root 1.1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2     <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3     <title>libspf v1.0: spfquery.h Source File</title>
4     <link href="doxygen.css" rel="stylesheet" type="text/css">
5     </head><body>
6     <!-- Generated by Doxygen 1.3.7 -->
7     <div class="qindex"> <form class="search" action="search.php" method="get">
8     <a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
9     <h1>spfquery.h</h1><a href="spfquery_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="comment">/* libspf - Sender Policy Framework library</span>
10     00002 <span class="comment">*</span>
11     00003 <span class="comment">* ANSI C implementation of spf-draft-200405.txt</span>
12     00004 <span class="comment">*</span>
13     00005 <span class="comment">* Author: James Couzens &lt;jcouzens@codeshare.ca&gt;</span>
14     00006 <span class="comment">*</span>
15     00007 <span class="comment">* File: spfquery.c</span>
16     00008 <span class="comment">* Desc: SPF Query Tool (an example implementation of libSPF)</span>
17     00009 <span class="comment">*</span>
18     00010 <span class="comment">* License:</span>
19     00011 <span class="comment">*</span>
20     00012 <span class="comment">* The libspf Software License, Version 1.0</span>
21     00013 <span class="comment">*</span>
22     00014 <span class="comment">* Copyright (c) 2004 James Couzens &amp; Sean Comeau All rights</span>
23     00015 <span class="comment">* reserved.</span>
24     00016 <span class="comment">*</span>
25     00017 <span class="comment">* Redistribution and use in source and binary forms, with or without</span>
26     00018 <span class="comment">* modification, are permitted provided that the following conditions</span>
27     00019 <span class="comment">* are met:</span>
28     00020 <span class="comment">*</span>
29     00021 <span class="comment">* 1. Redistributions of source code must retain the above copyright</span>
30     00022 <span class="comment">* notice, this list of conditions and the following disclaimer.</span>
31     00023 <span class="comment">*</span>
32     00024 <span class="comment">* 2. Redistributions in binary form must reproduce the above copyright</span>
33     00025 <span class="comment">* notice, this list of conditions and the following disclaimer in</span>
34     00026 <span class="comment">* the documentation and/or other materials provided with the</span>
35     00027 <span class="comment">* distribution.</span>
36     00028 <span class="comment">*</span>
37     00029 <span class="comment">* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED</span>
38     00030 <span class="comment">* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES</span>
39     00031 <span class="comment">* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span>
40     00032 <span class="comment">* DISCLAIMED. IN NO EVENT SHALL THE AUTHORS MAKING USE OF THIS LICESEN</span>
41     00033 <span class="comment">* OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span>
42     00034 <span class="comment">* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span>
43     00035 <span class="comment">* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF</span>
44     00036 <span class="comment">* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span>
45     00037 <span class="comment">* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,</span>
46     00038 <span class="comment">* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT</span>
47     00039 <span class="comment">* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF</span>
48     00040 <span class="comment">* SUCH DAMAGE.</span>
49     00041 <span class="comment">*</span>
50     00042 <span class="comment">*/</span>
51     00043
52     00044 <span class="preprocessor">#ifndef _SPF_QUERY_H</span>
53     <a name="l00045"></a><a class="code" href="spfquery_8h.html#a0">00045</a> <span class="preprocessor"></span><span class="preprocessor">#define _SPF_QUERY_H 1</span>
54     00046 <span class="preprocessor"></span>
55     00047 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
56     00048 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
57     00049 <span class="preprocessor">#include &lt;string.h&gt;</span>
58     00050 <span class="preprocessor">#include "../../src/libspf/spf.h"</span>
59     00051
60     00052 __BEGIN_DECLS
61     00053
62     <a name="l00054"></a><a class="code" href="spfquery_8h.html#a1">00054</a> <span class="preprocessor">#define SPFQUERY_VERSION "0.1" </span><span class="comment">/* version */</span>
63     <a name="l00055"></a><a class="code" href="spfquery_8h.html#a2">00055</a> <span class="preprocessor">#define HELO_HOST "nobody" </span><span class="comment">/* default HELO host if none */</span>
64     <a name="l00056"></a><a class="code" href="spfquery_8h.html#a3">00056</a> <span class="preprocessor">#define HOSTNAME "libspf.org" </span><span class="comment">/* hostname */</span>
65     00057
66     00058 <span class="keywordtype">int</span> <a class="code" href="spfquery_8h.html#a4">main</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[]);
67     00059 <span class="keywordtype">void</span> <a class="code" href="spfquery_8c.html#a1">SPF_usage</a>();
68     00060
69     00061 __END_DECLS
70     00062
71     00063 <span class="preprocessor">#endif</span>
72     00064 <span class="preprocessor"></span>
73     00065 <span class="comment">/* end spfquery.h */</span>
74     </div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Aug 8 11:36:48 2004 for libspf v1.0 by
75     <a href="http://www.doxygen.org/index.html">
76     <img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
77     </body>
78     </html>