#ifndef _GLOB_H_
#define _GLOB_H_

#include <stdio.h>
#include "XmuXdefs.h"
#include "XmuXstructs.h"

#ifndef PUBLIC 
#define PUBLIC extern 
#endif

/* -- debugging flags -- */

PUBLIC int debug_requests ;
PUBLIC int debug_events ;
PUBLIC int debug_mux ;
PUBLIC int debug_resources ;
PUBLIC int debug_alloc ;

PUBLIC FILE *logfile ;          /* the logfile */

/* -- global error handling variables -- */

PUBLIC int clientErrorValue ;    /* the error value (e.g. BadValue) send by */
                                 /* the server */
PUBLIC int clientErrorRequest ;  /* the request code (e.g. X_OpenFont) which */
                                 /* caused the error */

/* 
 * -- global translation table :
 * --  maps connection numbers (in fact file descriptors) to corresponding 
 * --  MUXServer data structures 
 */

PUBLIC MUXServerPtr ConnectionTranslation[ MAXSOCKS ];

#undef PUBLIC

#endif /* -- #ifndef _GLOB_H_ -- */
