Convert time-related variables to consistently use "unsigned long".
[srvx.git] / src / gline.h
index d8de859ef2d0e81f9f6bb34875a3c8eef5fe2b05..d81a2e673e2c50f7f89c5edd14df0f5e9b5e236d 100644 (file)
@@ -1,11 +1,12 @@
 /* gline.h - Gline database
  * Copyright 2001-2004 srvx Development Team
  *
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of srvx.
+ *
+ * srvx is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.  Important limitations are
- * listed in the COPYING file that accompanies this software.
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,7 +14,8 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, email srvx-maintainers@srvx.net.
+ * along with srvx; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  */
 
 #ifndef GLINE_H
@@ -22,8 +24,9 @@
 #include "hash.h"
 
 struct gline {
-    time_t issued;
-    time_t expires;
+    unsigned long issued;
+    unsigned long lastmod;
+    unsigned long expires;
     char *issuer;
     char *target;
     char *reason;
@@ -36,12 +39,14 @@ struct gline_discrim {
     char *target_mask;
     char *alt_target_mask;
     char *reason_mask;
-    time_t max_issued;
-    time_t min_expire;
+    unsigned long max_issued;
+    unsigned long min_expire;
+    unsigned long min_lastmod;
+    unsigned long max_lastmod;
 };
 
 void gline_init(void);
-struct gline *gline_add(const char *issuer, const char *target, unsigned long duration, const char *reason, time_t issued, int announce);
+struct gline *gline_add(const char *issuer, const char *target, unsigned long duration, const char *reason, unsigned long issued, unsigned long lastmod, int announce);
 struct gline *gline_find(const char *target);
 int gline_remove(const char *target, int announce);
 void gline_refresh_server(struct server *srv);