chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f814c0
)
publish total amount buffered in an obc
author
ian
<ian>
Tue, 15 Jul 2008 20:18:57 +0000
(20:18 +0000)
committer
ian
<ian>
Tue, 15 Jul 2008 20:18:57 +0000
(20:18 +0000)
hostside/daemons.h
patch
|
blob
|
history
diff --git
a/hostside/daemons.h
b/hostside/daemons.h
index 9d1ae8757567dd49a0fd8e8e230cebd748744b2c..ade54c4139e61e810ea646f1bea06d2bca1c079a 100644
(file)
--- 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;
};