summaryrefslogtreecommitdiff
path: root/include/media/media-entity.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2015-12-16 11:32:17 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 12:19:17 -0200
commit665faa971d087e8b968ef75d04079a7a462ddfca (patch)
tree86bf4c0dd50debbe5a8353208a1e4b818d22d51d /include/media/media-entity.h
parent1630b832355399dd0dc4fcc2cadbcad47153a748 (diff)
downloadlwn-665faa971d087e8b968ef75d04079a7a462ddfca.tar.gz
lwn-665faa971d087e8b968ef75d04079a7a462ddfca.zip
[media] media: Introduce internal index for media entities
The internal index can be used internally by the framework in order to keep track of entities for a purpose or another. The internal index is constant while it's registered to a media device, but the same index may be re-used once the entity having that index is unregistered. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/media-entity.h')
-rw-r--r--include/media/media-entity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index 81aca1f5a09a..30e8f9fd3efa 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -157,6 +157,8 @@ struct media_entity_operations {
* @num_pads: Number of sink and source pads.
* @num_links: Total number of links, forward and back, enabled and disabled.
* @num_backlinks: Number of backlinks
+ * @internal_idx: An unique internal entity specific number. The numbers are
+ * re-used if entities are unregistered or registered again.
* @pads: Pads array with the size defined by @num_pads.
* @links: List of data links.
* @ops: Entity operations.
@@ -183,6 +185,7 @@ struct media_entity {
u16 num_pads;
u16 num_links;
u16 num_backlinks;
+ int internal_idx;
struct media_pad *pads;
struct list_head links;