From: Romain Forlot Date: Fri, 10 Feb 2017 13:50:59 +0000 (+0000) Subject: Initialize CanBus_Handler X-Git-Tag: 5.0.2~688 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=c09c4392f2cefb927a11de3fb768ef61c3b748a7;p=apps%2Fagl-service-can-low-level.git Initialize CanBus_Handler Also added licence Change-Id: I629624186f720ca4fa9b7a4f91d014e0bc02b0db Signed-off-by: Romain Forlot --- diff --git a/low-can-binding.cpp b/low-can-binding.cpp index 017a90a1..53517a60 100644 --- a/low-can-binding.cpp +++ b/low-can-binding.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2015, 2016 "IoT.bzh" + * Author "Romain Forlot" + * Author "Loic Collignon" + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include @@ -289,8 +305,9 @@ int afbBindingV1ServiceInit(struct afb_service service) /* Open JSON conf file */ /* Open CAN socket */ + CanBus CanBus_handler; CanBus_handler.open(); CanBus_handler.start_threads(); return connect_to_event_loop(CanBus_handler); -} +} \ No newline at end of file