master ohmu/fastfetch-openbsd / src / modules / dns / option.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include "common/option.h"
 4
 5typedef enum FFDNSShowType: uint8_t {
 6    FF_DNS_TYPE_IPV4_BIT = 1,
 7    FF_DNS_TYPE_IPV6_BIT = 2,
 8    FF_DNS_TYPE_BOTH = FF_DNS_TYPE_IPV4_BIT | FF_DNS_TYPE_IPV6_BIT,
 9} FFDNSShowType;
10
11typedef struct FFDNSOptions {
12    FFModuleArgs moduleArgs;
13
14    FFDNSShowType showType;
15} FFDNSOptions;
16
17static_assert(sizeof(FFDNSOptions) <= FF_OPTION_MAX_SIZE, "FFDNSOptions size exceeds maximum allowed size");