Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / include / msgq.h
index ae92211096980258e262e8ccef2d3a4c60fdc604..cde01bb227c57a1bb2b9aae551128204f43a5b87 100644 (file)
 struct iovec;
 
 struct Client;
-
-struct MsgCounts {
-  int alloc;
-  int used;
-};
-
-/*
- * These should be considered read-only
- */
-extern struct MsgCounts msgBufCounts;  /* resource count for struct MsgBuf */
-extern struct MsgCounts msgCounts;     /* resource count for struct Msg */
+struct StatDesc;
 
 struct Msg;
 struct MsgBuf;
@@ -92,8 +82,10 @@ extern void msgq_append(struct Client *dest, struct MsgBuf *mb,
                        const char *format, ...);
 extern void msgq_clean(struct MsgBuf *mb);
 extern void msgq_add(struct MsgQ *mq, struct MsgBuf *mb, int prio);
-extern void msgq_count_memory(size_t *msg_alloc, size_t *msg_used,
-                             size_t *msgbuf_alloc, size_t *msgbuf_used);
+extern void msgq_count_memory(struct Client *cptr,
+                              size_t *msg_alloc, size_t *msg_used);
+extern void msgq_histogram(struct Client *cptr, struct StatDesc *sd, int stat,
+                           char *param);
 extern unsigned int msgq_bufleft(struct MsgBuf *mb);
 
 #endif /* INCLUDED_msgq_h */