summaryrefslogtreecommitdiff
path: root/implementation/service_discovery/src/runtime.cpp
blob: d642cf16bd95c9135daf31034f2f0d47e6bcb04c (plain)
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
// Copyright (C) 2014 BMW Group
// Author: Lutz Bichler (lutz.bichler@bmw.de)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#include "../include/runtime_impl.hpp"
#include "../../configuration/include/internal.hpp"

vsomeip::sd::runtime * VSOMEIP_SD_RUNTIME_SYMBOL;

static void init_vsomeip_sd() __attribute__((constructor));
static void init_vsomeip_sd() {
	VSOMEIP_SD_RUNTIME_SYMBOL = vsomeip::sd::runtime::get();
}

namespace vsomeip {
namespace sd {

runtime * runtime::get() {
	return runtime_impl::get();
}

} // namespace sd
} // namespace vsomeip