1229997Sken/*
2229997Sken * Copyright (c) 1998 Kenneth D. Merry.
3229997Sken * All rights reserved.
4229997Sken *
5229997Sken * Redistribution and use in source and binary forms, with or without
6229997Sken * modification, are permitted provided that the following conditions
7229997Sken * are met:
8229997Sken * 1. Redistributions of source code must retain the above copyright
9229997Sken *    notice, this list of conditions and the following disclaimer.
10229997Sken * 2. Redistributions in binary form must reproduce the above copyright
11229997Sken *    notice, this list of conditions and the following disclaimer in the
12229997Sken *    documentation and/or other materials provided with the distribution.
13229997Sken * 3. The name of the author may not be used to endorse or promote products
14229997Sken *    derived from this software without specific prior written permission.
15229997Sken *
16229997Sken * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17229997Sken * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18229997Sken * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19229997Sken * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20229997Sken * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21229997Sken * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22229997Sken * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23229997Sken * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24229997Sken * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25229997Sken * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26229997Sken * SUCH DAMAGE.
27229997Sken *
28229997Sken * $FreeBSD$
29229997Sken * $Id: //depot/users/kenm/FreeBSD-test2/usr.sbin/ctladm/ctladm.h#1 $
30229997Sken */
31229997Sken
32229997Sken#ifndef _CTLADM_H
33229997Sken#define _CTLADM_H
34229997Sken
35229997Sken/*
36229997Sken * get_hook: Structure for evaluating args in a callback.
37229997Sken */
38229997Skenstruct get_hook
39229997Sken{
40229997Sken	int argc;
41229997Sken	char **argv;
42229997Sken	int got;
43229997Sken};
44229997Sken
45229997Skenchar *cget(void *hook, char *name);
46229997Skenint iget(void *hook, char *name);
47229997Skenvoid arg_put(void *hook, int letter, void *arg, int count, char *name);
48229997Skenvoid usage(int error);
49229997Sken
50229997Sken#endif /* _CTLADM_H */
51