Add managed services
[profile/ivi/common-api-runtime.git] / src / CommonAPI / ServicePublisher.cpp
1 /* Copyright (C) 2013 BMW Group
2  * Author: Manfred Bathelt (manfred.bathelt@bmw.de)
3  * Author: Juergen Gehring (juergen.gehring@bmw.de)
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "ServicePublisher.h"
8 #include "Stub.h"
9 #include "Factory.h"
10
11 namespace CommonAPI {
12
13 bool ServicePublisher::registerService(const std::shared_ptr<StubBase>& stubBase,
14                                        const char* interfaceId,
15                                        const std::string& participantId,
16                                        const std::string& serviceName,
17                                        const std::string& domain,
18                                        const std::shared_ptr<Factory>& factory) {
19     return factory->registerAdapter(stubBase, interfaceId, participantId, serviceName, domain);
20 }
21
22 } // namespace CommonAPI