You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
775 B
41 lines
775 B
|
|
#ifndef _MODELBAHN_H_
|
|
#define _MODELBAHN_H_
|
|
|
|
#define TIMEOUT_REFRESH 1
|
|
#define BUFFERSIZE 64000
|
|
#define MAXWAITTIME 500
|
|
#define UNIX_SOCKET_FILE "/tmp/modelbahn.socket"
|
|
#define DEFAULT_DATADIR "/home/steffen/Dokumente/Programmierung/Modelbahn/"
|
|
#define SESSIONS_MAX 8
|
|
|
|
#define REFERENCENAME_LEN 128
|
|
#define INTERFACES_MAX 8
|
|
#define TURNOUTS_MAX 255
|
|
#define LOCOMOTIVES_MAX 255
|
|
#define SENSORS_MAX 255
|
|
#define BLOCKS_MAX 128
|
|
|
|
#include "server.h"
|
|
#include "turnout.h"
|
|
#include "sensor.h"
|
|
#include "network.h"
|
|
#include "block.h"
|
|
#include "debug.h"
|
|
|
|
extern int running;
|
|
|
|
extern Server *server;
|
|
extern Network *network;
|
|
|
|
|
|
//
|
|
// to measure the time in ms (used for debugging)
|
|
//
|
|
void timer_start(struct timeval *tv);
|
|
int timer_end(struct timeval *tv);
|
|
|
|
|
|
#endif // _MODELBAHN_H_
|
|
|