Files
zjucx 301bd737f5 modify ams sence world
Signed-off-by: zjucx <chengxiang4@huawei.com>
2021-12-21 10:37:43 +08:00

79 lines
2.3 KiB
C
Executable File

/*
* Copyright (c) 2020 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 OHOS_DMSFWK_INTERFACE_H
#define OHOS_DMSFWK_INTERFACE_H
#include "ability_info.h"
#include "iunknown.h"
#include "want.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
#define DISTRIBUTED_SCHEDULE_SERVICE "dtbschedsrv"
#define DMSLITE_FEATURE "dmslite"
typedef enum {
DMS_EC_SUCCESS = 0,
DMS_EC_START_ABILITY_SYNC_SUCCESS = 1,
DMS_EC_START_ABILITY_ASYNC_SUCCESS = 2,
DMS_EC_PARSE_TLV_FAILURE = 3,
DMS_EC_UNKNOWN_COMMAND_ID = 4,
DMS_EC_GET_BMS_FAILURE = 5,
DMS_EC_GET_BUNDLEINFO_FAILURE = 6,
DMS_EC_CHECK_PERMISSION_FAILURE = 7,
DMS_EC_GET_ABILITYMS_FAILURE = 8,
DMS_EC_REGISTE_IPC_CALLBACK_FAILURE = 9,
DMS_EC_FILL_WANT_FAILURE = 10,
DMS_EC_START_ABILITY_SYNC_FAILURE = 11,
DMS_EC_START_ABILITY_ASYNC_FAILURE = 12,
DMS_EC_FAILURE = 13,
DMS_EC_INVALID_PARAMETER = 14,
DMS_REC_UNKNOWN_COMMAND_ID = 29360300,
DMS_REC_PARSER_TLV_FAIL = 29360301,
DMS_REC_PERMISSION_DENIED = 29360302,
DMS_REC_OPEN_SESSION_FAIL = 29360303,
DMS_REC_DEVICE_BUSY = 29360304,
DMS_REC_PACKET_MARSHALL_FAIL = 29360305,
DMS_REC_PACKET_UNMARSHALL_FAIL = 29360306,
DMS_REC_FREEINSTALL_FAIL = 29360307,
} DmsLiteCommonErrorCode;
typedef struct {
void (*OnResultCallback)(const void *data, int32_t ret);
} IDmsListener;
typedef struct {
int32_t uid;
char* bundleName;
} CallerInfo;
typedef struct {
INHERIT_IUNKNOWN;
int32_t (*StartRemoteAbility)(const Want *want, const CallerInfo *callerInfo,
const IDmsListener *callback);
} DmsProxy;
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif // OHOS_DMSFWK_INTERFACE_H