4
* fbsplash (framebuffer splash) splash method support
6
* Copyright (C) 2007 Alon Bar-Lev <alon.barlev@gmail.com>
8
* This file is released under the GPLv2.
16
#include <linux/types.h>
21
#include "fbsplash_funcs.h"
23
char fbsplash_theme[] = "";
30
printf("fbsplashfuncs_open...\n");
31
r = fbsplashfuncs_open(SPL_SUSPEND);
32
printf("fbsplashfuncs_open=%d\n", r);
37
for (i=0; i<=100; i+=10) {
38
printf("fbsplashfuncs_progress (%d)...\n", i);
39
fbsplashfuncs_progress(i);
42
printf("fbsplashfuncs_dialog()...\n");
43
printf("fbsplashfuncs_dialog=%c\n", fbsplashfuncs_dialog ("Hello world!\nPlease press a key: "));
48
printf("fbsplashfuncs_read_password(,0)..\n");
49
fbsplashfuncs_read_password(pass, 0);
50
printf("fbsplashfuncs_read_password=%s\n", pass);
54
printf("fbsplashfuncs_read_password(,1)..\n");
55
fbsplashfuncs_read_password(pass, 1);
56
printf("fbsplashfuncs_read_password=%s\n", pass);
59
c = fbsplashfuncs_key_pressed();
61
char buffer[SPLASH_GENERIC_MESSAGE_SIZE];
62
sprintf(buffer, "Key %c (%02x) pressed", c, (unsigned char)c);
63
fbsplashfuncs_set_caption(buffer);
67
printf("fbsplashfuncs_finish...\n");
68
fbsplashfuncs_finish();