[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/14] char: rename qemu_chr_get_msgfd() -> qemu_chr
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 12/14] char: rename qemu_chr_get_msgfd() -> qemu_chr_fe_get_msgfd() |
Date: |
Mon, 15 Aug 2011 11:17:39 -0500 |
Signed-off-by: Anthony Liguori <address@hidden>
---
hw/ivshmem.c | 2 +-
monitor.c | 2 +-
qemu-char.c | 2 +-
qemu-char.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/ivshmem.c b/hw/ivshmem.c
index 42a5877..1176387 100644
--- a/hw/ivshmem.c
+++ b/hw/ivshmem.c
@@ -401,7 +401,7 @@ static void ivshmem_read(void *opaque, const uint8_t * buf,
int flags)
memcpy(&incoming_posn, buf, sizeof(long));
/* pick off s->server_chr->msgfd and store it, posn should accompany msg */
- tmp_fd = qemu_chr_get_msgfd(s->server_chr);
+ tmp_fd = qemu_chr_fe_get_msgfd(s->server_chr);
IVSHMEM_DPRINTF("posn is %ld, fd is %d\n", incoming_posn, tmp_fd);
/* make sure we have enough space for this guest */
diff --git a/monitor.c b/monitor.c
index e7f41eb..7d5dd6f 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2758,7 +2758,7 @@ static int do_getfd(Monitor *mon, const QDict *qdict,
QObject **ret_data)
mon_fd_t *monfd;
int fd;
- fd = qemu_chr_get_msgfd(mon->chr);
+ fd = qemu_chr_fe_get_msgfd(mon->chr);
if (fd == -1) {
qerror_report(QERR_FD_NOT_SUPPLIED);
return -1;
diff --git a/qemu-char.c b/qemu-char.c
index 70349fd..9af6c58 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -163,7 +163,7 @@ void qemu_chr_be_write(CharDriverState *s, uint8_t *buf,
int len)
s->chr_read(s->handler_opaque, buf, len);
}
-int qemu_chr_get_msgfd(CharDriverState *s)
+int qemu_chr_fe_get_msgfd(CharDriverState *s)
{
return s->get_msgfd ? s->get_msgfd(s) : -1;
}
diff --git a/qemu-char.h b/qemu-char.h
index 555b5f1..abd9cbd 100644
--- a/qemu-char.h
+++ b/qemu-char.h
@@ -98,7 +98,7 @@ int qemu_chr_fe_ioctl(CharDriverState *s, int cmd, void *arg);
void qemu_chr_generic_open(CharDriverState *s);
int qemu_chr_be_can_write(CharDriverState *s);
void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len);
-int qemu_chr_get_msgfd(CharDriverState *s);
+int qemu_chr_fe_get_msgfd(CharDriverState *s);
void qemu_chr_accept_input(CharDriverState *s);
int qemu_chr_add_client(CharDriverState *s, int fd);
void qemu_chr_info_print(Monitor *mon, const QObject *ret_data);
--
1.7.4.1
- [Qemu-devel] [PATCH 03/14] char: rename qemu_chr_read() -> qemu_chr_be_write(), (continued)
- [Qemu-devel] [PATCH 03/14] char: rename qemu_chr_read() -> qemu_chr_be_write(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 08/14] char: rename qemu_chr_set_echo() -> qemu_chr_fe_set_echo(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 02/14] char: rename qemu_chr_printf() -> qemu_chr_fe_printf(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 07/14] char: qemu_chr_ioctl() -> qemu_chr_fe_ioctl(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 05/14] char: rename qemu_chr_guest_open() -> qemu_chr_fe_open(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 11/14] char: rename qemu_chr_close() -> qemu_chr_delete(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 10/14] char: qemu_chr_open_opts() -> qemu_chr_new_from_opts(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 13/14] char: remove qemu_chr_send_event(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 09/14] char: rename qemu_chr_open() -> qemu_chr_new(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 14/14] char: document the functions that will be the public interface, Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 12/14] char: rename qemu_chr_get_msgfd() -> qemu_chr_fe_get_msgfd(),
Anthony Liguori <=
- Re: [Qemu-devel] [PATCH 00/14] char: flow control part I, Amit Shah, 2011/08/16
- Re: [Qemu-devel] [PATCH 00/14] char: flow control part I, Anthony Liguori, 2011/08/22