summaryrefslogtreecommitdiffstats
path: root/src/ply-boot-splash.h
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-05-21 22:57:40 -0400
committerRay Strode <rstrode@redhat.com>2008-05-21 22:57:40 -0400
commitb8624e3cd05258a81a7e3cf4d95e2dcd81fe0aa4 (patch)
treeb9026ccd834ec9887de61b6c23e3776493ce5665 /src/ply-boot-splash.h
parentb5b6fb666d44738296b7cb1c0950ee2226493e34 (diff)
downloadplymouth-b8624e3cd05258a81a7e3cf4d95e2dcd81fe0aa4.tar.gz
plymouth-b8624e3cd05258a81a7e3cf4d95e2dcd81fe0aa4.tar.xz
plymouth-b8624e3cd05258a81a7e3cf4d95e2dcd81fe0aa4.zip
Add second cut at password support
This version works even in raw mode, by buffering key presses passed from the window object, and replying to the client after the user presses enter. There are a lot of layers of function pointers getting passed around, so it may make sense to introduce an opaque type for holding the password and triggering the reply.
Diffstat (limited to 'src/ply-boot-splash.h')
-rw-r--r--src/ply-boot-splash.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ply-boot-splash.h b/src/ply-boot-splash.h
index fefb359..5c26caf 100644
--- a/src/ply-boot-splash.h
+++ b/src/ply-boot-splash.h
@@ -29,6 +29,7 @@
#include "ply-event-loop.h"
#include "ply-window.h"
#include "ply-buffer.h"
+#include "ply-boot-splash-plugin.h"
typedef struct _ply_boot_splash ply_boot_splash_t;
@@ -44,7 +45,9 @@ void ply_boot_splash_update_output (ply_boot_splash_t *splash,
const char *output,
size_t size);
-char *ply_boot_splash_ask_for_password (ply_boot_splash_t *splash);
+void ply_boot_splash_ask_for_password (ply_boot_splash_t *splash,
+ ply_boot_splash_password_answer_handler_t *answer_handler,
+ void *answer_data);
void ply_boot_splash_hide (ply_boot_splash_t *splash);
void ply_boot_splash_attach_to_event_loop (ply_boot_splash_t *splash,
ply_event_loop_t *loop);