server: Use consistent function names
Put verbs at the end, ie:
console_register_poller -> console_poller_register
console_register_handler -> console_handler_register
Change-Id: I4fa78137ce54a3f15aad87c3371569b084e47094
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/tty-handler.c b/tty-handler.c
index 5e36ee6..523743b 100644
--- a/tty-handler.c
+++ b/tty-handler.c
@@ -199,7 +199,7 @@
if (make_terminal_raw(th, tty_name) != 0)
fprintf(stderr, "Couldn't make %s a raw terminal\n", tty_name);
- th->poller = console_register_poller(console, handler, tty_poll,
+ th->poller = console_poller_register(console, handler, tty_poll,
th->fd, POLLIN, NULL);
th->console = console;
@@ -216,7 +216,7 @@
{
struct tty_handler *th = to_tty_handler(handler);
if (th->poller)
- console_unregister_poller(th->console, th->poller);
+ console_poller_unregister(th->console, th->poller);
close(th->fd);
}
@@ -229,5 +229,5 @@
},
};
-console_register_handler(&tty_handler.handler);
+console_handler_register(&tty_handler.handler);