chiark / gitweb /
publish total amount buffered in an obc
authorian <ian>
Tue, 15 Jul 2008 20:18:57 +0000 (20:18 +0000)
committerian <ian>
Tue, 15 Jul 2008 20:18:57 +0000 (20:18 +0000)
hostside/daemons.h

index 9d1ae8757567dd49a0fd8e8e230cebd748744b2c..ade54c4139e61e810ea646f1bea06d2bca1c079a 100644 (file)
@@ -32,8 +32,10 @@ struct OutBufferChain {
   int limit; /* 0 means obc_init will set a default */
   OutBufferError *error;
   OutBufferEmpty *empty; /* may be 0 */
+  /* set/used by obc_... but may be read by user */
+  int total; /* amount buffered */
   /* set/used by obc_..., oprintf, etc., only */
-  int done_of_head, total;
+  int done_of_head;
   struct { OutBuffer *head, *tail; } obs;
 };