193360723Sopenharmony_ci/*
293360723Sopenharmony_ci * Copyright (c) 2020 Huawei Device Co., Ltd.
393360723Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
493360723Sopenharmony_ci * you may not use this file except in compliance with the License.
593360723Sopenharmony_ci * You may obtain a copy of the License at
693360723Sopenharmony_ci *
793360723Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
893360723Sopenharmony_ci *
993360723Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1093360723Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1193360723Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1293360723Sopenharmony_ci * See the License for the specific language governing permissions and
1393360723Sopenharmony_ci * limitations under the License.
1493360723Sopenharmony_ci */
1593360723Sopenharmony_ci
1693360723Sopenharmony_ci#ifndef OHOS_DMSLITE_FEATURE_H
1793360723Sopenharmony_ci#define OHOS_DMSLITE_FEATURE_H
1893360723Sopenharmony_ci
1993360723Sopenharmony_ci#include "dmsfwk_interface.h"
2093360723Sopenharmony_ci#include "feature.h"
2193360723Sopenharmony_ci
2293360723Sopenharmony_ci#ifdef __cplusplus
2393360723Sopenharmony_ci#if __cplusplus
2493360723Sopenharmony_ciextern "C" {
2593360723Sopenharmony_ci#endif
2693360723Sopenharmony_ci#endif
2793360723Sopenharmony_ci
2893360723Sopenharmony_citypedef struct {
2993360723Sopenharmony_ci    /* as a feature */
3093360723Sopenharmony_ci    INHERIT_FEATURE;
3193360723Sopenharmony_ci    /* implement the dmslite interface */
3293360723Sopenharmony_ci    INHERIT_IUNKNOWNENTRY(DmsProxy);
3393360723Sopenharmony_ci    Identity identity;
3493360723Sopenharmony_ci} DmsLite;
3593360723Sopenharmony_ci
3693360723Sopenharmony_cienum DmsMsgType {
3793360723Sopenharmony_ci    DEVICE_ONLINE = 0x01,
3893360723Sopenharmony_ci    DEVICE_OFFLINE,
3993360723Sopenharmony_ci    SESSION_OPEN,
4093360723Sopenharmony_ci    SESSION_CLOSE,
4193360723Sopenharmony_ci    BYTES_RECEIVED,
4293360723Sopenharmony_ci    START_REMOTE_ABILITY,
4393360723Sopenharmony_ci    START_ABILITY_FROM_REMOTE
4493360723Sopenharmony_ci};
4593360723Sopenharmony_ci
4693360723Sopenharmony_ciDmsLite *GetDmsLiteFeature();
4793360723Sopenharmony_ci
4893360723Sopenharmony_ci#ifdef __cplusplus
4993360723Sopenharmony_ci#if __cplusplus
5093360723Sopenharmony_ci}
5193360723Sopenharmony_ci#endif
5293360723Sopenharmony_ci#endif
5393360723Sopenharmony_ci
5493360723Sopenharmony_ci#endif // OHOS_DMSLITE_FEATURE_H
55