Hello Antonio, To which standard of C do you want your API being compatible? If its C99 then you only need one forward declaration and the repeated use of struct LZ_Encoder * is too verbose for an API, a simple LZ_Encoder* will do the job, just as in C++. Regards, Jacob
2009/12/13 Antonio Diaz Diaz <[email protected]>: > Thank you very much Laszlo, John and Jacob for your useful advice. > > I have included in lzlib.h a forward declaration of the structs internally > used by the library. I have not used typedef. > > The result looks like this: > > struct LZ_Encoder; > struct LZ_Decoder; > ... > struct LZ_Encoder * LZ_compress_open( const int dictionary_size, > const int match_len_limit, > const long long member_size ); > int LZ_compress_restart_member( struct LZ_Encoder * const encoder, > const long long member_size ); > ... > struct LZ_Decoder * LZ_decompress_open( void ); > int LZ_decompress_close( struct LZ_Decoder * const decoder ); > ... > > > I have just released lzlib-0.8-rc1 here > http://download.savannah.gnu.org/releases-noredirect/lzip/lzlib-0.8-rc1.tar.lz > > > Best regards, > Antonio. > > > _______________________________________________ > Lzip-bug mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/lzip-bug > _______________________________________________ Lzip-bug mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lzip-bug
