Ray Strode [Wed, 23 May 2007 15:50:05 +0000 (11:50 -0400)]
add new ply_save_errno/ply_restore_errno functions
The primary mechanism for reporting problems in this program
is through errno. Since errno can get wiped out transparently
across syscalls, it's often necessary to save errno before making
a syscall and restore it afterward. These functions make that
easier.
Ray Strode [Wed, 23 May 2007 15:22:07 +0000 (11:22 -0400)]
add support for default error logging
This commit adds a convience macros, ply_error (), that
will by default log error messages to the standard error.
This commit also adds a new api for specifying a policy
for determining when to automatically flush the log buffer.
Ray Strode [Mon, 21 May 2007 14:06:58 +0000 (10:06 -0400)]
add new ply_get_timestamp() function
This commit adds a function, ply_get_timestamp(), that returns
the current time in seconds since the epoch as a double.
Ray Strode [Fri, 18 May 2007 05:43:50 +0000 (01:43 -0400)]
fix the frame buffer compositing code.
It was always doing full screen updates instead of just the area
that changed and even that was an accident. The code was totally
broken.
Ray Strode [Wed, 16 May 2007 20:29:22 +0000 (16:29 -0400)]
Improve the ply-terminal api
Previously, the api for creating the pseudo-terminal
was ply_terminal_open (). This is a bit confusing of an api
because often a program will want to open the pseudo-terminal
after creating it, so you end up with:
ply_terminal_open (terminal);
pts_fd = open (ply_terminal_get_name (terminal), O_RDWR);
Ray Strode [Wed, 16 May 2007 19:50:31 +0000 (15:50 -0400)]
add ply_fd_has_data and ply_fd_can_take_data apis
The calls in this commit just do a one-off poll of the passed
in fd to see if the fd is read for read or write call
Ray Strode [Wed, 16 May 2007 18:56:42 +0000 (14:56 -0400)]
Make ply_terminal_get_name return a non-freeable string
Previously ply_terminal_get_name would return a duplicated
copy of its name that the caller would have to free.
Ray Strode [Wed, 16 May 2007 15:25:50 +0000 (11:25 -0400)]
add the start of an api for controlling /bin/init
This lets you redirect init messages to /dev/null. Eventually,
we'll need to redirect a psuedoterminal that we log for post
boot up.
Ray Strode [Sat, 12 May 2007 03:42:43 +0000 (23:42 -0400)]
Tweak image demo
This commit changes the background from the previous bluish
clor to black. It also changes the animation timing so that
the image sits at full opacity for a while before fading down
Ray Strode [Thu, 10 May 2007 19:39:05 +0000 (15:39 -0400)]
add updates pausing feature
In order to prevent flicker, there are two new apis
pause and unpause, that prevent and cause respectively
updates from getting flushed to the card.
This commit also has a few fixes for compositing. It
still isn't working like it should be however.
Ray Strode [Thu, 10 May 2007 14:57:40 +0000 (10:57 -0400)]
Rename ply_video_buffer_destroy
I actually gave ply_video_buffer_destroy the name
ply_video_buffer_free when I implemented it, so rename it in the
header file.
root [Thu, 10 May 2007 13:38:04 +0000 (09:38 -0400)]
Provide apis for writing to the framebuffer
These apis provide functionality for converting pixel data
into formats suitable for the framebuffer and for writing the
data to the framebuffer. Eventually, we'll probably want to
use Soeren's pixman-turned-to-a-library library to do the pixel
conversion.
Ray Strode [Wed, 9 May 2007 15:12:47 +0000 (11:12 -0400)]
Add disclaimer that the README contains stale information
The README file right now is just a copy of the Readme.txt
included in Kristian's old work on graphical boot. This change
adds a disclaimer to that effect and link to the wiki page where
the future design is getting worked out.
Ray Strode [Tue, 8 May 2007 21:57:15 +0000 (17:57 -0400)]
Add stub implementation to main.c
Previously the very empty project didn't build because it didn't
contain a definition for main(). Add a stub implementation to
get things building