Enumerate entities using MEDIA_ENTITY_ID_FLAG_NEXT
[media-ctl.git] / media.h
diff --git a/media.h b/media.h
index 7dbcc1c2e2c86c31c609a8f194d10f4daebd1b3f..bd8162d0f38b270c4b1cc5d9021e98b1063e6943 100644 (file)
--- a/media.h
+++ b/media.h
@@ -56,6 +56,8 @@ struct media_entity_pad *media_entity_remote_pad(struct media_entity_pad *pad);
 
 struct media_entity *media_get_entity_by_name(struct media_device *media,
        const char *name, size_t length);
+struct media_entity *media_get_entity_by_id(struct media_device *media,
+       __u32 id);
 void media_print_topology(struct media_device *media, int dot);
 int media_setup_link(struct media_device *media,
        struct media_entity_pad *source, struct media_entity_pad *sink,