forked from sony/nmos-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistry_implementation.cpp
25 lines (22 loc) · 1010 Bytes
/
registry_implementation.cpp
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
#include "registry_implementation.h"
#include "nmos/model.h"
#include "nmos/registry_server.h"
#include "nmos/slog.h"
// example registry implementation details
namespace impl
{
// custom logging category for the example registry implementation thread
namespace categories
{
const nmos::category registry_implementation{ "registry_implementation" };
}
}
// This constructs all the callbacks used to integrate the example device-specific underlying implementation
// into the server instance for the NMOS Registry.
nmos::experimental::registry_implementation make_registry_implementation(nmos::registry_model& model, slog::base_gate& gate)
{
return nmos::experimental::registry_implementation()
.on_load_server_certificates(nmos::make_load_server_certificates_handler(model.settings, gate))
.on_load_dh_param(nmos::make_load_dh_param_handler(model.settings, gate))
.on_load_ca_certificates(nmos::make_load_ca_certificates_handler(model.settings, gate));
}