Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
DNSTABLE_STAT(3)						DNSTABLE_STAT(3)

NAME
     dnstable_stat - dnstable stat objects

SYNOPSIS
     #include <dnstable.h>

     typedef enum {
	     DNSTABLE_STAT_STAGE_FILTER_FILESET,
	     DNSTABLE_STAT_STAGE_FILTER_SINGLE_LABEL,
	     DNSTABLE_STAT_STAGE_FILTER_RRTYPE,
	     DNSTABLE_STAT_STAGE_FILTER_BAILIWICK,
	     DNSTABLE_STAT_STAGE_FILTER_TIME_PREFILTER,
	     DNSTABLE_STAT_STAGE_REMOVE_STRICT,
	     DNSTABLE_STAT_STAGE_FILL_MERGER,
	     DNSTABLE_STAT_STAGE_LJOIN,
	     DNSTABLE_STAT_STAGE_FILTER_TIME,
	     DNSTABLE_STAT_STAGE_FILTER_OFFSET,
     } dnstable_stat_stage;

     typedef enum {
	     DNSTABLE_STAT_CATEGORY_FILTERED,
	     DNSTABLE_STAT_CATEGORY_MERGED,
	     DNSTABLE_STAT_CATEGORY_SEEK,
	     DNSTABLE_STAT_CATEGORY_FILES,
     } dnstable_stat_category;

     const char *
     dnstable_stat_stage_to_str(dnstable_stat_stage);

     dnstable_res
     dnstable_stat_str_to_stage(const char *stage, dnstable_stat_stage *res);

     const char *
     dnstable_stat_category_to_str(dnstable_stat_category);

     dnstable_res
     dnstable_stat_str_to_category(const char *category, dnstable_stat_category *res);

DESCRIPTION
	 The functions ^dnstable_stat_stage_to_str^() and ^dnstable_stat_str_to_stage^() facilitate conversion between ^dnstable_stat_stage^ values and human-readable
	 strings, while ^dnstable_stat_category_to_str^() and ^dnstable_stat_str_to_category^() convert between ^dnstable_stat_category^ values and human-readable
	 strings.

RETURN VALUE
	 Both ^dnstable_stat_stage_to_str^() and ^dnstable_stat_category_to_str^() return string representations of the respective stage or category on success, or NULL
	 on failure. Likewise, ^dnstable_stat_str_to_stage^() and ^dnstable_stat_str_to_category^() will return a value of ^dnstable_res_success^ on success and will set
	 the value of res accordingly, or will simply return ^dnstable_res_failure^ upon failure.

SEE ALSO
     dnstable_iter(3)

				   12/20/2023			DNSTABLE_STAT(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=dnstable_stat&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help