]> xenbits.xensource.com Git - libvirt.git/commitdiff
virNet{Client,Server}*Stream: Update comment
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Apr 2016 14:44:27 +0000 (16:44 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 21 Apr 2016 14:29:41 +0000 (16:29 +0200)
After 434de30da545aea137 the status values are prefixed VIR_NET_
rather than REMOTE_.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/rpc/virnetclient.c
src/rpc/virnetserverprogram.c

index c68da6da28a0c3c05f1e42995d13248a9fd55825..781e74cbe08cd4d1e7072f7536f03a6c73e7765e 100644 (file)
@@ -1063,9 +1063,9 @@ static int virNetClientCallDispatchStream(virNetClientPtr client)
     VIR_DEBUG("Found call %p", thecall);
 
     /* Status is either
-     *   - REMOTE_OK - no payload for streams
-     *   - REMOTE_ERROR - followed by a remote_error struct
-     *   - REMOTE_CONTINUE - followed by a raw data packet
+     *   - VIR_NET_OK - no payload for streams
+     *   - VIR_NET_ERROR - followed by a remote_error struct
+     *   - VIR_NET_CONTINUE - followed by a raw data packet
      */
     switch (client->msg.header.status) {
     case VIR_NET_CONTINUE: {
index 311e3441791ccf6e2e1488c115a69317f17c11c7..d1597f43813e4bb02c145859024f577d7ff313db 100644 (file)
@@ -525,9 +525,9 @@ int virNetServerProgramSendStreamData(virNetServerProgramPtr prog,
     msg->header.serial = serial;
     /*
      * NB
-     *   data != NULL + len > 0    => REMOTE_CONTINUE   (Sending back data)
-     *   data != NULL + len == 0   => REMOTE_CONTINUE   (Sending read EOF)
-     *   data == NULL              => REMOTE_OK         (Sending finish handshake confirmation)
+     *   data != NULL + len > 0    => VIR_NET_CONTINUE   (Sending back data)
+     *   data != NULL + len == 0   => VIR_NET_CONTINUE   (Sending read EOF)
+     *   data == NULL              => VIR_NET_OK         (Sending finish handshake confirmation)
      */
     msg->header.status = data ? VIR_NET_CONTINUE : VIR_NET_OK;