15ba71b47Sopenharmony_ci// Copyright (C) 2024 Huawei Device Co., Ltd. 25ba71b47Sopenharmony_ci// Licensed under the Apache License, Version 2.0 (the "License"); 35ba71b47Sopenharmony_ci// you may not use this file except in compliance with the License. 45ba71b47Sopenharmony_ci// You may obtain a copy of the License at 55ba71b47Sopenharmony_ci// 65ba71b47Sopenharmony_ci// http://www.apache.org/licenses/LICENSE-2.0 75ba71b47Sopenharmony_ci// 85ba71b47Sopenharmony_ci// Unless required by applicable law or agreed to in writing, software 95ba71b47Sopenharmony_ci// distributed under the License is distributed on an "AS IS" BASIS, 105ba71b47Sopenharmony_ci// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115ba71b47Sopenharmony_ci// See the License for the specific language governing permissions and 125ba71b47Sopenharmony_ci// limitations under the License. 135ba71b47Sopenharmony_ci 145ba71b47Sopenharmony_ci#![allow(missing_docs, unused)] 155ba71b47Sopenharmony_ci 165ba71b47Sopenharmony_ciuse std::ffi::{c_char, CString}; 175ba71b47Sopenharmony_ci 185ba71b47Sopenharmony_ciuse hilog_rust::{debug, hilog, info}; 195ba71b47Sopenharmony_ciuse ipc::parcel::{MsgOption, MsgParcel}; 205ba71b47Sopenharmony_ciuse ipc::remote::RemoteStub; 215ba71b47Sopenharmony_ciuse samgr::manage::SystemAbilityManager; 225ba71b47Sopenharmony_ci 235ba71b47Sopenharmony_ciconst LOG_LABEL: hilog_rust::HiLogLabel = hilog_rust::HiLogLabel { 245ba71b47Sopenharmony_ci log_type: hilog_rust::LogType::LogCore, 255ba71b47Sopenharmony_ci domain: 0xD001810, 265ba71b47Sopenharmony_ci tag: "SamgrRust", 275ba71b47Sopenharmony_ci}; 285ba71b47Sopenharmony_ci 295ba71b47Sopenharmony_cistruct Request; 305ba71b47Sopenharmony_ci 315ba71b47Sopenharmony_ciimpl RemoteStub for Request { 325ba71b47Sopenharmony_ci fn on_remote_request( 335ba71b47Sopenharmony_ci &self, 345ba71b47Sopenharmony_ci code: u32, 355ba71b47Sopenharmony_ci data: &mut ipc::parcel::MsgParcel, 365ba71b47Sopenharmony_ci reply: &mut ipc::parcel::MsgParcel, 375ba71b47Sopenharmony_ci ) -> i32 { 385ba71b47Sopenharmony_ci debug!(LOG_LABEL, "ReqeustStub On Remote"); 395ba71b47Sopenharmony_ci 1 405ba71b47Sopenharmony_ci } 415ba71b47Sopenharmony_ci} 425ba71b47Sopenharmony_ci 435ba71b47Sopenharmony_cifn main() { 445ba71b47Sopenharmony_ci use samgr::definition::DOWNLOAD_SERVICE_ID; 455ba71b47Sopenharmony_ci use samgr::manage::SystemAbilityManager; 465ba71b47Sopenharmony_ci} 47