* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
#define DNS_FIXEDNAME_H 1
/*! \file dns/fixedname.h
* dns_fixedname_t is a convenience type containing a name, an offsets
* table, and a dedicated buffer big enough for the longest possible
* name. This is typically used for stack-allocated names.
*\li The caller must ensure any required synchronization.
*\li No anticipated impact.
*\li Per dns_fixedname_t:
* sizeof(dns_name_t) + sizeof(dns_offsets_t) +
* sizeof(isc_buffer_t) + 255 bytes + structure padding
*\li No anticipated impact.
unsigned char data[DNS_NAME_MAXWIRE];
dns_fixedname_init(dns_fixedname_t *fixed);
dns_fixedname_invalidate(dns_fixedname_t *fixed);
dns_fixedname_name(dns_fixedname_t *fixed);
dns_fixedname_initname(dns_fixedname_t *fixed);
#endif /* DNS_FIXEDNAME_H */