/* Global data used throughout the whole application. */
#ifndef _COMMON_H
#define _COMMON_H
/* The cache table */
#include "cache.h"
extern struct cache *cache_table;
/* The queue for database operations */
#include "queue.h"
extern struct queue *op_queue;
/* Settings */
#include "be.h"
struct settings {
int tipc_lower;
int tipc_upper;
char *tcp_addr;
int tcp_port;
char *udp_addr;
int udp_port;
char *sctp_addr;
int sctp_port;
int numobjs;
int foreground;
int passive;
int read_only;
char *dbname;
char *logfname;
enum backend_type backend;
char *pidfile;
};
extern struct settings settings;
/* Statistics */
#include "stats.h"
extern struct stats stats;
#endif