Electroneum
Toggle main menu visibility
Loading...
Searching...
No Matches
pythonmod_utils.h
Go to the documentation of this file.
1
/*
2
* pythonmod_utils.h: utils 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
*/
41
#ifndef PYTHONMOD_UTILS_H
42
#define PYTHONMOD_UTILS_H
43
44
#include "
util/module.h
"
45
struct
delegpt_addr
;
46
58
int
storeQueryInCache
(
struct
module_qstate
* qstate,
struct
query_info
* qinfo,
struct
reply_info
* msgrep,
int
is_referral);
59
60
69
void
invalidateQueryInCache
(
struct
module_qstate
* qstate,
struct
query_info
* qinfo);
70
80
int
createResponse
(
struct
module_qstate
* qstate,
sldns_buffer
* pkt);
81
88
void
reply_addr2str
(
struct
comm_reply
* reply,
char
*
dest
,
int
maxlen);
89
90
/* Convert target->addr to string */
91
void
delegpt_addr_addr2str
(
struct
delegpt_addr
* target,
char
*
dest
,
int
maxlen);
92
93
#endif
/* PYTHONMOD_UTILS_H */
module.h
reply_addr2str
void reply_addr2str(struct comm_reply *reply, char *dest, int maxlen)
invalidateQueryInCache
void invalidateQueryInCache(struct module_qstate *qstate, struct query_info *qinfo)
delegpt_addr_addr2str
void delegpt_addr_addr2str(struct delegpt_addr *target, char *dest, int maxlen)
createResponse
int createResponse(struct module_qstate *qstate, sldns_buffer *pkt)
storeQueryInCache
int storeQueryInCache(struct module_qstate *qstate, struct query_info *qinfo, struct reply_info *msgrep, int is_referral)
dest
CXA_THROW_INFO_T void(* dest)(void *))
Definition
stack_trace.cpp:91
comm_reply
Definition
netevent.h:112
delegpt_addr
Definition
iter_delegpt.h:129
module_qstate
Definition
module.h:571
query_info
Definition
msgreply.h:69
reply_info
Definition
msgreply.h:125
sldns_buffer
Definition
sbuffer.h:117
external
unbound
pythonmod
pythonmod_utils.h
Generated on
for Electroneum by
1.17.0