remote_ui: Move handler registration to remote_ui.c

Also don't defer attach_ui handling
This commit is contained in:
Thiago de Arruda
2014-12-13 09:20:00 -03:00
parent 748920d505
commit 9b30abcecb
2 changed files with 26 additions and 26 deletions

View File

@@ -103,14 +103,7 @@ void channel_init(void)
}
if (abstract_ui) {
// Add handler for "attach_ui"
remote_ui_init();
String method = cstr_as_string("attach_ui");
MsgpackRpcRequestHandler handler = {.fn = remote_ui_attach, .defer = true};
msgpack_rpc_add_method_handler(method, handler);
method = cstr_as_string("detach_ui");
handler.fn = remote_ui_detach;
msgpack_rpc_add_method_handler(method, handler);
}
}