1300906Sasomers/*- 2300906Sasomers * Copyright (c) 2012 Spectra Logic Corporation 3300906Sasomers * All rights reserved. 4300906Sasomers * 5300906Sasomers * Redistribution and use in source and binary forms, with or without 6300906Sasomers * modification, are permitted provided that the following conditions 7300906Sasomers * are met: 8300906Sasomers * 1. Redistributions of source code must retain the above copyright 9300906Sasomers * notice, this list of conditions, and the following disclaimer, 10300906Sasomers * without modification. 11300906Sasomers * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12300906Sasomers * substantially similar to the "NO WARRANTY" disclaimer below 13300906Sasomers * ("Disclaimer") and any redistribution must be conditioned upon 14300906Sasomers * including a substantially similar Disclaimer requirement for further 15300906Sasomers * binary redistribution. 16300906Sasomers * 17300906Sasomers * NO WARRANTY 18300906Sasomers * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19300906Sasomers * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20300906Sasomers * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 21300906Sasomers * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22300906Sasomers * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23300906Sasomers * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24300906Sasomers * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25300906Sasomers * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 26300906Sasomers * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 27300906Sasomers * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28300906Sasomers * POSSIBILITY OF SUCH DAMAGES. 29300906Sasomers * 30300906Sasomers * Authors: Alan Somers (Spectra Logic Corporation) 31300906Sasomers * 32300906Sasomers * $FreeBSD: releng/11.0/cddl/usr.sbin/zfsd/tests/libmocks.h 300906 2016-05-28 17:43:40Z asomers $ 33300906Sasomers */ 34300906Sasomers 35300906Sasomers#ifndef _LIBMOCKS_H_ 36300906Sasomers#define _LIBMOCKS_H_ 37300906Sasomers 38300906Sasomers#ifdef __cplusplus 39300906Sasomersextern "C" { 40300906Sasomers#endif 41300906Sasomers 42300906Sasomersstruct libzfs_handle; 43300906Sasomerstypedef struct libzfs_handle libzfs_handle_t; 44300906Sasomersstruct zpool_handle; 45300906Sasomerstypedef struct zpool_handle zpool_handle_t; 46300906Sasomerstypedef int (*zpool_iter_f)(zpool_handle_t *, void *); 47300906Sasomers 48300906Sasomersvoid syslog(int priority, const char* message, ...); 49300906Sasomersint zpool_iter(libzfs_handle_t*, zpool_iter_f, void*); 50300906Sasomers 51300906Sasomersextern int syslog_last_priority; 52300906Sasomersextern char syslog_last_message[4096]; 53300906Sasomers 54300906Sasomers#ifdef __cplusplus 55300906Sasomers} 56300906Sasomers#endif 57300906Sasomers 58300906Sasomers#endif 59