diff options
author | Marek Kasik <mkasik@redhat.com> | 2009-09-24 15:34:56 +0200 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2009-09-24 15:34:56 +0200 |
commit | a3e07662185f17e5bff1a732db3aa9dad121a763 (patch) | |
tree | bda8182f60ff3356435bffeb32c65ac5c836b1cb /gtk/gtkprintbackend.h | |
parent | 9439a7ee0e1bc53e4f0246e6d6c441a253f36140 (diff) | |
download | gtk+-a3e07662185f17e5bff1a732db3aa9dad121a763.tar.gz |
Add support for 'auth-info' attribute to the CUPS backend
Check for 'auth-info-required' attribute from printer attributes to
find out whether an authentization of user is needed.
Change password dialog of print backend to be able to require informations
requested thru 'auth-info-required' (#566522).
Diffstat (limited to 'gtk/gtkprintbackend.h')
-rw-r--r-- | gtk/gtkprintbackend.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/gtkprintbackend.h b/gtk/gtkprintbackend.h index 7d75f8e417..c4b43b10d2 100644 --- a/gtk/gtkprintbackend.h +++ b/gtk/gtkprintbackend.h @@ -121,15 +121,16 @@ struct _GtkPrintBackendClass void (*printer_status_changed) (GtkPrintBackend *backend, GtkPrinter *printer); void (*request_password) (GtkPrintBackend *backend, - const gchar *hostname, - const gchar *username, + gpointer auth_info_required, + gpointer auth_info_default, + gpointer auth_info_display, + gpointer auth_info_visible, const gchar *prompt); /* not a signal */ void (*set_password) (GtkPrintBackend *backend, - const gchar *hostname, - const gchar *username, - const gchar *password); + gchar **auth_info_required, + gchar **auth_info); /* Padding for future expansion */ void (*_gtk_reserved1) (void); @@ -153,9 +154,8 @@ void gtk_print_backend_print_stream (GtkPrintBackend *pri GList * gtk_print_backend_load_modules (void); void gtk_print_backend_destroy (GtkPrintBackend *print_backend); void gtk_print_backend_set_password (GtkPrintBackend *backend, - const gchar *hostname, - const gchar *username, - const gchar *password); + gchar **auth_info_required, + gchar **auth_info); /* Backend-only functions for GtkPrintBackend */ |