Lines Matching refs:contents
357 const char *contents;
360 r = sd_bus_message_peek_type(m, NULL, &contents);
364 r = sd_bus_message_enter_container(m, SD_BUS_TYPE_STRUCT, contents);
368 if (contents[0] == 's' || contents[0] == 'o') {
372 r = sd_bus_message_read_basic(m, contents[0], &s);
380 r = sd_bus_message_read_basic(m, contents[0], userdata);
385 r = sd_bus_message_skip(m, contents+1);
690 static int print_property(const char *name, sd_bus_message *m, const char *contents) {
695 assert(contents);
699 return sd_bus_message_skip(m, contents);
701 switch (contents[0]) {
705 if (contents[1] == SD_BUS_TYPE_STRING && STR_IN_SET(name, "Display", "Seat", "ActiveSession")) {
717 } else if (contents[1] == SD_BUS_TYPE_UINT32 && streq(name, "User")) {
738 if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Sessions")) {
773 r = sd_bus_message_skip(m, contents);
815 const char *name, *contents;
821 r = sd_bus_message_peek_type(reply, NULL, &contents);
825 r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_VARIANT, contents);
829 r = print_property(name, reply, contents);