xref: /freebsd/usr.sbin/iovctl/iovctl.h (revision 1905e4a3fd6c9dc43050ca8036d173ccd646b991)
1*1905e4a3SRyan Stone /*-
2*1905e4a3SRyan Stone  * Copyright (c) 2013-2015 Sandvine Inc.  All rights reserved.
3*1905e4a3SRyan Stone  * All rights reserved.
4*1905e4a3SRyan Stone  *
5*1905e4a3SRyan Stone  * Redistribution and use in source and binary forms, with or without
6*1905e4a3SRyan Stone  * modification, are permitted provided that the following conditions
7*1905e4a3SRyan Stone  * are met:
8*1905e4a3SRyan Stone  * 1. Redistributions of source code must retain the above copyright
9*1905e4a3SRyan Stone  *    notice, this list of conditions and the following disclaimer.
10*1905e4a3SRyan Stone  * 2. Redistributions in binary form must reproduce the above copyright
11*1905e4a3SRyan Stone  *    notice, this list of conditions and the following disclaimer in the
12*1905e4a3SRyan Stone  *    documentation and/or other materials provided with the distribution.
13*1905e4a3SRyan Stone  *
14*1905e4a3SRyan Stone  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*1905e4a3SRyan Stone  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*1905e4a3SRyan Stone  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*1905e4a3SRyan Stone  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*1905e4a3SRyan Stone  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*1905e4a3SRyan Stone  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*1905e4a3SRyan Stone  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*1905e4a3SRyan Stone  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*1905e4a3SRyan Stone  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*1905e4a3SRyan Stone  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*1905e4a3SRyan Stone  * SUCH DAMAGE.
25*1905e4a3SRyan Stone  *
26*1905e4a3SRyan Stone  * $FreeBSD$
27*1905e4a3SRyan Stone  */
28*1905e4a3SRyan Stone 
29*1905e4a3SRyan Stone #ifndef IOVCTL_H
30*1905e4a3SRyan Stone #define IOVCTL_H
31*1905e4a3SRyan Stone 
32*1905e4a3SRyan Stone char *		find_device(const char *);
33*1905e4a3SRyan Stone nvlist_t *	parse_config_file(const char *, const nvlist_t *);
34*1905e4a3SRyan Stone void		validate_config(nvlist_t *, const nvlist_t *, const regex_t *);
35*1905e4a3SRyan Stone 
36*1905e4a3SRyan Stone #endif
37*1905e4a3SRyan Stone 
38