Commit 340fda00 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add PROGRAM and KILL object/events.

parent 187a3a18
/* /*
* *
*/ */
#include <string.h>
#include "tbdefs.h" #include "tbdefs.h"
char *tbdb_objecttypes[] = { char *tbdb_objecttypes[] = {
...@@ -8,12 +9,14 @@ char *tbdb_objecttypes[] = { ...@@ -8,12 +9,14 @@ char *tbdb_objecttypes[] = {
TBDB_OBJECTTYPE_LINK, TBDB_OBJECTTYPE_LINK,
TBDB_OBJECTTYPE_TRAFGEN, TBDB_OBJECTTYPE_TRAFGEN,
TBDB_OBJECTTYPE_TIME, TBDB_OBJECTTYPE_TIME,
TBDB_OBJECTTYPE_PROGRAM,
0, 0,
}; };
char *tbdb_eventtypes[] = { char *tbdb_eventtypes[] = {
TBDB_EVENTTYPE_START, TBDB_EVENTTYPE_START,
TBDB_EVENTTYPE_STOP, TBDB_EVENTTYPE_STOP,
TBDB_EVENTTYPE_KILL,
TBDB_EVENTTYPE_ISUP, TBDB_EVENTTYPE_ISUP,
TBDB_EVENTTYPE_REBOOT, TBDB_EVENTTYPE_REBOOT,
TBDB_EVENTTYPE_UP, TBDB_EVENTTYPE_UP,
......
...@@ -17,9 +17,11 @@ ...@@ -17,9 +17,11 @@
#define TBDB_OBJECTTYPE_LINK "LINK" #define TBDB_OBJECTTYPE_LINK "LINK"
#define TBDB_OBJECTTYPE_TRAFGEN "TRAFGEN" #define TBDB_OBJECTTYPE_TRAFGEN "TRAFGEN"
#define TBDB_OBJECTTYPE_TIME "TIME" #define TBDB_OBJECTTYPE_TIME "TIME"
#define TBDB_OBJECTTYPE_PROGRAM "PROGRAM"
#define TBDB_EVENTTYPE_START "START" #define TBDB_EVENTTYPE_START "START"
#define TBDB_EVENTTYPE_STOP "STOP" #define TBDB_EVENTTYPE_STOP "STOP"
#define TBDB_EVENTTYPE_KILL "KILL"
#define TBDB_EVENTTYPE_ISUP "ISUP" #define TBDB_EVENTTYPE_ISUP "ISUP"
#define TBDB_EVENTTYPE_REBOOT "REBOOT" #define TBDB_EVENTTYPE_REBOOT "REBOOT"
#define TBDB_EVENTTYPE_UP "UP" #define TBDB_EVENTTYPE_UP "UP"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment