1*0cbe4818SRobert Mustacchi /* 2*0cbe4818SRobert Mustacchi * This file and its contents are supplied under the terms of the 3*0cbe4818SRobert Mustacchi * Common Development and Distribution License ("CDDL"), version 1.0. 4*0cbe4818SRobert Mustacchi * You may only use this file in accordance with the terms of version 5*0cbe4818SRobert Mustacchi * 1.0 of the CDDL. 6*0cbe4818SRobert Mustacchi * 7*0cbe4818SRobert Mustacchi * A full copy of the text of the CDDL should have accompanied this 8*0cbe4818SRobert Mustacchi * source. A copy of the CDDL is also available via the Internet at 9*0cbe4818SRobert Mustacchi * http://www.illumos.org/license/CDDL. 10*0cbe4818SRobert Mustacchi */ 11*0cbe4818SRobert Mustacchi 12*0cbe4818SRobert Mustacchi /* 13*0cbe4818SRobert Mustacchi * Copyright 2025 Oxide Computer Company 14*0cbe4818SRobert Mustacchi */ 15*0cbe4818SRobert Mustacchi 16*0cbe4818SRobert Mustacchi #ifndef _LIBI2C_TEST_UTIL_H 17*0cbe4818SRobert Mustacchi #define _LIBI2C_TEST_UTIL_H 18*0cbe4818SRobert Mustacchi 19*0cbe4818SRobert Mustacchi /* 20*0cbe4818SRobert Mustacchi * Misc. utility functions for libi2c tests. 21*0cbe4818SRobert Mustacchi */ 22*0cbe4818SRobert Mustacchi 23*0cbe4818SRobert Mustacchi #include <stdbool.h> 24*0cbe4818SRobert Mustacchi #include <libi2c.h> 25*0cbe4818SRobert Mustacchi #include <sys/ccompile.h> 26*0cbe4818SRobert Mustacchi 27*0cbe4818SRobert Mustacchi #ifdef __cplusplus 28*0cbe4818SRobert Mustacchi extern "C" { 29*0cbe4818SRobert Mustacchi #endif 30*0cbe4818SRobert Mustacchi 31*0cbe4818SRobert Mustacchi extern void libi2c_test_warn(i2c_hdl_t *, const char *, ...) __PRINTFLIKE(2); 32*0cbe4818SRobert Mustacchi extern void libi2c_test_fatal(i2c_hdl_t *, const char *, ...) __PRINTFLIKE(2); 33*0cbe4818SRobert Mustacchi 34*0cbe4818SRobert Mustacchi #ifdef __cplusplus 35*0cbe4818SRobert Mustacchi } 36*0cbe4818SRobert Mustacchi #endif 37*0cbe4818SRobert Mustacchi 38*0cbe4818SRobert Mustacchi #endif /* _LIBI2C_TEST_UTIL_H */ 39