Bumped versions to 1.1.2/20070818/30:2:0 for the next development snapshot
[geda-gaf/whiteaudio.git] / utils / gschlas / globals.c
blob1f9d7c27cc5b66ab36eb79299c71d2ec0bf7c287
1 /* gEDA - GPL Electronic Design Automation
2 * gschlas - gEDA Load and Save
3 * Copyright (C) 2002-2007 Ales Hvezda
4 * Copyright (C) 2002-2007 gEDA Contributors (see ChangeLog for details)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
21 #include <config.h>
23 #include <stdio.h>
25 #include <libgeda/libgeda.h>
27 #include "../include/globals.h"
28 #include "../include/prototype.h"
30 #ifdef HAVE_LIBDMALLOC
31 #include <dmalloc.h>
32 #endif
34 char *rc_filename = NULL;
36 #if 0
37 /* color stuff */
38 GdkColormap *colormap;
39 GdkVisual *visual;
41 /* colors */
42 GdkColor white;
43 GdkColor black;
44 #endif
46 int logfile_fd=-1;
47 int do_logging=TRUE;
48 int logging_dest=LOG_WINDOW;
50 /* these are required by libgeda */
51 void (*arc_draw_func)() = o_arc_recalc;
52 void (*box_draw_func)() = o_box_recalc;
53 void (*picture_draw_func)() = o_picture_recalc;
54 void (*circle_draw_func)() = o_circle_recalc;
55 void (*complex_draw_func)() = o_complex_recalc;
56 void (*line_draw_func)() = o_line_recalc;
57 void (*net_draw_func)() = o_net_recalc;
58 void (*bus_draw_func)() = o_bus_recalc;
59 void (*text_draw_func)() = o_text_recalc;
60 void (*pin_draw_func)() = o_pin_recalc;
61 void (*select_func)() = o_select_dummy;
62 void (*x_log_update_func)() = NULL;
63 /* void (*variable_set_func)() = i_vars_set; */
64 void (*variable_set_func)() = NULL;
65 int (*load_newer_backup_func)() = NULL;
67 /* this is just a dummy function, so that compoments are saved properly */
68 void
69 o_select_dummy(TOPLEVEL * w_current, OBJECT * o_current,
70 int type, int count)
72 // nop
76 /* command line arguments */
77 int verbose_mode=FALSE;
78 int interactive_mode=FALSE;
79 int quiet_mode=FALSE;
80 int embed_mode=FALSE;
81 int unembed_mode=FALSE;