virNetClientStreamRecvPacket: Introduce @flags argument

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2016-05-20 13:04:29 +02:00
parent c331f56b93
commit 486656f168
3 changed files with 11 additions and 5 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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,