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 e9df479ed6fe583d973ddcf42d9fd833d7418bc2..2043ebf1ca8b08930244bc392ffb4ffae609df0a 100644 (file)
@@ -170,6 +170,14 @@ auth_query_mechanisms_cb (DBusGProxy *proxy, char **value,
     g_slice_free (MechanismCbData, data);
 }
 
+/**
+ * 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.
@@ -200,6 +208,15 @@ signon_auth_service_query_methods (SignonAuthService *auth_service,
                                          cb_data);
 }
 
+/**
+ * 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.
index 207dc731e5cf2df99992d6db610ab67ea7ba8003..0474250e8710b33d92d9539e13b82c6674ca4b4e 100644 (file)
@@ -354,6 +354,14 @@ signon_auth_session_get_method (SignonAuthSession *self)
     return priv->method_name;
 }
 
+/**
+ * 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.
@@ -392,6 +400,18 @@ signon_auth_session_query_available_mechanisms (SignonAuthSession *self,
                                     operation_data);
 }
 
+/**
+ * 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.