1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>KLone: header.h Source File</title>
<link href="kl.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<div class="nav">
<a class="el" href="dir_000002.html">klone</a></div>
<h1>header.h</h1><a href="header_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
00002 <span class="comment"> * Copyright (c) 2005, 2006 by KoanLogic s.r.l. <http://www.koanlogic.com></span>
00003 <span class="comment"> * All rights reserved.</span>
00004 <span class="comment"> *</span>
00005 <span class="comment"> * This file is part of KLone, and as such it is subject to the license stated</span>
00006 <span class="comment"> * in the LICENSE file which you have received as part of this distribution.</span>
00007 <span class="comment"> *</span>
00008 <span class="comment"> * $Id: header.h,v 1.7 2006/01/09 12:38:37 tat Exp $</span>
00009 <span class="comment"> */</span>
00010
00011 <span class="preprocessor">#ifndef _KLONE_HEADER_H_</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define _KLONE_HEADER_H_</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#include <<a class="code" href="field_8h.html">klone/field.h</a>></span>
00015 <span class="preprocessor">#include <<a class="code" href="io_8h.html">klone/io.h</a>></span>
00016
00017 <span class="preprocessor">#ifdef __cplusplus</span>
00018 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00019 <span class="preprocessor">#endif </span>
00020 <span class="preprocessor"></span>
<a name="l00021"></a><a class="code" href="structheader__t.html">00021</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
00022 <span class="keyword"></span>{
<a name="l00023"></a><a class="code" href="structheader__t.html#o0">00023</a> <a class="code" href="field_8h.html#a3">fields_t</a> fields;
<a name="l00024"></a><a class="code" href="structheader__t.html#o1">00024</a> size_t nfields;
00025 } <a class="code" href="structheader__t.html">header_t</a>;
00026
00027 <span class="keywordtype">int</span> <a class="code" href="group__header__t.html#ga11">header_create</a>(<a class="code" href="structheader__t.html">header_t</a>**);
00028 <span class="keywordtype">int</span> <a class="code" href="group__header__t.html#ga10">header_load</a>(<a class="code" href="structheader__t.html">header_t</a>*, <a class="code" href="structio__s.html">io_t</a> *);
00029 <span class="keywordtype">int</span> <a class="code" href="group__header__t.html#ga9">header_load_from_cgienv</a>(<a class="code" href="structheader__t.html">header_t</a> *h);
00030 <span class="keywordtype">int</span> <a class="code" href="group__header__t.html#ga12">header_free</a>(<a class="code" href="structheader__t.html">header_t</a>*);
00031 <span class="keywordtype">int</span> <a class="code" href="group__header__t.html#ga7">header_add_field</a>(<a class="code" href="structheader__t.html">header_t</a> *h, <a class="code" href="structfield__s.html">field_t</a> *f);
00032 <span class="keywordtype">int</span> <a class="code" href="group__header__t.html#ga6">header_del_field</a>(<a class="code" href="structheader__t.html">header_t</a> *h, <a class="code" href="structfield__s.html">field_t</a> *f);
00033 <a class="code" href="structfield__s.html">field_t</a>* <a class="code" href="group__header__t.html#ga4">header_get_field</a>(<a class="code" href="structheader__t.html">header_t</a> *h, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
00034 <span class="keywordtype">int</span> <a class="code" href="group__header__t.html#ga1">header_clear</a>(<a class="code" href="structheader__t.html">header_t</a> *h);
00035
00036 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__header__t.html#ga5">header_get_field_value</a>(<a class="code" href="structheader__t.html">header_t</a> *h, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
00037
00038 <span class="keywordtype">int</span> <a class="code" href="group__header__t.html#ga0">header_set_field</a>(<a class="code" href="structheader__t.html">header_t</a> *h, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);
00039
00040 <a class="code" href="structfield__s.html">field_t</a>* <a class="code" href="group__header__t.html#ga3">header_get_fieldn</a>(<a class="code" href="structheader__t.html">header_t</a> *h, size_t idx);
00041 size_t <a class="code" href="group__header__t.html#ga2">header_field_count</a>(<a class="code" href="structheader__t.html">header_t</a> *h);
00042
00043 <span class="preprocessor">#ifdef __cplusplus</span>
00044 <span class="preprocessor"></span>}
00045 <span class="preprocessor">#endif </span>
00046 <span class="preprocessor"></span>
00047 <span class="preprocessor">#endif</span>
</pre></div><hr>
<div>
<div style="text-align:left">
<a href="http://www.koanlogic.com/kl/cont/gb/html/products.html">←Products</a>
</div>
<div style="text-align:center;">
© 2005-2006 - <a href="http://www.koanlogic.com">KoanLogic S.r.l.</a> - All rights reserved
</div>
</div>
</body>
</html>
|