chiark / gitweb /
hostside: more length for bavarian
[trains.git] / hostside / daemons.h
index 9d1ae8757567dd49a0fd8e8e230cebd748744b2c..1c1fa0f4d526e19c928b1f1a0375843449c67d4a 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; /* -1 = empty and fileevent not registered with liboop */
   struct { OutBuffer *head, *tail; } obs;
 };