Commit graph

649 commits

Author SHA1 Message Date
Ray Strode
6f329db9eb Add new trigger object
This just calls a closure at a later point in time.
It will get used for having the splash plugin perform
tasks that will make the daemon defer responding to
the client.
2008-09-23 14:29:39 -04:00
Ray Strode
1c3f19a184 Tell GDM to do a smooth transition for spinfinity
If spinfinity ran and we end up exiting with it
still on screen, tell GDM so that it can open
X up on the same display and do a smooth transition.
2008-09-23 14:29:38 -04:00
Ray Strode
8d492071d7 Track visibility state of spinfinity plugin
If it's still visible when it's destroyed,
we'll want to tell GDM to do a smooth
transition.
2008-09-23 14:29:38 -04:00
Ray Strode
a90c56ce73 Add "quit" subcommand to boot client
It's like --quit but has a --retain-splash option,
so the boot splash can stay on screen after plymouthd
exits.
2008-09-23 14:29:38 -04:00
Ray Strode
3a66248fd1 detach splash plugin from event loop before unload
Since we won't necessarily hide on the unload
path anymore, we need to explicitly clean up our
connection to the main loop.
2008-09-23 14:28:07 -04:00
Ray Strode
2028e64e8b Only hide boot splash on quit if told to do so
Extend the daemon-client protocol to include a
"retain-splash" flag to the quit request.  If
it's set then we don't hide the boot splash.
2008-09-23 14:27:39 -04:00
Ray Strode
a7bc5f28a7 Add {add,remove}_window funcs to splash plugins
We'll be able to have more than one window for
serial consoles, etc.
2008-09-23 14:21:48 -04:00
Ray Strode
2097e19f31 Don't unload plugin when hiding it
Since it gets unloaded on free() now, we need to
make sure it doesn't get unloaded on hide.
2008-09-22 08:44:32 -04:00
Ray Strode
8a6d13f956 Unload plugin instead of hiding it on free()
We basically don't want to ever implicitly hide on
the shutdown path, only when asked to explictly,
or when the splash plugin itself deems it
necessary.
2008-09-22 08:44:32 -04:00
Ray Strode
5c81e95480 Unload splash plugin instead of hiding on quit
It may decide to keep the splash up after it
exits.
2008-09-22 08:44:32 -04:00
Ray Strode
ebbde8f409 Don't force text mode on quit
Leave it up to the splash plugin to decide
2008-09-22 08:44:32 -04:00
Ray Strode
dc1eb48ac9 Add Charlie Brej to copyright holder lists
He added some new functions that he owns
copyright to.
2008-09-20 18:59:21 -04:00
Charlie Brej
caf2ac5839 Add new functions for filling fb within clip rect 2008-09-20 18:25:57 -04:00
Charlie Brej
8b2aebbc0b Allow fb areas to have out of bounds x and y values
Sprites may move partially past the edge of the screen.
Allow that, and just clip to the screen when necessary.
2008-09-20 18:25:36 -04:00
Charlie Brej
e7304b9b76 Skip pixel blending if alpha is 0
It would be pointless to do the computation.
2008-09-20 18:20:59 -04:00
Charlie Brej
88c85c116d Add new list functions
Add function to clear list of all nodes, function to sort
nodes in list, and function set node user data.
2008-09-20 18:18:16 -04:00
Charlie Brej
3e34fba653 Add resize and rotate methods to image object
Some splash plugins may want to rotate and scale
sprites on screen, so these functions may be useful.
2008-09-20 18:12:02 -04:00
Charlie Brej
527301416a Plug various memory leaks 2008-09-20 17:56:43 -04:00
Christoph Brill
b6da503604 Fix sandbox builds (by using DESTDIR)
plymouth-update-initrd was getting passed
the logo location without DESTDIR
2008-09-11 23:01:37 -04:00
Christoph Brill
26b95a63de Fix the build order of scripts/ and images/
The image needs to be installed before it can be
processed with the script.
2008-09-11 22:59:27 -04:00
Ray Strode
69cec67904 Don't reset cursor position when closing window
The splash plugins should clear screen on their own.
2008-09-10 19:29:41 -04:00
Ray Strode
dee4a85787 Require plymouthd to be run as root 2008-09-10 14:19:47 -04:00
Ray Strode
ea53cbf0e8 Force shadow frame buffer to have cairo compatible row stride
Previously it would keep the rowstride of the scanout buffer,
which isn't right.  The entire point of the shadow buffer is
that it has a known at compile time constant memory layout.

