Commit graph

295 commits

Author SHA1 Message Date
Ray Strode
eddf693c9b Compute correct offset when copying from shadow buffer to frame buffer
When I added commit c12164c162
to copy an entire row at a time to the framebuffer, I miscalculated the
offset to copy from/to.  Their may be uninitialized data at the
beginning and end of the temporary row buffer, if only part of the row
is getting copied.  We need to make sure we jump passed that junk in
memory and copy just the part that got filled in.
2008-05-28 09:25:28 -04:00
Ray Strode
0e7e023560 Drop some unused declarations that are fall out from cut-n-paste 2008-05-28 09:25:27 -04:00
Ray Strode
f926647d98 Add new array type to make managing arrays easier
This is just a thin wrapper around the buffer object,
that keeps the data in terms of "elements" instead of
bytes, and always null terminates the result.
2008-05-28 09:25:27 -04:00
Ray Strode
1a66267ef5 Add new ply_buffer_steal_bytes method
This function disowns the bytes in the buffer and returns
them to the caller. It's useful for freeing the buffer, but
keeping the bytes around without doing a copy.
2008-05-28 09:25:27 -04:00
Ray Strode
73c9fc687f Add frames for spinfinity throbber 2008-05-28 09:25:27 -04:00
Kristian Høgsberg
793c2e5e57 Call ply_boot_splash_hide in on_quit handler in test case. 2008-05-27 22:22:57 -04:00
Ray Strode
5867cf994c Merge branch 'master' of git+ssh://halfline@git.freedesktop.org/git/plymouth 2008-05-24 01:44:55 -04:00
Ray Strode
49c5e26546 Copy and modify fedora-fade-in to new spinfinity plugin
The idea is to make a plugin that matches mockups done by
Mike Langlie.  The mockups feature a throbber that spins
in the shape of an infinity sign.  This is just a placeholder.
Most of the mockup isn't implemented yet.
2008-05-24 01:39:27 -04:00
Kristian Høgsberg
4928a01f26 Fix same bug in ply_frame_buffer_area_intersect(). 2008-05-23 21:48:05 -04:00
Kristian Høgsberg
7af2250014 Factor out area union code from ply_frame_buffer_add_area_to_flush_area. 2008-05-23 21:48:05 -04:00
Kristian Høgsberg
929f15c742 Fix bug in area union code.
ply_frame_buffer_add_area_to_flush_area() computes the wrong area
when the new area right of the current area but is wider than the
old area.

The easiest way to get rectangle intersection right is to just do
it on absolute coordinates and then convert back to width and height
afterwards.
2008-05-23 21:47:57 -04:00
Kristian Høgsberg
8c69be0c4e Pick plymouth from bindir and plymouthd from libexec in install script. 2008-05-23 19:14:10 -04:00
Ray Strode
548fab32e3 Update TODO
Add:
- Add limited text support
- Make --ask-for-password take a prompt message
- consider making details plugin have stdin hooked
  up to the pty instead of tty so input works
- consider making details plugin go back to pretty
  plugin if user presses escape
2008-05-23 15:39:47 -04:00
Ray Strode
a4b92f435e Clear old contents before recompositing to prevent ad-hoc fade effect 2008-05-23 10:33:23 -04:00
Ray Strode
6a2fba76c1 Don't leak entry 2008-05-23 01:15:01 -04:00
Ray Strode
7e14cb9452 Move keyboard handling to window so we can do line editing
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.
2008-05-23 01:00:28 -04:00
Ray Strode
d2b4a3ef73 Add new ply_buffer_remove_bytes_at_end
This function is like ply_buffer_remove_bytes, but it
truncates away the end of the buffer instead of shifting
the contents over the start of the buffer.
2008-05-22 17:02:56 -04:00
Ray Strode
21081183a2 On keyboard input pass size of character to handlers
This prevents each handler from having to run mbrlen on
its own.
2008-05-22 16:25:57 -04:00
Ray Strode
cc5d16775a rename window->buffer to window->keyboard_input_buffer
The new name is more obvious.
2008-05-22 16:17:49 -04:00
Ray Strode
72b06ac254 Don't show timestamp and pid in verbose mode
They haven't been useful recently and they add a lot of noise.
2008-05-22 15:58:25 -04:00
Ray Strode
4335d4352e Add preliminary password support to fedora-fade-in
We should really move a lot of the duplicate code between
the various splash plugins to the window code.  We also need
line editing support.
2008-05-22 15:19:59 -04:00
Ray Strode
c8a5e1d318 Do the trivial cut-n-paste to bring password support to details plugin 2008-05-21 23:21:19 -04:00
Ray Strode
b8624e3cd0 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.
2008-05-21 22:57:40 -04:00
Ray Strode
b5b6fb666d Fix some harmless typos in the reply code 2008-05-21 09:03:00 -04:00
Ray Strode
4cf3e3ae2d Simplify plugin interface by dropping attach_to_event_loop
Now we just pass the loop in directly to show and hide,
which makes its lifecycle more clear.
2008-05-21 08:57:59 -04:00
Ray Strode
a0092f35c5 Only allow root clients to talk to daemon
We don't want normal users on the system to be able to
manipulate plymouth. This will be especially important
later when we run plymouth for post-bootup reasons. This
patch checks peer credentials and sends back a NAK to
clients who aren't root.
2008-05-21 00:20:28 -04:00
Ray Strode
a4cffffd94 Update TODO
Remove:
- Don't start boot-splash automatically, rather wait until given command from client
2008-05-20 23:12:54 -04:00
Ray Strode
b738dda915 Build in tracing by default and toggle on with ctrl-v 2008-05-20 23:02:51 -04:00
Ray Strode
c9ce142983 change if (key == KEY_ESCAPE) to use switch statement instead
We'll be adding other global hotkeys here so it makes sense to
use a switch statement for future extensibility
2008-05-20 22:56:54 -04:00
Ray Strode
44ec8ec8fa Update TODO
Add:
- Drop all the make ram disk and copy code.  That was just to make bolting things
  on easier.  We can integrate now.
