1<!-- HTML header for doxygen 1.8.8--> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <!-- For Mobile Devices --> 7 <meta name="viewport" content="width=device-width, initial-scale=1"> 8 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 9 <meta name="generator" content="Doxygen 1.8.20"/> 10 <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> 11 <title>libevdev: /home/whot/code/libevdev/release/libevdev/build.uQTRHZxVc0/libevdev/libevdev.h Source File</title> 12 <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>--> 13 <script type="text/javascript" src="dynsections.js"></script> 14 <link href="search/search.css" rel="stylesheet" type="text/css"/> 15<script type="text/javascript" src="search/searchdata.js"></script> 16<script type="text/javascript" src="search/search.js"></script> 17 <link href="doxygen.css" rel="stylesheet" type="text/css" /> 18 <link href="bootstrap.css" rel="stylesheet" type="text/css"/> 19<link href="customdoxygen.css" rel="stylesheet" type="text/css"/> 20<link href="libevdevdoxygen.css" rel="stylesheet" type="text/css"/> 21 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> 22 <script type="text/javascript" src="doxy-boot.js"></script> 23 </head> 24 <body> 25 <nav class="navbar navbar-default" role="navigation"> 26 <div class="container"> 27 <div class="navbar-header"> 28 <a class="navbar-brand">libevdev 1.10.0</a> 29 </div> 30 </div> 31 </nav> 32 <div id="top"><!-- do not remove this div, it is closed by doxygen! --> 33 <div class="content" id="content"> 34 <div class="container"> 35 <div class="row"> 36 <div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;"> 37 <div style="margin-bottom: 15px;"> 38<!-- end header part --> 39<!-- Generated by Doxygen 1.8.20 --> 40<script type="text/javascript"> 41/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ 42var searchBox = new SearchBox("searchBox", "search",false,'Search'); 43/* @license-end */ 44</script> 45<script type="text/javascript" src="menudata.js"></script> 46<script type="text/javascript" src="menu.js"></script> 47<script type="text/javascript"> 48/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ 49$(function() { 50 initMenu('',true,false,'search.php','Search'); 51 $(document).ready(function() { init_search(); }); 52}); 53/* @license-end */</script> 54<div id="main-nav"></div> 55<!-- window showing the filter options --> 56<div id="MSearchSelectWindow" 57 onmouseover="return searchBox.OnSearchSelectShow()" 58 onmouseout="return searchBox.OnSearchSelectHide()" 59 onkeydown="return searchBox.OnSearchSelectKey(event)"> 60</div> 61 62<!-- iframe showing the search results (closed by default) --> 63<div id="MSearchResultsWindow"> 64<iframe src="javascript:void(0)" frameborder="0" 65 name="MSearchResults" id="MSearchResults"> 66</iframe> 67</div> 68 69<div id="nav-path" class="navpath"> 70 <ul> 71<li class="navelem"><a class="el" href="dir_237a012ffe1a208b10d31c74b4ef545e.html">libevdev</a></li> </ul> 72</div> 73</div><!-- top --> 74<div class="header"> 75 <div class="headertitle"> 76<div class="title">libevdev.h</div> </div> 77</div><!--header--> 78<div class="contents"> 79<a href="libevdev_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> 80<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright © 2013 Red Hat, Inc.</span></div> 81<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div> 82<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Permission to use, copy, modify, distribute, and sell this software and its</span></div> 83<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * documentation for any purpose is hereby granted without fee, provided that</span></div> 84<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * the above copyright notice appear in all copies and that both that copyright</span></div> 85<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * notice and this permission notice appear in supporting documentation, and</span></div> 86<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * that the name of the copyright holders not be used in advertising or</span></div> 87<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * publicity pertaining to distribution of the software without specific,</span></div> 88<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * written prior permission. The copyright holders make no representations</span></div> 89<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * about the suitability of this software for any purpose. It is provided "as</span></div> 90<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * is" without express or implied warranty.</span></div> 91<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div> 92<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,</span></div> 93<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO</span></div> 94<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR</span></div> 95<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,</span></div> 96<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER</span></div> 97<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE</span></div> 98<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * OF THIS SOFTWARE.</span></div> 99<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> */</span></div> 100<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div> 101<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef LIBEVDEV_H</span></div> 102<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define LIBEVDEV_H</span></div> 103<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div> 104<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#ifdef __cplusplus</span></div> 105<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> 106<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#endif</span></div> 107<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div> 108<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <linux/input.h></span></div> 109<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <stdarg.h></span></div> 110<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div> 111<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="libevdev_8h.html#a64a0f325e88e1be50eb806e1ff75aec8"> 33</a></span> <span class="preprocessor">#define LIBEVDEV_ATTRIBUTE_PRINTF(_format, _args) __attribute__ ((format (printf, _format, _args)))</span></div> 112<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div> 113<div class="line"><a name="l00752"></a><span class="lineno"> 752</span> <span class="keyword">struct </span>libevdev;</div> 114<div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  </div> 115<div class="line"><a name="l00757"></a><span class="lineno"><a class="line" href="group__events.html#ga56c288d9f2e4c1632986c4e218c494e9"> 757</a></span> <span class="keyword">enum</span> <a class="code" href="group__events.html#ga56c288d9f2e4c1632986c4e218c494e9">libevdev_read_flag</a> {</div> 116<div class="line"><a name="l00758"></a><span class="lineno"><a class="line" href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9a1f13a19641d6dafcf01a86a6389800f8"> 758</a></span>  <a class="code" href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9a1f13a19641d6dafcf01a86a6389800f8">LIBEVDEV_READ_FLAG_SYNC</a> = 1, </div> 117<div class="line"><a name="l00759"></a><span class="lineno"><a class="line" href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9ac0d6ee19551eecf76f1ede4f36252418"> 759</a></span>  <a class="code" href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9ac0d6ee19551eecf76f1ede4f36252418">LIBEVDEV_READ_FLAG_NORMAL</a> = 2, </div> 118<div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  <a class="code" href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9a5198e5c9cc98b75f73f61b104d6a674c">LIBEVDEV_READ_FLAG_FORCE_SYNC</a> = 4, </div> 119<div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  <a class="code" href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9a0a348d44362a7e515b40a4ed4d528e19">LIBEVDEV_READ_FLAG_BLOCKING</a> = 8 </div> 120<div class="line"><a name="l00763"></a><span class="lineno"><a class="line" href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9a0a348d44362a7e515b40a4ed4d528e19"> 763</a></span> };</div> 121<div class="line"><a name="l00764"></a><span class="lineno"> 764</span>  </div> 122<div class="line"><a name="l00779"></a><span class="lineno"><a class="line" href="group__init.html#ga332c8ee260b4ef864345abe5d04e820c"> 779</a></span> <span class="keyword">struct </span>libevdev* <a class="code" href="group__init.html#ga332c8ee260b4ef864345abe5d04e820c">libevdev_new</a>(<span class="keywordtype">void</span>);</div> 123<div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  </div> 124<div class="line"><a name="l00803"></a><span class="lineno"><a class="line" href="group__init.html#ga89bb5bce1c23e293293484b05b12aaf4"> 803</a></span> <span class="keywordtype">int</span> <a class="code" href="group__init.html#ga89bb5bce1c23e293293484b05b12aaf4">libevdev_new_from_fd</a>(<span class="keywordtype">int</span> fd, <span class="keyword">struct</span> libevdev **dev);</div> 125<div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  </div> 126<div class="line"><a name="l00818"></a><span class="lineno"><a class="line" href="group__init.html#gacd9fe760d15be25fc99ce469034bd78c"> 818</a></span> <span class="keywordtype">void</span> <a class="code" href="group__init.html#gacd9fe760d15be25fc99ce469034bd78c">libevdev_free</a>(<span class="keyword">struct</span> libevdev *dev);</div> 127<div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  </div> 128<div class="line"><a name="l00823"></a><span class="lineno"><a class="line" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364"> 823</a></span> <span class="keyword">enum</span> <a class="code" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> {</div> 129<div class="line"><a name="l00824"></a><span class="lineno"><a class="line" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a21fd1083f2ebd0a25f09ee982e365d5f"> 824</a></span>  <a class="code" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a21fd1083f2ebd0a25f09ee982e365d5f">LIBEVDEV_LOG_ERROR</a> = 10, </div> 130<div class="line"><a name="l00825"></a><span class="lineno"><a class="line" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a4d13a031b112292ca3e7bab8c6d76abc"> 825</a></span>  <a class="code" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a4d13a031b112292ca3e7bab8c6d76abc">LIBEVDEV_LOG_INFO</a> = 20, </div> 131<div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  <a class="code" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a760d66d422ffcf89b0f1ddb529b95793">LIBEVDEV_LOG_DEBUG</a> = 30 </div> 132<div class="line"><a name="l00827"></a><span class="lineno"><a class="line" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a760d66d422ffcf89b0f1ddb529b95793"> 827</a></span> };</div> 133<div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  </div> 134<div class="line"><a name="l00845"></a><span class="lineno"><a class="line" href="group__logging.html#gaf36c721d273c0794251eb7dacea2f0a4"> 845</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="group__logging.html#gaf36c721d273c0794251eb7dacea2f0a4">libevdev_log_func_t</a>)(<span class="keyword">enum</span> <a class="code" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority,</div> 135<div class="line"><a name="l00846"></a><span class="lineno"> 846</span>  <span class="keywordtype">void</span> *data,</div> 136<div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keywordtype">int</span> line,</div> 137<div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *func,</div> 138<div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *format, va_list args)</div> 139<div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  <a class="code" href="libevdev_8h.html#a64a0f325e88e1be50eb806e1ff75aec8">LIBEVDEV_ATTRIBUTE_PRINTF</a>(6, 0);</div> 140<div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  </div> 141<div class="line"><a name="l00870"></a><span class="lineno"><a class="line" href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955"> 870</a></span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955">libevdev_set_log_function</a>(<a class="code" href="group__logging.html#gaf36c721d273c0794251eb7dacea2f0a4">libevdev_log_func_t</a> logfunc, <span class="keywordtype">void</span> *data);</div> 142<div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  </div> 143<div class="line"><a name="l00884"></a><span class="lineno"><a class="line" href="group__logging.html#gaf6b6842a9ed98b61d0abb421e853fd89"> 884</a></span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#gaf6b6842a9ed98b61d0abb421e853fd89">libevdev_set_log_priority</a>(<span class="keyword">enum</span> <a class="code" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority);</div> 144<div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  </div> 145<div class="line"><a name="l00897"></a><span class="lineno"> 897</span> <span class="keyword">enum</span> <a class="code" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> <a class="code" href="group__logging.html#ga1da07493a798595cf85c127490b98ee8">libevdev_get_log_priority</a>(<span class="keywordtype">void</span>);</div> 146<div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  </div> 147<div class="line"><a name="l00918"></a><span class="lineno"><a class="line" href="group__logging.html#gab7eb997be2b701cc6f42e7b4c3478269"> 918</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="group__logging.html#gab7eb997be2b701cc6f42e7b4c3478269">libevdev_device_log_func_t</a>)(<span class="keyword">const</span> <span class="keyword">struct </span>libevdev *dev,</div> 148<div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  <span class="keyword">enum</span> <a class="code" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority,</div> 149<div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  <span class="keywordtype">void</span> *data,</div> 150<div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keywordtype">int</span> line,</div> 151<div class="line"><a name="l00922"></a><span class="lineno"> 922</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *func,</div> 152<div class="line"><a name="l00923"></a><span class="lineno"> 923</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *format, va_list args)</div> 153<div class="line"><a name="l00924"></a><span class="lineno"> 924</span>  <a class="code" href="libevdev_8h.html#a64a0f325e88e1be50eb806e1ff75aec8">LIBEVDEV_ATTRIBUTE_PRINTF</a>(7, 0);</div> 154<div class="line"><a name="l00925"></a><span class="lineno"> 925</span>  </div> 155<div class="line"><a name="l00947"></a><span class="lineno"><a class="line" href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b"> 947</a></span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b">libevdev_set_device_log_function</a>(<span class="keyword">struct</span> libevdev *dev,</div> 156<div class="line"><a name="l00948"></a><span class="lineno"> 948</span>  <a class="code" href="group__logging.html#gab7eb997be2b701cc6f42e7b4c3478269">libevdev_device_log_func_t</a> logfunc,</div> 157<div class="line"><a name="l00949"></a><span class="lineno"> 949</span>  <span class="keyword">enum</span> <a class="code" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority,</div> 158<div class="line"><a name="l00950"></a><span class="lineno"> 950</span>  <span class="keywordtype">void</span> *data);</div> 159<div class="line"><a name="l00951"></a><span class="lineno"> 951</span>  </div> 160<div class="line"><a name="l00955"></a><span class="lineno"><a class="line" href="group__init.html#gaa282ec9badaa6bc11b1dc5bb124dbd5b"> 955</a></span> <span class="keyword">enum</span> <a class="code" href="group__init.html#gaa282ec9badaa6bc11b1dc5bb124dbd5b">libevdev_grab_mode</a> {</div> 161<div class="line"><a name="l00956"></a><span class="lineno"><a class="line" href="group__init.html#ggaa282ec9badaa6bc11b1dc5bb124dbd5bad3ac6f5f3ebf7d38a6aad74a88396c88"> 956</a></span>  <a class="code" href="group__init.html#ggaa282ec9badaa6bc11b1dc5bb124dbd5bad3ac6f5f3ebf7d38a6aad74a88396c88">LIBEVDEV_GRAB</a> = 3, </div> 162<div class="line"><a name="l00957"></a><span class="lineno"> 957</span>  <a class="code" href="group__init.html#ggaa282ec9badaa6bc11b1dc5bb124dbd5ba6c0930d0c280753504cd05ebdcda09eb">LIBEVDEV_UNGRAB</a> = 4 </div> 163<div class="line"><a name="l00958"></a><span class="lineno"><a class="line" href="group__init.html#ggaa282ec9badaa6bc11b1dc5bb124dbd5ba6c0930d0c280753504cd05ebdcda09eb"> 958</a></span> };</div> 164<div class="line"><a name="l00959"></a><span class="lineno"> 959</span>  </div> 165<div class="line"><a name="l00982"></a><span class="lineno"><a class="line" href="group__init.html#ga5d434af74fee20f273db568e2cbbd13f"> 982</a></span> <span class="keywordtype">int</span> <a class="code" href="group__init.html#ga5d434af74fee20f273db568e2cbbd13f">libevdev_grab</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keyword">enum</span> <a class="code" href="group__init.html#gaa282ec9badaa6bc11b1dc5bb124dbd5b">libevdev_grab_mode</a> grab);</div> 166<div class="line"><a name="l00983"></a><span class="lineno"> 983</span>  </div> 167<div class="line"><a name="l01016"></a><span class="lineno"><a class="line" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44"> 1016</a></span> <span class="keywordtype">int</span> <a class="code" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44">libevdev_set_fd</a>(<span class="keyword">struct</span> libevdev* dev, <span class="keywordtype">int</span> fd);</div> 168<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>  </div> 169<div class="line"><a name="l01056"></a><span class="lineno"><a class="line" href="group__init.html#gac71c9cca4c572ed1b1a8c233be70a17c"> 1056</a></span> <span class="keywordtype">int</span> <a class="code" href="group__init.html#gac71c9cca4c572ed1b1a8c233be70a17c">libevdev_change_fd</a>(<span class="keyword">struct</span> libevdev* dev, <span class="keywordtype">int</span> fd);</div> 170<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>  </div> 171<div class="line"><a name="l01066"></a><span class="lineno"><a class="line" href="group__init.html#gab9bfc800859ac3aa63f41d58ec4b616c"> 1066</a></span> <span class="keywordtype">int</span> <a class="code" href="group__init.html#gab9bfc800859ac3aa63f41d58ec4b616c">libevdev_get_fd</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev* dev);</div> 172<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>  </div> 173<div class="line"><a name="l01071"></a><span class="lineno"><a class="line" href="group__events.html#ga4a96221b3c7f54dfb86035d952154e3a"> 1071</a></span> <span class="keyword">enum</span> <a class="code" href="group__events.html#ga4a96221b3c7f54dfb86035d952154e3a">libevdev_read_status</a> {</div> 174<div class="line"><a name="l01078"></a><span class="lineno"><a class="line" href="group__events.html#gga4a96221b3c7f54dfb86035d952154e3aab053221fc1c9630eee7111b75aa0aec7"> 1078</a></span>  <a class="code" href="group__events.html#gga4a96221b3c7f54dfb86035d952154e3aab053221fc1c9630eee7111b75aa0aec7">LIBEVDEV_READ_STATUS_SUCCESS</a> = 0,</div> 175<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>  <a class="code" href="group__events.html#gga4a96221b3c7f54dfb86035d952154e3aa8d70b14a38204fde4ad433023baa545a">LIBEVDEV_READ_STATUS_SYNC</a> = 1</div> 176<div class="line"><a name="l01088"></a><span class="lineno"><a class="line" href="group__events.html#gga4a96221b3c7f54dfb86035d952154e3aa8d70b14a38204fde4ad433023baa545a"> 1088</a></span> };</div> 177<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>  </div> 178<div class="line"><a name="l01140"></a><span class="lineno"><a class="line" href="group__events.html#gabb96c864e836c0b98788f4ab771c3a76"> 1140</a></span> <span class="keywordtype">int</span> <a class="code" href="group__events.html#gabb96c864e836c0b98788f4ab771c3a76">libevdev_next_event</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags, <span class="keyword">struct</span> input_event *ev);</div> 179<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>  </div> 180<div class="line"><a name="l01164"></a><span class="lineno"><a class="line" href="group__events.html#gae18fbfb59064c9c4b9d5db2d8cb23784"> 1164</a></span> <span class="keywordtype">int</span> <a class="code" href="group__events.html#gae18fbfb59064c9c4b9d5db2d8cb23784">libevdev_has_event_pending</a>(<span class="keyword">struct</span> libevdev *dev);</div> 181<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>  </div> 182<div class="line"><a name="l01180"></a><span class="lineno"><a class="line" href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12"> 1180</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12">libevdev_get_name</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 183<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>  </div> 184<div class="line"><a name="l01195"></a><span class="lineno"><a class="line" href="group__kernel.html#gae5dcdb7678cdc9be4ab1989725b4ed32"> 1195</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#gae5dcdb7678cdc9be4ab1989725b4ed32">libevdev_set_name</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div> 185<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>  </div> 186<div class="line"><a name="l01212"></a><span class="lineno"><a class="line" href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d"> 1212</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d">libevdev_get_phys</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 187<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>  </div> 188<div class="line"><a name="l01227"></a><span class="lineno"><a class="line" href="group__kernel.html#gacd57c8d6ace8e0b1417809a9c1c67af3"> 1227</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#gacd57c8d6ace8e0b1417809a9c1c67af3">libevdev_set_phys</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keyword">const</span> <span class="keywordtype">char</span> *phys);</div> 189<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>  </div> 190<div class="line"><a name="l01242"></a><span class="lineno"><a class="line" href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4"> 1242</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4">libevdev_get_uniq</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 191<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>  </div> 192<div class="line"><a name="l01257"></a><span class="lineno"><a class="line" href="group__kernel.html#ga4e4fd2627744fd5811c50c7403f27ad7"> 1257</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#ga4e4fd2627744fd5811c50c7403f27ad7">libevdev_set_uniq</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keyword">const</span> <span class="keywordtype">char</span> *uniq);</div> 193<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>  </div> 194<div class="line"><a name="l01268"></a><span class="lineno"><a class="line" href="group__bits.html#ga1dc66cfef646878d58be72f8902a6bac"> 1268</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga1dc66cfef646878d58be72f8902a6bac">libevdev_get_id_product</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 195<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>  </div> 196<div class="line"><a name="l01281"></a><span class="lineno"><a class="line" href="group__kernel.html#ga62fbdaac056ab5c3db154a9eeaf33799"> 1281</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#ga62fbdaac056ab5c3db154a9eeaf33799">libevdev_set_id_product</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">int</span> product_id);</div> 197<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>  </div> 198<div class="line"><a name="l01292"></a><span class="lineno"><a class="line" href="group__bits.html#ga08891c3285da5b8d26769c9a34f063f3"> 1292</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga08891c3285da5b8d26769c9a34f063f3">libevdev_get_id_vendor</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 199<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>  </div> 200<div class="line"><a name="l01305"></a><span class="lineno"><a class="line" href="group__kernel.html#ga8ce28051ebbb73de1d04d782f4d0d6fe"> 1305</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#ga8ce28051ebbb73de1d04d782f4d0d6fe">libevdev_set_id_vendor</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">int</span> vendor_id);</div> 201<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>  </div> 202<div class="line"><a name="l01316"></a><span class="lineno"><a class="line" href="group__bits.html#ga9bf55d416401642bad0c435735682308"> 1316</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga9bf55d416401642bad0c435735682308">libevdev_get_id_bustype</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 203<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>  </div> 204<div class="line"><a name="l01329"></a><span class="lineno"><a class="line" href="group__kernel.html#gaf99139c728ba1bd4b37ede612780b6b0"> 1329</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#gaf99139c728ba1bd4b37ede612780b6b0">libevdev_set_id_bustype</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">int</span> bustype);</div> 205<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>  </div> 206<div class="line"><a name="l01340"></a><span class="lineno"><a class="line" href="group__bits.html#ga75a07d0c96dfe09d2194c104c429d0ae"> 1340</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga75a07d0c96dfe09d2194c104c429d0ae">libevdev_get_id_version</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 207<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>  </div> 208<div class="line"><a name="l01353"></a><span class="lineno"><a class="line" href="group__kernel.html#gaee1d2db88b191ec21d5bf22dd4fe3055"> 1353</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#gaee1d2db88b191ec21d5bf22dd4fe3055">libevdev_set_id_version</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">int</span> version);</div> 209<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>  </div> 210<div class="line"><a name="l01364"></a><span class="lineno"><a class="line" href="group__bits.html#ga31e9e7a99215a03bcdc339b53e1be2fa"> 1364</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga31e9e7a99215a03bcdc339b53e1be2fa">libevdev_get_driver_version</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 211<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>  </div> 212<div class="line"><a name="l01376"></a><span class="lineno"><a class="line" href="group__bits.html#ga36d529ea53f4522004bc7d16c051464b"> 1376</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga36d529ea53f4522004bc7d16c051464b">libevdev_has_property</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> prop);</div> 213<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>  </div> 214<div class="line"><a name="l01389"></a><span class="lineno"><a class="line" href="group__kernel.html#gafc552080520c9d886452b05f3a1d75b6"> 1389</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#gafc552080520c9d886452b05f3a1d75b6">libevdev_enable_property</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> prop);</div> 215<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>  </div> 216<div class="line"><a name="l01399"></a><span class="lineno"><a class="line" href="group__kernel.html#ga8f6367c36331c803ad69b2591e210019"> 1399</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga8f6367c36331c803ad69b2591e210019">libevdev_disable_property</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> prop);</div> 217<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>  </div> 218<div class="line"><a name="l01411"></a><span class="lineno"><a class="line" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14"> 1411</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type);</div> 219<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>  </div> 220<div class="line"><a name="l01424"></a><span class="lineno"><a class="line" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b"> 1424</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 221<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>  </div> 222<div class="line"><a name="l01438"></a><span class="lineno"><a class="line" href="group__bits.html#ga482ce989a3f62f7e67e4ea7ad534189e"> 1438</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga482ce989a3f62f7e67e4ea7ad534189e">libevdev_get_abs_minimum</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 223<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>  </div> 224<div class="line"><a name="l01452"></a><span class="lineno"><a class="line" href="group__bits.html#ga97a3411ae85f1f3b5c5eb1d5351b11ca"> 1452</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga97a3411ae85f1f3b5c5eb1d5351b11ca">libevdev_get_abs_maximum</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 225<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>  </div> 226<div class="line"><a name="l01466"></a><span class="lineno"><a class="line" href="group__bits.html#ga1a3dfeb3bb2db0b4323c836c7ab10f1a"> 1466</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga1a3dfeb3bb2db0b4323c836c7ab10f1a">libevdev_get_abs_fuzz</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 227<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>  </div> 228<div class="line"><a name="l01480"></a><span class="lineno"><a class="line" href="group__bits.html#ga6b3f7ebae2324524dc41384acd724b92"> 1480</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga6b3f7ebae2324524dc41384acd724b92">libevdev_get_abs_flat</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 229<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>  </div> 230<div class="line"><a name="l01494"></a><span class="lineno"><a class="line" href="group__bits.html#ga75751e637a845201b6d1c419ecfa6ba4"> 1494</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga75751e637a845201b6d1c419ecfa6ba4">libevdev_get_abs_resolution</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 231<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>  </div> 232<div class="line"><a name="l01509"></a><span class="lineno"><a class="line" href="group__bits.html#ga6d8e2caf87fa536fad979346671838d7"> 1509</a></span> <span class="keyword">const</span> <span class="keyword">struct </span>input_absinfo* <a class="code" href="group__bits.html#ga6d8e2caf87fa536fad979346671838d7">libevdev_get_abs_info</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 233<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>  </div> 234<div class="line"><a name="l01533"></a><span class="lineno"><a class="line" href="group__bits.html#ga6259f4c6bdba950329ff9cd48c2ef8a3"> 1533</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga6259f4c6bdba950329ff9cd48c2ef8a3">libevdev_get_event_value</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 235<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>  </div> 236<div class="line"><a name="l01569"></a><span class="lineno"><a class="line" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184"> 1569</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184">libevdev_set_event_value</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> value);</div> 237<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>  </div> 238<div class="line"><a name="l01596"></a><span class="lineno"><a class="line" href="group__bits.html#ga0a7be80d769294bf9758adf79c3c7147"> 1596</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#ga0a7be80d769294bf9758adf79c3c7147">libevdev_fetch_event_value</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> *value);</div> 239<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>  </div> 240<div class="line"><a name="l01618"></a><span class="lineno"><a class="line" href="group__mt.html#ga8c6303391cb4f90b2d46763cf4eb8bc8"> 1618</a></span> <span class="keywordtype">int</span> <a class="code" href="group__mt.html#ga8c6303391cb4f90b2d46763cf4eb8bc8">libevdev_get_slot_value</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> slot, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 241<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>  </div> 242<div class="line"><a name="l01648"></a><span class="lineno"><a class="line" href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333"> 1648</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333">libevdev_set_slot_value</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> slot, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> value);</div> 243<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>  </div> 244<div class="line"><a name="l01675"></a><span class="lineno"><a class="line" href="group__mt.html#gaca19dca5aa8f0ea3b210f3fc670384ec"> 1675</a></span> <span class="keywordtype">int</span> <a class="code" href="group__mt.html#gaca19dca5aa8f0ea3b210f3fc670384ec">libevdev_fetch_slot_value</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> slot, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> *value);</div> 245<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>  </div> 246<div class="line"><a name="l01690"></a><span class="lineno"><a class="line" href="group__mt.html#gaf272526f0a59d2f61ef7389046cd4088"> 1690</a></span> <span class="keywordtype">int</span> <a class="code" href="group__mt.html#gaf272526f0a59d2f61ef7389046cd4088">libevdev_get_num_slots</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 247<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>  </div> 248<div class="line"><a name="l01707"></a><span class="lineno"><a class="line" href="group__mt.html#gad22e2420be668b56ef486cde2e98c5dd"> 1707</a></span> <span class="keywordtype">int</span> <a class="code" href="group__mt.html#gad22e2420be668b56ef486cde2e98c5dd">libevdev_get_current_slot</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev);</div> 249<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>  </div> 250<div class="line"><a name="l01720"></a><span class="lineno"><a class="line" href="group__kernel.html#gaca62172c2a823cd02eacf0d2292d917a"> 1720</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#gaca62172c2a823cd02eacf0d2292d917a">libevdev_set_abs_minimum</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> val);</div> 251<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>  </div> 252<div class="line"><a name="l01733"></a><span class="lineno"><a class="line" href="group__kernel.html#ga2302fd9a491d8e27280157d67a703af6"> 1733</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#ga2302fd9a491d8e27280157d67a703af6">libevdev_set_abs_maximum</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> val);</div> 253<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>  </div> 254<div class="line"><a name="l01746"></a><span class="lineno"><a class="line" href="group__kernel.html#gaa192bf0c68620be819337da6ec361c21"> 1746</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#gaa192bf0c68620be819337da6ec361c21">libevdev_set_abs_fuzz</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> val);</div> 255<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>  </div> 256<div class="line"><a name="l01759"></a><span class="lineno"><a class="line" href="group__kernel.html#gabd309f30744a49e9391250b00ba2d67a"> 1759</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#gabd309f30744a49e9391250b00ba2d67a">libevdev_set_abs_flat</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> val);</div> 257<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>  </div> 258<div class="line"><a name="l01772"></a><span class="lineno"><a class="line" href="group__kernel.html#ga2266b59711cdaa4fc12fa56c9313a038"> 1772</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#ga2266b59711cdaa4fc12fa56c9313a038">libevdev_set_abs_resolution</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keywordtype">int</span> val);</div> 259<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>  </div> 260<div class="line"><a name="l01785"></a><span class="lineno"><a class="line" href="group__kernel.html#gafc7a4f5308e2dbf55f875630b8dca049"> 1785</a></span> <span class="keywordtype">void</span> <a class="code" href="group__kernel.html#gafc7a4f5308e2dbf55f875630b8dca049">libevdev_set_abs_info</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keyword">struct</span> input_absinfo *abs);</div> 261<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>  </div> 262<div class="line"><a name="l01804"></a><span class="lineno"><a class="line" href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca"> 1804</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca">libevdev_enable_event_type</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type);</div> 263<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>  </div> 264<div class="line"><a name="l01832"></a><span class="lineno"><a class="line" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a"> 1832</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a">libevdev_disable_event_type</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type);</div> 265<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>  </div> 266<div class="line"><a name="l01867"></a><span class="lineno"><a class="line" href="group__kernel.html#ga51cfda33fd526549046399aadd764fca"> 1867</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga51cfda33fd526549046399aadd764fca">libevdev_enable_event_code</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);</div> 267<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>  </div> 268<div class="line"><a name="l01896"></a><span class="lineno"><a class="line" href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de"> 1896</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de">libevdev_disable_event_code</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 269<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>  </div> 270<div class="line"><a name="l01912"></a><span class="lineno"><a class="line" href="group__kernel.html#ga41c0321b93349d0ddd1f1c007ccf7de9"> 1912</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga41c0321b93349d0ddd1f1c007ccf7de9">libevdev_kernel_set_abs_info</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keyword">struct</span> input_absinfo *abs);</div> 271<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>  </div> 272<div class="line"><a name="l01917"></a><span class="lineno"><a class="line" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41"> 1917</a></span> <span class="keyword">enum</span> <a class="code" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a> {</div> 273<div class="line"><a name="l01918"></a><span class="lineno"><a class="line" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab"> 1918</a></span>  <a class="code" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab">LIBEVDEV_LED_ON</a> = 3, </div> 274<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>  <a class="code" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065">LIBEVDEV_LED_OFF</a> = 4 </div> 275<div class="line"><a name="l01920"></a><span class="lineno"><a class="line" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065"> 1920</a></span> };</div> 276<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>  </div> 277<div class="line"><a name="l01935"></a><span class="lineno"><a class="line" href="group__kernel.html#gaa7d13aeac3c40e16f296467780e67c01"> 1935</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#gaa7d13aeac3c40e16f296467780e67c01">libevdev_kernel_set_led_value</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code, <span class="keyword">enum</span> <a class="code" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a> value);</div> 278<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>  </div> 279<div class="line"><a name="l01960"></a><span class="lineno"><a class="line" href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00"> 1960</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">libevdev_kernel_set_led_values</a>(<span class="keyword">struct</span> libevdev *dev, ...);</div> 280<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>  </div> 281<div class="line"><a name="l01976"></a><span class="lineno"><a class="line" href="group__kernel.html#ga2925b6fbf8c7991ff2164424b840b82d"> 1976</a></span> <span class="keywordtype">int</span> <a class="code" href="group__kernel.html#ga2925b6fbf8c7991ff2164424b840b82d">libevdev_set_clock_id</a>(<span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">int</span> clockid);</div> 282<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>  </div> 283<div class="line"><a name="l01999"></a><span class="lineno"><a class="line" href="group__misc.html#gab8b6b80740e028261300b8952b61a596"> 1999</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#gab8b6b80740e028261300b8952b61a596">libevdev_event_is_type</a>(<span class="keyword">const</span> <span class="keyword">struct</span> input_event *ev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type);</div> 284<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>  </div> 285<div class="line"><a name="l02024"></a><span class="lineno"><a class="line" href="group__misc.html#ga37766a6a498fef3294d589abcce688bb"> 2024</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#ga37766a6a498fef3294d589abcce688bb">libevdev_event_is_code</a>(<span class="keyword">const</span> <span class="keyword">struct</span> input_event *ev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 286<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>  </div> 287<div class="line"><a name="l02037"></a><span class="lineno"><a class="line" href="group__misc.html#gac99720fd926bf288764f9a81bf37ed09"> 2037</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__misc.html#gac99720fd926bf288764f9a81bf37ed09">libevdev_event_type_get_name</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type);</div> 288<div class="line"><a name="l02050"></a><span class="lineno"><a class="line" href="group__misc.html#gab407b3c2caaae502859c28460cad17bb"> 2050</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__misc.html#gab407b3c2caaae502859c28460cad17bb">libevdev_event_code_get_name</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code);</div> 289<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>  </div> 290<div class="line"><a name="l02072"></a><span class="lineno"><a class="line" href="group__misc.html#gabcd45c5e963cba245e944ea66e72fcc3"> 2072</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__misc.html#gabcd45c5e963cba245e944ea66e72fcc3">libevdev_event_value_get_name</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type,</div> 291<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code,</div> 292<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>  <span class="keywordtype">int</span> value);</div> 293<div class="line"><a name="l02088"></a><span class="lineno"><a class="line" href="group__misc.html#gacc12bdb7b912070ac9c375428f2c9892"> 2088</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__misc.html#gacc12bdb7b912070ac9c375428f2c9892">libevdev_property_get_name</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> prop);</div> 294<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>  </div> 295<div class="line"><a name="l02102"></a><span class="lineno"><a class="line" href="group__misc.html#gabfad87ea78d034631cf3e5322ac383a1"> 2102</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#gabfad87ea78d034631cf3e5322ac383a1">libevdev_event_type_get_max</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type);</div> 296<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>  </div> 297<div class="line"><a name="l02118"></a><span class="lineno"><a class="line" href="group__misc.html#ga61ce3bf1e66bd172e583b86a11fc41f1"> 2118</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#ga61ce3bf1e66bd172e583b86a11fc41f1">libevdev_event_type_from_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div> 298<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>  </div> 299<div class="line"><a name="l02136"></a><span class="lineno"><a class="line" href="group__misc.html#ga4ee03d650200bb04a23233570667fa84"> 2136</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#ga4ee03d650200bb04a23233570667fa84">libevdev_event_type_from_name_n</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">size_t</span> len);</div> 300<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>  </div> 301<div class="line"><a name="l02157"></a><span class="lineno"><a class="line" href="group__misc.html#ga6620301a67f467489e4a7f93afe81621"> 2157</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#ga6620301a67f467489e4a7f93afe81621">libevdev_event_code_from_name</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div> 302<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>  </div> 303<div class="line"><a name="l02180"></a><span class="lineno"><a class="line" href="group__misc.html#ga17a760a9eea9dc25011f39e1d5c282a0"> 2180</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#ga17a760a9eea9dc25011f39e1d5c282a0">libevdev_event_code_from_name_n</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div> 304<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>  <span class="keywordtype">size_t</span> len);</div> 305<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>  </div> 306<div class="line"><a name="l02204"></a><span class="lineno"><a class="line" href="group__misc.html#ga314903beeafedabe45f879637e7254b0"> 2204</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#ga314903beeafedabe45f879637e7254b0">libevdev_event_value_from_name</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code,</div> 307<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div> 308<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>  </div> 309<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span> <span class="keywordtype">int</span></div> 310<div class="line"><a name="l02224"></a><span class="lineno"><a class="line" href="group__misc.html#gadd41b7514cca16c8b8920f16e562e08a"> 2224</a></span> <a class="code" href="group__misc.html#gadd41b7514cca16c8b8920f16e562e08a">libevdev_event_type_from_code_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div> 311<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>  </div> 312<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span> <span class="keywordtype">int</span></div> 313<div class="line"><a name="l02245"></a><span class="lineno"><a class="line" href="group__misc.html#gab214498fca7a328f8a712ce15bf21982"> 2245</a></span> <a class="code" href="group__misc.html#gab214498fca7a328f8a712ce15bf21982">libevdev_event_type_from_code_name_n</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">size_t</span> len);</div> 314<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>  </div> 315<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span> <span class="keywordtype">int</span></div> 316<div class="line"><a name="l02264"></a><span class="lineno"><a class="line" href="group__misc.html#gabad00f68481d83747a134c0a37aca003"> 2264</a></span> <a class="code" href="group__misc.html#gabad00f68481d83747a134c0a37aca003">libevdev_event_code_from_code_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div> 317<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>  </div> 318<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span> <span class="keywordtype">int</span></div> 319<div class="line"><a name="l02285"></a><span class="lineno"><a class="line" href="group__misc.html#ga5bf9af4b8c372d87793e8a3c2dbeb466"> 2285</a></span> <a class="code" href="group__misc.html#ga5bf9af4b8c372d87793e8a3c2dbeb466">libevdev_event_code_from_code_name_n</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">size_t</span> len);</div> 320<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>  </div> 321<div class="line"><a name="l02310"></a><span class="lineno"><a class="line" href="group__misc.html#gaebfc6b0ebb70169c9fec61620f1ea85f"> 2310</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#gaebfc6b0ebb70169c9fec61620f1ea85f">libevdev_event_value_from_name_n</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> code,</div> 322<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">size_t</span> len);</div> 323<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>  </div> 324<div class="line"><a name="l02325"></a><span class="lineno"><a class="line" href="group__misc.html#ga6f4418c98aa475a2fc34d58a197f7edd"> 2325</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#ga6f4418c98aa475a2fc34d58a197f7edd">libevdev_property_from_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div> 325<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>  </div> 326<div class="line"><a name="l02341"></a><span class="lineno"><a class="line" href="group__misc.html#gaaa0bc4c7d0d2aedc84c7dcffee9ce29b"> 2341</a></span> <span class="keywordtype">int</span> <a class="code" href="group__misc.html#gaaa0bc4c7d0d2aedc84c7dcffee9ce29b">libevdev_property_from_name_n</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">size_t</span> len);</div> 327<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>  </div> 328<div class="line"><a name="l02360"></a><span class="lineno"><a class="line" href="group__bits.html#gaf12fa199bb9497b38358d72e7505d770"> 2360</a></span> <span class="keywordtype">int</span> <a class="code" href="group__bits.html#gaf12fa199bb9497b38358d72e7505d770">libevdev_get_repeat</a>(<span class="keyword">const</span> <span class="keyword">struct</span> libevdev *dev, <span class="keywordtype">int</span> *delay, <span class="keywordtype">int</span> *period);</div> 329<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>  </div> 330<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span> <span class="comment">/********* DEPRECATED SECTION *********/</span></div> 331<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span> <span class="preprocessor">#if defined(__GNUC__) && __GNUC__ >= 4</span></div> 332<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span> <span class="preprocessor">#define LIBEVDEV_DEPRECATED __attribute__ ((deprecated))</span></div> 333<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span> <span class="preprocessor">#else</span></div> 334<div class="line"><a name="l02366"></a><span class="lineno"><a class="line" href="libevdev_8h.html#aa136bf4638abda28de7cd9f48af534ae"> 2366</a></span> <span class="preprocessor">#define LIBEVDEV_DEPRECATED</span></div> 335<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span> <span class="preprocessor">#endif</span></div> 336<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>  </div> 337<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span> <span class="preprocessor">#ifdef __cplusplus</span></div> 338<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span> }</div> 339<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span> <span class="preprocessor">#endif</span></div> 340<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>  </div> 341<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span> <span class="preprocessor">#endif </span><span class="comment">/* LIBEVDEV_H */</span><span class="preprocessor"></span></div> 342</div><!-- fragment --></div><!-- contents --> 343<div class="ttc" id="agroup__kernel_html_ga2266b59711cdaa4fc12fa56c9313a038"><div class="ttname"><a href="group__kernel.html#ga2266b59711cdaa4fc12fa56c9313a038">libevdev_set_abs_resolution</a></div><div class="ttdeci">void libevdev_set_abs_resolution(struct libevdev *dev, unsigned int code, int val)</div><div class="ttdoc">Change the resolution for the given EV_ABS event code, if the code exists.</div></div> 344<div class="ttc" id="agroup__init_html_ggaa282ec9badaa6bc11b1dc5bb124dbd5ba6c0930d0c280753504cd05ebdcda09eb"><div class="ttname"><a href="group__init.html#ggaa282ec9badaa6bc11b1dc5bb124dbd5ba6c0930d0c280753504cd05ebdcda09eb">LIBEVDEV_UNGRAB</a></div><div class="ttdeci">@ LIBEVDEV_UNGRAB</div><div class="ttdoc">Ungrab the device if currently grabbed.</div><div class="ttdef"><b>Definition:</b> libevdev.h:957</div></div> 345<div class="ttc" id="agroup__misc_html_gabfad87ea78d034631cf3e5322ac383a1"><div class="ttname"><a href="group__misc.html#gabfad87ea78d034631cf3e5322ac383a1">libevdev_event_type_get_max</a></div><div class="ttdeci">int libevdev_event_type_get_max(unsigned int type)</div></div> 346<div class="ttc" id="agroup__bits_html_gab2ab9dad417f33daa79fa0c3d682df0b"><div class="ttname"><a href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code</a></div><div class="ttdeci">int libevdev_has_event_code(const struct libevdev *dev, unsigned int type, unsigned int code)</div></div> 347<div class="ttc" id="agroup__misc_html_gaebfc6b0ebb70169c9fec61620f1ea85f"><div class="ttname"><a href="group__misc.html#gaebfc6b0ebb70169c9fec61620f1ea85f">libevdev_event_value_from_name_n</a></div><div class="ttdeci">int libevdev_event_value_from_name_n(unsigned int type, unsigned int code, const char *name, size_t len)</div><div class="ttdoc">Look up an event value by its type, code and name.</div></div> 348<div class="ttc" id="agroup__bits_html_ga6d8e2caf87fa536fad979346671838d7"><div class="ttname"><a href="group__bits.html#ga6d8e2caf87fa536fad979346671838d7">libevdev_get_abs_info</a></div><div class="ttdeci">const struct input_absinfo * libevdev_get_abs_info(const struct libevdev *dev, unsigned int code)</div><div class="ttdoc">Get the axis info for the given axis, as advertised by the kernel.</div></div> 349<div class="ttc" id="agroup__kernel_html_gaee1d2db88b191ec21d5bf22dd4fe3055"><div class="ttname"><a href="group__kernel.html#gaee1d2db88b191ec21d5bf22dd4fe3055">libevdev_set_id_version</a></div><div class="ttdeci">void libevdev_set_id_version(struct libevdev *dev, int version)</div></div> 350<div class="ttc" id="agroup__misc_html_ga61ce3bf1e66bd172e583b86a11fc41f1"><div class="ttname"><a href="group__misc.html#ga61ce3bf1e66bd172e583b86a11fc41f1">libevdev_event_type_from_name</a></div><div class="ttdeci">int libevdev_event_type_from_name(const char *name)</div><div class="ttdoc">Look up an event-type by its name.</div></div> 351<div class="ttc" id="agroup__kernel_html_gaa7d13aeac3c40e16f296467780e67c01"><div class="ttname"><a href="group__kernel.html#gaa7d13aeac3c40e16f296467780e67c01">libevdev_kernel_set_led_value</a></div><div class="ttdeci">int libevdev_kernel_set_led_value(struct libevdev *dev, unsigned int code, enum libevdev_led_value value)</div><div class="ttdoc">Turn an LED on or off.</div></div> 352<div class="ttc" id="agroup__bits_html_ga36d529ea53f4522004bc7d16c051464b"><div class="ttname"><a href="group__bits.html#ga36d529ea53f4522004bc7d16c051464b">libevdev_has_property</a></div><div class="ttdeci">int libevdev_has_property(const struct libevdev *dev, unsigned int prop)</div></div> 353<div class="ttc" id="agroup__misc_html_gab214498fca7a328f8a712ce15bf21982"><div class="ttname"><a href="group__misc.html#gab214498fca7a328f8a712ce15bf21982">libevdev_event_type_from_code_name_n</a></div><div class="ttdeci">int libevdev_event_type_from_code_name_n(const char *name, size_t len)</div><div class="ttdoc">Look up an event type for a event code name.</div></div> 354<div class="ttc" id="agroup__init_html_ggaa282ec9badaa6bc11b1dc5bb124dbd5bad3ac6f5f3ebf7d38a6aad74a88396c88"><div class="ttname"><a href="group__init.html#ggaa282ec9badaa6bc11b1dc5bb124dbd5bad3ac6f5f3ebf7d38a6aad74a88396c88">LIBEVDEV_GRAB</a></div><div class="ttdeci">@ LIBEVDEV_GRAB</div><div class="ttdoc">Grab the device if not currently grabbed.</div><div class="ttdef"><b>Definition:</b> libevdev.h:956</div></div> 355<div class="ttc" id="agroup__misc_html_ga314903beeafedabe45f879637e7254b0"><div class="ttname"><a href="group__misc.html#ga314903beeafedabe45f879637e7254b0">libevdev_event_value_from_name</a></div><div class="ttdeci">int libevdev_event_value_from_name(unsigned int type, unsigned int code, const char *name)</div><div class="ttdoc">Look up an event value by its type, code and name.</div></div> 356<div class="ttc" id="agroup__events_html_gga56c288d9f2e4c1632986c4e218c494e9a0a348d44362a7e515b40a4ed4d528e19"><div class="ttname"><a href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9a0a348d44362a7e515b40a4ed4d528e19">LIBEVDEV_READ_FLAG_BLOCKING</a></div><div class="ttdeci">@ LIBEVDEV_READ_FLAG_BLOCKING</div><div class="ttdoc">The fd is not in O_NONBLOCK and a read may block.</div><div class="ttdef"><b>Definition:</b> libevdev.h:762</div></div> 357<div class="ttc" id="agroup__misc_html_gaaa0bc4c7d0d2aedc84c7dcffee9ce29b"><div class="ttname"><a href="group__misc.html#gaaa0bc4c7d0d2aedc84c7dcffee9ce29b">libevdev_property_from_name_n</a></div><div class="ttdeci">int libevdev_property_from_name_n(const char *name, size_t len)</div><div class="ttdoc">Look up an input property by its name.</div></div> 358<div class="ttc" id="agroup__kernel_html_gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065"><div class="ttname"><a href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065">LIBEVDEV_LED_OFF</a></div><div class="ttdeci">@ LIBEVDEV_LED_OFF</div><div class="ttdoc">Turn the LED off.</div><div class="ttdef"><b>Definition:</b> libevdev.h:1919</div></div> 359<div class="ttc" id="agroup__bits_html_ga75751e637a845201b6d1c419ecfa6ba4"><div class="ttname"><a href="group__bits.html#ga75751e637a845201b6d1c419ecfa6ba4">libevdev_get_abs_resolution</a></div><div class="ttdeci">int libevdev_get_abs_resolution(const struct libevdev *dev, unsigned int code)</div><div class="ttdoc">Get the axis resolution for the given axis, as advertised by the kernel.</div></div> 360<div class="ttc" id="agroup__misc_html_ga4ee03d650200bb04a23233570667fa84"><div class="ttname"><a href="group__misc.html#ga4ee03d650200bb04a23233570667fa84">libevdev_event_type_from_name_n</a></div><div class="ttdeci">int libevdev_event_type_from_name_n(const char *name, size_t len)</div><div class="ttdoc">Look up an event-type by its name.</div></div> 361<div class="ttc" id="agroup__events_html_ga4a96221b3c7f54dfb86035d952154e3a"><div class="ttname"><a href="group__events.html#ga4a96221b3c7f54dfb86035d952154e3a">libevdev_read_status</a></div><div class="ttdeci">libevdev_read_status</div><div class="ttdef"><b>Definition:</b> libevdev.h:1071</div></div> 362<div class="ttc" id="agroup__kernel_html_ga59ef78b1557f9543d0060ab25b0167ca"><div class="ttname"><a href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca">libevdev_enable_event_type</a></div><div class="ttdeci">int libevdev_enable_event_type(struct libevdev *dev, unsigned int type)</div><div class="ttdoc">Forcibly enable an event type on this device, even if the underlying device does not support it.</div></div> 363<div class="ttc" id="agroup__misc_html_ga6f4418c98aa475a2fc34d58a197f7edd"><div class="ttname"><a href="group__misc.html#ga6f4418c98aa475a2fc34d58a197f7edd">libevdev_property_from_name</a></div><div class="ttdeci">int libevdev_property_from_name(const char *name)</div><div class="ttdoc">Look up an input property by its name.</div></div> 364<div class="ttc" id="agroup__kernel_html_gafc552080520c9d886452b05f3a1d75b6"><div class="ttname"><a href="group__kernel.html#gafc552080520c9d886452b05f3a1d75b6">libevdev_enable_property</a></div><div class="ttdeci">int libevdev_enable_property(struct libevdev *dev, unsigned int prop)</div></div> 365<div class="ttc" id="agroup__kernel_html_ga93a19fa6e5be57903aff7c4a60af2a00"><div class="ttname"><a href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">libevdev_kernel_set_led_values</a></div><div class="ttdeci">int libevdev_kernel_set_led_values(struct libevdev *dev,...)</div><div class="ttdoc">Turn multiple LEDs on or off simultaneously.</div></div> 366<div class="ttc" id="agroup__bits_html_ga0a7be80d769294bf9758adf79c3c7147"><div class="ttname"><a href="group__bits.html#ga0a7be80d769294bf9758adf79c3c7147">libevdev_fetch_event_value</a></div><div class="ttdeci">int libevdev_fetch_event_value(const struct libevdev *dev, unsigned int type, unsigned int code, int *value)</div><div class="ttdoc">Fetch the current value of the event type.</div></div> 367<div class="ttc" id="agroup__logging_html_gaa60be86b83b3a6c82d8e536ba89ff955"><div class="ttname"><a href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955">libevdev_set_log_function</a></div><div class="ttdeci">void libevdev_set_log_function(libevdev_log_func_t logfunc, void *data)</div><div class="ttdoc">Set a printf-style logging handler for library-internal logging.</div></div> 368<div class="ttc" id="agroup__init_html_ga332c8ee260b4ef864345abe5d04e820c"><div class="ttname"><a href="group__init.html#ga332c8ee260b4ef864345abe5d04e820c">libevdev_new</a></div><div class="ttdeci">struct libevdev * libevdev_new(void)</div><div class="ttdoc">Initialize a new libevdev device.</div></div> 369<div class="ttc" id="agroup__mt_html_ga8c6303391cb4f90b2d46763cf4eb8bc8"><div class="ttname"><a href="group__mt.html#ga8c6303391cb4f90b2d46763cf4eb8bc8">libevdev_get_slot_value</a></div><div class="ttdeci">int libevdev_get_slot_value(const struct libevdev *dev, unsigned int slot, unsigned int code)</div><div class="ttdoc">Return the current value of the code for the given slot.</div></div> 370<div class="ttc" id="agroup__logging_html_ga0b798d0864f2b1b10e4603f9431b3364"><div class="ttname"><a href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a></div><div class="ttdeci">libevdev_log_priority</div><div class="ttdef"><b>Definition:</b> libevdev.h:823</div></div> 371<div class="ttc" id="agroup__bits_html_ga75a07d0c96dfe09d2194c104c429d0ae"><div class="ttname"><a href="group__bits.html#ga75a07d0c96dfe09d2194c104c429d0ae">libevdev_get_id_version</a></div><div class="ttdeci">int libevdev_get_id_version(const struct libevdev *dev)</div></div> 372<div class="ttc" id="alibevdev_8h_html_a64a0f325e88e1be50eb806e1ff75aec8"><div class="ttname"><a href="libevdev_8h.html#a64a0f325e88e1be50eb806e1ff75aec8">LIBEVDEV_ATTRIBUTE_PRINTF</a></div><div class="ttdeci">#define LIBEVDEV_ATTRIBUTE_PRINTF(_format, _args)</div><div class="ttdef"><b>Definition:</b> libevdev.h:33</div></div> 373<div class="ttc" id="agroup__logging_html_gaf36c721d273c0794251eb7dacea2f0a4"><div class="ttname"><a href="group__logging.html#gaf36c721d273c0794251eb7dacea2f0a4">libevdev_log_func_t</a></div><div class="ttdeci">void(* libevdev_log_func_t)(enum libevdev_log_priority priority, void *data, const char *file, int line, const char *func, const char *format, va_list args)</div><div class="ttdoc">Logging function called by library-internal logging.</div><div class="ttdef"><b>Definition:</b> libevdev.h:845</div></div> 374<div class="ttc" id="agroup__misc_html_gab407b3c2caaae502859c28460cad17bb"><div class="ttname"><a href="group__misc.html#gab407b3c2caaae502859c28460cad17bb">libevdev_event_code_get_name</a></div><div class="ttdeci">const char * libevdev_event_code_get_name(unsigned int type, unsigned int code)</div></div> 375<div class="ttc" id="agroup__kernel_html_ga41c0321b93349d0ddd1f1c007ccf7de9"><div class="ttname"><a href="group__kernel.html#ga41c0321b93349d0ddd1f1c007ccf7de9">libevdev_kernel_set_abs_info</a></div><div class="ttdeci">int libevdev_kernel_set_abs_info(struct libevdev *dev, unsigned int code, const struct input_absinfo *abs)</div><div class="ttdoc">Set the device's EV_ABS axis to the value defined in the abs parameter.</div></div> 376<div class="ttc" id="agroup__bits_html_ga6259f4c6bdba950329ff9cd48c2ef8a3"><div class="ttname"><a href="group__bits.html#ga6259f4c6bdba950329ff9cd48c2ef8a3">libevdev_get_event_value</a></div><div class="ttdeci">int libevdev_get_event_value(const struct libevdev *dev, unsigned int type, unsigned int code)</div><div class="ttdoc">Behaviour of this function is undefined if the device does not provide the event.</div></div> 377<div class="ttc" id="agroup__misc_html_ga17a760a9eea9dc25011f39e1d5c282a0"><div class="ttname"><a href="group__misc.html#ga17a760a9eea9dc25011f39e1d5c282a0">libevdev_event_code_from_name_n</a></div><div class="ttdeci">int libevdev_event_code_from_name_n(unsigned int type, const char *name, size_t len)</div><div class="ttdoc">Look up an event code by its type and name.</div></div> 378<div class="ttc" id="agroup__misc_html_ga5bf9af4b8c372d87793e8a3c2dbeb466"><div class="ttname"><a href="group__misc.html#ga5bf9af4b8c372d87793e8a3c2dbeb466">libevdev_event_code_from_code_name_n</a></div><div class="ttdeci">int libevdev_event_code_from_code_name_n(const char *name, size_t len)</div><div class="ttdoc">Look up an event code by its name.</div></div> 379<div class="ttc" id="agroup__kernel_html_ga0c61f4919b03b0850529a50c37a20333"><div class="ttname"><a href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333">libevdev_set_slot_value</a></div><div class="ttdeci">int libevdev_set_slot_value(struct libevdev *dev, unsigned int slot, unsigned int code, int value)</div><div class="ttdoc">Set the value for a given code for the given slot.</div></div> 380<div class="ttc" id="agroup__init_html_ga6658ac490d68c307ff8b8d1536c12b44"><div class="ttname"><a href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44">libevdev_set_fd</a></div><div class="ttdeci">int libevdev_set_fd(struct libevdev *dev, int fd)</div><div class="ttdoc">Set the fd for this struct and initialize internal data.</div></div> 381<div class="ttc" id="agroup__kernel_html_ga8ce28051ebbb73de1d04d782f4d0d6fe"><div class="ttname"><a href="group__kernel.html#ga8ce28051ebbb73de1d04d782f4d0d6fe">libevdev_set_id_vendor</a></div><div class="ttdeci">void libevdev_set_id_vendor(struct libevdev *dev, int vendor_id)</div></div> 382<div class="ttc" id="agroup__kernel_html_gabd309f30744a49e9391250b00ba2d67a"><div class="ttname"><a href="group__kernel.html#gabd309f30744a49e9391250b00ba2d67a">libevdev_set_abs_flat</a></div><div class="ttdeci">void libevdev_set_abs_flat(struct libevdev *dev, unsigned int code, int val)</div><div class="ttdoc">Change the flat for the given EV_ABS event code, if the code exists.</div></div> 383<div class="ttc" id="agroup__init_html_gacd9fe760d15be25fc99ce469034bd78c"><div class="ttname"><a href="group__init.html#gacd9fe760d15be25fc99ce469034bd78c">libevdev_free</a></div><div class="ttdeci">void libevdev_free(struct libevdev *dev)</div><div class="ttdoc">Clean up and free the libevdev struct.</div></div> 384<div class="ttc" id="agroup__logging_html_ga1da07493a798595cf85c127490b98ee8"><div class="ttname"><a href="group__logging.html#ga1da07493a798595cf85c127490b98ee8">libevdev_get_log_priority</a></div><div class="ttdeci">enum libevdev_log_priority libevdev_get_log_priority(void)</div><div class="ttdoc">Return the current log priority level.</div></div> 385<div class="ttc" id="agroup__bits_html_gaf12fa199bb9497b38358d72e7505d770"><div class="ttname"><a href="group__bits.html#gaf12fa199bb9497b38358d72e7505d770">libevdev_get_repeat</a></div><div class="ttdeci">int libevdev_get_repeat(const struct libevdev *dev, int *delay, int *period)</div><div class="ttdoc">Get the repeat delay and repeat period values for this device.</div></div> 386<div class="ttc" id="agroup__mt_html_gaca19dca5aa8f0ea3b210f3fc670384ec"><div class="ttname"><a href="group__mt.html#gaca19dca5aa8f0ea3b210f3fc670384ec">libevdev_fetch_slot_value</a></div><div class="ttdeci">int libevdev_fetch_slot_value(const struct libevdev *dev, unsigned int slot, unsigned int code, int *value)</div><div class="ttdoc">Fetch the current value of the code for the given slot.</div></div> 387<div class="ttc" id="agroup__kernel_html_ga62fbdaac056ab5c3db154a9eeaf33799"><div class="ttname"><a href="group__kernel.html#ga62fbdaac056ab5c3db154a9eeaf33799">libevdev_set_id_product</a></div><div class="ttdeci">void libevdev_set_id_product(struct libevdev *dev, int product_id)</div></div> 388<div class="ttc" id="agroup__events_html_gga56c288d9f2e4c1632986c4e218c494e9a5198e5c9cc98b75f73f61b104d6a674c"><div class="ttname"><a href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9a5198e5c9cc98b75f73f61b104d6a674c">LIBEVDEV_READ_FLAG_FORCE_SYNC</a></div><div class="ttdeci">@ LIBEVDEV_READ_FLAG_FORCE_SYNC</div><div class="ttdoc">Pretend the next event is a SYN_DROPPED and require the caller to sync.</div><div class="ttdef"><b>Definition:</b> libevdev.h:760</div></div> 389<div class="ttc" id="agroup__bits_html_ga398bef155fa4a0cfb832de30723ebd14"><div class="ttname"><a href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type</a></div><div class="ttdeci">int libevdev_has_event_type(const struct libevdev *dev, unsigned int type)</div></div> 390<div class="ttc" id="agroup__kernel_html_gaca62172c2a823cd02eacf0d2292d917a"><div class="ttname"><a href="group__kernel.html#gaca62172c2a823cd02eacf0d2292d917a">libevdev_set_abs_minimum</a></div><div class="ttdeci">void libevdev_set_abs_minimum(struct libevdev *dev, unsigned int code, int val)</div><div class="ttdoc">Change the minimum for the given EV_ABS event code, if the code exists.</div></div> 391<div class="ttc" id="agroup__logging_html_gga0b798d0864f2b1b10e4603f9431b3364a4d13a031b112292ca3e7bab8c6d76abc"><div class="ttname"><a href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a4d13a031b112292ca3e7bab8c6d76abc">LIBEVDEV_LOG_INFO</a></div><div class="ttdeci">@ LIBEVDEV_LOG_INFO</div><div class="ttdoc">informational messages</div><div class="ttdef"><b>Definition:</b> libevdev.h:825</div></div> 392<div class="ttc" id="agroup__events_html_gae18fbfb59064c9c4b9d5db2d8cb23784"><div class="ttname"><a href="group__events.html#gae18fbfb59064c9c4b9d5db2d8cb23784">libevdev_has_event_pending</a></div><div class="ttdeci">int libevdev_has_event_pending(struct libevdev *dev)</div><div class="ttdoc">Check if there are events waiting for us.</div></div> 393<div class="ttc" id="agroup__kernel_html_gafc7a4f5308e2dbf55f875630b8dca049"><div class="ttname"><a href="group__kernel.html#gafc7a4f5308e2dbf55f875630b8dca049">libevdev_set_abs_info</a></div><div class="ttdeci">void libevdev_set_abs_info(struct libevdev *dev, unsigned int code, const struct input_absinfo *abs)</div><div class="ttdoc">Change the abs info for the given EV_ABS event code, if the code exists.</div></div> 394<div class="ttc" id="agroup__bits_html_ga9bf55d416401642bad0c435735682308"><div class="ttname"><a href="group__bits.html#ga9bf55d416401642bad0c435735682308">libevdev_get_id_bustype</a></div><div class="ttdeci">int libevdev_get_id_bustype(const struct libevdev *dev)</div></div> 395<div class="ttc" id="agroup__kernel_html_gae5dcdb7678cdc9be4ab1989725b4ed32"><div class="ttname"><a href="group__kernel.html#gae5dcdb7678cdc9be4ab1989725b4ed32">libevdev_set_name</a></div><div class="ttdeci">void libevdev_set_name(struct libevdev *dev, const char *name)</div><div class="ttdoc">Change the device's name as returned by libevdev_get_name().</div></div> 396<div class="ttc" id="agroup__bits_html_ga6d9f7d44bff8828ead3d251177035ca4"><div class="ttname"><a href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4">libevdev_get_uniq</a></div><div class="ttdeci">const char * libevdev_get_uniq(const struct libevdev *dev)</div><div class="ttdoc">Retrieve the device's unique identifier, either as set by the caller or as read from the kernel.</div></div> 397<div class="ttc" id="agroup__kernel_html_gaf99139c728ba1bd4b37ede612780b6b0"><div class="ttname"><a href="group__kernel.html#gaf99139c728ba1bd4b37ede612780b6b0">libevdev_set_id_bustype</a></div><div class="ttdeci">void libevdev_set_id_bustype(struct libevdev *dev, int bustype)</div></div> 398<div class="ttc" id="agroup__events_html_ga56c288d9f2e4c1632986c4e218c494e9"><div class="ttname"><a href="group__events.html#ga56c288d9f2e4c1632986c4e218c494e9">libevdev_read_flag</a></div><div class="ttdeci">libevdev_read_flag</div><div class="ttdef"><b>Definition:</b> libevdev.h:757</div></div> 399<div class="ttc" id="agroup__bits_html_ga1dc66cfef646878d58be72f8902a6bac"><div class="ttname"><a href="group__bits.html#ga1dc66cfef646878d58be72f8902a6bac">libevdev_get_id_product</a></div><div class="ttdeci">int libevdev_get_id_product(const struct libevdev *dev)</div></div> 400<div class="ttc" id="agroup__logging_html_ga2830ff0aa391d8d1111682d3e762091b"><div class="ttname"><a href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b">libevdev_set_device_log_function</a></div><div class="ttdeci">void libevdev_set_device_log_function(struct libevdev *dev, libevdev_device_log_func_t logfunc, enum libevdev_log_priority priority, void *data)</div><div class="ttdoc">Set a printf-style logging handler for library-internal logging for this device context.</div></div> 401<div class="ttc" id="agroup__kernel_html_ga8cddf7779debef0067665671e911ec41"><div class="ttname"><a href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a></div><div class="ttdeci">libevdev_led_value</div><div class="ttdef"><b>Definition:</b> libevdev.h:1917</div></div> 402<div class="ttc" id="agroup__bits_html_ga08891c3285da5b8d26769c9a34f063f3"><div class="ttname"><a href="group__bits.html#ga08891c3285da5b8d26769c9a34f063f3">libevdev_get_id_vendor</a></div><div class="ttdeci">int libevdev_get_id_vendor(const struct libevdev *dev)</div></div> 403<div class="ttc" id="agroup__kernel_html_ga4e4fd2627744fd5811c50c7403f27ad7"><div class="ttname"><a href="group__kernel.html#ga4e4fd2627744fd5811c50c7403f27ad7">libevdev_set_uniq</a></div><div class="ttdeci">void libevdev_set_uniq(struct libevdev *dev, const char *uniq)</div><div class="ttdoc">Change the device's unique identifier as returned by libevdev_get_uniq().</div></div> 404<div class="ttc" id="agroup__logging_html_gga0b798d0864f2b1b10e4603f9431b3364a21fd1083f2ebd0a25f09ee982e365d5f"><div class="ttname"><a href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a21fd1083f2ebd0a25f09ee982e365d5f">LIBEVDEV_LOG_ERROR</a></div><div class="ttdeci">@ LIBEVDEV_LOG_ERROR</div><div class="ttdoc">critical errors and application bugs</div><div class="ttdef"><b>Definition:</b> libevdev.h:824</div></div> 405<div class="ttc" id="agroup__bits_html_ga6b3f7ebae2324524dc41384acd724b92"><div class="ttname"><a href="group__bits.html#ga6b3f7ebae2324524dc41384acd724b92">libevdev_get_abs_flat</a></div><div class="ttdeci">int libevdev_get_abs_flat(const struct libevdev *dev, unsigned int code)</div><div class="ttdoc">Get the axis flat for the given axis, as advertised by the kernel.</div></div> 406<div class="ttc" id="agroup__mt_html_gaf272526f0a59d2f61ef7389046cd4088"><div class="ttname"><a href="group__mt.html#gaf272526f0a59d2f61ef7389046cd4088">libevdev_get_num_slots</a></div><div class="ttdeci">int libevdev_get_num_slots(const struct libevdev *dev)</div><div class="ttdoc">Get the number of slots supported by this device.</div></div> 407<div class="ttc" id="agroup__events_html_gga4a96221b3c7f54dfb86035d952154e3aa8d70b14a38204fde4ad433023baa545a"><div class="ttname"><a href="group__events.html#gga4a96221b3c7f54dfb86035d952154e3aa8d70b14a38204fde4ad433023baa545a">LIBEVDEV_READ_STATUS_SYNC</a></div><div class="ttdeci">@ LIBEVDEV_READ_STATUS_SYNC</div><div class="ttdoc">Depending on the libevdev_next_event() read flag:</div><div class="ttdef"><b>Definition:</b> libevdev.h:1087</div></div> 408<div class="ttc" id="agroup__logging_html_gga0b798d0864f2b1b10e4603f9431b3364a760d66d422ffcf89b0f1ddb529b95793"><div class="ttname"><a href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a760d66d422ffcf89b0f1ddb529b95793">LIBEVDEV_LOG_DEBUG</a></div><div class="ttdeci">@ LIBEVDEV_LOG_DEBUG</div><div class="ttdoc">debug information</div><div class="ttdef"><b>Definition:</b> libevdev.h:826</div></div> 409<div class="ttc" id="agroup__events_html_gabb96c864e836c0b98788f4ab771c3a76"><div class="ttname"><a href="group__events.html#gabb96c864e836c0b98788f4ab771c3a76">libevdev_next_event</a></div><div class="ttdeci">int libevdev_next_event(struct libevdev *dev, unsigned int flags, struct input_event *ev)</div><div class="ttdoc">Get the next event from the device.</div></div> 410<div class="ttc" id="agroup__bits_html_ga482ce989a3f62f7e67e4ea7ad534189e"><div class="ttname"><a href="group__bits.html#ga482ce989a3f62f7e67e4ea7ad534189e">libevdev_get_abs_minimum</a></div><div class="ttdeci">int libevdev_get_abs_minimum(const struct libevdev *dev, unsigned int code)</div><div class="ttdoc">Get the minimum axis value for the given axis, as advertised by the kernel.</div></div> 411<div class="ttc" id="agroup__kernel_html_ga8f6367c36331c803ad69b2591e210019"><div class="ttname"><a href="group__kernel.html#ga8f6367c36331c803ad69b2591e210019">libevdev_disable_property</a></div><div class="ttdeci">int libevdev_disable_property(struct libevdev *dev, unsigned int prop)</div></div> 412<div class="ttc" id="agroup__events_html_gga4a96221b3c7f54dfb86035d952154e3aab053221fc1c9630eee7111b75aa0aec7"><div class="ttname"><a href="group__events.html#gga4a96221b3c7f54dfb86035d952154e3aab053221fc1c9630eee7111b75aa0aec7">LIBEVDEV_READ_STATUS_SUCCESS</a></div><div class="ttdeci">@ LIBEVDEV_READ_STATUS_SUCCESS</div><div class="ttdoc">libevdev_next_event() has finished without an error and an event is available for processing.</div><div class="ttdef"><b>Definition:</b> libevdev.h:1078</div></div> 413<div class="ttc" id="agroup__mt_html_gad22e2420be668b56ef486cde2e98c5dd"><div class="ttname"><a href="group__mt.html#gad22e2420be668b56ef486cde2e98c5dd">libevdev_get_current_slot</a></div><div class="ttdeci">int libevdev_get_current_slot(const struct libevdev *dev)</div><div class="ttdoc">Get the currently active slot.</div></div> 414<div class="ttc" id="agroup__misc_html_ga37766a6a498fef3294d589abcce688bb"><div class="ttname"><a href="group__misc.html#ga37766a6a498fef3294d589abcce688bb">libevdev_event_is_code</a></div><div class="ttdeci">int libevdev_event_is_code(const struct input_event *ev, unsigned int type, unsigned int code)</div><div class="ttdoc">Helper function to check if an event is of a specific type and code.</div></div> 415<div class="ttc" id="agroup__kernel_html_ga51cfda33fd526549046399aadd764fca"><div class="ttname"><a href="group__kernel.html#ga51cfda33fd526549046399aadd764fca">libevdev_enable_event_code</a></div><div class="ttdeci">int libevdev_enable_event_code(struct libevdev *dev, unsigned int type, unsigned int code, const void *data)</div><div class="ttdoc">Forcibly enable an event code on this device, even if the underlying device does not support it.</div></div> 416<div class="ttc" id="agroup__misc_html_gacc12bdb7b912070ac9c375428f2c9892"><div class="ttname"><a href="group__misc.html#gacc12bdb7b912070ac9c375428f2c9892">libevdev_property_get_name</a></div><div class="ttdeci">const char * libevdev_property_get_name(unsigned int prop)</div></div> 417<div class="ttc" id="agroup__misc_html_gabcd45c5e963cba245e944ea66e72fcc3"><div class="ttname"><a href="group__misc.html#gabcd45c5e963cba245e944ea66e72fcc3">libevdev_event_value_get_name</a></div><div class="ttdeci">const char * libevdev_event_value_get_name(unsigned int type, unsigned int code, int value)</div><div class="ttdoc">This function resolves the event value for a code.</div></div> 418<div class="ttc" id="agroup__bits_html_ga31e9e7a99215a03bcdc339b53e1be2fa"><div class="ttname"><a href="group__bits.html#ga31e9e7a99215a03bcdc339b53e1be2fa">libevdev_get_driver_version</a></div><div class="ttdeci">int libevdev_get_driver_version(const struct libevdev *dev)</div></div> 419<div class="ttc" id="agroup__misc_html_ga6620301a67f467489e4a7f93afe81621"><div class="ttname"><a href="group__misc.html#ga6620301a67f467489e4a7f93afe81621">libevdev_event_code_from_name</a></div><div class="ttdeci">int libevdev_event_code_from_name(unsigned int type, const char *name)</div><div class="ttdoc">Look up an event code by its type and name.</div></div> 420<div class="ttc" id="agroup__kernel_html_ga2925b6fbf8c7991ff2164424b840b82d"><div class="ttname"><a href="group__kernel.html#ga2925b6fbf8c7991ff2164424b840b82d">libevdev_set_clock_id</a></div><div class="ttdeci">int libevdev_set_clock_id(struct libevdev *dev, int clockid)</div><div class="ttdoc">Set the clock ID to be used for timestamps.</div></div> 421<div class="ttc" id="agroup__bits_html_ga97a3411ae85f1f3b5c5eb1d5351b11ca"><div class="ttname"><a href="group__bits.html#ga97a3411ae85f1f3b5c5eb1d5351b11ca">libevdev_get_abs_maximum</a></div><div class="ttdeci">int libevdev_get_abs_maximum(const struct libevdev *dev, unsigned int code)</div><div class="ttdoc">Get the maximum axis value for the given axis, as advertised by the kernel.</div></div> 422<div class="ttc" id="agroup__kernel_html_gacd57c8d6ace8e0b1417809a9c1c67af3"><div class="ttname"><a href="group__kernel.html#gacd57c8d6ace8e0b1417809a9c1c67af3">libevdev_set_phys</a></div><div class="ttdeci">void libevdev_set_phys(struct libevdev *dev, const char *phys)</div><div class="ttdoc">Change the device's physical location as returned by libevdev_get_phys().</div></div> 423<div class="ttc" id="agroup__kernel_html_ga6199a7c8144f54e092e913c2d2df16de"><div class="ttname"><a href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de">libevdev_disable_event_code</a></div><div class="ttdeci">int libevdev_disable_event_code(struct libevdev *dev, unsigned int type, unsigned int code)</div><div class="ttdoc">Forcibly disable an event code on this device, even if the underlying device provides it.</div></div> 424<div class="ttc" id="agroup__init_html_gac71c9cca4c572ed1b1a8c233be70a17c"><div class="ttname"><a href="group__init.html#gac71c9cca4c572ed1b1a8c233be70a17c">libevdev_change_fd</a></div><div class="ttdeci">int libevdev_change_fd(struct libevdev *dev, int fd)</div><div class="ttdoc">Change the fd for this device, without re-reading the actual device.</div></div> 425<div class="ttc" id="agroup__kernel_html_gabbacb53b66882b5335055c0fd1f40d9a"><div class="ttname"><a href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a">libevdev_disable_event_type</a></div><div class="ttdeci">int libevdev_disable_event_type(struct libevdev *dev, unsigned int type)</div><div class="ttdoc">Forcibly disable an event type on this device, even if the underlying device provides it.</div></div> 426<div class="ttc" id="agroup__bits_html_ga5df483b0b24d7b96ea1181808fab851d"><div class="ttname"><a href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d">libevdev_get_phys</a></div><div class="ttdeci">const char * libevdev_get_phys(const struct libevdev *dev)</div><div class="ttdoc">Retrieve the device's physical location, either as set by the caller or as read from the kernel.</div></div> 427<div class="ttc" id="agroup__init_html_gab9bfc800859ac3aa63f41d58ec4b616c"><div class="ttname"><a href="group__init.html#gab9bfc800859ac3aa63f41d58ec4b616c">libevdev_get_fd</a></div><div class="ttdeci">int libevdev_get_fd(const struct libevdev *dev)</div></div> 428<div class="ttc" id="agroup__bits_html_ga1a3dfeb3bb2db0b4323c836c7ab10f1a"><div class="ttname"><a href="group__bits.html#ga1a3dfeb3bb2db0b4323c836c7ab10f1a">libevdev_get_abs_fuzz</a></div><div class="ttdeci">int libevdev_get_abs_fuzz(const struct libevdev *dev, unsigned int code)</div><div class="ttdoc">Get the axis fuzz for the given axis, as advertised by the kernel.</div></div> 429<div class="ttc" id="agroup__kernel_html_gaa192bf0c68620be819337da6ec361c21"><div class="ttname"><a href="group__kernel.html#gaa192bf0c68620be819337da6ec361c21">libevdev_set_abs_fuzz</a></div><div class="ttdeci">void libevdev_set_abs_fuzz(struct libevdev *dev, unsigned int code, int val)</div><div class="ttdoc">Change the fuzz for the given EV_ABS event code, if the code exists.</div></div> 430<div class="ttc" id="agroup__misc_html_gac99720fd926bf288764f9a81bf37ed09"><div class="ttname"><a href="group__misc.html#gac99720fd926bf288764f9a81bf37ed09">libevdev_event_type_get_name</a></div><div class="ttdeci">const char * libevdev_event_type_get_name(unsigned int type)</div></div> 431<div class="ttc" id="agroup__logging_html_gaf6b6842a9ed98b61d0abb421e853fd89"><div class="ttname"><a href="group__logging.html#gaf6b6842a9ed98b61d0abb421e853fd89">libevdev_set_log_priority</a></div><div class="ttdeci">void libevdev_set_log_priority(enum libevdev_log_priority priority)</div><div class="ttdoc">Define the minimum level to be printed to the log handler.</div></div> 432<div class="ttc" id="agroup__misc_html_gabad00f68481d83747a134c0a37aca003"><div class="ttname"><a href="group__misc.html#gabad00f68481d83747a134c0a37aca003">libevdev_event_code_from_code_name</a></div><div class="ttdeci">int libevdev_event_code_from_code_name(const char *name)</div><div class="ttdoc">Look up an event code by its name.</div></div> 433<div class="ttc" id="agroup__init_html_ga5d434af74fee20f273db568e2cbbd13f"><div class="ttname"><a href="group__init.html#ga5d434af74fee20f273db568e2cbbd13f">libevdev_grab</a></div><div class="ttdeci">int libevdev_grab(struct libevdev *dev, enum libevdev_grab_mode grab)</div><div class="ttdoc">Grab or ungrab the device through a kernel EVIOCGRAB.</div></div> 434<div class="ttc" id="agroup__misc_html_gab8b6b80740e028261300b8952b61a596"><div class="ttname"><a href="group__misc.html#gab8b6b80740e028261300b8952b61a596">libevdev_event_is_type</a></div><div class="ttdeci">int libevdev_event_is_type(const struct input_event *ev, unsigned int type)</div><div class="ttdoc">Helper function to check if an event is of a specific type.</div></div> 435<div class="ttc" id="agroup__init_html_gaa282ec9badaa6bc11b1dc5bb124dbd5b"><div class="ttname"><a href="group__init.html#gaa282ec9badaa6bc11b1dc5bb124dbd5b">libevdev_grab_mode</a></div><div class="ttdeci">libevdev_grab_mode</div><div class="ttdef"><b>Definition:</b> libevdev.h:955</div></div> 436<div class="ttc" id="agroup__bits_html_gaed0328c67b7a78422636d9fe09a73f12"><div class="ttname"><a href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12">libevdev_get_name</a></div><div class="ttdeci">const char * libevdev_get_name(const struct libevdev *dev)</div><div class="ttdoc">Retrieve the device's name, either as set by the caller or as read from the kernel.</div></div> 437<div class="ttc" id="agroup__kernel_html_gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab"><div class="ttname"><a href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab">LIBEVDEV_LED_ON</a></div><div class="ttdeci">@ LIBEVDEV_LED_ON</div><div class="ttdoc">Turn the LED on.</div><div class="ttdef"><b>Definition:</b> libevdev.h:1918</div></div> 438<div class="ttc" id="agroup__kernel_html_ga2302fd9a491d8e27280157d67a703af6"><div class="ttname"><a href="group__kernel.html#ga2302fd9a491d8e27280157d67a703af6">libevdev_set_abs_maximum</a></div><div class="ttdeci">void libevdev_set_abs_maximum(struct libevdev *dev, unsigned int code, int val)</div><div class="ttdoc">Change the maximum for the given EV_ABS event code, if the code exists.</div></div> 439<div class="ttc" id="agroup__events_html_gga56c288d9f2e4c1632986c4e218c494e9ac0d6ee19551eecf76f1ede4f36252418"><div class="ttname"><a href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9ac0d6ee19551eecf76f1ede4f36252418">LIBEVDEV_READ_FLAG_NORMAL</a></div><div class="ttdeci">@ LIBEVDEV_READ_FLAG_NORMAL</div><div class="ttdoc">Process data in normal mode.</div><div class="ttdef"><b>Definition:</b> libevdev.h:759</div></div> 440<div class="ttc" id="agroup__events_html_gga56c288d9f2e4c1632986c4e218c494e9a1f13a19641d6dafcf01a86a6389800f8"><div class="ttname"><a href="group__events.html#gga56c288d9f2e4c1632986c4e218c494e9a1f13a19641d6dafcf01a86a6389800f8">LIBEVDEV_READ_FLAG_SYNC</a></div><div class="ttdeci">@ LIBEVDEV_READ_FLAG_SYNC</div><div class="ttdoc">Process data in sync mode.</div><div class="ttdef"><b>Definition:</b> libevdev.h:758</div></div> 441<div class="ttc" id="agroup__logging_html_gab7eb997be2b701cc6f42e7b4c3478269"><div class="ttname"><a href="group__logging.html#gab7eb997be2b701cc6f42e7b4c3478269">libevdev_device_log_func_t</a></div><div class="ttdeci">void(* libevdev_device_log_func_t)(const struct libevdev *dev, enum libevdev_log_priority priority, void *data, const char *file, int line, const char *func, const char *format, va_list args)</div><div class="ttdoc">Logging function called by library-internal logging for a specific libevdev context.</div><div class="ttdef"><b>Definition:</b> libevdev.h:918</div></div> 442<div class="ttc" id="agroup__kernel_html_ga79e82ee2a95cb08adb4172aabe0c7184"><div class="ttname"><a href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184">libevdev_set_event_value</a></div><div class="ttdeci">int libevdev_set_event_value(struct libevdev *dev, unsigned int type, unsigned int code, int value)</div><div class="ttdoc">Set the value for a given event type and code.</div></div> 443<div class="ttc" id="agroup__misc_html_gadd41b7514cca16c8b8920f16e562e08a"><div class="ttname"><a href="group__misc.html#gadd41b7514cca16c8b8920f16e562e08a">libevdev_event_type_from_code_name</a></div><div class="ttdeci">int libevdev_event_type_from_code_name(const char *name)</div><div class="ttdoc">Look up an event type for a event code name.</div></div> 444<div class="ttc" id="agroup__init_html_ga89bb5bce1c23e293293484b05b12aaf4"><div class="ttname"><a href="group__init.html#ga89bb5bce1c23e293293484b05b12aaf4">libevdev_new_from_fd</a></div><div class="ttdeci">int libevdev_new_from_fd(int fd, struct libevdev **dev)</div><div class="ttdoc">Initialize a new libevdev device from the given fd.</div></div> 445<!-- HTML footer for doxygen 1.8.8--> 446<!-- start footer part --> 447</div> 448</div> 449</div> 450</div> 451</div> 452<hr class="footer"/><address class="footer"><small> 453Generated by  <a href="http://www.doxygen.org/index.html"> 454<img class="footer" src="doxygen.png" alt="doxygen"/> 455</a> 1.8.20 456</small></address> 457</body> 458</html> 459