]> git.ipfire.org Git - thirdparty/plymouth.git/commit
main: refactor theme loading code to reduce duplication
authorRay Strode <rstrode@redhat.com>
Fri, 10 Jan 2014 16:10:16 +0000 (11:10 -0500)
committerRay Strode <rstrode@redhat.com>
Fri, 10 Jan 2014 19:17:57 +0000 (14:17 -0500)
commit9ef8c4603634c58ec0f0dc18f9b1889dfc2722d6
tree478f54682fded792828be6fad131943cd86b76c0
parent76d913fd84db52730b2d3e206bd3b5ad5a6a3be4
main: refactor theme loading code to reduce duplication

Right now we read /usr/share/plymouthd/plymouthd.defaults
and /etc/plymouth/plymouthd.conf to find the configured splash
screen.  The two functions that do this are basically copy-and-paste
of each other.

This commits splits some of the duplicated code out into a common
function for clarity.  Doing this also helps to facilitate adding
more configuration options, which we'll need to do in the future
to support a global start up delay.
src/main.c