|
3 | 3 | Copyright © 2010 Tuomas Räsänen (tuos) <tuos@codegrove.org> |
4 | 4 |
|
5 | 5 | This program is free software: you can redistribute it and/or modify |
6 | | - it under the terms of the GNU General Public License version 3 as |
7 | | - published by the Free Software Foundation. |
| 6 | + it under the terms of the GNU General Public License as published by |
| 7 | + the Free Software Foundation, either version 3 of the License, or |
| 8 | + (at your option) any later version. |
8 | 9 |
|
9 | 10 | This program is distributed in the hope that it will be useful, |
10 | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
@@ -185,35 +186,35 @@ static PyObject *pysuinput_destroy(PyObject *self, PyObject *args) |
185 | 186 | } |
186 | 187 |
|
187 | 188 | static PyMethodDef pysuinputMethods[] = { |
188 | | - {"open", pysuinput_open, METH_VARARGS, |
189 | | - "open()\n\n" |
190 | | - "Open an uinput device and return a file descriptor." |
| 189 | + {"uinput_open", pysuinput_open, METH_VARARGS, |
| 190 | + "uinput_open()\n\n" |
| 191 | + "Open the uinput device and return a file descriptor." |
191 | 192 | }, |
192 | 193 |
|
193 | | - {"write", pysuinput_write, METH_VARARGS, |
194 | | - "write(uinput_fd, ev_type, ev_code, ev_value)\n\n" |
195 | | - "Write an event to the uinput device.\n" |
| 194 | + {"uinput_write", pysuinput_write, METH_VARARGS, |
| 195 | + "uinput_write(uinput_fd, ev_type, ev_code, ev_value)\n\n" |
| 196 | + "Destory and close the uinput device.\n" |
196 | 197 | }, |
197 | 198 |
|
198 | | - {"set_capabilities", pysuinput_set_capabilities, METH_VARARGS, |
199 | | - "set_capabilities(uinput_fd, ev_type, capabilities)\n\n" |
200 | | - "Set the capabilities of the uinput device.\n" |
| 199 | + {"uinput_set_capabilities", pysuinput_set_capabilities, METH_VARARGS, |
| 200 | + "uinput_set_capabilities(uinput_fd, ev_type, capabilities)\n\n" |
| 201 | + "Destory and close the uinput device.\n" |
201 | 202 | }, |
202 | 203 |
|
203 | | - {"syn", pysuinput_syn, METH_VARARGS, |
204 | | - "syn(uinput_fd, ev_type, ev_code, ev_value)\n\n" |
205 | | - "Write EV_SYN event to the uinput device.\n" |
| 204 | + {"uinput_syn", pysuinput_syn, METH_VARARGS, |
| 205 | + "uinput_syn(uinput_fd, ev_type, ev_code, ev_value)\n\n" |
| 206 | + "Destory and close the uinput device.\n" |
206 | 207 | }, |
207 | 208 |
|
208 | | - {"destroy", pysuinput_destroy, METH_VARARGS, |
209 | | - "destroy(uinput_fd)\n\n" |
| 209 | + {"uinput_destroy", pysuinput_destroy, METH_VARARGS, |
| 210 | + "uinput_destroy(uinput_fd)\n\n" |
210 | 211 | "Destory and close the uinput device.\n" |
211 | 212 | }, |
212 | 213 |
|
213 | | - {"create", pysuinput_create, METH_VARARGS, |
214 | | - "create(uinput_fd, name, bustype, vendor, product, version,\n" |
215 | | - " ff_effects_max, absmin, absmax, absfuzz, absflat)\n\n" |
216 | | - "Create and initialize the uinput device with giver parameters.\n" |
| 214 | + {"uinput_create", pysuinput_create, METH_VARARGS, |
| 215 | + "uinput_create(uinput_fd, name, bustype, vendor, product, version,\n" |
| 216 | + " ff_effects_max, absmin, absmax, absfuzz, absflat)\n\n" |
| 217 | + "Destory and close the uinput device.\n" |
217 | 218 | }, |
218 | 219 |
|
219 | 220 | {NULL, NULL, 0, NULL} |
|
0 commit comments