Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
communication_ipc
提交
df5748c3
C
communication_ipc
项目概览
OpenHarmony
/
communication_ipc
大约 1 年 前同步成功
通知
20
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
communication_ipc
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
df5748c3
编写于
3月 23, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 23, 2023
浏览文件
操作
浏览文件
下载
差异文件
!619 style: Modify the format to remove extra spaces
Merge pull request !619 from Yanying/master
上级
088b4909
016f4e2f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
example/rust_test/service/src/lib.rs
example/rust_test/service/src/lib.rs
+1
-1
interfaces/innerkits/rust/src/ashmem.rs
interfaces/innerkits/rust/src/ashmem.rs
+1
-1
interfaces/innerkits/rust/src/ipc/remote_obj/death_recipient.rs
...aces/innerkits/rust/src/ipc/remote_obj/death_recipient.rs
+1
-1
interfaces/innerkits/rust/src/ipc/remote_stub.rs
interfaces/innerkits/rust/src/ipc/remote_stub.rs
+1
-1
interfaces/innerkits/rust/src/process.rs
interfaces/innerkits/rust/src/process.rs
+3
-3
ipc/native/test/unittest/rust/service/src/lib.rs
ipc/native/test/unittest/rust/service/src/lib.rs
+1
-1
未找到文件。
example/rust_test/service/src/lib.rs
浏览文件 @
df5748c3
...
...
@@ -83,7 +83,7 @@ impl TryFrom<u32> for ICalcCode {
}
}
/// Function between proxy and stub of ICalcService
/// Function between proxy and stub of ICalcService
pub
trait
ICalc
:
IRemoteBroker
{
/// Calc add num1 + num2
fn
add
(
&
self
,
num1
:
i32
,
num2
:
i32
)
->
IpcResult
<
i32
>
;
...
...
interfaces/innerkits/rust/src/ashmem.rs
浏览文件 @
df5748c3
...
...
@@ -161,7 +161,7 @@ impl Ashmem {
// SAFETY: Rust Ashmem always hold a valid native CAshmem.
ipc_binding
::
ReadFromCAshmem
(
self
.as_inner
(),
size
,
offset
)
};
if
raw_ptr
.is_null
()
{
if
raw_ptr
.is_null
()
{
Err
(
IpcStatusCode
::
Failed
)
}
else
{
Ok
(
RawData
::
new
(
raw_ptr
,
size
as
u32
))
...
...
interfaces/innerkits/rust/src/ipc/remote_obj/death_recipient.rs
浏览文件 @
df5748c3
...
...
@@ -23,7 +23,7 @@ const LOG_LABEL: HiLogLabel = HiLogLabel {
tag
:
"RustDeathRecipient"
};
/// This type represent a rust DeathRecipient which like C++ DethRecipient.
/// This type represent a rust DeathRecipient which like C++ DethRecipient.
#[repr(C)]
pub
struct
DeathRecipient
{
native
:
*
mut
CDeathRecipient
,
...
...
interfaces/innerkits/rust/src/ipc/remote_stub.rs
浏览文件 @
df5748c3
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
use
crate
::{
ipc_binding
,
IRemoteStub
,
IRemoteBroker
,
RemoteObj
,
BorrowedMsgParcel
,
};
use
crate
::{
ipc_binding
,
IRemoteStub
,
IRemoteBroker
,
RemoteObj
,
BorrowedMsgParcel
};
use
crate
::
ipc_binding
::{
CRemoteObject
,
CParcel
};
use
std
::
ffi
::{
c_void
,
CString
,
c_char
};
use
std
::
ops
::{
Deref
};
...
...
interfaces/innerkits/rust/src/process.rs
浏览文件 @
df5748c3
...
...
@@ -17,7 +17,7 @@ use crate::{
ipc_binding
,
MsgParcel
,
RemoteObj
,
IRemoteObj
,
InterfaceToken
,
String16
,
IpcResult
,
IpcStatusCode
,
parse_status_code
,
};
use
crate
::
parcel
::{
vec_to_string
,
allocate_vec_with_buffer
,
};
use
crate
::
parcel
::{
vec_to_string
,
allocate_vec_with_buffer
};
use
std
::
ffi
::{
CString
,
c_char
,
c_void
};
use
hilog_rust
::{
info
,
hilog
,
HiLogLabel
,
LogType
};
...
...
@@ -164,7 +164,7 @@ pub fn set_calling_identity(identity: String) -> bool
/// get local device id
#[inline]
pub
fn
get_local_device_id
()
->
IpcResult
<
String
>
pub
fn
get_local_device_id
()
->
IpcResult
<
String
>
{
let
mut
vec
:
Option
<
Vec
<
u8
>>
=
None
;
let
ok_status
=
unsafe
{
...
...
@@ -204,7 +204,7 @@ pub fn get_calling_device_id() -> IpcResult<String>
/// reset calling identity
#[inline]
pub
fn
reset_calling_identity
()
->
IpcResult
<
String
>
pub
fn
reset_calling_identity
()
->
IpcResult
<
String
>
{
let
mut
vec
:
Option
<
Vec
<
u8
>>
=
None
;
let
ok_status
=
unsafe
{
...
...
ipc/native/test/unittest/rust/service/src/lib.rs
浏览文件 @
df5748c3
...
...
@@ -84,7 +84,7 @@ impl TryFrom<u32> for ITestCode {
}
}
/// Function between proxy and stub of ITestService
/// Function between proxy and stub of ITestService
pub
trait
ITest
:
IRemoteBroker
{
/// Test sync transaction
fn
test_sync_transaction
(
&
self
,
value
:
i32
,
delay_time
:
i32
)
->
IpcResult
<
i32
>
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录