1 /* 2 * ipmi_mc.ui 3 * 4 * MontaVista IPMI interface for a basic curses UI 5 * 6 * Author: MontaVista Software, Inc. 7 * Corey Minyard <minyard@mvista.com> 8 * source@mvista.com 9 * 10 * Copyright 2002,2003 MontaVista Software Inc. 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU Lesser General Public License 14 * as published by the Free Software Foundation; either version 2 of 15 * the License, or (at your option) any later version. 16 * 17 * 18 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 23 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 24 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 27 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * You should have received a copy of the GNU Lesser General Public 30 * License along with this program; if not, write to the Free 31 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 32 */ 33 34 #ifndef OPENIPMI_UI_H 35 #define OPENIPMI_UI_H 36 37 #include <OpenIPMI/ipmi_types.h> 38 #include <OpenIPMI/os_handler.h> 39 #include <OpenIPMI/selector.h> 40 41 #ifdef __cplusplus 42 extern "C" { 43 #endif 44 45 extern os_handler_t ipmi_ui_cb_handlers; 46 47 int ipmi_ui_init(os_handler_t *os_hnd, int full_screen); 48 void ipmi_ui_shutdown(void); 49 50 void ipmi_ui_set_first_domain(ipmi_domain_id_t fdomain_id); 51 52 void ipmi_ui_setup_done(ipmi_domain_t *mc, 53 int err, 54 unsigned int conn_num, 55 unsigned int port_num, 56 int still_connected, 57 void *user_data); 58 59 #ifdef __cplusplus 60 } 61 #endif 62 63 #endif /* OPENIPMI_UI_H */ 64