| 227 | } |
| 228 | |
| 229 | void Object::writePropertyRecordToVTable(PropertyVTableItem property, VTable& vtable) |
| 230 | { |
| 231 | SDBUS_CHECK_MEMBER_NAME(property.name.c_str()); |
| 232 | SDBUS_THROW_ERROR_IF(!property.getter && !property.setter, "Invalid property callbacks provided", EINVAL); |
| 233 | |
| 234 | vtable.properties.push_back({ std::move(property.name) |
| 235 | , std::move(property.signature) |
| 236 | , std::move(property.getter) |
| 237 | , std::move(property.setter) |
| 238 | , std::move(property.flags) }); |
| 239 | } |
| 240 | |
| 241 | std::vector<sd_bus_vtable> Object::createInternalSdBusVTable(const VTable& vtable) |
| 242 | { |