]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
move gui-related symbols from para.h to new gui.h
authorAndre Noll <maan@systemlinux.org>
Sun, 11 Feb 2007 18:09:36 +0000 (19:09 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 11 Feb 2007 18:09:36 +0000 (19:09 +0100)
gui.c
gui.h [new file with mode: 0644]
gui_theme.c
para.h

diff --git a/gui.c b/gui.c
index d2a5fdccc5c1ccd1f92ada797302ffa566c13702..5403b9a607d2f8780017b2ca6306019c509ebcb7 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -20,6 +20,7 @@
 
 #include "gui.cmdline.h"
 #include "para.h"
+#include "gui.h"
 #include <curses.h>
 #include "ringbuffer.h"
 #include "string.h"
diff --git a/gui.h b/gui.h
new file mode 100644 (file)
index 0000000..97b9969
--- /dev/null
+++ b/gui.h
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2007 Andre Noll <maan@systemlinux.org>
+ *
+ *     This program 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 2 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, write to the Free Software
+ *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ */
+
+/** \file gui.h symbols used by gui and gui_theme */
+
+struct stat_item_data {
+       const char *prefix, *postfix;
+       unsigned x, y, len;
+       int fg, bg, align;
+};
+
+struct gui_theme {
+       const char *name;
+       const char *author;
+       int sb_fg, sb_bg;
+       int cmd_fg, cmd_bg;
+       int output_fg, output_bg;
+       int msg_fg, msg_bg;
+       int err_msg_fg, err_msg_bg;
+       int welcome_fg, welcome_bg;
+       int sep_fg, sep_bg;
+       const char *sep_str;
+       int default_fg, default_bg;
+
+       int top_lines_default, top_lines_min;
+       int lines_min, cols_min;
+       struct stat_item_data data[NUM_STAT_ITEMS];
+};
+
+void init_theme(int i, struct gui_theme *);
+void next_theme(struct gui_theme *);
+void prev_theme(struct gui_theme *);
+#define LEFT 1
+#define RIGHT 2
+#define CENTER 3
index 74d416ec8ea2a13f26116a4fd487bed074389c09..6fea7e5d2e879f1d570487cbab45c432ac58d449 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2007 Andre Noll <maan@systemlinux.org>
  *
  *     This program is free software; you can redistribute it and/or modify
  *     it under the terms of the GNU General Public License as published by
@@ -17,6 +17,7 @@
  */
 
 #include "para.h"
+#include "gui.h"
 #include <curses.h>
 
 #define NUM_THEMES 2
diff --git a/para.h b/para.h
index 869749d15058ed2835c69e38588f8f619e067eee..271ea90a6706df3d75896d101e50e5d80bcc8afc 100644 (file)
--- a/para.h
+++ b/para.h
@@ -191,39 +191,6 @@ int stat_client_add(int fd, long unsigned mask);
 unsigned for_each_line(char *, int, void (*)(char *));
 #define FOR_EACH_STAT_ITEM(i) for (i = 0; i < NUM_STAT_ITEMS; i++)
 
-struct stat_item_data {
-       const char *prefix, *postfix;
-       unsigned x, y, len;
-       int fg, bg, align;
-};
-
-/* gui_theme */
-struct gui_theme {
-       const char *name;
-       const char *author;
-       int sb_fg, sb_bg;
-       int cmd_fg, cmd_bg;
-       int output_fg, output_bg;
-       int msg_fg, msg_bg;
-       int err_msg_fg, err_msg_bg;
-       int welcome_fg, welcome_bg;
-       int sep_fg, sep_bg;
-       const char *sep_str;
-       int default_fg, default_bg;
-
-       int top_lines_default, top_lines_min;
-       int lines_min, cols_min;
-       struct stat_item_data data[NUM_STAT_ITEMS];
-};
-
-void init_theme(int i, struct gui_theme *);
-void next_theme(struct gui_theme *);
-void prev_theme(struct gui_theme *);
-#define LEFT 1
-#define RIGHT 2
-#define CENTER 3
-
-
 __printf_2_3 void para_log(int, const char*, ...);
 
 /* taken from printf man page */