summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/client.h1
-rw-r--r--include/conf_class.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/include/client.h b/include/client.h
index 9fee4fd..5c94a0f 100644
--- a/include/client.h
+++ b/include/client.h
@@ -444,6 +444,7 @@ extern dlink_list global_serv_list; /* global servers on the network
extern dlink_list oper_list; /* our opers, duplicated in local_client_list */
extern int accept_message(struct Client *, struct Client *);
+extern unsigned int idle_time_get(const struct Client *, const struct Client *);
extern struct split_nuh_item *find_accept(const char *, const char *,
const char *, struct Client *, int);
extern void del_accept(struct split_nuh_item *, struct Client *);
diff --git a/include/conf_class.h b/include/conf_class.h
index 883b7b0..b7c13c3 100644
--- a/include/conf_class.h
+++ b/include/conf_class.h
@@ -28,6 +28,9 @@
#ifndef INCLUDED_conf_class_h
#define INCLUDED_conf_class_h
+#define CLASS_FLAGS_RANDOM_IDLE 0x1
+#define CLASS_FLAGS_HIDE_IDLE_FROM_OPERS 0x2
+
struct ClassItem
{
char *name;
@@ -44,9 +47,12 @@ struct ClassItem
unsigned int max_global;
unsigned int max_ident;
unsigned int max_perip;
+ unsigned int min_idle;
+ unsigned int max_idle;
unsigned int cidr_bitlen_ipv4;
unsigned int cidr_bitlen_ipv6;
unsigned int number_per_cidr;
+ unsigned int flags;
unsigned int active;
};
@@ -54,6 +60,7 @@ struct ClassItem
extern struct ClassItem *class_default;
extern struct ClassItem *class_make(void);
+extern struct ClassItem *get_class_ptr(const dlink_list *const);
extern const dlink_list *class_get_list(void);
extern void class_free(struct ClassItem *);
extern void class_init(void);