提交 486656f1 编写于 作者: M Michal Privoznik

virNetClientStreamRecvPacket: Introduce @flags argument

Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 c331f56b
......@@ -5665,7 +5665,8 @@ remoteStreamRecvFlags(virStreamPtr st,
priv->client,
data,
nbytes,
(st->flags & VIR_STREAM_NONBLOCK));
(st->flags & VIR_STREAM_NONBLOCK),
flags);
VIR_DEBUG("Done %d", rv);
......
......@@ -457,13 +457,17 @@ int virNetClientStreamRecvPacket(virNetClientStreamPtr st,
virNetClientPtr client,
char *data,
size_t nbytes,
bool nonblock)
bool nonblock,
unsigned int flags)
{
int rv = -1;
size_t want;
VIR_DEBUG("st=%p client=%p data=%p nbytes=%zu nonblock=%d",
st, client, data, nbytes, nonblock);
VIR_DEBUG("st=%p client=%p data=%p nbytes=%zu nonblock=%d flags=%x",
st, client, data, nbytes, nonblock, flags);
virCheckFlags(0, -1);
virObjectLock(st);
if (!st->rx && !st->incomingEOF) {
virNetMessagePtr msg;
......
......@@ -59,7 +59,8 @@ int virNetClientStreamRecvPacket(virNetClientStreamPtr st,
virNetClientPtr client,
char *data,
size_t nbytes,
bool nonblock);
bool nonblock,
unsigned int flags);
int virNetClientStreamSendHole(virNetClientStreamPtr st,
virNetClientPtr client,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册