Do not include signoncommon.h from public header
authorAlberto Mardegan <alberto.mardegan@nokia.com>
Wed, 4 May 2011 11:31:28 +0000 (14:31 +0300)
committerAlberto Mardegan <alberto.mardegan@nokia.com>
Wed, 4 May 2011 11:31:28 +0000 (14:31 +0300)
It breaks C++ projects using GLib.

libsignon-glib/signon-auth-session.c
libsignon-glib/signon-auth-session.h

index 1ad3308af45cc277077b5695327d6ae6b73f0500..4d207f3b8a59669e57c79c54c90fd372c5c1a4d4 100644 (file)
@@ -31,6 +31,9 @@
 #include "signon-proxy.h"
 #include "signon-utils.h"
 
+/* SignonAuthSessionState is defined in signoncommon.h */
+#include <signoncommon.h>
+
 G_DEFINE_TYPE (SignonAuthSession, signon_auth_session, G_TYPE_OBJECT);
 
 /* Signals */
index acadacfe3b91d13516a711f7632a9ed16393f50d..556fa0ae22bdc2d5017210db255ff2c506470f9f 100644 (file)
@@ -34,8 +34,6 @@ G_BEGIN_DECLS
 #define SIGNON_SESSION_DATA_SECRET        "Secret"
 #define SIGNON_SESSION_DATA_REALM         "Realm"
 
-/* SignonAuthSessionState is defined in signoncommon.h */
-#include <signoncommon.h>
 
 #define SIGNON_TYPE_AUTH_SESSION                 (signon_auth_session_get_type ())
 #define SIGNON_AUTH_SESSION(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIGNON_TYPE_AUTH_SESSION, SignonAuthSession))