diff options
author | Marek Kasik <mkasik@redhat.com> | 2009-04-21 14:24:32 +0200 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2009-04-21 14:24:32 +0200 |
commit | 2c5ae21cdc6161dc4cf42b2107d74d92b6f303be (patch) | |
tree | 5935ad2ee468d81862a1389dd1c5b322ebee63e2 /gtk/gtkprintbackend.h | |
parent | 6e121ee85e7c796b33d2f6635744ab3f0d0f65e2 (diff) | |
download | gtk+-2c5ae21cdc6161dc4cf42b2107d74d92b6f303be.tar.gz |
Adds authentication support of CUPS backend
Adds authentication support of CUPS backend against CUPS server.
Print dialog is now capable to ask user for password and pass it
to the CUPS server. It is also possible to authenticate user
through Kerberos (GSS-API) (#384940).
Diffstat (limited to 'gtk/gtkprintbackend.h')
-rw-r--r-- | gtk/gtkprintbackend.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gtk/gtkprintbackend.h b/gtk/gtkprintbackend.h index 2305e32c31..7d75f8e417 100644 --- a/gtk/gtkprintbackend.h +++ b/gtk/gtkprintbackend.h @@ -120,14 +120,22 @@ struct _GtkPrintBackendClass GtkPrinter *printer); void (*printer_status_changed) (GtkPrintBackend *backend, GtkPrinter *printer); + void (*request_password) (GtkPrintBackend *backend, + const gchar *hostname, + const gchar *username, + const gchar *prompt); + + /* not a signal */ + void (*set_password) (GtkPrintBackend *backend, + const gchar *hostname, + const gchar *username, + const gchar *password); /* Padding for future expansion */ void (*_gtk_reserved1) (void); void (*_gtk_reserved2) (void); void (*_gtk_reserved3) (void); void (*_gtk_reserved4) (void); - void (*_gtk_reserved5) (void); - void (*_gtk_reserved6) (void); }; GType gtk_print_backend_get_type (void) G_GNUC_CONST; @@ -144,6 +152,10 @@ void gtk_print_backend_print_stream (GtkPrintBackend *pri GDestroyNotify dnotify); 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); /* Backend-only functions for GtkPrintBackend */ |