[libcamera-devel] [PATCH 1/4] libcamera: v4l2_subdevice: Forward-declare MediaEntity

Jacopo Mondi jacopo at jmondi.org
Wed Feb 13 12:30:18 CET 2019


Hi,

On Wed, Feb 13, 2019 at 11:59:26AM +0100, Niklas Söderlund wrote:
> Hi,
>
> On 2019-02-13 00:38:17 +0200, Laurent Pinchart wrote:
> > Hi Jacopo,
> >
> > Thank you for the patch.
> >
> > On Tue, Feb 12, 2019 at 11:20:18PM +0100, Jacopo Mondi wrote:
> > > The V4L2Subdevice class uses MediaEntity instances, and the
> > > corresponding header is not included.
> > >
> > > Fix this by forward declaring the MediaEntity class.
> > >
> > > Fixes: 468176fa07d9 ("libcamera: Add V4L2Subdevice")
> > > Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
> > > ---
> > >  src/libcamera/include/v4l2_subdevice.h | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/src/libcamera/include/v4l2_subdevice.h b/src/libcamera/include/v4l2_subdevice.h
> > > index 8fd666078985..ffa92100ffbc 100644
> > > --- a/src/libcamera/include/v4l2_subdevice.h
> > > +++ b/src/libcamera/include/v4l2_subdevice.h
> > > @@ -12,6 +12,7 @@
> > >  namespace libcamera {
> > >
> > >  struct Rectangle;
> > > +class MediaEntity;
> >
> > Should we sort this alphabetically ? Apart from that,
>
> I think we should, with that fixed
>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>

My reasoning was "struct" before "class", but I'll change this.

Thanks
  j

>
> >
> > Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> >
> > >
> > >  struct V4L2SubdeviceFormat {
> > >  	uint32_t mbus_code;
> >
> > --
> > Regards,
> >
> > Laurent Pinchart
> > _______________________________________________
> > libcamera-devel mailing list
> > libcamera-devel at lists.libcamera.org
> > https://lists.libcamera.org/listinfo/libcamera-devel
>
> --
> Regards,
> Niklas Söderlund
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20190213/00912fa6/attachment.sig>


More information about the libcamera-devel mailing list