Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 48aebc76604d00e261fd2a64f42d7eb8 > files > 83

liblomoco-devel-1.0-9mdv2010.0.i586.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <title>lomoco: lomoco/logitech/lomoco_logitech.h Source File</title>

<style type="text/css">
  .cp-doNotDisplay { display: none; }
  @media aural, braille, handheld, tty { .cp-doNotDisplay { display: inline; speak: normal; }}
  .cp-edit { text-align: right; }
  @media print, embossed { .cp-edit { display: none; }}
</style>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />
  <link rel="stylesheet" type="text/css" href="doxygen.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="csync.css" />
  <link rel="stylesheet" media="print, embossed" type="text/css" href="print.css" />
</head>

<body>

<ul class="cp-doNotDisplay">
  <li><a href="#cp-content" accesskey="2">Skip to content</a></li>
  <li><a href="#cp-menu" accesskey="5">Skip to link menu</a></li>
</ul>

<div id="container">
<div id="header">
  <div id="header_top"><div><div style="padding: 10px 30px;">
  <!-- <img alt ="" src="top-kde.jpg"/> -->
    csync API Reference  </div></div></div>
  <div id="header_bottom">
    <div id="location">
      <ul>
        <li><a href="index.html">csync</a></li>
      </ul>
    </div>

    <div id="menu">
<ul><li><a href="http://www.csync.org/">Sitemap</a></li>
<li><a href="http://www.csync.org/">Contact Us</a></li>
</ul>
    </div>
  </div>
</div>
<!-- End page header -->
    <div id="body_wrapper">
      <div id="body">
        <!-- begin main content -->
        <div id="right">
          <div class="content">
          <div id="main">
            <div class="clearer">&nbsp;</div>
    <!-- <h2><a name="content"></a>lomoco</h2> -->

<!-- BC -->
<!-- Generated by Doxygen 1.5.9 -->
  <div class="navpath"><a class="el" href="dir_77ee8add767687b3d3811ff476d1a4f3.html">lomoco</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_ef82bd5b9fec120a1e609ed2ad08cc3d.html">logitech</a>
  </div>
