chiark / gitweb /
udev: use startswith() and streq()
[elogind.git] / src / libudev / libudev-private.h
index d914aa4599da0b0e7d8e8a611c2d7bf95705f887..60bffa469a48ff346f71cdfcf1b5aea2eb1a5109 100644 (file)
 #include <stdint.h>
 #include <stdbool.h>
 #include "macro.h"
+#include "util.h"
 #include "libudev.h"
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-#define READ_END 0
+#define READ_END  0
 #define WRITE_END 1
 
+#ifndef TEST_PREFIX
+#define TEST_PREFIX ""
+#endif
+
 /* avoid (sometimes expensive) calculations of parameters for debug output */
 #define udev_log_cond(udev, prio, arg...) \
   do { \