diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-29 19:31:25 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-29 19:34:59 +0100 |
commit | 29f8d1f21ab5341361adcc2533fcda24a7fcf490 (patch) | |
tree | 1391eebb38434d1950b5f74eb3f9b839cffb0909 /src/systemd | |
parent | c430fee6ffda0e3736e4e2b617bef0a4c0882849 (diff) |
bus: add a macro to simplify reading of UUIDs
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/sd-bus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index a98887dac7..aa8caee70f 100644 --- a/src/systemd/sd-bus.h +++ b/src/systemd/sd-bus.h @@ -255,6 +255,12 @@ int sd_bus_error_has_name(const sd_bus_error *e, const char *name); (x).bytes[8], (x).bytes[9], (x).bytes[10], (x).bytes[11], \ (x).bytes[12], (x).bytes[13], (x).bytes[14], (x).bytes[15] +#define SD_BUS_MESSAGE_READ_ID128(x) 16, \ + &(x).bytes[0], &(x).bytes[1], &(x).bytes[2], &(x).bytes[3], \ + &(x).bytes[4], &(x).bytes[5], &(x).bytes[6], &(x).bytes[7], \ + &(x).bytes[8], &(x).bytes[9], &(x).bytes[10], &(x).bytes[11], \ + &(x).bytes[12], &(x).bytes[13], &(x).bytes[14], &(x).bytes[15] + #ifdef __cplusplus } #endif |