Refactor GUI code, add grid layout by Dave Ball
[qi-bootmenu.git] / qi-bootmenu.c
blobc711408e0f3b715d75340a41a201115bca1895ed
1 /*
2 * qi-bootmenu - A kexec based bootloader with an elementary based GUI
4 * Copyright (c) 2009 Marc Andre Tanner <mat@brain-dump.org>
6 * qi-bootmenu shares the basic idea and some small code snippets with
7 * kexecboot which is written by:
9 * Copyright (c) 2008-2009 Yuri Bushmelev <jay4mail@gmail.com>
10 * Copyright (c) 2008 Thomas Kunze <thommycheck@gmx.de>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2, or (at your option)
15 * any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 #include "kexec.h"
25 #include "gui.h"
27 int main(int argc, char **argv) {
29 if (argc > 1 && argv[1][0] == '-') {
30 switch (argv[1][1]) {
31 case 'd':
32 diagnostics();
33 exit(0);
37 return gui_show(argc, argv);