[PATCH evemu v2 1/4] py: add missing ABI definitions

Benjamin Tissoires benjamin.tissoires at gmail.com
Wed Jan 15 13:04:58 PST 2014


Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>
---

v2: extracted from v1 "py: add a tool to check the libevemu python binding"

 python/evemu/base.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/python/evemu/base.py b/python/evemu/base.py
index b366e2f..1d903b2 100644
--- a/python/evemu/base.py
+++ b/python/evemu/base.py
@@ -186,6 +186,12 @@ class LibEvemu(LibraryWrapper):
             "argtypes": (c_void_p,),
             "restype": c_uint,
             },
+        #const char *evemu_get_devnode(struct evemu_device *dev);
+        "evemu_get_devnode": {
+            "argtypes": (c_void_p,),
+            "restype": c_char_p,
+            "errcheck": expect_not_none
+            },
         #const char *evemu_get_name(const struct evemu_device *dev);
         "evemu_get_name": {
             "argtypes": (c_void_p,),
@@ -394,6 +400,12 @@ class LibEvemu(LibraryWrapper):
             "restype": c_int,
             "errcheck": expect_eq_zero
             },
+        #int evemu_create_managed(struct evemu_device *dev);
+        "evemu_create_managed": {
+            "argtypes": (c_void_p,),
+            "restype": c_int,
+            "errcheck": expect_eq_zero
+            },
         #void evemu_destroy(struct evemu_device *dev);
         "evemu_destroy": {
             "argtypes": (c_void_p,),
-- 
1.8.4.2



More information about the Input-tools mailing list