Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Appspawn Lite
提交
1d4a72ad
S
Startup Appspawn Lite
项目概览
OpenHarmony
/
Startup Appspawn Lite
8 个月 前同步成功
通知
4
Star
43
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Appspawn Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1d4a72ad
编写于
9月 19, 2020
作者:
G
Gymee
提交者:
openharmony_ci
9月 19, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
!3 [Lightweight PR]: remove redundant extern "C" in .c file
Merge pull request !3 from Gymee/N/A
上级
a0a535a0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
3 addition
and
51 deletion
+3
-51
src/appspawn_adapter.c
src/appspawn_adapter.c
+0
-12
src/appspawn_message.c
src/appspawn_message.c
+1
-13
src/appspawn_process.c
src/appspawn_process.c
+1
-13
src/appspawn_service.c
src/appspawn_service.c
+1
-13
未找到文件。
src/appspawn_adapter.c
浏览文件 @
1d4a72ad
...
...
@@ -16,12 +16,6 @@
#include <stdio.h>
#include <sys/prctl.h>
#ifdef __cplusplus
#if __cplusplus
extern
"C"
{
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
int
KeepCapability
()
{
#ifdef __LINUX__
...
...
@@ -32,9 +26,3 @@ int KeepCapability()
#endif
return
0
;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
src/appspawn_message.c
浏览文件 @
1d4a72ad
...
...
@@ -22,12 +22,6 @@
#include "ohos_errno.h"
#include "securec.h"
#ifdef __cplusplus
#if __cplusplus
extern
"C"
{
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
static
const
size_t
MAX_BUNDLE_NAME_LEN
=
127
;
static
const
size_t
MIN_BUNDLE_NAME_LEN
=
7
;
static
const
size_t
MAX_SHARED_LIB_PATH_LEN
=
2048
;
...
...
@@ -144,10 +138,4 @@ int SplitMessage(const char* msg, unsigned int msgLen, MessageSt* msgSt)
return
EC_PROTOCOL
;
}
return
EC_SUCCESS
;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
}
\ No newline at end of file
src/appspawn_process.c
浏览文件 @
1d4a72ad
...
...
@@ -23,12 +23,6 @@
#include "log.h"
#include "securec.h"
#ifdef __cplusplus
#if __cplusplus
extern
"C"
{
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
#define DEFAULT_UMASK 022
#define CAP_NUM 2
#define ABILITY_EXE_FILE_FULL_PATH "/bin/abilityMain"
...
...
@@ -174,10 +168,4 @@ pid_t CreateProcess(const MessageSt* msgSt)
free
(
envStr
);
return
newPID
;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
}
\ No newline at end of file
src/appspawn_service.c
浏览文件 @
1d4a72ad
...
...
@@ -26,12 +26,6 @@
#include "samgr_lite.h"
#include "service.h"
#ifdef __cplusplus
#if __cplusplus
extern
"C"
{
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
static
const
int
INVALID_PID
=
-
1
;
typedef
struct
AppSpawnFeatureApi
{
...
...
@@ -159,10 +153,4 @@ void AppSpawnInit(void)
HILOG_INFO
(
HILOG_MODULE_HIVIEW
,
"[appspawn] register featureapi succeed."
);
}
SYSEX_SERVICE_INIT
(
AppSpawnInit
);
#ifdef __cplusplus
#if __cplusplus
}
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
SYSEX_SERVICE_INIT
(
AppSpawnInit
);
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录