Move zalloc() up to libinput-util.h
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 6 Dec 2013 04:47:09 +0000 (14:47 +1000)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 21 Dec 2013 11:09:27 +0000 (12:09 +0100)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.h
src/libinput-util.h

index 1a42bd8..dde0f1b 100644 (file)
 
 #include "libinput-private.h"
 
-static inline void *
-zalloc(size_t size)
-{
-       return calloc(1, size);
-}
-
 #define MAX_SLOTS 16
 
 enum evdev_event_type {
index a9efb49..45549e0 100644 (file)
@@ -96,4 +96,10 @@ li_fixed_from_double(double d)
 
 #define LIBINPUT_EXPORT __attribute__ ((visibility("default")))
 
+static inline void *
+zalloc(size_t size)
+{
+       return calloc(1, size);
+}
+
 #endif /* LIBINPUT_UTIL_H */