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

ipmi_smi.h

Go to the documentation of this file.
00001 /*
00002  * ipmi_smi.h
00003  *
00004  * Routines for setting up a connection to a local SMI interface.
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_SMI_H
00035 #define __IPMI_SMI_H
00036 
00037 #include <OpenIPMI/ipmi_mc.h>
00038 #include <netinet/in.h>
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043 
00044 /* Create a connection to a system-management interface on the current
00045  * computer.  The parameters are: 
00046  *
00047  *  if_num - The interface number of the BMC.
00048  *  handlers - The set of OS handlers to use for this connection.
00049  *  user_data - This will be put into the BMC and may be fetched by the
00050  *     user.  The user can use it for anything they like.
00051  *  new_con - the newly created connection is returned here.
00052  */
00053 int ipmi_smi_setup_con(int                if_num,
00054                        os_handler_t       *handlers,
00055                        void               *user_data,
00056                        ipmi_con_t         **new_con);
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 
00062 #endif /* __IPMI_SMI_H */

© sourcejam.com 2005-2008