-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathxserver_uv.cpp
More file actions
50 lines (39 loc) · 1.54 KB
/
xserver_uv.cpp
File metadata and controls
50 lines (39 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/***************************************************************************
* Copyright (c) 2024, Isabel Paredes *
* Copyright (c) 2024, QuantStack *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/
#include <memory>
#include <uvw.hpp>
#include "xuv_runner.hpp"
#include "xeus-uv/xhook_base.hpp"
#include "xeus-uv/xserver_uv.hpp"
#include "xeus-zmq/xcontrol_default_runner.hpp"
#include "xeus-zmq/xserver_zmq_split.hpp"
#include "xeus/xserver.hpp"
#include "xeus/xeus_context.hpp"
#include "xeus/xkernel_configuration.hpp"
#include "nlohmann/json.hpp"
namespace nl = nlohmann;
namespace xeus
{
std::unique_ptr<xserver>
make_xserver_uv(xcontext& context,
const xconfiguration& config,
nl::json::error_handler_t eh,
std::shared_ptr<uvw::loop> loop,
std::unique_ptr<xhook_base> hook)
{
return make_xserver_shell
(
context,
config,
eh,
std::make_unique<xcontrol_default_runner>(),
std::make_unique<xuv_runner>(std::move(loop), std::move(hook))
);
}
} // namespace xeus