- check peer credentials on client to make sure it's not running unprivileged
2008-05-20 22:42:15 -04:00
Ray Strode
cf2e5d6a06 s/rhgb-client/plymouth/ in the client usage string 2008-05-20 22:40:02 -04:00
Ray Strode
4392b69238 Don't show splash by default, instead require client to request it
plymouthd gets started before the drm modesetting modules are loaded,
so we can't try to access the frame buffer right away.  The plan is to
load the drm modules as soon as possible in the initrd and then tell
plymouthd to put up the splash ASAP.
2008-05-20 22:37:01 -04:00
Ray Strode
ff31d108ca Put in ChangeLog request to not use ChangeLog 2008-05-20 15:15:03 -04:00
Ray Strode
6e398f600b Update TODO
Add:
- Don't start boot-splash automatically, rather wait until given command from client
- Allow plymouth to be started from nash instead of the other way around

Remove:
- add the ability to watch for timeouts in the event loop
2008-05-20 15:13:48 -04:00
Ray Strode
ec78e3986d overwrite existing rhgb-client compat symlink when doing make install 2008-05-20 12:33:23 -04:00
Ray Strode
5ed9c22a7e don't generate .tar.gz on make dist 2008-05-20 12:01:01 -04:00
Ray Strode
e8a5bdf76e Add client tests directory to SUBDIRS 2008-05-20 11:51:07 -04:00
Ray Strode
c13aba661e rename rhgb-client to plymouth
We'll keep a compat symlink in place until init scripts are moved over
2008-05-20 11:36:26 -04:00
Ray Strode
677c3bd9cb rename the daemon from plymouth to plymouthd 2008-05-20 11:21:21 -04:00
Ray Strode
b4efa1c5d9 detach text plugin from event loop when hiding it 2008-05-20 10:54:22 -04:00
Ray Strode
9ed10c8ed9 disconnect from event loop in fedora-fade-in if show fails
We really need to drop attach_to_event_loop and pass the
loop into show.
2008-05-20 10:53:09 -04:00
Ray Strode
c04811313b Use the raw mode so we lose terminal echo 2008-05-20 08:54:38 -04:00
Ray Strode
b8781ead84 Add hook to ply-terminal-session to notify on boot output.
Drop set_output_buffer api and propagate boot output to splash plugins
2008-05-19 23:45:50 -04:00
Ray Strode
2103fb014f dump output of boot buffer when showing details plugin 2008-05-19 23:19:13 -04:00
Ray Strode
227418f36b use "details" stub plugin when user presses escape 2008-05-19 23:18:42 -04:00
Ray Strode
038d5d6dd3 Create a buffer to hold boot messages and pass that buffer to plugin show functions 2008-05-19 22:54:46 -04:00
Ray Strode
b08048505b add hook to log all terminal session output to a user supplied buffer 2008-05-19 18:33:54 -04:00
Ray Strode
3aca1c4370 add stub plugin that will show details when the user presses escape 2008-05-19 18:17:42 -04:00
Ray Strode
b144acddbc move ply_window_detach_from_event_loop around so we can drop the forward declaration 2008-05-19 17:49:06 -04:00
Ray Strode
fe6a3b007a Create window at layer above boot splash and reuse when changing boot splashes
This requires keyboard handling to be changed, so that each
plugin can hook in their own keyboard hooks when switching
between them, and also handling escape completely above the boot
splash plugin level.
2008-05-19 17:48:15 -04:00