Lines Matching defs:contents
3756 static int status_property(const char *name, sd_bus_message *m, UnitStatusInfo *i, const char *contents) {
3763 switch (contents[0]) {
3924 if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && startswith(name, "Exec")) {
3957 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Listen")) {
3983 } else if (contents[1] == SD_BUS_TYPE_STRING && streq(name, "DropInPaths")) {
3989 } else if (contents[1] == SD_BUS_TYPE_STRING && streq(name, "Documentation")) {
3995 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Conditions")) {
4020 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Asserts")) {
4073 r = sd_bus_message_skip(m, contents);
4080 static int print_property(const char *name, sd_bus_message *m, const char *contents) {
4091 r = sd_bus_message_skip(m, contents);
4095 switch (contents[0]) {
4099 if (contents[1] == SD_BUS_TYPE_UINT32 && streq(name, "Job")) {
4113 } else if (contents[1] == SD_BUS_TYPE_STRING && streq(name, "Unit")) {
4125 } else if (contents[1] == SD_BUS_TYPE_STRING && streq(name, "LoadError")) {
4184 if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "EnvironmentFiles")) {
4204 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Paths")) {
4222 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Listen")) {
4240 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "Timers")) {
4265 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && startswith(name, "Exec")) {
4302 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "DeviceAllow")) {
4320 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && streq(name, "BlockIODeviceWeight")) {
4339 } else if (contents[1] == SD_BUS_TYPE_STRUCT_BEGIN && (streq(name, "BlockIOReadBandwidth") || streq(name, "BlockIOWriteBandwidth"))) {
4367 r = sd_bus_message_skip(m, contents);
4425 const char *name, *contents;
4431 r = sd_bus_message_peek_type(reply, NULL, &contents);
4435 r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_VARIANT, contents);
4440 r = print_property(name, reply, contents);
4442 r = status_property(name, reply, &info, contents);