Lines Matching refs:image

36                 Image *image,  in bus_image_common_get_os_release()  argument
41 assert(name_or_path || image); in bus_image_common_get_os_release()
45 assert(image); in bus_image_common_get_os_release()
46 m = image->userdata; in bus_image_common_get_os_release()
52 image, in bus_image_common_get_os_release()
55 &image, in bus_image_common_get_os_release()
62 if (!image->metadata_valid) { in bus_image_common_get_os_release()
63 r = image_read_metadata(image); in bus_image_common_get_os_release()
68 return bus_reply_pair_array(message, image->os_release); in bus_image_common_get_os_release()
102 Image *image, in bus_image_common_get_metadata() argument
113 assert(name_or_path || image); in bus_image_common_get_metadata()
117 assert(image); in bus_image_common_get_metadata()
118 m = image->userdata; in bus_image_common_get_metadata()
150 image, in bus_image_common_get_metadata()
153 &image, in bus_image_common_get_metadata()
161 image->path, in bus_image_common_get_metadata()
180 r = sd_bus_message_append(reply, "s", image->path); in bus_image_common_get_metadata()
262 Image *image = userdata; in bus_image_method_get_state() local
267 assert(image); in bus_image_method_get_state()
289 image->path, in bus_image_method_get_state()
304 Image *image, in bus_image_common_attach() argument
315 assert(name_or_path || image); in bus_image_common_attach()
318 assert(image); in bus_image_common_attach()
319 m = image->userdata; in bus_image_common_attach()
370 image, in bus_image_common_attach()
373 &image, in bus_image_common_attach()
382 image->path, in bus_image_common_attach()
411 Image *image = userdata; in bus_image_method_detach() local
412 Manager *m = image->userdata; in bus_image_method_detach()
418 assert(image); in bus_image_method_detach()
466 image->path, in bus_image_method_detach()
486 Image *image, in bus_image_common_remove() argument
495 assert(name_or_path || image); in bus_image_common_remove()
498 assert(image); in bus_image_common_remove()
499 m = image->userdata; in bus_image_common_remove()
508 image, in bus_image_common_remove()
511 &image, in bus_image_common_remove()
520 image->path, in bus_image_common_remove()
529 …return sd_bus_error_set_errnof(error, EBUSY, "Image '%s' is not detached, refusing.", image->path); in bus_image_common_remove()
540 r = image_remove(image); in bus_image_common_remove()
646 Image *image, in bus_image_common_reattach() argument
657 assert(name_or_path || image); in bus_image_common_reattach()
660 assert(image); in bus_image_common_reattach()
661 m = image->userdata; in bus_image_common_reattach()
713 image, in bus_image_common_reattach()
716 &image, in bus_image_common_reattach()
725 image->path, in bus_image_common_reattach()
736 image->path, in bus_image_common_reattach()
779 Image *image, in bus_image_common_mark_read_only() argument
785 assert(name_or_path || image); in bus_image_common_mark_read_only()
788 assert(image); in bus_image_common_mark_read_only()
789 m = image->userdata; in bus_image_common_mark_read_only()
799 image, in bus_image_common_mark_read_only()
802 &image, in bus_image_common_mark_read_only()
809 r = image_read_only(image, read_only); in bus_image_common_mark_read_only()
824 Image *image, in bus_image_common_set_limit() argument
831 assert(name_or_path || image); in bus_image_common_set_limit()
834 assert(image); in bus_image_common_set_limit()
835 m = image->userdata; in bus_image_common_set_limit()
847 image, in bus_image_common_set_limit()
850 &image, in bus_image_common_set_limit()
857 r = image_set_limit(image, limit); in bus_image_common_set_limit()
887 SD_BUS_RESULT("s", image,
896 SD_BUS_RESULT("s", image,
978 int bus_image_path(Image *image, char **ret) { in bus_image_path() argument
979 assert(image); in bus_image_path()
982 if (!image->discoverable) in bus_image_path()
985 return sd_bus_path_encode("/org/freedesktop/portable1/image", image->name, ret); in bus_image_path()
992 Image *image, in bus_image_acquire() argument
1004 assert(name_or_path || image); in bus_image_acquire()
1031 if (image) { in bus_image_acquire()
1032 *ret = image; in bus_image_acquire()
1116 Image *image = NULL; in bus_image_object_find() local
1133 …cquire(m, sd_bus_get_current_message(bus), e, NULL, BUS_IMAGE_REFUSE_BY_PATH, NULL, &image, error); in bus_image_object_find()
1139 *found = image; in bus_image_object_find()
1152 Image *image; in bus_image_node_enumerator() local
1167 HASHMAP_FOREACH(image, images) { in bus_image_node_enumerator()
1170 r = bus_image_path(image, &p); in bus_image_node_enumerator()