X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flibsystemd-bus%2Fkdbus.h;h=7f65375c44708b25a6bf8366cdc6832542c15dba;hp=4310ef3ae9767d7c13741c3c6e5f1d4b323ef780;hb=cfde0327ad83f1a31597cd8eb83e97f541d2f2db;hpb=4e6db59202ad2dbbef56a69985643390ffdd57bd diff --git a/src/libsystemd-bus/kdbus.h b/src/libsystemd-bus/kdbus.h index 4310ef3ae..7f65375c4 100644 --- a/src/libsystemd-bus/kdbus.h +++ b/src/libsystemd-bus/kdbus.h @@ -70,6 +70,7 @@ enum { KDBUS_MSG_TIMESTAMP, /* .ts_ns of CLOCK_MONOTONIC */ KDBUS_MSG_SRC_CREDS, /* .creds */ KDBUS_MSG_SRC_COMM, /* optional */ + KDBUS_MSG_SRC_THREAD_COMM, /* optional */ KDBUS_MSG_SRC_EXE, /* optional */ KDBUS_MSG_SRC_CMDLINE, /* optional */ KDBUS_MSG_SRC_CGROUP, /* optional, specified which one */ @@ -105,6 +106,7 @@ struct kdbus_msg_data { union { /* inline data */ __u8 data[0]; + char str[0]; __u32 data_u32[0]; __u64 data_u64[0]; @@ -359,3 +361,11 @@ enum kdbus_cmd { KDBUS_CMD_EP_POLICY_SET = _IOWR(KDBUS_IOC_MAGIC, 0x70, struct kdbus_cmd_policy), }; #endif + +/* Think about: + * + * - allow HELLO to change unique names + * - allow HELLO without assigning a unique name at all + * - when receive fails due to too small buffer return real size + * - when receiving maybe allow read-only mmaping into reciving process memory space or so? + */