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