Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 87b89b73c41f4440bb86afd421c7548f > files > 270

libnl-devel-1.1-14.fc14.x86_64.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>libnl: include/netlink/types.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.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libnl&#160;<span id="projectnumber">1.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>include/netlink/types.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * netlink/netlink-types.h      Netlink Types</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *      This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment"> *      modify it under the terms of the GNU Lesser General Public</span>
<a name="l00006"></a>00006 <span class="comment"> *      License as published by the Free Software Foundation version 2.1</span>
<a name="l00007"></a>00007 <span class="comment"> *      of the License.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * Copyright (c) 2003-2006 Thomas Graf &lt;tgraf@suug.ch&gt;</span>
<a name="l00010"></a>00010 <span class="comment"> */</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef __NETLINK_TYPES_H_</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define __NETLINK_TYPES_H_</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">/**</span>
<a name="l00018"></a>00018 <span class="comment"> * Dumping types (dp_type)</span>
<a name="l00019"></a>00019 <span class="comment"> * @ingroup utils</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a><a class="code" href="group__utils.html#gacfb5566c73f0965c5241d7d49bc717e9">00021</a> <span class="keyword">enum</span> <a class="code" href="group__utils.html#gacfb5566c73f0965c5241d7d49bc717e9" title="Dumping types (dp_type)">nl_dump_type</a> {
<a name="l00022"></a><a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a5597887c080d5ecae358b6065a4048fd">00022</a>         <a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a5597887c080d5ecae358b6065a4048fd" title="Dump object in a brief one-liner.">NL_DUMP_BRIEF</a>,          <span class="comment">/**&lt; Dump object in a brief one-liner */</span>
<a name="l00023"></a><a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a1445106c7af529b2c99ee289fbcd3179">00023</a>         <a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a1445106c7af529b2c99ee289fbcd3179" title="Dump all attributes but no statistics.">NL_DUMP_FULL</a>,           <span class="comment">/**&lt; Dump all attributes but no statistics */</span>
<a name="l00024"></a><a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a8ebedc55094df6175b84fb1230047a65">00024</a>         <a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a8ebedc55094df6175b84fb1230047a65" title="Dump all attributes including statistics.">NL_DUMP_STATS</a>,          <span class="comment">/**&lt; Dump all attributes including statistics */</span>
<a name="l00025"></a><a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9aa5b83654e99e53423c39b0d6e835d768">00025</a>         <a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9aa5b83654e99e53423c39b0d6e835d768" title="Dump all attribtes in XML format.">NL_DUMP_XML</a>,            <span class="comment">/**&lt; Dump all attribtes in XML format */</span>
<a name="l00026"></a><a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a7178b29f7f68857970540f2d1dabbaf1">00026</a>         <a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a7178b29f7f68857970540f2d1dabbaf1" title="Dump all attribtues as env variables.">NL_DUMP_ENV</a>,            <span class="comment">/**&lt; Dump all attribtues as env variables */</span>
<a name="l00027"></a><a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a0a6b9179a51fa838c1f662b6557e0dce">00027</a>         <a class="code" href="group__utils.html#ggacfb5566c73f0965c5241d7d49bc717e9a0a6b9179a51fa838c1f662b6557e0dce" title="Dump event.">NL_DUMP_EVENTS</a>,         <span class="comment">/**&lt; Dump event */</span>
<a name="l00028"></a>00028         __NL_DUMP_MAX,
<a name="l00029"></a>00029 };
<a name="l00030"></a>00030 <span class="preprocessor">#define NL_DUMP_MAX (__NL_DUMP_MAX - 1)</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00032"></a>00032 <span class="comment">/**</span>
<a name="l00033"></a>00033 <span class="comment"> * Dumping parameters</span>
<a name="l00034"></a>00034 <span class="comment"> * @ingroup utils</span>
<a name="l00035"></a>00035 <span class="comment"> */</span>
<a name="l00036"></a><a class="code" href="structnl__dump__params.html">00036</a> <span class="keyword">struct </span><a class="code" href="structnl__dump__params.html" title="Dumping parameters.">nl_dump_params</a>
<a name="l00037"></a>00037 {<span class="comment"></span>
<a name="l00038"></a>00038 <span class="comment">        /**</span>
<a name="l00039"></a>00039 <span class="comment">         * Specifies the type of dump that is requested.</span>
<a name="l00040"></a>00040 <span class="comment">         */</span>
<a name="l00041"></a><a class="code" href="structnl__dump__params.html#ae36d840078202bf028a6611d2e1f4ea5">00041</a>         <span class="keyword">enum</span> <a class="code" href="group__utils.html#gacfb5566c73f0965c5241d7d49bc717e9" title="Dumping types (dp_type)">nl_dump_type</a>       <a class="code" href="structnl__dump__params.html#ae36d840078202bf028a6611d2e1f4ea5" title="Specifies the type of dump that is requested.">dp_type</a>;
<a name="l00042"></a>00042 <span class="comment"></span>
<a name="l00043"></a>00043 <span class="comment">        /**</span>
<a name="l00044"></a>00044 <span class="comment">         * Specifies the number of whitespaces to be put in front</span>
<a name="l00045"></a>00045 <span class="comment">         * of every new line (indentation).</span>
<a name="l00046"></a>00046 <span class="comment">         */</span>
<a name="l00047"></a><a class="code" href="structnl__dump__params.html#a6fd1500e450689a268d89b1ee20311cc">00047</a>         <span class="keywordtype">int</span>                     <a class="code" href="structnl__dump__params.html#a6fd1500e450689a268d89b1ee20311cc" title="Specifies the number of whitespaces to be put in front of every new line (indentation).">dp_prefix</a>;
<a name="l00048"></a>00048 <span class="comment"></span>
<a name="l00049"></a>00049 <span class="comment">        /**</span>
<a name="l00050"></a>00050 <span class="comment">         * Causes the cache index to be printed for each element.</span>
<a name="l00051"></a>00051 <span class="comment">         */</span>
<a name="l00052"></a><a class="code" href="structnl__dump__params.html#a4a3f61556916405f8b4f73d6beb7e7b4">00052</a>         <span class="keywordtype">int</span>                     <a class="code" href="structnl__dump__params.html#a4a3f61556916405f8b4f73d6beb7e7b4" title="Causes the cache index to be printed for each element.">dp_print_index</a>;
<a name="l00053"></a>00053 <span class="comment"></span>
<a name="l00054"></a>00054 <span class="comment">        /**</span>
<a name="l00055"></a>00055 <span class="comment">         * Causes each element to be prefixed with the message type.</span>
<a name="l00056"></a>00056 <span class="comment">         */</span>
<a name="l00057"></a><a class="code" href="structnl__dump__params.html#a8935db5205e6d5967402784e59895690">00057</a>         <span class="keywordtype">int</span>                     <a class="code" href="structnl__dump__params.html#a8935db5205e6d5967402784e59895690" title="Causes each element to be prefixed with the message type.">dp_dump_msgtype</a>;
<a name="l00058"></a>00058 <span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment">        /**</span>
<a name="l00060"></a>00060 <span class="comment">         * A callback invoked for output</span>
<a name="l00061"></a>00061 <span class="comment">         *</span>
<a name="l00062"></a>00062 <span class="comment">         * Passed arguments are:</span>
<a name="l00063"></a>00063 <span class="comment">         *  - dumping parameters</span>
<a name="l00064"></a>00064 <span class="comment">         *  - string to append to the output</span>
<a name="l00065"></a>00065 <span class="comment">         */</span>
<a name="l00066"></a><a class="code" href="structnl__dump__params.html#ae75ee55ecfa22988aeb42673a0c1a482">00066</a>         void                    (*<a class="code" href="structnl__dump__params.html#ae75ee55ecfa22988aeb42673a0c1a482" title="A callback invoked for output.">dp_cb</a>)(<span class="keyword">struct </span><a class="code" href="structnl__dump__params.html" title="Dumping parameters.">nl_dump_params</a> *, <span class="keywordtype">char</span> *);
<a name="l00067"></a>00067 <span class="comment"></span>
<a name="l00068"></a>00068 <span class="comment">        /**</span>
<a name="l00069"></a>00069 <span class="comment">         * A callback invoked for every new line, can be used to</span>
<a name="l00070"></a>00070 <span class="comment">         * customize the indentation.</span>
<a name="l00071"></a>00071 <span class="comment">         *</span>
<a name="l00072"></a>00072 <span class="comment">         * Passed arguments are:</span>
<a name="l00073"></a>00073 <span class="comment">         *  - dumping parameters</span>
<a name="l00074"></a>00074 <span class="comment">         *  - line number starting from 0</span>
<a name="l00075"></a>00075 <span class="comment">         */</span>
<a name="l00076"></a><a class="code" href="structnl__dump__params.html#abdd722478abe803079e06cfb2a62c6a8">00076</a>         void                    (*<a class="code" href="structnl__dump__params.html#abdd722478abe803079e06cfb2a62c6a8" title="A callback invoked for every new line, can be used to customize the indentation.">dp_nl_cb</a>)(<span class="keyword">struct </span><a class="code" href="structnl__dump__params.html" title="Dumping parameters.">nl_dump_params</a> *, int);
<a name="l00077"></a>00077 <span class="comment"></span>
<a name="l00078"></a>00078 <span class="comment">        /**</span>
<a name="l00079"></a>00079 <span class="comment">         * User data pointer, can be used to pass data to callbacks.</span>
<a name="l00080"></a>00080 <span class="comment">         */</span>
<a name="l00081"></a><a class="code" href="structnl__dump__params.html#a4531c95c193d75b25a22ced77b3e3ba8">00081</a>         <span class="keywordtype">void</span>                    *<a class="code" href="structnl__dump__params.html#a4531c95c193d75b25a22ced77b3e3ba8" title="User data pointer, can be used to pass data to callbacks.">dp_data</a>;
<a name="l00082"></a>00082 <span class="comment"></span>
<a name="l00083"></a>00083 <span class="comment">        /**</span>
<a name="l00084"></a>00084 <span class="comment">         * File descriptor the dumping output should go to</span>
<a name="l00085"></a>00085 <span class="comment">         */</span>
<a name="l00086"></a><a class="code" href="structnl__dump__params.html#afe6d9b7154f8f6a4fa9469e859f1f652">00086</a>         FILE *                  <a class="code" href="structnl__dump__params.html#afe6d9b7154f8f6a4fa9469e859f1f652" title="File descriptor the dumping output should go to.">dp_fd</a>;
<a name="l00087"></a>00087 <span class="comment"></span>
<a name="l00088"></a>00088 <span class="comment">        /**</span>
<a name="l00089"></a>00089 <span class="comment">         * Alternatively the output may be redirected into a buffer</span>
<a name="l00090"></a>00090 <span class="comment">         */</span>
<a name="l00091"></a><a class="code" href="structnl__dump__params.html#ad069c751442fcf74c9f1bf25f0f5af92">00091</a>         <span class="keywordtype">char</span> *                  <a class="code" href="structnl__dump__params.html#ad069c751442fcf74c9f1bf25f0f5af92" title="Alternatively the output may be redirected into a buffer.">dp_buf</a>;
<a name="l00092"></a>00092 <span class="comment"></span>
<a name="l00093"></a>00093 <span class="comment">        /**</span>
<a name="l00094"></a>00094 <span class="comment">         * Length of the buffer dp_buf</span>
<a name="l00095"></a>00095 <span class="comment">         */</span>
<a name="l00096"></a><a class="code" href="structnl__dump__params.html#a63a511bbc4d12484ada704dcfc0818c0">00096</a>         <span class="keywordtype">size_t</span>                  <a class="code" href="structnl__dump__params.html#a63a511bbc4d12484ada704dcfc0818c0" title="Length of the buffer dp_buf.">dp_buflen</a>;
<a name="l00097"></a>00097 <span class="comment"></span>
<a name="l00098"></a>00098 <span class="comment">        /**</span>
<a name="l00099"></a>00099 <span class="comment">         * PRIVATE</span>
<a name="l00100"></a>00100 <span class="comment">         * Set if a dump was performed prior to the actual dump handler.</span>
<a name="l00101"></a>00101 <span class="comment">         */</span>
<a name="l00102"></a><a class="code" href="structnl__dump__params.html#a08aa2ae4636d506c7b4ccf26f37ee605">00102</a>         <span class="keywordtype">int</span>                     <a class="code" href="structnl__dump__params.html#a08aa2ae4636d506c7b4ccf26f37ee605" title="PRIVATE Set if a dump was performed prior to the actual dump handler.">dp_pre_dump</a>;
<a name="l00103"></a>00103 };
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Mar 21 2011 for libnl by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>