common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / systemservice / logger_service / server / src / loggerservice_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
17 ///////////////////////////////////////////////////////////////////////////////
18 /// \ingroup  tag_NS_InterfaceunifiedLogCapture
19 /// \brief    Application entry point.
20 ///
21 ///////////////////////////////////////////////////////////////////////////////
22 // System Headers
23 #include <pthread.h>
24 #include <native_service/frameworkunified_dispatcher.h>
25 #include <native_service/frameworkunified_application.h>
26 #include <system_service/ss_system_if.h>
27 #include <loggerservicedebug_loggerservicelog.h>
28 #include <system_service/ss_version.h>
29 #include <native_service/ns_version_if.h>
30 #include <system_service/ss_services.h>
31 #include <cstdlib>
32 #include <iostream>
33
34 CFrameworkunifiedVersion g_FrameworkunifiedVersion(MAJORNO, MINORNO, REVISION);
35
36 FRAMEWORKUNIFIEDLOGPARAM g_FrameworkunifiedLogParams = { FRAMEWORKUNIFIEDLOGOPTIONS, {
37 ZONE_TEXT_10, ZONE_TEXT_11, ZONE_TEXT_12,
38 ZONE_TEXT_13, ZONE_TEXT_14, ZONE_TEXT_15,
39 ZONE_TEXT_16, ZONE_TEXT_17, ZONE_TEXT_18,
40 ZONE_TEXT_19, ZONE_TEXT_20, ZONE_TEXT_21,
41 ZONE_TEXT_22, ZONE_TEXT_23, ZONE_TEXT_24,
42 ZONE_TEXT_25, ZONE_TEXT_26, ZONE_TEXT_27,
43 ZONE_TEXT_28, ZONE_TEXT_29, ZONE_TEXT_30,
44 ZONE_TEXT_31 }, FRAMEWORKUNIFIEDLOGZONES };
45
46 const CHAR AppName[] = SERVICE_LOGGER;
47
48 //////////////////////////////////////////
49 //  Function : main
50 //////////////////////////////////////////
51 int main(int argc, char *argv[]) {
52   EFrameworkunifiedStatus eStatus = eFrameworkunifiedStatusOK;
53   FrameworkunifiedDefaultCallbackHandler cbFuncs;  // LCOV_EXCL_BR_LINE 11:Unexpected branch
54   FRAMEWORKUNIFIED_MAKE_DEFAULT_CALLBACK(cbFuncs);  // LCOV_EXCL_BR_LINE 15: macro
55   FRAMEWORKUNIFIED_SET_ZONES();  // LCOV_EXCL_BR_LINE 15: macro
56
57   eStatus = FrameworkunifiedDispatcherWithArguments(AppName, argc, argv, &cbFuncs);  // LCOV_EXCL_BR_LINE 11:Unexpected branch
58   return eStatus;
59 }  // LCOV_EXCL_BR_LINE 10:the last line