Lines Matching refs:items
393 CatalogItem *items, size_t n) {
427 k = fwrite(items, 1, n * sizeof(CatalogItem), w);
464 _cleanup_free_ CatalogItem *items = NULL;
497 log_info("No items in catalog.");
500 log_debug("Found %u items in catalog.", hashmap_size(h));
502 items = new(CatalogItem, hashmap_size(h));
503 if (!items) {
520 items[n++] = *i;
524 qsort_safe(items, n, sizeof(CatalogItem), catalog_compare_func);
528 sz = write_catalog(database, sb, items, n);
533 log_debug("%s: wrote %u items, with %zu bytes of strings, %"PRIi64" total size.",
704 const CatalogItem *items;
715 items = (const CatalogItem*) ((const uint8_t*) p + le64toh(h->header_size));
720 if (last_id_set && sd_id128_equal(last_id, items[n].id))
723 assert_se(s = find_id(p, items[n].id));
725 dump_catalog_entry(f, items[n].id, s, oneline);
728 last_id = items[n].id;
736 int catalog_list_items(FILE *f, const char *database, bool oneline, char **items) {
740 STRV_FOREACH(item, items) {