- The big forward port. I probably broke lots of stuff, so please look over any
[ircu2.10.12-pk.git] / include / gline.h
index 4a904664b0f57a88058a18d2844b13d7c1ef2a39..3be3bd91444d1fbe738904bd29f5afd63bfb8f1c 100644 (file)
@@ -22,9 +22,6 @@
  *
  * $Id$
  */
-#ifndef INCLUDED_config_h
-#include "config.h"
-#endif
 #ifndef INCLUDED_sys_types_h
 #include <sys/types.h>
 #define INCLUDED_sys_types_h
@@ -33,6 +30,7 @@
 #include <netinet/in.h>
 
 struct Client;
+struct StatDesc;
 
 #define GLINE_MAX_EXPIRE 604800        /* max expire: 7 days */
 
@@ -59,6 +57,7 @@ struct Gline {
 #define GLINE_LDEACT   0x0080  /* locally deactivated */
 #define GLINE_GLOBAL   0x0100  /* find only global glines */
 #define GLINE_LASTMOD  0x0200  /* find only glines with non-zero lastmod */
+#define GLINE_OPERFORCE        0x0400  /* oper forcing gline to be set */
 
 #define GLINE_MASK     (GLINE_ACTIVE | GLINE_BADCHAN | GLINE_LOCAL)
 #define GLINE_ACTMASK  (GLINE_ACTIVE | GLINE_LDEACT)
@@ -75,6 +74,8 @@ struct Gline {
 #define GlineReason(g)         ((g)->gl_reason)
 #define GlineLastMod(g)                ((g)->gl_lastmod)
 
+extern int gline_propagate(struct Client *cptr, struct Client *sptr,
+                          struct Gline *gline);
 extern int gline_add(struct Client *cptr, struct Client *sptr, char *userhost,
                     char *reason, time_t expire, time_t lastmod,
                     unsigned int flags);
@@ -90,6 +91,8 @@ extern void gline_free(struct Gline *gline);
 extern void gline_burst(struct Client *cptr);
 extern int gline_resend(struct Client *cptr, struct Gline *gline);
 extern int gline_list(struct Client *sptr, char *userhost);
-extern void gline_stats(struct Client *sptr);
+extern void gline_stats(struct Client *sptr, struct StatDesc *sd, int stat,
+                        char *param);
+extern int gline_memory_count(size_t *gl_size);
 
 #endif /* INCLUDED_gline_h */