<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>unbound: pythonmod/pythonmod.c File Reference</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.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</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 List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_c174c9fff4b3cb93696db8ab0b7b74e5.html">pythonmod</a> </div> </div> <div class="contents"> <h1>pythonmod.c File Reference</h1>Python module for unbound. <a href="#_details">More...</a> <p> <code>#include "config.h"</code><br> <code>#include <Python.h></code><br> <code>#include "<a class="el" href="pythonmod_8h.html">pythonmod/pythonmod.h</a>"</code><br> <code>#include "<a class="el" href="module_8h.html">util/module.h</a>"</code><br> <code>#include "<a class="el" href="config__file_8h.html">util/config_file.h</a>"</code><br> <code>#include "<a class="el" href="pythonmod__utils_8h.html">pythonmod_utils.h</a>"</code><br> <code>#include "pythonmod/interface.h"</code><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structpythonmod__env.html">pythonmod_env</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Global state for the module. <a href="structpythonmod__env.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structpythonmod__qstate.html">pythonmod_qstate</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Per query state for the iterator module. <a href="structpythonmod__qstate.html#_details">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b52370917fd4361577dfccee53448560"></a><!-- doxytag: member="pythonmod.c::pythonmod_init" ref="b52370917fd4361577dfccee53448560" args="(struct module_env *env, int id)" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="pythonmod_8c.html#b52370917fd4361577dfccee53448560">pythonmod_init</a> (struct <a class="el" href="structmodule__env.html">module_env</a> *env, int id)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">python module init <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="daf954b9df30ef777cdd8c03cd1f8c60"></a><!-- doxytag: member="pythonmod.c::pythonmod_deinit" ref="daf954b9df30ef777cdd8c03cd1f8c60" args="(struct module_env *env, int id)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="pythonmod_8c.html#daf954b9df30ef777cdd8c03cd1f8c60">pythonmod_deinit</a> (struct <a class="el" href="structmodule__env.html">module_env</a> *env, int id)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">python module deinit <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4f9f00c7644cd159c213b6603e21406"></a><!-- doxytag: member="pythonmod.c::pythonmod_inform_super" ref="b4f9f00c7644cd159c213b6603e21406" args="(struct module_qstate *qstate, int id, struct module_qstate *super)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="pythonmod_8c.html#b4f9f00c7644cd159c213b6603e21406">pythonmod_inform_super</a> (struct <a class="el" href="structmodule__qstate.html">module_qstate</a> *qstate, int id, struct <a class="el" href="structmodule__qstate.html">module_qstate</a> *super)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">python module <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6b79493eecfe3c315fe0975c4160c62b"></a><!-- doxytag: member="pythonmod.c::pythonmod_operate" ref="6b79493eecfe3c315fe0975c4160c62b" args="(struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="pythonmod_8c.html#6b79493eecfe3c315fe0975c4160c62b">pythonmod_operate</a> (struct <a class="el" href="structmodule__qstate.html">module_qstate</a> *qstate, enum <a class="el" href="module_8h.html#3d7416154a3bc44d78e8a6e99efc4376">module_ev</a> event, int id, struct <a class="el" href="structoutbound__entry.html">outbound_entry</a> *outbound)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">python module operate on a query <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0fc911081c16ab14892de21f2211deb0"></a><!-- doxytag: member="pythonmod.c::pythonmod_clear" ref="0fc911081c16ab14892de21f2211deb0" args="(struct module_qstate *qstate, int id)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="pythonmod_8c.html#0fc911081c16ab14892de21f2211deb0">pythonmod_clear</a> (struct <a class="el" href="structmodule__qstate.html">module_qstate</a> *qstate, int id)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">python module cleanup query state <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a29381544be88702f5435aabc59b43df"></a><!-- doxytag: member="pythonmod.c::pythonmod_get_mem" ref="a29381544be88702f5435aabc59b43df" args="(struct module_env *env, int id)" --> size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="pythonmod_8c.html#a29381544be88702f5435aabc59b43df">pythonmod_get_mem</a> (struct <a class="el" href="structmodule__env.html">module_env</a> *env, int id)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">python module alloc size routine <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structmodule__func__block.html">module_func_block</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="pythonmod_8c.html#6eecfde26216b66862c501d00ebad87b">pythonmod_get_funcblock</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the module function block. <a href="#6eecfde26216b66862c501d00ebad87b"></a><br></td></tr> <tr><td colspan="2"><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static struct <a class="el" href="structmodule__func__block.html">module_func_block</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pythonmod_8c.html#5e6a99a4c725251cd100bfd514fc84ac">pythonmod_block</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The module function block. <a href="#5e6a99a4c725251cd100bfd514fc84ac"></a><br></td></tr> </table> <hr><h2>Detailed Description</h2> Python module for unbound. <p> Calls python script. <hr><h2>Function Documentation</h2> <a class="anchor" name="6eecfde26216b66862c501d00ebad87b"></a><!-- doxytag: member="pythonmod.c::pythonmod_get_funcblock" ref="6eecfde26216b66862c501d00ebad87b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct <a class="el" href="structmodule__func__block.html">module_func_block</a>* pythonmod_get_funcblock </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [read]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the module function block. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>: function block with function pointers to module methods. </dd></dl> <p>Referenced by <a class="el" href="unbound-checkconf_8c_source.html#l00547">checkconf()</a>, and <a class="el" href="modstack_8c_source.html#l00132">module_funcs_avail()</a>.</p> </div> </div><p> <hr><h2>Variable Documentation</h2> <a class="anchor" name="5e6a99a4c725251cd100bfd514fc84ac"></a><!-- doxytag: member="pythonmod.c::pythonmod_block" ref="5e6a99a4c725251cd100bfd514fc84ac" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct <a class="el" href="structmodule__func__block.html">module_func_block</a> <a class="el" href="pythonmod_8c.html#5e6a99a4c725251cd100bfd514fc84ac">pythonmod_block</a><code> [static]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <b>Initial value:</b><div class="fragment"><pre class="fragment"> { <span class="stringliteral">"python"</span>, &<a class="code" href="pythonmod_8c.html#b52370917fd4361577dfccee53448560" title="python module init">pythonmod_init</a>, &<a class="code" href="pythonmod_8c.html#daf954b9df30ef777cdd8c03cd1f8c60" title="python module deinit">pythonmod_deinit</a>, &<a class="code" href="pythonmod_8c.html#6b79493eecfe3c315fe0975c4160c62b" title="python module operate on a query">pythonmod_operate</a>, &<a class="code" href="pythonmod_8c.html#b4f9f00c7644cd159c213b6603e21406" title="python module">pythonmod_inform_super</a>, &<a class="code" href="pythonmod_8c.html#0fc911081c16ab14892de21f2211deb0" title="python module cleanup query state">pythonmod_clear</a>, &<a class="code" href="pythonmod_8c.html#a29381544be88702f5435aabc59b43df" title="python module alloc size routine">pythonmod_get_mem</a> } </pre></div>The module function block. <p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 13 06:46:31 2009 for unbound by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>