Lines Matching refs:extensions
42 if (ent->extensions == NULL) in hdb_entry_check_mandatory()
49 for (i = 0; i < ent->extensions->len; i++) { in hdb_entry_check_mandatory()
50 if (ent->extensions->val[i].data.element != in hdb_entry_check_mandatory()
53 if (ent->extensions->val[i].mandatory) { in hdb_entry_check_mandatory()
68 if (entry->extensions == NULL) in hdb_find_extension()
71 for (i = 0; i < entry->extensions->len; i++) in hdb_find_extension()
72 if (entry->extensions->val[i].data.element == (unsigned)type) in hdb_find_extension()
73 return &entry->extensions->val[i]; in hdb_find_extension()
94 if (entry->extensions == NULL) { in hdb_replace_extension()
95 entry->extensions = calloc(1, sizeof(*entry->extensions)); in hdb_replace_extension()
96 if (entry->extensions == NULL) { in hdb_replace_extension()
127 for (i = 0; i < entry->extensions->len; i++) { in hdb_replace_extension()
128 HDB_extension *ext3 = &entry->extensions->val[i]; in hdb_replace_extension()
160 es = realloc(entry->extensions->val, in hdb_replace_extension()
161 (entry->extensions->len+1)*sizeof(entry->extensions->val[0])); in hdb_replace_extension()
166 entry->extensions->val = es; in hdb_replace_extension()
169 &entry->extensions->val[entry->extensions->len]); in hdb_replace_extension()
171 entry->extensions->len++; in hdb_replace_extension()
185 if (entry->extensions == NULL) in hdb_clear_extension()
188 for (i = 0; i < entry->extensions->len; i++) { in hdb_clear_extension()
189 if (entry->extensions->val[i].data.element == (unsigned)type) { in hdb_clear_extension()
190 free_HDB_extension(&entry->extensions->val[i]); in hdb_clear_extension()
191 memmove(&entry->extensions->val[i], in hdb_clear_extension()
192 &entry->extensions->val[i + 1], in hdb_clear_extension()
193 sizeof(entry->extensions->val[i]) * (entry->extensions->len - i - 1)); in hdb_clear_extension()
194 entry->extensions->len--; in hdb_clear_extension()
197 if (entry->extensions->len == 0) { in hdb_clear_extension()
198 free(entry->extensions->val); in hdb_clear_extension()
199 free(entry->extensions); in hdb_clear_extension()
200 entry->extensions = NULL; in hdb_clear_extension()