1 /* $NetBSD: compat_level.h,v 1.3 2023/12/23 20:30:43 christos Exp $ */ 2 3 #ifndef _COMPAT_LEVEL_H_INCLUDED_ 4 #define _COMPAT_LEVEL_H_INCLUDED_ 5 6 /*++ 7 /* NAME 8 /* compat_level 3h 9 /* SUMMARY 10 /* compatibility_level support 11 /* SYNOPSIS 12 /* #include <compat_level.h> 13 /* DESCRIPTION 14 /* .nf 15 16 /* 17 * External interface. 18 */ 19 extern void compat_level_relop_register(void); 20 extern long compat_level_from_string(const char *, 21 void PRINTFLIKE(1, 2) (*) (const char *,...)); 22 extern long compat_level_from_numbers(long, long, long, 23 void PRINTFLIKE(1, 2) (*) (const char *,...)); 24 extern const char *compat_level_to_string(long, 25 void PRINTFLIKE(1, 2) (*) (const char *,...)); 26 27 #define compat_level_from_major(major, msg_fn) \ 28 compat_level_from_major_minor((major), 0, (msg_fn)) 29 #define compat_level_from_major_minor(major, minor, msg_fn) \ 30 compat_level_from_numbers((major), (minor), 0, (msg_fn)) 31 32 /* LICENSE 33 /* .ad 34 /* .fi 35 /* The Secure Mailer license must be distributed with this software. 36 /* AUTHOR(S) 37 /* Wietse Venema 38 /* Google, Inc. 39 /* 111 8th Avenue 40 /* New York, NY 10011, USA 41 /*--*/ 42 43 #endif 44