dynlibmod.h File Reference

Dynamic loading module for unbound. More...

Data Structures

struct  cb_pair
 
struct  dynlibmod_env
 

Typedefs

typedef int(* func_init_t) (struct module_env *, int)
 Global state for the module.
 
typedef void(* func_deinit_t) (struct module_env *, int)
 
typedef void(* func_operate_t) (struct module_qstate *, enum module_ev, int, struct outbound_entry *)
 
typedef void(* func_inform_t) (struct module_qstate *, int, struct module_qstate *)
 
typedef void(* func_clear_t) (struct module_qstate *, int)
 
typedef size_t(* func_get_mem_t) (struct module_env *, int)
 
typedef void(* inplace_cb_delete_wrapped_t) (struct module_env *, enum inplace_cb_list_type, int)
 
typedef int(* inplace_cb_register_wrapped_t) (void *, enum inplace_cb_list_type, void *, struct module_env *, int)
 

Functions

struct module_func_blockdynlibmod_get_funcblock (void)
 Get the module function block. More...
 
int dynlibmod_init (struct module_env *env, int id)
 dynlib module init
 
void dynlibmod_deinit (struct module_env *env, int id)
 dynlib module deinit
 
void dynlibmod_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound)
 dynlib module operate on a query
 
void dynlibmod_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super)
 dynlib module

 
void dynlibmod_clear (struct module_qstate *qstate, int id)
 dynlib module cleanup query state
 
size_t dynlibmod_get_mem (struct module_env *env, int id)
 dynlib module alloc size routine
 
int dynlib_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 comm_reply *repinfo, struct regional *region, struct timeval *start_time, int id, void *callback)
 
int dynlib_inplace_cb_query_generic (struct query_info *qinfo, uint16_t flags, struct module_qstate *qstate, struct sockaddr_storage *addr, socklen_t addrlen, uint8_t *zone, size_t zonelen, struct regional *region, int id, void *callback)
 
int dynlib_inplace_cb_edns_back_parsed (struct module_qstate *qstate, int id, void *cb_args)
 
int dynlib_inplace_cb_query_response (struct module_qstate *qstate, struct dns_msg *response, int id, void *cb_args)
 
int inplace_cb_register_wrapped (void *cb, enum inplace_cb_list_type type, void *cbarg, struct module_env *env, int id)
 
void inplace_cb_delete_wrapped (struct module_env *env, enum inplace_cb_list_type type, int id)
 

Detailed Description

Dynamic loading module for unbound.

Loads dynamic library.

Function Documentation

◆ dynlibmod_get_funcblock()

struct module_func_block* dynlibmod_get_funcblock ( void  )

Get the module function block.

Returns
: function block with function pointers to module methods.

References dynlibmod_block.

Referenced by module_funcs_avail().