Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / include / msgq.h
index a66e3fc6020e40356fdaca8b6680cadc5331e9c2..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;
@@ -83,7 +73,6 @@ struct MsgQ {
  */
 extern void msgq_init(struct MsgQ *mq);
 extern void msgq_delete(struct MsgQ *mq, unsigned int length);
-extern const char *msgq_map(const struct MsgQ *mq, unsigned int *length_p);
 extern int msgq_mapiov(const struct MsgQ *mq, struct iovec *iov, int count,
                       unsigned int *len);
 extern struct MsgBuf *msgq_make(struct Client *dest, const char *format, ...);
@@ -93,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 */