Init basesystem source codes.
[staging/basesystem.git] / vehicleservice / positioning / server / src / nsfw / ps_main.cpp
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #include <native_service/frameworkunified_dispatcher.h>
17 #include <native_service/frameworkunified_application.h>
18 #include <peripheral_service/ps_services.h>
19 #include <native_service/ns_version_if.h>
20 #include <system_service/ss_system_if.h>
21 #include <vehicle_service/positioning_base_library.h>
22 #include <cstdlib>
23 #include <iostream>
24 #include "vehicle_version.h"
25
26 const CHAR kAppName[PS_APPNAME_MAX] = "Positioning";
27
28 CFrameworkunifiedVersion g_FrameworkunifiedVersion(MAJORNO,    // NOLINT(readability/nolint)
29                          MINORNO,    // NOLINT(readability/nolint)
30                          REVISION);
31
32 /* FRAMEWORKUNIFIEDLOGPARAM : g_FrameworkunifiedLogParams :  definition for LOG */
33 FRAMEWORKUNIFIEDLOGPARAM g_FrameworkunifiedLogParams = {    // NOLINT(readability/nolint)
34     FRAMEWORKUNIFIEDLOGOPTIONS,
35     {
36         ZONE_TEXT_10, ZONE_TEXT_11, ZONE_TEXT_12,
37         ZONE_TEXT_13, ZONE_TEXT_14, ZONE_TEXT_15,
38         ZONE_TEXT_16, ZONE_TEXT_17, ZONE_TEXT_18,
39         ZONE_TEXT_19, ZONE_TEXT_20, ZONE_TEXT_21,
40         ZONE_TEXT_22, ZONE_TEXT_23, ZONE_TEXT_24,
41         ZONE_TEXT_25, ZONE_TEXT_26, ZONE_TEXT_27,
42         ZONE_TEXT_28, ZONE_TEXT_29, ZONE_TEXT_30,
43         ZONE_TEXT_31,
44         ZONE_POS_SYS_IN, ZONE_POS_GPS_IN, ZONE_POS_CMD_IN, ZONE_POS_NAV_IN
45     },
46     FRAMEWORKUNIFIEDLOGZONES
47 };
48
49 /* Function : main */
50 int main(int argc, char *argv[]) {
51     EFrameworkunifiedStatus e_status = eFrameworkunifiedStatusOK;
52     FrameworkunifiedDefaultCallbackHandler cb_funcs;
53     FRAMEWORKUNIFIED_MAKE_DEFAULT_CALLBACK(cb_funcs);
54
55     FRAMEWORKUNIFIED_SET_ZONES();
56     e_status = FrameworkunifiedDispatcher(kAppName, &cb_funcs);
57
58     return e_status;
59 }  // LCOV_EXCL_BR_LINE 10:The final line