xref: /freebsd/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.h (revision 42b388439bd3795e09258c57a74ce9eec3651c7b)
11de7b4b8SPedro F. Giffuni /*-
20986ab12SMaksim Yevmenkin  * sdpcontrol.h
30986ab12SMaksim Yevmenkin  *
4*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
51de7b4b8SPedro F. Giffuni  *
60986ab12SMaksim Yevmenkin  * Copyright (c) 2001-2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
70986ab12SMaksim Yevmenkin  * All rights reserved.
80986ab12SMaksim Yevmenkin  *
90986ab12SMaksim Yevmenkin  * Redistribution and use in source and binary forms, with or without
100986ab12SMaksim Yevmenkin  * modification, are permitted provided that the following conditions
110986ab12SMaksim Yevmenkin  * are met:
120986ab12SMaksim Yevmenkin  * 1. Redistributions of source code must retain the above copyright
130986ab12SMaksim Yevmenkin  *    notice, this list of conditions and the following disclaimer.
140986ab12SMaksim Yevmenkin  * 2. Redistributions in binary form must reproduce the above copyright
150986ab12SMaksim Yevmenkin  *    notice, this list of conditions and the following disclaimer in the
160986ab12SMaksim Yevmenkin  *    documentation and/or other materials provided with the distribution.
170986ab12SMaksim Yevmenkin  *
180986ab12SMaksim Yevmenkin  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
190986ab12SMaksim Yevmenkin  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
200986ab12SMaksim Yevmenkin  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
210986ab12SMaksim Yevmenkin  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
220986ab12SMaksim Yevmenkin  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
230986ab12SMaksim Yevmenkin  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
240986ab12SMaksim Yevmenkin  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
250986ab12SMaksim Yevmenkin  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
260986ab12SMaksim Yevmenkin  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
270986ab12SMaksim Yevmenkin  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
280986ab12SMaksim Yevmenkin  * SUCH DAMAGE.
290986ab12SMaksim Yevmenkin  *
300986ab12SMaksim Yevmenkin  * $Id: sdpcontrol.h,v 1.1 2003/09/08 02:27:27 max Exp $
310986ab12SMaksim Yevmenkin  */
320986ab12SMaksim Yevmenkin 
330986ab12SMaksim Yevmenkin #ifndef __SDPCONTROL_H__
340986ab12SMaksim Yevmenkin #define __SDPCONTROL_H__
350986ab12SMaksim Yevmenkin 
360986ab12SMaksim Yevmenkin #define OK			0	/* everything was OK */
370986ab12SMaksim Yevmenkin #define ERROR			1	/* could not execute command */
380986ab12SMaksim Yevmenkin #define FAILED			2	/* error was reported */
390986ab12SMaksim Yevmenkin #define USAGE			3	/* invalid parameters */
400986ab12SMaksim Yevmenkin 
410986ab12SMaksim Yevmenkin struct sdp_command {
420986ab12SMaksim Yevmenkin 	char const		*command;
430986ab12SMaksim Yevmenkin 	char const		*description;
440986ab12SMaksim Yevmenkin 	int			(*handler)(void *, int, char **);
450986ab12SMaksim Yevmenkin };
460986ab12SMaksim Yevmenkin 
470986ab12SMaksim Yevmenkin extern struct sdp_command	sdp_commands[];
480986ab12SMaksim Yevmenkin 
490986ab12SMaksim Yevmenkin #endif /* __SDPCONTROL_H__ */
500986ab12SMaksim Yevmenkin 
51