Main Page | Class List | Directories | File List | Class Members | File Members

ipmi_ui.h

Go to the documentation of this file.
00001 /*
00002  * ipmi_mc.ui
00003  *
00004  * MontaVista IPMI interface for a basic curses UI
00005  *
00006  * Author: MontaVista Software, Inc.
00007  *         Corey Minyard <minyard@mvista.com>
00008  *         source@mvista.com
00009  *
00010  * Copyright 2002,2003 MontaVista Software Inc.
00011  *
00012  *  This program is free software; you can redistribute it and/or
00013  *  modify it under the terms of the GNU Lesser General Public License
00014  *  as published by the Free Software Foundation; either version 2 of
00015  *  the License, or (at your option) any later version.
00016  *
00017  *
00018  *  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
00019  *  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00020  *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
00021  *  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
00022  *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00023  *  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00024  *  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00025  *  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
00026  *  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00027  *  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00028  *
00029  *  You should have received a copy of the GNU Lesser General Public
00030  *  License along with this program; if not, write to the Free
00031  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00032  */
00033 
00034 #ifndef _IPMI_UI_H
00035 #define _IPMI_UI_H
00036 
00037 #include <OpenIPMI/ipmi_types.h>
00038 #include <OpenIPMI/os_handler.h>
00039 #include <OpenIPMI/selector.h>
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045 extern os_handler_t ipmi_ui_cb_handlers;
00046 
00047 int ipmi_ui_init(selector_t **selector, int full_screen);
00048 void ipmi_ui_shutdown(void);
00049 
00050 void ipmi_ui_set_first_domain(ipmi_domain_id_t fdomain_id);
00051 
00052 void ipmi_ui_setup_done(ipmi_domain_t *mc,
00053                         int           err,
00054                         unsigned int  conn_num,
00055                         unsigned int  port_num,
00056                         int           still_connected,
00057                         void          *user_data);
00058 
00059 #ifdef __cplusplus
00060 }
00061 #endif
00062 
00063 #endif /* _IPMI_UI_H */

© sourcejam.com 2005-2008