Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
ecdbb633
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
1 年多 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ecdbb633
编写于
10月 18, 2021
作者:
Z
zhong_ning
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix build error
Signed-off-by:
N
zhong_ning
<
zhong_ning@hoperun.com
>
上级
220326bd
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
54 addition
and
16 deletion
+54
-16
services/include/init_jobs.h
services/include/init_jobs.h
+38
-0
services/init/include/init_jobs_internal.h
services/init/include/init_jobs_internal.h
+3
-3
services/init/init_common_cmds.c
services/init/init_common_cmds.c
+1
-1
services/init/init_config.c
services/init/init_config.c
+1
-1
services/init/init_service_manager.c
services/init/init_service_manager.c
+1
-1
services/init/lite/init.c
services/init/lite/init.c
+2
-2
services/init/lite/init_jobs.c
services/init/lite/init_jobs.c
+2
-2
services/init/standard/init_cmds.c
services/init/standard/init_cmds.c
+1
-1
services/init/standard/init_jobs.c
services/init/standard/init_jobs.c
+2
-2
services/test/unittest/common/cmd_func_test.cpp
services/test/unittest/common/cmd_func_test.cpp
+1
-1
services/test/unittest/param/trigger_unittest.cpp
services/test/unittest/param/trigger_unittest.cpp
+2
-2
未找到文件。
services/include/init_jobs.h
0 → 100755
浏览文件 @
ecdbb633
/*
* 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
services/init/include/init_jobs.h
→
services/init/include/init_jobs
_internal
.h
浏览文件 @
ecdbb633
...
...
@@ -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
services/init/init_common_cmds.c
浏览文件 @
ecdbb633
...
...
@@ -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"
...
...
services/init/init_config.c
浏览文件 @
ecdbb633
...
...
@@ -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"
...
...
services/init/init_service_manager.c
浏览文件 @
ecdbb633
...
...
@@ -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"
...
...
services/init/lite/init.c
浏览文件 @
ecdbb633
...
...
@@ -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
}
services/init/lite/init_jobs.c
浏览文件 @
ecdbb633
...
...
@@ -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
}
services/init/standard/init_cmds.c
浏览文件 @
ecdbb633
...
...
@@ -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"
...
...
services/init/standard/init_jobs.c
浏览文件 @
ecdbb633
...
...
@@ -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
}
services/test/unittest/common/cmd_func_test.cpp
浏览文件 @
ecdbb633
...
...
@@ -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"
...
...
services/test/unittest/param/trigger_unittest.cpp
浏览文件 @
ecdbb633
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录