/*
Copyright (c) 2012 "LliureX"
Framebuffer boot splash
This file is part of Bootcookie.
Bootcookie is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
#include
#include
#include "framebuffer.hpp"
using namespace std;
using namespace net::lliurex::bootcookie;
bool quit_requested=false;
/**
* Signal handler
*/
void quit_handler(int sig)
{
cout<<"bootcookie::Quit requested "<0)
{
if(buffer[0]=='B')
{
cout<<"bootcookie::switch to boot process"<Blit(frame0,framebuffer->width - frame0->width,0);
else
framebuffer->Blit(frame1,framebuffer->width - frame1->width,0);
break;
case 1:
break;
}
n++;
}
framebuffer->Destroy();
delete frame0;
delete frame1;
//...and shutdown
close(pipefd);
unlink("/tmp/bootcookie");
return 0;
}