X hits on this document

PDF document

February 10, 2006 - page 185 / 238

541 views

0 shares

0 downloads

0 comments

185 / 238

Appendix H

Sample Program Showing Basic Operations

The following program shows basic setup, registration, and registering to handle new entitys, sensors, and controls as they are created. Some basic information is dumped.

/*

  • *

    test1.c

*

  • *

    OpenIPMI test code

*

  • *

    Author: Intel Corporation

    • *

      Jeff Zheng <Jeff.Zheng@Intel.com>

*

  • *

    This program is free software; you can redistribute it and/or

    • *

      modify it under the terms of the GNU Lesser General Public License

    • *

      as published by the Free Software Foundation; either version 2 of

    • *

      the License, or (at your option) any later version.

* *

  • *

    THIS SOFTWARE IS PROVIDED ‘‘AS IS’’ AND ANY EXPRESS OR IMPLIED

    • *

      WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF

    • *

      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.

    • *

      IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,

    • *

      INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,

    • *

      BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS

    • *

      OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND

    • *

      ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR

    • *

      TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE

    • *

      USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*

  • *

    You should have received a copy of the GNU Lesser General Public

173

Document info
Document views541
Page views541
Page last viewedSun Dec 04 08:25:04 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments