summaryrefslogtreecommitdiff
path: root/src/CommonAPI/ProxyManager.cpp
blob: d369fbb5fe6c5bbfd6d47bd7bb6780356791b849 (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
// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// 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 <CommonAPI/ProxyManager.hpp>
#include <CommonAPI/Runtime.hpp>

namespace CommonAPI {

std::shared_ptr<Proxy>
ProxyManager::createProxy(
        const std::string &_domain, const std::string &_interface, const std::string &_instance,
        const ConnectionId_t &_connection) const {
    return Runtime::get()->createProxy(_domain, _interface, _instance, _connection);
}

std::shared_ptr<Proxy>
ProxyManager::createProxy(
        const std::string &_domain, const std::string &_interface, const std::string &_instance,
        std::shared_ptr<MainLoopContext> _context) const {
    return Runtime::get()->createProxy(_domain, _interface, _instance, _context);
}

} // namespace CommonAPI