/* !dBoxTools.h.main */

#ifndef _main_h
#define _main_h

#include <stdio.h>

#include "toolbox.h"

#define MAX_ARG 3

typedef struct Action
{ struct Action *next;
  int line;  /* line in defintion file for error reporting */
  ObjectId object;
  ComponentId component;
  int event;
  char *value;
  char action;
  char *arg[ MAX_ARG ];
} Action;
/* ensure emptyAction stays in step */

extern Action emptyAction;

typedef struct Object
{ struct Object *next;
  ObjectId object;
  char name[12];
} Object;

extern Object *firstObject;
extern Action *firstAction;
extern Action *firstMapping;
extern Action *firstFadedMapping;
extern Action *firstMessage;
extern int client, handle;
extern FILE *debug;
extern int line;
extern Action *pending;
extern ObjectId    destinationObject;
extern ComponentId destinationComponent;

#endif
