<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>libnl: /home/tgraf/dev/libnl/include/netlink/genl/family.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="libnl.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libnl  <span id="projectnumber">3.2.21</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('family_8h.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">family.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * netlink/genl/family.h Generic Netlink Family</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * This library is free software; you can redistribute it and/or</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * License as published by the Free Software Foundation version 2.1</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * of the License.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch></span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> */</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#ifndef NETLINK_GENL_FAMILY_H_</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor"></span><span class="preprocessor">#define NETLINK_GENL_FAMILY_H_</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <netlink/netlink.h></span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <netlink/cache.h></span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">struct </span>genl_family;</div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">extern</span> <span class="keyword">struct </span>genl_family * <a class="code" href="group__genl__family.html#gafde44dfe8988a42d15bf1465116e9003" title="Allocate new Generic Netlink family object.">genl_family_alloc</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__genl__family.html#ga618e2a8a00ce959db7e474ac181f5468" title="Release reference on Generic Netlink family object.">genl_family_put</a>(<span class="keyword">struct</span> genl_family *);</div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__genl__family.html#gaa5529e4e23aef5435a52579732cbdbfd" title="Return numeric identifier.">genl_family_get_id</a>(<span class="keyword">struct</span> genl_family *);</div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__genl__family.html#gaea72bd30733015a3716421c52e9ba6e6" title="Set the numeric identifier.">genl_family_set_id</a>(<span class="keyword">struct</span> genl_family *, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);</div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">extern</span> <span class="keywordtype">char</span> * <a class="code" href="group__genl__family.html#gaef6db67f1e935c4fce03e69a22ce89a6" title="Return human readable name.">genl_family_get_name</a>(<span class="keyword">struct</span> genl_family *);</div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__genl__family.html#ga3f3fea7b480be11a019f7fd83d40913b" title="Set human readable name.">genl_family_set_name</a>(<span class="keyword">struct</span> genl_family *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">extern</span> uint8_t <a class="code" href="group__genl__family.html#ga7daa6cec358ee767fd890fc3145348e5" title="Return interface version.">genl_family_get_version</a>(<span class="keyword">struct</span> genl_family *);</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__genl__family.html#ga41227cc1cf61a571d1a4255672b7ae1b" title="Set interface version.">genl_family_set_version</a>(<span class="keyword">struct</span> genl_family *, uint8_t);</div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">extern</span> uint32_t <a class="code" href="group__genl__family.html#gab3583ddadf81453f181b2c88fcebd513" title="Return user header size expected by kernel component.">genl_family_get_hdrsize</a>(<span class="keyword">struct</span> genl_family *);</div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">extern</span> <span class="keywordtype">void</span> genl_family_set_hdrsize(<span class="keyword">struct</span> genl_family *, uint32_t);</div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">extern</span> uint32_t genl_family_get_maxattr(<span class="keyword">struct</span> genl_family *);</div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">extern</span> <span class="keywordtype">void</span> genl_family_set_maxattr(<span class="keyword">struct</span> genl_family *, uint32_t);</div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">extern</span> <span class="keywordtype">int</span> genl_family_add_op(<span class="keyword">struct</span> genl_family *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">extern</span> <span class="keywordtype">int</span> genl_family_add_grp(<span class="keyword">struct</span> genl_family *, uint32_t ,</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#endif</span></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_021214d8919e1252c0028a8ba691c258.html">netlink</a></li><li class="navelem"><a class="el" href="dir_dd5fca504cd1aeeade040828275c0dc8.html">genl</a></li><li class="navelem"><b>family.h</b></li> <li class="footer">Generated on Thu Jan 24 2013 14:39:29 for libnl by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li> </ul> </div> </body> </html>