summaryrefslogtreecommitdiff
path: root/media.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-06-14 22:57:45 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-06-14 22:57:45 +0200
commit0c4da2bb2f4d7d3cd2cdea1369374d5b4f7e3b29 (patch)
treea55b8de0b6c5271062733cb0377732487918ac44 /media.h
parent25ed35b7c2705f53471118437a538bc9a60701be (diff)
Enumerate entities using MEDIA_ENTITY_ID_FLAG_NEXT
Entity IDs don't have to be contiguous. Use the new flag-based enumeration system instead of looping over consecutive IDs. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'media.h')
-rw-r--r--media.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/media.h b/media.h
index 7dbcc1c..bd8162d 100644
--- 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,