diff options
Diffstat (limited to 'libs/libgui/msg.c')
-rw-r--r-- | libs/libgui/msg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/libgui/msg.c b/libs/libgui/msg.c index eda4c34..a8da87c 100644 --- a/libs/libgui/msg.c +++ b/libs/libgui/msg.c @@ -10,14 +10,14 @@ res msg_connect_bus(const char *bus, u32 *conn) { - res ret = io_control(IO_BUS, IOCTL_BUS_CONNECT_BUS, bus, conn); + res ret = dev_control(DEV_BUS, DEVCTL_BUS_CONNECT_BUS, bus, conn); /* assert(ret == EOK && *conn); */ return ret; } res msg_connect_conn(u32 conn) { - res ret = io_control(IO_BUS, IOCTL_BUS_CONNECT_CONN, conn); + res ret = dev_control(DEV_BUS, DEVCTL_BUS_CONNECT_CONN, conn); /* assert(ret == EOK); */ return ret; } @@ -28,14 +28,14 @@ res msg_send(enum message_type type, void *data, u32 size) struct message_header *header = data; header->magic = MSG_MAGIC; header->type = type; - res ret = io_write(IO_BUS, (u8 *)data + sizeof(struct bus_header), 0, size); + res ret = dev_write(DEV_BUS, (u8 *)data + sizeof(struct bus_header), 0, size); /* assert(ret >= EOK); */ return ret; } res msg_receive(void *buf, u32 size) { - res ret = io_read(IO_BUS, buf, 0, size); + res ret = dev_read(DEV_BUS, buf, 0, size); struct message_header *header = buf; if (header->magic == MSG_MAGIC) return ret; |