summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-04-07 09:58:11 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-04-07 09:58:31 -0400
commit151760588e828639f100116a3d2f1c2474f3b643 (patch)
tree62afbae69b9e32df24c16cf4fd00436ee93732e1
parent5e4865eb74c9062bf8c39db8a0d5901011936c49 (diff)
use eeze instead of libudevHEADmaster
-rw-r--r--li.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/li.c b/li.c
index cf5ce2a..082c7fa 100644
--- a/li.c
+++ b/li.c
@@ -1,5 +1,7 @@
1// gcc -o li li.c $(pkg-config --cflags --libs eina ecore eeze libinput) -g
2
1#include <Ecore.h> 3#include <Ecore.h>
2#include <libudev.h> 4#include <Eeze.h>
3#include <libinput.h> 5#include <libinput.h>
4#include <fcntl.h> 6#include <fcntl.h>
5 7
@@ -68,12 +70,10 @@ int
68main(void) 70main(void)
69{ 71{
70 Eina_Hash *fds; 72 Eina_Hash *fds;
71 struct udev *udev;
72 73
73 ecore_init(); 74 eeze_init();
74 udev = udev_new();
75 fds = eina_hash_int32_new((Eina_Free_Cb)ecore_main_fd_handler_del); 75 fds = eina_hash_int32_new((Eina_Free_Cb)ecore_main_fd_handler_del);
76 li = libinput_udev_create_for_seat(&interface, fds, udev, "seat0"); 76 li = libinput_udev_create_for_seat(&interface, fds, eeze_udev_get(), "seat0");
77 ecore_main_loop_begin(); 77 ecore_main_loop_begin();
78 return 0; 78 return 0;
79} 79}