It's important that these functions set these flags themselves, otherwise
the callers will always have to do this, and there is no valid reason for
not doing it.
buf->send_max -= len;
if (!buf->send_max && !buf->pipe)
buf->flags |= BF_OUT_EMPTY;
+
+ /* notify that some data was written to the SI from the buffer */
+ buf->flags |= BF_WRITE_PARTIAL;
}
/*
if (buf->l >= buf->max_len)
buf->flags |= BF_FULL;
+ /* notify that some data was read from the SI into the buffer */
+ buf->flags |= BF_READ_PARTIAL;
return -1;
}