Add GObject introspection information to callbacks
authorAlberto Mardegan <mardy@users.sourceforge.net>
Thu, 8 Dec 2011 10:08:51 +0000 (12:08 +0200)
committerAlberto Mardegan <mardy@users.sourceforge.net>
Thu, 8 Dec 2011 10:08:51 +0000 (12:08 +0200)
The types and their ownership was wrong in several of them.

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

index e9df479..2043ebf 100644 (file)
@@ -171,6 +171,14 @@ auth_query_mechanisms_cb (DBusGProxy *proxy, char **value,
 }
 
 /**
+ * SignonQueryMethodsCb:
+ * @auth_service: the #SignonAuthService.
+ * @methods: (transfer full) (type GStrv): list of available methods.
+ * @error: a #GError if an error occurred, %NULL otherwise.
+ * @user_data: the user data that was passed when installing this callback.
+ */
+
+/**
  * signon_auth_service_query_methods:
  * @auth_service: the #SignonAuthService.
  * @cb: (scope async): callback to be invoked.
@@ -201,6 +209,15 @@ signon_auth_service_query_methods (SignonAuthService *auth_service,
 }
 
 /**
+ * SignonQueryMechanismCb:
+ * @auth_service: the #SignonAuthService.
+ * @method: the authentication method being inspected.
+ * @mechanisms: (transfer full) (type GStrv): list of available mechanisms.
+ * @error: a #GError if an error occurred, %NULL otherwise.
+ * @user_data: the user data that was passed when installing this callback.
+ */
+
+/**
  * signon_auth_service_query_mechanisms:
  * @auth_service: the #SignonAuthService.
  * @method: the name of the method whose mechanisms must be
index 207dc73..0474250 100644 (file)
@@ -355,6 +355,14 @@ signon_auth_session_get_method (SignonAuthSession *self)
 }
 
 /**
+ * SignonAuthSessionQueryAvailableMechanismsCb:
+ * @self: the #SignonAuthSession.
+ * @mechanisms: (transfer full) (type GStrv): list of available mechanisms.
+ * @error: a #GError if an error occurred, %NULL otherwise.
+ * @user_data: the user data that was passed when installing this callback.
+ */
+
+/**
  * signon_auth_session_query_available_mechanisms:
  * @self: the #SignonAuthSession.
  * @wanted_mechanisms: a %NULL-terminated list of mechanisms supported by the client.
@@ -393,6 +401,18 @@ signon_auth_session_query_available_mechanisms (SignonAuthSession *self,
 }
 
 /**
+ * SignonAuthSessionProcessCb:
+ * @self: the #SignonAuthSession.
+ * @session_data: (transfer full) (element-type utf8 GValue): a dictionary with
+ * the response.
+ * @error: a #GError if an error occurred, %NULL otherwise.
+ * @user_data: the user data that was passed when installing this callback.
+ *
+ * This callback is invoked when the authentication plugin delivers the result
+ * of the signon_auth_session_process() operation.
+ */
+
+/**
  * signon_auth_session_process:
  * @self: the #SignonAuthSession.
  * @session_data: (transfer none) (element-type utf8 GValue): a dictionary of parameters.