(This change fixes password prompts on some hardware)
2008-09-10 13:31:47 -04:00
Ray Strode
de640c616f Fix typo
forgot a state->
2008-09-10 13:09:03 -04:00
Ray Strode
be0130677f don't assert if no window could be made 2008-09-10 10:47:16 -04:00
Ray Strode
a284953e42 Actually fix serial console loop 2008-09-10 10:46:33 -04:00
Ray Strode
ca07ac0c34 Fix console iterating patch from two commits ago
It was an infinite loop
2008-09-05 15:09:07 -04:00
Ray Strode
d12ae10a70 Strip out , when parsing console
Options can be passed to the console, we should
ignore them when opening the console.
2008-09-05 14:31:08 -04:00
Ray Strode
a07d23afd4 Use the last console instead of first console
If the kernel command line specifies more than
one console, then the last console is /dev/console
2008-09-05 14:30:19 -04:00
Ray Strode
335db187c6 Show password prompts for details plugin 2008-09-05 11:23:52 -04:00
Ray Strode
eaabb6a04b Reset details to raw mode when getting password
For some reason it's getting reset during boot up.
2008-09-05 11:20:54 -04:00
Ray Strode
223a6fca83 Don't send ack in addition to cached response
Just a missing return statement
2008-09-04 17:43:26 -04:00
Ray Strode
e962a0bbd9 respond w/ "" if user hits esc to password prompt
This is so when we load the next plugin it won't
get confused.
2008-08-27 16:01:28 -04:00
Ray Strode
5534d814aa Don't try to print prompt in text plugin, if there is not prompt
Fixes a crasher.
2008-08-27 14:08:12 -04:00
Ray Strode
6da3b8ffa6 Don't try to use cached passwords if none get returned
It causes a pretty instant crash.
2008-08-27 12:10:08 -04:00
Ray Strode
8fc9c8f513 Add ply-label-plugin.h to Makefile 2008-08-27 11:41:08 -04:00
Ray Strode
38e261ac9a Add start of font rendering support
We now have a plugin that we load after / is mounted.
It links against pango for text support.  In
libplybootsplash we have a new label control
that will call into the plugin if it's loaded or
render invisible otherwise.
2008-08-27 10:55:38 -04:00
Ray Strode
99ebae5db2 Add ply_frame_buffer_get_bytes
It's going to be used to get access to the frame buffer
bytes directly, so they can be used with cairo.
2008-08-27 10:55:38 -04:00
Ray Strode
2c40451ab2 add Pango check to configure
We're going to need it to render text
2008-08-27 10:55:37 -04:00
Ray Strode
2f915a471c Move splash-plugins to plugins/splash
We're going to have non-splash plugins shortly.
2008-08-27 10:55:37 -04:00
Ray Strode
45894b7dfb Add empty on_root_mounted function 2008-08-27 10:55:37 -04:00
Ray Strode
3822e3573d Add notification to splash plugins when / gets mounted
We'll need it to know when we can dlopen support libraries
for rendering text.
2008-08-27 10:55:37 -04:00
Ray Strode
7391072b93 Show the prompt with the text plugin
It's a little ugly atm, might be able to do better.
2008-08-27 10:55:37 -04:00
Ray Strode
5933f71f43 Make daemon pass client sent password prompt to splash plugins
They don't currently do anything with the message but they
at least now get it so they conceivably could.
2008-08-27 10:55:37 -04:00
Ray Strode
dbe8e595d3 Add --prompt option to ask-for-password client command
We want to be able to ask the user a question instead
of assuming they know what question to answer. This
will be important if /opt and /home get encrypted with
different passwords.
2008-08-27 10:55:36 -04:00
Ray Strode
774d86dbde Count and pair frame buffer pause and unpause calls
We don't want a nested unpause() to cause a premature
flush of the shadow buffer out to the front buffer.
2008-08-27 10:55:36 -04:00
Ray Strode
d3ec877aae Fix up compile error in boot server test 2008-08-27 10:55:36 -04:00
Ray Strode
6f60a782e5 fix typo (transposed letters in 'ask for passowrd') 2008-08-21 13:45:25 -04:00
Ray Strode
d6b2d64ed0 White space clean up 2008-08-21 13:32:24 -04:00
Ray Strode
ab7bffea8c fix up string array splitting code
p = q should have been q = p
2008-08-20 15:50:56 -04:00