xref: /freebsd/usr.sbin/iovctl/iovctl.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
11905e4a3SRyan Stone /*-
2*faf139ccSRyan Stone  * Copyright (c) 2013-2015 Sandvine Inc.
31905e4a3SRyan Stone  * All rights reserved.
41905e4a3SRyan Stone  *
51905e4a3SRyan Stone  * Redistribution and use in source and binary forms, with or without
61905e4a3SRyan Stone  * modification, are permitted provided that the following conditions
71905e4a3SRyan Stone  * are met:
81905e4a3SRyan Stone  * 1. Redistributions of source code must retain the above copyright
91905e4a3SRyan Stone  *    notice, this list of conditions and the following disclaimer.
101905e4a3SRyan Stone  * 2. Redistributions in binary form must reproduce the above copyright
111905e4a3SRyan Stone  *    notice, this list of conditions and the following disclaimer in the
121905e4a3SRyan Stone  *    documentation and/or other materials provided with the distribution.
131905e4a3SRyan Stone  *
141905e4a3SRyan Stone  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
151905e4a3SRyan Stone  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
161905e4a3SRyan Stone  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
171905e4a3SRyan Stone  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
181905e4a3SRyan Stone  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
191905e4a3SRyan Stone  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
201905e4a3SRyan Stone  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
211905e4a3SRyan Stone  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
221905e4a3SRyan Stone  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
231905e4a3SRyan Stone  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
241905e4a3SRyan Stone  * SUCH DAMAGE.
251905e4a3SRyan Stone  */
261905e4a3SRyan Stone 
271905e4a3SRyan Stone #ifndef IOVCTL_H
281905e4a3SRyan Stone #define IOVCTL_H
291905e4a3SRyan Stone 
301905e4a3SRyan Stone char *		find_device(const char *);
311905e4a3SRyan Stone nvlist_t *	parse_config_file(const char *, const nvlist_t *);
321905e4a3SRyan Stone void		validate_config(nvlist_t *, const nvlist_t *, const regex_t *);
331905e4a3SRyan Stone 
341905e4a3SRyan Stone #endif
351905e4a3SRyan Stone 
36