Electroneum
pythonmod.h File Reference
Include dependency graph for pythonmod.h:

Go to the source code of this file.

Functions

struct module_func_blockpythonmod_get_funcblock (void)
 
int pythonmod_init (struct module_env *env, int id)
 
void pythonmod_deinit (struct module_env *env, int id)
 
void pythonmod_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound)
 
void pythonmod_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super)
 
void pythonmod_clear (struct module_qstate *qstate, int id)
 
size_t pythonmod_get_mem (struct module_env *env, int id)
 
int python_inplace_cb_reply_generic (struct query_info *qinfo, struct module_qstate *qstate, struct reply_info *rep, int rcode, struct edns_data *edns, struct edns_option **opt_list_out, struct regional *region, int id, void *python_callback)
 

Detailed Description

Python module for unbound. Calls python script.

Definition in file pythonmod.h.

Function Documentation

◆ python_inplace_cb_reply_generic()

int python_inplace_cb_reply_generic ( struct query_info qinfo,
struct module_qstate qstate,
struct reply_info rep,
int  rcode,
struct edns_data edns,
struct edns_option **  opt_list_out,
struct regional region,
int  id,
void *  python_callback 
)

Declared here for fptr_wlist access. The definition is in interface.i.

◆ pythonmod_clear()

void pythonmod_clear ( struct module_qstate qstate,
int  id 
)

python module cleanup query state

◆ pythonmod_deinit()

void pythonmod_deinit ( struct module_env env,
int  id 
)

python module deinit

◆ pythonmod_get_funcblock()

struct module_func_block* pythonmod_get_funcblock ( void  )

Get the module function block.

Returns
: function block with function pointers to module methods.

◆ pythonmod_get_mem()

size_t pythonmod_get_mem ( struct module_env env,
int  id 
)

python module alloc size routine

◆ pythonmod_inform_super()

void pythonmod_inform_super ( struct module_qstate qstate,
int  id,
struct module_qstate super 
)

python module

◆ pythonmod_init()

int pythonmod_init ( struct module_env env,
int  id 
)

python module init

◆ pythonmod_operate()

void pythonmod_operate ( struct module_qstate qstate,
enum module_ev  event,
int  id,
struct outbound_entry outbound 
)

python module operate on a query