summaryrefslogtreecommitdiff
path: root/CommonAPI-Examples/E04PhoneBook/src/E04PhoneBookService.cpp
diff options
context:
space:
mode:
authorJürgen Gehring <juergen.gehring@bmw.de>2015-07-28 08:50:57 -0700
committerJürgen Gehring <juergen.gehring@bmw.de>2015-07-28 08:50:57 -0700
commit336db577dc057b7a13aeaf8eb2c777a26a7b607a (patch)
tree014ba65d235fd73364cc9544b5e69bdd09f7301e /CommonAPI-Examples/E04PhoneBook/src/E04PhoneBookService.cpp
parent9b91fba4b4008007847f32630cbe160287f291fd (diff)
downloadgenivi-common-api-runtime-3.1.3.tar.gz
CommonAPI-Tools 3.1.33.1.3
Diffstat (limited to 'CommonAPI-Examples/E04PhoneBook/src/E04PhoneBookService.cpp')
-rw-r--r--CommonAPI-Examples/E04PhoneBook/src/E04PhoneBookService.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/CommonAPI-Examples/E04PhoneBook/src/E04PhoneBookService.cpp b/CommonAPI-Examples/E04PhoneBook/src/E04PhoneBookService.cpp
index bece39c..020209b 100644
--- a/CommonAPI-Examples/E04PhoneBook/src/E04PhoneBookService.cpp
+++ b/CommonAPI-Examples/E04PhoneBook/src/E04PhoneBookService.cpp
@@ -19,10 +19,12 @@ int main() {
const std::string &domain = "local";
const std::string &instance = "commonapi.examples.PhoneBook";
+ const std::string &connection = "service-sample";
+
std::shared_ptr<E04PhoneBookStubImpl> myService = std::make_shared<E04PhoneBookStubImpl>();
myService->setPhoneBookAttribute(myService->createTestPhoneBook());
- bool successfullyRegistered = runtime->registerService(domain, instance, myService);
+ bool successfullyRegistered = runtime->registerService(domain, instance, myService, connection);
while (!successfullyRegistered) {
std::cout << "Register Service failed, trying again in 100 milliseconds..." << std::endl;