[Ffmpeg-devel] some quick questions about swscaler integration

Rich Felker dalias
Sun Mar 19 15:40:01 CET 2006


On Sun, Mar 19, 2006 at 12:19:45PM +0000, M?ns Rullg?rd wrote:
> Now that you mention it, maybe the Colin was talking about a situation
> like this:
> 
> a.h:
> struct a {
>     struct b *b;
> };
> 
> b.h:
> struct b {
>     struct a *a;
> };
> 
> In this case, those files are interdependent enough that they should
> probably be merged.  Alternatively, both structs can be declared in a
> separate header that both a.h and b.h #include.

No need. Just write "struct b;" before the declaration of struct a,
and vice versa. No need for a definition.

Rich





More information about the ffmpeg-devel mailing list