chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dbus: follow standardized fdo PropertiesChanged signal spec
[elogind.git]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index e8d9b3e74bb496503db44ece59973719047d1d33..7490236fa0915e4abaf678c818dadd1864278c9f 100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-339,6
+339,9
@@
char *ellipsize(const char *s, unsigned length, unsigned percent);
int touch(const char *path);
+#define NULSTR_FOREACH(i, l) \
+ for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
+
const char *ioprio_class_to_string(int i);
int ioprio_class_from_string(const char *s);