summaryrefslogtreecommitdiffstats
path: root/tests/qtest/libqos/i2c.h
diff options
context:
space:
mode:
authorAlexander Bulekov2020-02-20 05:11:05 +0100
committerStefan Hajnoczi2020-02-22 09:26:48 +0100
commit39397a9a76eb02ad8a772f43446fdb3344093c35 (patch)
tree94dd083830e07cec1d3e11377aa0f9ad4594b6a9 /tests/qtest/libqos/i2c.h
parentqtest: add in-process incoming command handler (diff)
downloadqemu-39397a9a76eb02ad8a772f43446fdb3344093c35.tar.gz
qemu-39397a9a76eb02ad8a772f43446fdb3344093c35.tar.xz
qemu-39397a9a76eb02ad8a772f43446fdb3344093c35.zip
libqos: rename i2c_send and i2c_recv
The names i2c_send and i2c_recv collide with functions defined in hw/i2c/core.c. This causes an error when linking against libqos and softmmu simultaneously (for example when using qtest inproc). Rename the libqos functions to avoid this. Signed-off-by: Alexander Bulekov <alxndr@bu.edu> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Darren Kenny <darren.kenny@oracle.com> Acked-by: Thomas Huth <thuth@redhat.com> Message-id: 20200220041118.23264-10-alxndr@bu.edu Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qtest/libqos/i2c.h')
-rw-r--r--tests/qtest/libqos/i2c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/libqos/i2c.h b/tests/qtest/libqos/i2c.h
index 945b65b34c..c65f087834 100644
--- a/tests/qtest/libqos/i2c.h
+++ b/tests/qtest/libqos/i2c.h
@@ -47,8 +47,8 @@ struct QI2CDevice {
void *i2c_device_create(void *i2c_bus, QGuestAllocator *alloc, void *addr);
void add_qi2c_address(QOSGraphEdgeOptions *opts, QI2CAddress *addr);
-void i2c_send(QI2CDevice *dev, const uint8_t *buf, uint16_t len);
-void i2c_recv(QI2CDevice *dev, uint8_t *buf, uint16_t len);
+void qi2c_send(QI2CDevice *dev, const uint8_t *buf, uint16_t len);
+void qi2c_recv(QI2CDevice *dev, uint8_t *buf, uint16_t len);
void i2c_read_block(QI2CDevice *dev, uint8_t reg,
uint8_t *buf, uint16_t len);