Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > 9601c7beb4ff23e834bfa171795ed560 > files > 875

vidalia-0.2.9-1mdv2010.1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Vidalia: minixml.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_b47abd1aad201a152869566145babb61.html">src</a>&nbsp;&raquo;&nbsp;<a class="el" href="dir_ba957854da48b9bba2087c1aa8432048.html">miniupnpc</a>
  </div>
</div>
<div class="contents">
<h1>minixml.h</h1><a href="minixml_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* $Id: minixml.h,v 1.6 2006/11/30 11:47:21 nanard Exp $ */</span>
<a name="l00002"></a>00002 <span class="comment">/* minimal xml parser</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Project : miniupnp</span>
<a name="l00005"></a>00005 <span class="comment"> * Website : http://miniupnp.free.fr/</span>
<a name="l00006"></a>00006 <span class="comment"> * Author : Thomas Bernard</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2005 Thomas Bernard</span>
<a name="l00008"></a>00008 <span class="comment"> * This software is subject to the conditions detailed in the</span>
<a name="l00009"></a>00009 <span class="comment"> * LICENCE file provided in this distribution.</span>
<a name="l00010"></a>00010 <span class="comment"> * */</span>
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef __MINIXML_H__</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define __MINIXML_H__</span>
<a name="l00013"></a><a class="code" href="minixml_8h.html#a4c367559b4ba404d3e0629124acc8be1">00013</a> <span class="preprocessor"></span><span class="preprocessor">#define IS_WHITE_SPACE(c) ((c==&#39; &#39;) || (c==&#39;\t&#39;) || (c==&#39;\r&#39;) || (c==&#39;\n&#39;))</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="comment">/* if a callback function pointer is set to NULL,</span>
<a name="l00016"></a>00016 <span class="comment"> * the function is not called */</span>
<a name="l00017"></a><a class="code" href="structxmlparser.html">00017</a> <span class="keyword">struct </span><a class="code" href="structxmlparser.html">xmlparser</a> {
<a name="l00018"></a><a class="code" href="structxmlparser.html#aa3a28bba760c1fc8651adbe5c4777bcc">00018</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structxmlparser.html#aa3a28bba760c1fc8651adbe5c4777bcc">xmlstart</a>;
<a name="l00019"></a><a class="code" href="structxmlparser.html#ad6f11edca6cbc57e7001403b800946f7">00019</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structxmlparser.html#ad6f11edca6cbc57e7001403b800946f7">xmlend</a>;
<a name="l00020"></a><a class="code" href="structxmlparser.html#a5f99ae05cc90103e6c3b4d78d873d84e">00020</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structxmlparser.html#a5f99ae05cc90103e6c3b4d78d873d84e">xml</a>;        <span class="comment">/* pointer to current character */</span>
<a name="l00021"></a><a class="code" href="structxmlparser.html#ac13a02d2cff9c4efbcd8465f967205c8">00021</a>         <span class="keywordtype">int</span> <a class="code" href="structxmlparser.html#ac13a02d2cff9c4efbcd8465f967205c8">xmlsize</a>;
<a name="l00022"></a><a class="code" href="structxmlparser.html#a3dfa027211c0bfa37b8495af8acea4c5">00022</a>         <span class="keywordtype">void</span> * <a class="code" href="structxmlparser.html#a3dfa027211c0bfa37b8495af8acea4c5">data</a>;
<a name="l00023"></a><a class="code" href="structxmlparser.html#a3901dbfffc8b9f9bb1b12d5d71ed644f">00023</a>         void (*<a class="code" href="structxmlparser.html#a3901dbfffc8b9f9bb1b12d5d71ed644f">starteltfunc</a>) (<span class="keywordtype">void</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, int);
<a name="l00024"></a><a class="code" href="structxmlparser.html#aa3f41113fa210e6c61d13dd238d2ec5b">00024</a>         void (*<a class="code" href="structxmlparser.html#aa3f41113fa210e6c61d13dd238d2ec5b">endeltfunc</a>) (<span class="keywordtype">void</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, int);
<a name="l00025"></a><a class="code" href="structxmlparser.html#a220defff0466b2bbdeb9ce96ece21e18">00025</a>         void (*<a class="code" href="structxmlparser.html#a220defff0466b2bbdeb9ce96ece21e18">datafunc</a>) (<span class="keywordtype">void</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, int);
<a name="l00026"></a><a class="code" href="structxmlparser.html#a58dd37443f7fa6e72879dc1626295e8e">00026</a>         void (*<a class="code" href="structxmlparser.html#a58dd37443f7fa6e72879dc1626295e8e">attfunc</a>) (<span class="keywordtype">void</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, int, <span class="keyword">const</span> <span class="keywordtype">char</span> *, int);
<a name="l00027"></a>00027 };
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="comment">/* parsexml()</span>
<a name="l00030"></a>00030 <span class="comment"> * the xmlparser structure must be initialized before the call</span>
<a name="l00031"></a>00031 <span class="comment"> * the following structure members have to be initialized :</span>
<a name="l00032"></a>00032 <span class="comment"> * xmlstart, xmlsize, data, *func</span>
<a name="l00033"></a>00033 <span class="comment"> * xml is for internal usage, xmlend is computed automatically */</span>
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="minixml_8h.html#a8e0dd09441f10c79bde22bcaf2d2cda5">parsexml</a>(<span class="keyword">struct</span> <a class="code" href="structxmlparser.html">xmlparser</a> *);
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="preprocessor">#endif</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Aug 30 22:58:54 2010 for Vidalia by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>