mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 23:43:39 +02:00
Make GTlsInteraction virtual methods cancellable
* Add cancellable argument to g_tls_interaction_ask_password and g_tls_interaction_ask_password_async. * This is API breakage, but this API has not yet been released in a stable release (and very unlikely used yet). * Since we're breaking unreleased API, expand amount of padding on GTlsInteractionClass because we're going to need it. https://bugzilla.gnome.org/show_bug.cgi?id=656443
This commit is contained in:
@@ -55,33 +55,41 @@ struct _GTlsInteractionClass
|
||||
/* virtual methods: */
|
||||
|
||||
GTlsInteractionResult (* ask_password) (GTlsInteraction *interaction,
|
||||
GTlsPassword *password);
|
||||
GTlsPassword *password,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void (* ask_password_async) (GTlsInteraction *interaction,
|
||||
GTlsPassword *password,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
GTlsInteractionResult (* ask_password_finish) (GTlsInteraction *interaction,
|
||||
GAsyncResult *result);
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
gpointer padding[16];
|
||||
gpointer padding[24];
|
||||
};
|
||||
|
||||
GType g_tls_interaction_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GTlsInteractionResult g_tls_interaction_ask_password (GTlsInteraction *interaction,
|
||||
GTlsPassword *password);
|
||||
GTlsPassword *password,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void g_tls_interaction_ask_password_async (GTlsInteraction *interaction,
|
||||
GTlsPassword *password,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
GTlsInteractionResult g_tls_interaction_ask_password_finish (GTlsInteraction *interaction,
|
||||
GAsyncResult *result);
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user