<div class="contents">
<h1>lomoco_logitech.h</h1><a href="lomoco__logitech_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * logitech - Logitech Mouse Control for Linux</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2007 by Andreas Schneider &lt;mail@cynapses.org&gt;</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * This program is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the GNU General Public License</span>
<a name="l00008"></a>00008 <span class="comment"> * as published by the Free Software Foundation; either version 2</span>
<a name="l00009"></a>00009 <span class="comment"> * of the License, or (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00014"></a>00014 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"> *</span>
<a name="l00016"></a>00016 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00017"></a>00017 <span class="comment"> * along with this program; if not, write to the Free Software Foundation,</span>
<a name="l00018"></a>00018 <span class="comment"> * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> * vim: ts=2 sw=2 et cindent</span>
<a name="l00021"></a>00021 <span class="comment"> */</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef _LOMOCO_LOGITECH_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define _LOMOCO_LOGITECH_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="lomoco_8h.html">lomoco.h</a>"</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">enum</span> {
<a name="l00029"></a><a class="code" href="lomoco__logitech_8h.html#06fc87d81c62e9abb8790b6e5713c55b6fd4c8188c3a2095a588e18f1e77469c">00029</a>   <a class="code" href="lomoco__logitech_8h.html#631eb716f0991472e98b465bf4adaf4d">LOGITECH_CORDED_MOUSE</a>,
<a name="l00030"></a><a class="code" href="lomoco__logitech_8h.html#631eb716f0991472e98b465bf4adaf4d">00030</a> <span class="preprocessor">#define LOGITECH_CORDED_MOUSE LOGITECH_CORDED_MOUSE</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>  <a class="code" href="lomoco__logitech_8h.html#c9ffd50e746281c6ab4711f6ae9205f4">LOGITECH_CORDLESS_MOUSE</a>,
<a name="l00032"></a><a class="code" href="lomoco__logitech_8h.html#c9ffd50e746281c6ab4711f6ae9205f4">00032</a> <span class="preprocessor">#define LOGITECH_CORDLESS_MOUSE LOGITECH_CORDLESS_MOUSE</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>  LOGITECH_RECEIVER
<a name="l00034"></a>00034 };
<a name="l00035"></a>00035 <span class="comment"></span>
<a name="l00036"></a>00036 <span class="comment">/**</span>
<a name="l00037"></a>00037 <span class="comment"> * @struct logitech_mouse_s</span>
<a name="l00038"></a>00038 <span class="comment"> *</span>
<a name="l00039"></a>00039 <span class="comment"> * Used to store the information about the features of a cordless mouse.</span>
<a name="l00040"></a>00040 <span class="comment"> */</span>
<a name="l00041"></a>00041 <span class="comment"></span>
<a name="l00042"></a>00042 <span class="comment">/**</span>
<a name="l00043"></a>00043 <span class="comment"> * @typedef logitech_mouse_t</span>
<a name="l00044"></a>00044 <span class="comment"> * Creates a type name for logitech_mouse_s</span>
<a name="l00045"></a>00045 <span class="comment"> */</span>
<a name="l00046"></a><a class="code" href="structlogitech__device__s.html">00046</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structlogitech__device__s.html">logitech_device_s</a> {<span class="comment"></span>
<a name="l00047"></a>00047 <span class="comment">  /** Name of the mouse */</span>
<a name="l00048"></a><a class="code" href="structlogitech__device__s.html#a3ee17be560e00c8818f0f0be19b921f">00048</a>   <span class="keywordtype">char</span> <a class="code" href="structlogitech__device__s.html#a3ee17be560e00c8818f0f0be19b921f" title="Name of the mouse.">name</a>[128];<span class="comment"></span>
<a name="l00049"></a>00049 <span class="comment">  /** Product ID */</span>
<a name="l00050"></a><a class="code" href="structlogitech__device__s.html#5ec1dd7334829b20ad10c8fca9e37ea3">00050</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#5ec1dd7334829b20ad10c8fca9e37ea3" title="Product ID.">pid</a>;<span class="comment"></span>
<a name="l00051"></a>00051 <span class="comment">  /** Device type  */</span>
<a name="l00052"></a><a class="code" href="structlogitech__device__s.html#99569f20fe3ffac77ccfeca421daa1b5">00052</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#99569f20fe3ffac77ccfeca421daa1b5" title="Device type.">type</a>;<span class="comment"></span>
<a name="l00053"></a>00053 <span class="comment">  /** Receiver id of the mouse */</span>
<a name="l00054"></a><a class="code" href="structlogitech__device__s.html#081fd679e17812fd4faaafe6fe1e19c6">00054</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#081fd679e17812fd4faaafe6fe1e19c6" title="Receiver id of the mouse.">rid</a>;<span class="comment"></span>
<a name="l00055"></a>00055 <span class="comment">  /** Receiver id of the mouse on 2nd channel */</span>
<a name="l00056"></a><a class="code" href="structlogitech__device__s.html#dbbb537e71bb4a8886cf4e964839fa71">00056</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#dbbb537e71bb4a8886cf4e964839fa71" title="Receiver id of the mouse on 2nd channel.">rid2</a>;<span class="comment"></span>
<a name="l00057"></a>00057 <span class="comment">  /** Maximum resolution */</span>
<a name="l00058"></a><a class="code" href="structlogitech__device__s.html#3bb3689806f0a195b79962d8e4ddc65d">00058</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#3bb3689806f0a195b79962d8e4ddc65d" title="Maximum resolution.">max_res</a>;<span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment">  /** Minimum resolution */</span>
<a name="l00060"></a><a class="code" href="structlogitech__device__s.html#018cd390ac6a71b1ac5c13a24eef8ad0">00060</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#018cd390ac6a71b1ac5c13a24eef8ad0" title="Minimum resolution.">min_res</a>;<span class="comment"></span>
<a name="l00061"></a>00061 <span class="comment">  /** Resolution step */</span>
<a name="l00062"></a><a class="code" href="structlogitech__device__s.html#f79e3cb3cda0fc6939bf01b77877daa5">00062</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#f79e3cb3cda0fc6939bf01b77877daa5" title="Resolution step.">step</a>;<span class="comment"></span>
<a name="l00063"></a>00063 <span class="comment">  /** Smart control reporting */</span>
<a name="l00064"></a><a class="code" href="structlogitech__device__s.html#232beeb57a091160f995e41baf770172">00064</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#232beeb57a091160f995e41baf770172" title="Smart control reporting.">ssr</a>;<span class="comment"></span>
<a name="l00065"></a>00065 <span class="comment">  /** Smart control support */</span>
<a name="l00066"></a><a class="code" href="structlogitech__device__s.html#4ea7942c82686d185f55411b40143c46">00066</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#4ea7942c82686d185f55411b40143c46" title="Smart control support.">sms</a>;<span class="comment"></span>
<a name="l00067"></a>00067 <span class="comment">  /** Free Spin control */</span>
<a name="l00068"></a><a class="code" href="structlogitech__device__s.html#5837b8b367f2454ba7fb32bbeedd6dec">00068</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#5837b8b367f2454ba7fb32bbeedd6dec" title="Free Spin control.">fsp</a>;<span class="comment"></span>
<a name="l00069"></a>00069 <span class="comment">  /** Click-to-Click control */</span>
<a name="l00070"></a><a class="code" href="structlogitech__device__s.html#27546911fde2f76185b00b07dadb4a24">00070</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#27546911fde2f76185b00b07dadb4a24" title="Click-to-Click control.">ctc</a>;<span class="comment"></span>
<a name="l00071"></a>00071 <span class="comment">  /** Has a second hiddev */</span>
<a name="l00072"></a><a class="code" href="structlogitech__device__s.html#580b371af90d453e344fbe01675f5cad">00072</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#580b371af90d453e344fbe01675f5cad" title="Has a second hiddev.">hiddev</a>;<span class="comment"></span>
<a name="l00073"></a>00073 <span class="comment">  /** Dual receiver */</span>
<a name="l00074"></a><a class="code" href="structlogitech__device__s.html#5c30f534bf813d691a150383a071642d">00074</a>   <span class="keywordtype">int</span> <a class="code" href="structlogitech__device__s.html#5c30f534bf813d691a150383a071642d" title="Dual receiver.">dual</a>;
<a name="l00075"></a>00075 } <a class="code" href="structlogitech__device__s.html">logitech_device_t</a>;
<a name="l00076"></a>00076 <span class="comment"></span>
<a name="l00077"></a>00077 <span class="comment">/**</span>
<a name="l00078"></a>00078 <span class="comment"> * @brief Check if the the attached Logitech device is supported.</span>
<a name="l00079"></a>00079 <span class="comment"> *</span>
<a name="l00080"></a>00080 <span class="comment"> * @param base The initialized base structure.</span>
<a name="l00081"></a>00081 <span class="comment"> * @param pid The product id of the attached device we are looking for.</span>
<a name="l00082"></a>00082 <span class="comment"> * </span>
<a name="l00083"></a>00083 <span class="comment"> * @return The supported device.</span>
<a name="l00084"></a>00084 <span class="comment"> */</span>
<a name="l00085"></a>00085 <a class="code" href="structlomoco__device__s.html" title="Used to store all needed information of a lomoco device.">lomoco_device_t</a> *<a class="code" href="lomoco__logitech_8h.html#5b0ff95de97513d3adedce2eb4a65956" title="Check if the the attached Logitech device is supported.">lomoco_get_logitech_usb_device</a>(<a class="code" href="structlomoco__base__s.html" title="Used to store all needed information for lomoco.">lomoco_base_t</a> *base, <span class="keywordtype">int</span> pid);
<a name="l00086"></a>00086 <span class="comment"></span>
<a name="l00087"></a>00087 <span class="comment">/**</span>
<a name="l00088"></a>00088 <span class="comment"> * @brief Check if the the attached Logitech hid device is supported.</span>
<a name="l00089"></a>00089 <span class="comment"> *</span>
<a name="l00090"></a>00090 <span class="comment"> * @param base The initialized base structure.</span>
<a name="l00091"></a>00091 <span class="comment"> * @param pid The product id of the attached device we are looking for.</span>
<a name="l00092"></a>00092 <span class="comment"> * </span>
<a name="l00093"></a>00093 <span class="comment"> * @return The supported device.</span>
<a name="l00094"></a>00094 <span class="comment"> */</span>
<a name="l00095"></a>00095 <a class="code" href="structlomoco__device__s.html" title="Used to store all needed information of a lomoco device.">lomoco_device_t</a> *<a class="code" href="lomoco__logitech_8h.html#84109c1843f914c7c830271f4a4eaf33" title="Check if the the attached Logitech hid device is supported.">lomoco_get_logitech_hid_device</a>(<a class="code" href="structlomoco__base__s.html" title="Used to store all needed information for lomoco.">lomoco_base_t</a> *base, <span class="keywordtype">int</span> pid);
<a name="l00096"></a>00096 
<a name="l00097"></a>00097 <span class="preprocessor">#endif </span><span class="comment">/* _LOMOCO_LOGITECH_H */</span>
<a name="l00098"></a>00098 
</pre></div></div>
            </div>
          </div>
        </div>
        <div id="left">
          <div class="menu_box">
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">lomoco</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "lomoco"</a>
</div></div>
<!-- menu -->

<div class="menu_box">
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">API Documentation</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "@topname@"</a>
</div></div>
<div class="nav_list">
<ul>
<!-- gmenu -->
</ul></div></div>

          </div>
        </div>
        <div class="clearer"></div>
      </div>
      <div class="clearer"></div>
    </div>


    <div id="end_body"></div>

    <div id="footer"><div id="footer_text">
    Generated with <a href="http://www.stack.nl/~dimitri/doxygen/" target="_blank">Doxygen</a>
    </div></div>
  </div>

</body>
</html>