e512ac81e5e2346e9b5b615044a06658ec20bd83
[udpgate.git] / src / ui-line.c
1 /* $Id$
2  * Commandline user interface
3  * Copyright (C) 2004 Jan Kratochvil <project-udpgate@jankratochvil.net>
4  * 
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; exactly version 2 of June 1991 is required
8  * 
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  * 
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19
20 #include "config.h"
21
22 #include "ui-line.h"    /* self */
23 #include <glib/gmessages.h>
24
25 #include "main.h"
26
27
28 void ui_line_interactive(void)
29 {
30         g_error(_(
31 "No X Windows System accessible and no action was specified.\n"
32 "Use one of --start or --stop command-line argument, see also --help"
33 ));
34         /* NOTREACHED */
35 }
36
37 gboolean ui_line_init(void)
38 {
39         ui_interactive=ui_line_interactive;
40         return TRUE;
41 }