xref: /netbsd-src/external/mpl/bind/dist/lib/isccc/include/isccc/types.h (revision bcda20f65a8566e103791ec395f7f499ef322704)
1 /*	$NetBSD: types.h,v 1.8 2025/01/26 16:25:44 christos Exp $	*/
2 
3 /*
4  * Portions Copyright (C) Internet Systems Consortium, Inc. ("ISC")
5  *
6  * SPDX-License-Identifier: MPL-2.0 AND ISC
7  *
8  * This Source Code Form is subject to the terms of the Mozilla Public
9  * License, v. 2.0. If a copy of the MPL was not distributed with this
10  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
11  *
12  * See the COPYRIGHT file distributed with this work for additional
13  * information regarding copyright ownership.
14  */
15 
16 /*
17  * Copyright (C) 2001 Nominum, Inc.
18  *
19  * Permission to use, copy, modify, and/or distribute this software for any
20  * purpose with or without fee is hereby granted, provided that the above
21  * copyright notice and this permission notice appear in all copies.
22  *
23  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
24  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
25  * OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY
26  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
27  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
28  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
29  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30  */
31 
32 #pragma once
33 
34 /*! \file isccc/types.h */
35 
36 #include <inttypes.h>
37 
38 #include <isc/result.h>
39 
40 /*% isccc_time_t typedef */
41 typedef uint32_t isccc_time_t;
42 
43 /*% isccc_sexpr_t typedef */
44 typedef struct isccc_sexpr isccc_sexpr_t;
45 /*% isccc_dottedpair_t typedef */
46 typedef struct isccc_dottedpair isccc_dottedpair_t;
47 /*% isccc_symtab_t typedef */
48 typedef struct isccc_symtab isccc_symtab_t;
49 
50 /*% iscc region structure */
51 typedef struct isccc_region {
52 	unsigned char *rstart;
53 	unsigned char *rend;
54 } isccc_region_t;
55