提交 ecdbb633 编写于 作者: Z zhong_ning

fix build error

Signed-off-by: Nzhong_ning <zhong_ning@hoperun.com>
上级 220326bd
/*
* Copyright (c) 2020-2021 Huawei Device Co., Ltd.
* 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.
*/
#ifndef BASE_STARTUP_INITLITE_JOBS_H
#define BASE_STARTUP_INITLITE_JOBS_H
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
#define MAX_JOB_NAME_LEN 64
// one job, could have many cmd lines
typedef struct {
char name[MAX_JOB_NAME_LEN + 1];
CmdLines *cmdLines;
} Job;
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif // BASE_STARTUP_INITLITE_JOBS_H
......@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef BASE_STARTUP_INITLITE_JOBS_H
#define BASE_STARTUP_INITLITE_JOBS_H
#ifndef BASE_STARTUP_INITLITE_JOBS_INTERNAL_H
#define BASE_STARTUP_INITLITE_JOBS_INTERNAL_H
#include "cJSON.h"
#include "init_cmds.h"
......@@ -52,4 +52,4 @@ void ReadConfig(void);
#endif
#endif
#endif // BASE_STARTUP_INITLITE_JOBS_H
#endif // BASE_STARTUP_INITLITE_JOBS_INTERNAL_H
......@@ -32,7 +32,7 @@
#include <unistd.h>
#include "init.h"
#include "init_jobs.h"
#include "init_jobs_internal.h"
#include "init_log.h"
#include "init_service_manager.h"
#include "init_utils.h"
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
#include "init.h"
#include "init_jobs.h"
#include "init_jobs_internal.h"
#include "init_log.h"
#include "init_service_manager.h"
#include "init_utils.h"
......
......@@ -25,7 +25,7 @@
#include "cJSON.h"
#include "init.h"
#include "init_jobs.h"
#include "init_jobs_internal.h"
#include "init_log.h"
#include "init_service_socket.h"
#include "init_utils.h"
......
......@@ -14,7 +14,7 @@
*/
#include "init.h"
#include "init_log.h"
#include "init_jobs.h"
#include "init_jobs_internal.h"
#ifndef __LINUX__
#include "init_stage.h"
#endif
......@@ -81,4 +81,4 @@ void SystemRun(void)
// pause only returns -1, no need to process the return value.
(void)pause();
}
}
\ No newline at end of file
}
......@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "init_jobs.h"
#include "init_jobs_internal.h"
#include <stdio.h>
#include <string.h>
......@@ -160,4 +160,4 @@ void ReleaseAllJobs(void)
free(g_jobs);
g_jobs = NULL;
g_jobCnt = 0;
}
\ No newline at end of file
}
......@@ -34,7 +34,7 @@
#include <linux/module.h>
#include "fs_manager/fs_manager.h"
#include "init.h"
#include "init_jobs.h"
#include "init_jobs_internal.h"
#include "init_log.h"
#include "init_param.h"
#include "init_service_manager.h"
......
......@@ -13,10 +13,10 @@
* limitations under the License.
*/
#include "init_jobs.h"
#include "init_jobs_internal.h"
#include "init_param.h"
void ParseAllJobs(const cJSON *fileRoot)
{
ParseTriggerConfig(fileRoot);
}
\ No newline at end of file
}
......@@ -22,7 +22,7 @@
#include "cJSON.h"
#include "init_cmds.h"
#include "init_jobs.h"
#include "init_jobs_internal.h"
#include "init_service_manager.h"
#include "securec.h"
#include "gtest/gtest.h"
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
#include "init_jobs.h"
#include "init_jobs_internal.h"
#include "init_param.h"
#include "init_unittest.h"
#include "init_utils.h"
......@@ -592,4 +592,4 @@ HWTEST_F(TriggerUnitTest, TestRunClient, TestSize.Level0)
TriggerUnitTest test;
int ret = test.TestRunClient();
EXPECT_EQ(ret, 0);
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册