persists all attributes within given set
| 396 | |
| 397 | // persists all attributes within given set |
| 398 | void AttributeSet_PersistValues |
| 399 | ( |
| 400 | const AttributeSet set // set to persist |
| 401 | ) { |
| 402 | // return if set is read-only |
| 403 | ASSERT(ATTRIBUTE_SET_IS_READONLY(set) == false); |
| 404 | |
| 405 | if(set == NULL) return; |
| 406 | |
| 407 | for (uint16_t i = 0; i < set->attr_count; ++i) { |
| 408 | Attribute *attr = set->attributes + i; |
| 409 | |
| 410 | SIValue_Persist(&attr->value); |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | // free attribute set |
| 415 | void AttributeSet_Free |
no test coverage detected