chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
logind: add UnlockSessions() clal to complement LockSessions()
[elogind.git]
/
src
/
shared
/
strv.h
diff --git
a/src/shared/strv.h
b/src/shared/strv.h
index 44ba3d1530e4514b53a23af5f1718f0cf5ffde18..fd728eff818b087cff05ec07b77c403aa94cf36b 100644
(file)
--- a/
src/shared/strv.h
+++ b/
src/shared/strv.h
@@
-82,4
+82,8
@@
bool strv_overlap(char **a, char **b);
#define STRV_FOREACH_BACKWARDS(s, l) \
for (; (l) && ((s) >= (l)); (s)--)
+#define STRV_FOREACH_PAIR(x, y, l) \
+ for ((x) = (l), (y) = (x+1); (x) && *(x) && *(y); (x) += 2)
+
+
char **strv_sort(char **l);