[libcamera-devel,0/5] libcamera: media device: Add link handling
mbox series

Message ID 20190103173859.22624-1-jacopo@jmondi.org
Headers show
Series
  • libcamera: media device: Add link handling
Related show

Message

Jacopo Mondi Jan. 3, 2019, 5:38 p.m. UTC
Hello,
   this series adds an interface to manipulate links to the MediaDevice
and MediaObject classes.

In order to access the media device fd, now all media objects store a
reference to the media device that created them.

The media device expose a "link()" function where to retrieve links from, and
enable/disable them through the MediaLink::enable(bool) function.

As I consider valuable providing documentation for the newly added private
MediaDevice function "setLink()", patch [4/5] enables generation of
documentation for private members (and makes Doxygen not complain if such a
documentation is not present for private fields).

Patch 5/5 adds a simple test that operates on links of the media devices
registered in the system.

Thanks
   j

Jacopo Mondi (5):
  libcamera: Add pointer to MediaDevice to MediaObject
  libcamera: media_device: Add function to get a MediaLink
  libcamera: Add MediaLink link setup function
  libcamera: Document private members
  test: MediaDevice: Add link exercize test

 Documentation/Doxyfile.in               |   4 +-
 src/libcamera/include/media_device.h    |  14 ++
 src/libcamera/include/media_object.h    |  11 +-
 src/libcamera/media_device.cpp          | 179 +++++++++++++++++++++++-
 src/libcamera/media_object.cpp          |  70 +++++++--
 test/media_device/media_device_test.cpp | 101 +++++++++++++
 6 files changed, 360 insertions(+), 19 deletions(-)

--
2.20.1