On Mon, 2007-08-06 at 21:31 +0200, Kurt Roeckx wrote:
> On Mon, Aug 06, 2007 at 04:07:51PM +0100, Sam Clegg wrote:
> > Looks to me like this is an opaque data type.   Its only ever referenced
> > as a pointer type so the user of the API never needs to know what the
> > layout of the type really is.
> 
> So just add a "struct id3_file;" at the top of the file somewhere.

The should be no need for this even.

You can use pointers to structs without declaring them ahead of time.

$ cat > main.cpp
struct i3d_file* bar()
{
    return 0;
}

int main()
{
    struct i3d_file* a = bar();
    return 0;
}
$ make main
g++     main.cpp   -o main
$



Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to