Add openconnect_vpninfo_new_with_cbdata() function to ease C++ integration
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 27 Jun 2011 00:45:49 +0000 (01:45 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 27 Jun 2011 01:27:46 +0000 (02:27 +0100)
commit423eee0b51a204562d6f2ec67893133ebcf200d6
treea9ebd26c403f3fde8354a1fbf4b30aea06da9212
parent790bb5ba82c9080a5535860e1573293967e26c29
Add openconnect_vpninfo_new_with_cbdata() function to ease C++ integration

C++ callers really want the 'self' object pointer to be the first argument
of the callbacks. Give them the chance to get that, instead of the vpninfo
pointer.

Preserve the old openconnect_vpninfo_new() call, even with the same
prototype for the callback functions, for compatibility with the existing
GNOME auth-dialog.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 files changed:
auth.c
cstp.c
dtls.c
http.c
library.c
main.c
mainloop.c
openconnect-internal.h
openconnect.h
ssl.c
tun.c
xml.c