summaryrefslogtreecommitdiff
path: root/vdagent-virtio-port.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-03-23 19:26:24 +0100
committerHans de Goede <hdegoede@redhat.com>2011-03-23 20:22:07 +0100
commit18830fa3c31d5c62e5cb1a36d501c0cc9815dbb0 (patch)
tree9fc9ccd95d509aa6edf02225650b2f0d6ddb8c6e /vdagent-virtio-port.h
parent0ec3622a1b26f8d8048e614d37ac9e8bf4276cbe (diff)
vdagent-virtio-port: rename port parameter to vport
The chunks being send over the vdagent virtio port are multiplexed and contain a member inside there header called port, rename all port function parameters to vport, since they refer to a vdagent-virtio-port, and not a port in the meaning it has inside of a chunk.
Diffstat (limited to 'vdagent-virtio-port.h')
-rw-r--r--vdagent-virtio-port.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/vdagent-virtio-port.h b/vdagent-virtio-port.h
index 4589700..1242e94 100644
--- a/vdagent-virtio-port.h
+++ b/vdagent-virtio-port.h
@@ -35,7 +35,7 @@ struct vdagent_virtio_port;
to close the port can be indicated be returning -1 from the callback,
in other cases return 0. */
typedef int (*vdagent_virtio_port_read_callback)(
- struct vdagent_virtio_port *port,
+ struct vdagent_virtio_port *vport,
VDIChunkHeader *chunk_header,
VDAgentMessage *message_header,
uint8_t *data);
@@ -58,21 +58,21 @@ struct vdagent_virtio_port *vdagent_virtio_port_create(const char *portname,
FILE *errfile);
/* The contents of portp will be made NULL */
-void vdagent_virtio_port_destroy(struct vdagent_virtio_port **portp);
+void vdagent_virtio_port_destroy(struct vdagent_virtio_port **vportp);
/* Given a vdagent_virtio_port fill the fd_sets pointed to by readfds and
writefds for select() usage.
Return value: value of the highest fd + 1 */
-int vdagent_virtio_port_fill_fds(struct vdagent_virtio_port *port,
+int vdagent_virtio_port_fill_fds(struct vdagent_virtio_port *vport,
fd_set *readfds, fd_set *writefds);
/* Handle any events flagged by select for the given vdagent_virtio_port.
Note the port may be destroyed (when disconnected) by this call
in this case the disconnect calllback will get called before the
destruction and the contents of connp will be made NULL */
-void vdagent_virtio_port_handle_fds(struct vdagent_virtio_port **portp,
+void vdagent_virtio_port_handle_fds(struct vdagent_virtio_port **vportp,
fd_set *readfds, fd_set *writefds);
@@ -80,13 +80,13 @@ void vdagent_virtio_port_handle_fds(struct vdagent_virtio_port **portp,
Returns 0 on success -1 on error (only happens when malloc fails) */
int vdagent_virtio_port_write(
- struct vdagent_virtio_port *port,
+ struct vdagent_virtio_port *vport,
uint32_t port_nr,
uint32_t message_type,
uint32_t message_opaque,
const uint8_t *data,
uint32_t data_size);
-void vdagent_virtio_port_flush(struct vdagent_virtio_port **portp);
+void vdagent_virtio_port_flush(struct vdagent_virtio_port **vportp);
#endif