unbound
0.1
|
Python module for unbound. More...
#include "config.h"
#include <ldns/ldns.h>
#include <Python.h>
#include "pythonmod/pythonmod.h"
#include "util/module.h"
#include "util/config_file.h"
#include "pythonmod_utils.h"
#include "pythonmod/interface.h"
Data Structures | |
struct | pythonmod_env |
Global state for the module. More... | |
struct | pythonmod_qstate |
Per query state for the iterator module. More... | |
Functions | |
int | pythonmod_init (struct module_env *env, int id) |
python module init | |
void | pythonmod_deinit (struct module_env *env, int id) |
python module deinit | |
void | pythonmod_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super) |
python module | |
void | pythonmod_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *ATTR_UNUSED(outbound)) |
void | pythonmod_clear (struct module_qstate *qstate, int id) |
python module cleanup query state | |
size_t | pythonmod_get_mem (struct module_env *env, int id) |
python module alloc size routine | |
struct module_func_block * | pythonmod_get_funcblock (void) |
Get the module function block. | |
Variables | |
static struct module_func_block | pythonmod_block |
The module function block. |
Python module for unbound.
Calls python script.
struct module_func_block* pythonmod_get_funcblock | ( | void | ) | [read] |
Get the module function block.
References pythonmod_block.
Referenced by checkconf(), and module_funcs_avail().
struct module_func_block pythonmod_block [static] |
{ "python", &pythonmod_init, &pythonmod_deinit, &pythonmod_operate, &pythonmod_inform_super, &pythonmod_clear, &pythonmod_get_mem }
The module function block.
Referenced by pythonmod_get_funcblock().