Lines Matching refs:prop
537 static int set_machine_info(Context *c, sd_bus_message *m, int prop, sd_bus_message_handler_t cb, sd_bus_error *error) {
552 if (streq_ptr(name, c->data[prop]))
562 prop == PROP_PRETTY_HOSTNAME ? "org.freedesktop.hostname1.set-static-hostname" : "org.freedesktop.hostname1.set-machine-info",
574 c->data[prop] = mfree(c->data[prop]);
581 if (prop == PROP_ICON_NAME && !filename_is_valid(name))
583 if (prop == PROP_PRETTY_HOSTNAME && string_has_cc(name, NULL))
585 if (prop == PROP_CHASSIS && !valid_chassis(name))
587 if (prop == PROP_DEPLOYMENT && !valid_deployment(name))
589 if (prop == PROP_LOCATION && string_has_cc(name, NULL))
596 free(c->data[prop]);
597 c->data[prop] = h;
607 prop == PROP_PRETTY_HOSTNAME ? "pretty host name" :
608 prop == PROP_DEPLOYMENT ? "deployment" :
609 prop == PROP_LOCATION ? "location" :
610 prop == PROP_CHASSIS ? "chassis" : "icon name", strna(c->data[prop]));
616 prop == PROP_PRETTY_HOSTNAME ? "PrettyHostname" :
617 prop == PROP_DEPLOYMENT ? "Deployment" :
618 prop == PROP_LOCATION ? "Location" :
619 prop == PROP_CHASSIS ? "Chassis" : "IconName" , NULL);