mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
virNetClientStreamRecvPacket: Introduce @flags argument
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c331f56b93
commit
486656f168
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user