[daemon-dev][daemon-fix] starting services by direct message (autostart) and some...
[platform/upstream/dbus.git] / dbus / kdbus.h
index b923611..4e4c2cb 100644 (file)
 #include <linux/types.h>
 #endif
 
-/* todo #define KDBUS_MSG_MAX_SIZE             SZ_8K   - maximum size of message header and items
+/* todo #define KDBUS_MSG_MAX_PAYLOAD_VEC_SIZE         SZ_8M   - maximum size of message header and items
  * taken from internal.h of kdbus
  * finally it should be placed higher - e.g. kdbus.h of kdbus kernel module
  */
-#define KDBUS_MSG_MAX_SIZE             0x00002000              /* maximum size of message header and items */
+#define KDBUS_MSG_MAX_PAYLOAD_VEC_SIZE         0x00800000              /* maximum size of message header and items */
 
 #define KDBUS_IOC_MAGIC                        0x95
 #define KDBUS_SRC_ID_KERNEL            (0)
@@ -40,6 +40,8 @@
                __u64 type;                                             \
        }
 
+#define KDBUS_PART_HEADER_SIZE offsetof(struct kdbus_item, data)
+
 /* Message sent from kernel to userspace, when the owner or starter of
  * a well-known name changes */
 struct kdbus_manager_msg_name_change {
@@ -341,6 +343,8 @@ enum {
        KDBUS_NAME_QUEUE                        = 1 <<  1,
        KDBUS_NAME_ALLOW_REPLACEMENT            = 1 <<  2,
 
+       KDBUS_NAME_STARTER        = 1 <<  7,
+
        /* kernel → userspace */
        KDBUS_NAME_IN_QUEUE                     = 1 << 16,
 };