Functions
Main: basic initialization and common functions

Functions

void ext_dns_color_log_enable (extDnsCtx *ctx, axl_bool status)
 Enable console color log. More...
 
axl_bool ext_dns_color_log_is_enabled (extDnsCtx *ctx)
 Allows to check if the color log is currently enabled. More...
 
axl_bool ext_dns_conf_get (extDnsCtx *ctx, extDnsConfItem item, int *value)
 Allows to get a ext_dns configuration, providing a valid ext_dns item. More...
 
axl_bool ext_dns_conf_set (extDnsCtx *ctx, extDnsConfItem item, int value, const char *str_value)
 Allows to configure the provided item, with either the integer or the string value, according to the item configuration documentation. More...
 
void ext_dns_exit_ctx (extDnsCtx *ctx, axl_bool free_ctx)
 Terminates the ext-dns library execution on the provided context. More...
 
int ext_dns_get_32bit (const char *buffer)
 Allows to get a 32bits integer value from the buffer. More...
 
axl_bool ext_dns_init_check (extDnsCtx *ctx)
 Allows to check if the provided extDnsCtx is initialized (ext_dns_init_ctx). More...
 
axl_bool ext_dns_init_ctx (extDnsCtx *ctx)
 Allows to init a ext-DNS context. More...
 
axl_bool ext_dns_is_exiting (extDnsCtx *ctx)
 Allows to check if ext-dns engine started on the provided context is finishing (a call to ext_dns_exit_ctx was done). More...
 
void ext_dns_log2_enable (extDnsCtx *ctx, axl_bool status)
 Enable console second level ext_dns log. More...
 
axl_bool ext_dns_log2_is_enabled (extDnsCtx *ctx)
 Allows to get current status for second level log debug info to console. More...
 
void ext_dns_log_enable (extDnsCtx *ctx, axl_bool status)
 Enable console ext_dns log. More...
 
axl_bool ext_dns_log_filter_is_enabled (extDnsCtx *ctx)
 Allows to check if current EXT_DNS_DEBUG_FILTER is enabled. More...
 
void ext_dns_log_filter_level (extDnsCtx *ctx, const char *filter_string)
 Allows to configure which levels will be filtered from log output. More...
 
extDnsLogHandler ext_dns_log_get_handler (extDnsCtx *ctx)
 Allows to get current log handler configured. More...
 
axl_bool ext_dns_log_is_enabled (extDnsCtx *ctx)
 Allows to get current status for log debug info to console. More...
 
void ext_dns_log_set_handler (extDnsCtx *ctx, extDnsLogHandler handler)
 Allows to configure an application handler that will be called for each log produced by the ext_dns engine. More...
 
void ext_dns_log_set_prepare_log (extDnsCtx *ctx, axl_bool prepare_string)
 Allows to instruct ext_dns to send log strings already formated to log handler configured (ext_dns_log_set_handler). More...
 
int ext_dns_strlen (const char *content)
 Simple wrapper around ext_dns_strlen with support for NULL. More...
 
int ext_dns_timeval_substract (struct timeval *a, struct timeval *b, struct timeval *result)
 Performs a timeval substract leaving the result in (result). More...
 

Detailed Description