AuthSession: bring back libsignon-glib -compatible constructor
authorAlberto Mardegan <alberto.mardegan@canonical.com>
Fri, 31 Jan 2014 10:13:11 +0000 (12:13 +0200)
committerAlberto Mardegan <alberto.mardegan@canonical.com>
Fri, 31 Jan 2014 10:13:11 +0000 (12:13 +0200)
commit6a71d8a5e691d1866d4d37a359d41ad3d4d8500d
treec8dd0f8c9537d957db263a9197f571431c016a64
parent571766f82c6e5988b1edc2dc6a4d1c652d8a769f
AuthSession: bring back libsignon-glib -compatible constructor

Reintroduce the constructor which takes an integer parameter, to
increase compatibility with libsignon-glib, and rename the existing
constructor to signon_auth_session_new_for_identity().
Also, declare a couple of types in signon-types.h, so that the signature
of the signon_auth_session_new_for_identity() can now properly accept a
SignonIdentity * (same trick used in libaccounts-glib).
libgsignon-glib/signon-auth-session.c
libgsignon-glib/signon-auth-session.h
libgsignon-glib/signon-identity.c
libgsignon-glib/signon-identity.h
libgsignon-glib/signon-types.h
tests/check_signon.c