#ifndef GLOBALS_H #define GLOBALS_H #include "boolean.h" /////////////////////////////////////////////////////// /// Global variables for xens /////////////////////////////////////////////////////// #ifdef _MAIN_ # define GLOBAL #else # define GLOBAL extern #endif /////////////////////////////////////////////////////// /// Functions shared by main.c and callbacks.c /////////////////////////////////////////////////////// void ini_network(int argc, char *argv[]); void ini_globals(); /////////////////////////////////////////////////////// /// Global variables /////////////////////////////////////////////////////// GLOBAL GtkWidget *window_main; GLOBAL int global_bus_side; // Width and height of the rectangle for a bus. Should be odd. GLOBAL int global_branch_width; // Line width used to draw a branch. Should be odd. GLOBAL int global_xmargin; // X margin applied to the whole drawing on the drawing area GLOBAL int global_ymargin; // Y margin applied to the whole drawing on the drawing area GLOBAL boolean global_draw_halos; // Flag to activate the drawing of halos #endif