summaryrefslogtreecommitdiffstats
path: root/src/ply-boot-splash-plugin.h
Commit message (Collapse)AuthorAgeFilesLines
* Create new libplybootsplashRay Strode2008-06-091-61/+0
| | | | | | | | | | | The old approach of including the same source files into multiple places is less than pretty. But moving the code to libply didn't seem right either, since libply is fairly generic and could in theory get swapped out with a standard runtime at some point. Also, exposing libplybootsplash as an external library will facilitate creating out of tree splash plugins.
* Port password handling over to using new answer objectRay Strode2008-06-021-2/+2
|
* Drop line editing plugin vtable functions. Use window directly.Ray Strode2008-05-291-8/+0
| | | | | | | | | | | | | | | | There was a sort useless layer of indirection between the window object and splash plugins. It ended up with functions like: void on_backspace (ply_splash_plugin_t *plugin) { plugin->interface->on_backspace (plugin); } Since the individual plugins are aware of the window object anyway, they can register their own on_backspace et al handlers without going through the ply_splash_plugin_t layer.
* Move keyboard handling to window so we can do line editingRay Strode2008-05-231-0/+4
| | | | | | | | | | | The logic for line editing is a little complicated, so it's best not to duplicate it across all the plugins. Now we manage it all from the window. The plugins now access the various editing events via there vtable, but that's an extra layer of indirection that doesn't matter given that we pass the window to the plugins anyway. We should drop that and just have the plugins register for edit events directly.
* On keyboard input pass size of character to handlersRay Strode2008-05-221-1/+2
| | | | | This prevents each handler from having to run mbrlen on its own.
* Add second cut at password supportRay Strode2008-05-211-1/+5
| | | | | | | | | 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.
* Simplify plugin interface by dropping attach_to_event_loopRay Strode2008-05-211-2/+2
| | | | | Now we just pass the loop in directly to show and hide, which makes its lifecycle more clear.
* Add hook to ply-terminal-session to notify on boot output.Ray Strode2008-05-191-0/+3
| | | | Drop set_output_buffer api and propagate boot output to splash plugins
* Create a buffer to hold boot messages and pass that buffer to plugin show ↵Ray Strode2008-05-191-1/+3
| | | | functions
* pass keyboard input on to pluginsRay Strode2008-05-181-0/+2
|
* add new ply_window_t type to manage text versus graphics mode,Ray Strode2008-05-171-2/+5
| | | | and eventually key events
* add preliminary support for asking for password during boot sequenceRay Strode2008-05-151-1/+3
| | | | (Only in text plugin so far)
* fix up signature of plugin show splash vfuncRay Strode2007-06-061-1/+1
|
* s/intptr_t/struct _ply_boot_splash_plugin/ in ply_boot_splash_plugin_t typedefRay Strode2007-06-061-1/+1
|
* add small wrapper functions around dlopen and friends.Ray Strode2007-06-061-0/+48
create the start of a boot-splash api for managing the splash screen. Setup main.c to use the api (no plugin exists yet, though, so things are pretty hosed atm)