Importing all of DRL, including ulogd and all of its files.
[distributedratelimiting.git] / drl / calendar.h
diff --git a/drl/calendar.h b/drl/calendar.h
new file mode 100644 (file)
index 0000000..717c8a2
--- /dev/null
@@ -0,0 +1,18 @@
+/* See the DRL-LICENSE file for this file's software license. */
+
+#ifndef _CALENDAR_H_
+#define _CALENDAR_H_
+
+#include "bsd_queue.h"
+#include "ratetypes.h"
+
+#define SCHEDBITS (7)
+#define SCHEDLEN (1 << SCHEDBITS)
+#define SCHEDMASK (SCHEDLEN - 1)
+
+/** Defines a struct ident_calendar whose elements are of type struct identity
+ * (identity_t) */
+TAILQ_HEAD(ident_calendar, identity);
+
+
+#endif  /* _CALENDAR_H_ */