From 97482563a228a68a5340ec02ac15846773dada22 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 15 Jul 2008 20:18:57 +0000 Subject: [PATCH] publish total amount buffered in an obc --- hostside/daemons.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hostside/daemons.h b/hostside/daemons.h index 9d1ae87..ade54c4 100644 --- a/hostside/daemons.h +++ b/hostside/daemons.h @@ -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; }; -- 2.30.2