From 00b872075dc1232ceeadb2a732b6926c285ac7fb Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 31 Jul 2012 15:28:22 +0200 Subject: Make the media_device structure private Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Acked-by: Sakari Ailus --- src/mediactl.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/mediactl.c') diff --git a/src/mediactl.c b/src/mediactl.c index 2b054e9..304e185 100644 --- a/src/mediactl.c +++ b/src/mediactl.c @@ -38,8 +38,13 @@ #include #include "mediactl.h" +#include "mediactl-priv.h" #include "tools.h" +/* ----------------------------------------------------------------------------- + * Graph access + */ + struct media_pad *media_entity_remote_source(struct media_pad *pad) { unsigned int i; @@ -101,6 +106,26 @@ struct media_entity *media_get_entity_by_id(struct media_device *media, return NULL; } +unsigned int media_get_entities_count(struct media_device *media) +{ + return media->entities_count; +} + +struct media_entity *media_get_entities(struct media_device *media) +{ + return media->entities; +} + +const struct media_device_info *media_get_info(struct media_device *media) +{ + return &media->info; +} + +const char *media_get_devnode(struct media_device *media) +{ + return media->devnode; +} + /* ----------------------------------------------------------------------------- * Open/close */ @@ -222,6 +247,10 @@ int media_reset_links(struct media_device *media) return 0; } +/* ----------------------------------------------------------------------------- + * Entities, pads and links enumeration + */ + static struct media_link *media_entity_add_link(struct media_entity *entity) { if (entity->num_links >= entity->max_links) { -- cgit v1.2.3