unbound  0.1
Data Structures | Functions
cachedb.h File Reference

This file contains a module that uses an external database to cache dns responses. More...

#include "util/module.h"

Data Structures

struct  cachedb_env
 The global variable environment contents for the cachedb Shared between threads, this represents long term information. More...
 
struct  cachedb_qstate
 Per query state for the cachedb module. More...
 
struct  cachedb_backend
 Backend call routines. More...
 

Functions

int cachedb_init (struct module_env *env, int id)
 Init the cachedb module.
 
void cachedb_deinit (struct module_env *env, int id)
 Deinit the cachedb module.
 
void cachedb_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound)
 Operate on an event on a query (in qstate). More...
 
void cachedb_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super)
 Subordinate query done, inform this super request of its conclusion.
 
void cachedb_clear (struct module_qstate *qstate, int id)
 clear the cachedb query-specific contents out of qstate
 
size_t cachedb_get_mem (struct module_env *env, int id)
 return memory estimate for cachedb module
 
struct module_func_blockcachedb_get_funcblock (void)
 Get the function block with pointers to the cachedb functions. More...
 

Detailed Description

This file contains a module that uses an external database to cache dns responses.

Function Documentation

◆ cachedb_operate()

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

Operate on an event on a query (in qstate).

Referenced by fptr_whitelist_mod_operate().

◆ cachedb_get_funcblock()

struct module_func_block* cachedb_get_funcblock ( void  )

Get the function block with pointers to the cachedb functions.

Returns
the function block for "cachedb".

Referenced by module_funcs_avail().