On Mon, Feb 23, 2009 at 12:08, Simon Josefsson <si...@josefsson.org> wrote:
> Do we need to use a struct here? If we ever need to change the struct > (which may happen if we support some other TLS library or some other > compression, or similar), it seems we'd need to bump the ABI of the > library? > > How about something like this: > > const char *libssh2_check_version (int req_version_num); [...] For what it's worth, Simon's suggestion looks good to me. Library functions returning structs always make me feel a bit uneasy (due to in-house experiences over the years). I prefer having to keep an eye on my 'version string' parser than having to be careful with what libraries I have installed. -Tor ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel