summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-kernel.h
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-12-06 14:31:43 +0100
committerKay Sievers <kay@vrfy.org>2013-12-06 14:31:43 +0100
commita8d4cac55cf9575d19ff5a1747e726387f5a552f (patch)
tree6db52d02122b071a802ed4a2269fa0d91fcca7c1 /src/libsystemd-bus/bus-kernel.h
parentd94fe1f1772d5ddbd4a080bda8eac7749083e47c (diff)
bus: catch up with latest kdbus changes
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.h')
-rw-r--r--src/libsystemd-bus/bus-kernel.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsystemd-bus/bus-kernel.h b/src/libsystemd-bus/bus-kernel.h
index a9dddc23d9..1771020903 100644
--- a/src/libsystemd-bus/bus-kernel.h
+++ b/src/libsystemd-bus/bus-kernel.h
@@ -23,16 +23,16 @@
#include "sd-bus.h"
-#define KDBUS_PART_NEXT(item) \
+#define KDBUS_ITEM_NEXT(item) \
(typeof(item))(((uint8_t *)item) + ALIGN8((item)->size))
-#define KDBUS_PART_FOREACH(part, head, first) \
+#define KDBUS_ITEM_FOREACH(part, head, first) \
for (part = (head)->first; \
(uint8_t *)(part) < (uint8_t *)(head) + (head)->size; \
- part = KDBUS_PART_NEXT(part))
+ part = KDBUS_ITEM_NEXT(part))
-#define KDBUS_PART_HEADER_SIZE offsetof(struct kdbus_item, data)
-#define KDBUS_ITEM_SIZE(s) ALIGN8((s) + KDBUS_PART_HEADER_SIZE)
+#define KDBUS_ITEM_HEADER_SIZE offsetof(struct kdbus_item, data)
+#define KDBUS_ITEM_SIZE(s) ALIGN8((s) + KDBUS_ITEM_HEADER_SIZE)
#define MEMFD_CACHE_MAX 32