Electroneum
Toggle main menu visibility
Loading...
Searching...
No Matches
pythonmod.h
Go to the documentation of this file.
1
/*
2
* pythonmod.h: module header file
3
*
4
* Copyright (c) 2009, Zdenek Vasicek (vasicek AT fit.vutbr.cz)
5
* Marek Vavrusa (xvavru00 AT stud.fit.vutbr.cz)
6
*
7
* This software is open source.
8
*
9
* Redistribution and use in source and binary forms, with or without
10
* modification, are permitted provided that the following conditions
11
* are met:
12
*
13
* * Redistributions of source code must retain the above copyright notice,
14
* this list of conditions and the following disclaimer.
15
*
16
* * Redistributions in binary form must reproduce the above copyright notice,
17
* this list of conditions and the following disclaimer in the documentation
18
* and/or other materials provided with the distribution.
19
*
20
* * Neither the name of the organization nor the names of its
21
* contributors may be used to endorse or promote products derived from this
22
* software without specific prior written permission.
23
*
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
28
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34
* POSSIBILITY OF SUCH DAMAGE.
35
*/
40
#ifndef PYTHONMOD_H
41
#define PYTHONMOD_H
42
#include "
util/module.h
"
43
#include "
services/outbound_list.h
"
44
49
struct
module_func_block
*
pythonmod_get_funcblock
(
void
);
50
52
int
pythonmod_init
(
struct
module_env
* env,
int
id
);
53
55
void
pythonmod_deinit
(
struct
module_env
* env,
int
id
);
56
58
void
pythonmod_operate
(
struct
module_qstate
* qstate,
enum
module_ev
event,
59
int
id
,
struct
outbound_entry
* outbound);
60
62
void
pythonmod_inform_super
(
struct
module_qstate
* qstate,
int
id
,
63
struct
module_qstate
* super);
64
66
void
pythonmod_clear
(
struct
module_qstate
* qstate,
int
id
);
67
69
size_t
pythonmod_get_mem
(
struct
module_env
* env,
int
id
);
70
72
int
python_inplace_cb_reply_generic
(
struct
query_info
* qinfo,
73
struct
module_qstate
* qstate,
struct
reply_info
* rep,
int
rcode,
74
struct
edns_data
* edns,
struct
edns_option
** opt_list_out,
75
struct
regional
* region,
int
id
,
void
* python_callback);
76
#endif
/* PYTHONMOD_H */
module.h
module_ev
module_ev
Definition
module.h:536
outbound_list.h
pythonmod_clear
void pythonmod_clear(struct module_qstate *qstate, int id)
pythonmod_operate
void pythonmod_operate(struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound)
pythonmod_get_mem
size_t pythonmod_get_mem(struct module_env *env, int id)
pythonmod_inform_super
void pythonmod_inform_super(struct module_qstate *qstate, int id, struct module_qstate *super)
pythonmod_init
int pythonmod_init(struct module_env *env, int id)
pythonmod_get_funcblock
struct module_func_block * pythonmod_get_funcblock(void)
pythonmod_deinit
void pythonmod_deinit(struct module_env *env, int id)
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)
edns_data
Definition
msgparse.h:209
edns_option
Definition
msgparse.h:227
module_env
Definition
module.h:307
module_func_block
Definition
module.h:642
module_qstate
Definition
module.h:571
outbound_entry
Definition
outbound_list.h:61
query_info
Definition
msgreply.h:69
regional
Definition
regional.h:60
reply_info
Definition
msgreply.h:125
external
unbound
pythonmod
pythonmod.h
Generated on
for Electroneum by
1.17.0