1bae4d13cSopenharmony_ci/*
2bae4d13cSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
3bae4d13cSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4bae4d13cSopenharmony_ci * you may not use this file except in compliance with the License.
5bae4d13cSopenharmony_ci * You may obtain a copy of the License at
6bae4d13cSopenharmony_ci *
7bae4d13cSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8bae4d13cSopenharmony_ci *
9bae4d13cSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10bae4d13cSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11bae4d13cSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12bae4d13cSopenharmony_ci * See the License for the specific language governing permissions and
13bae4d13cSopenharmony_ci * limitations under the License.
14bae4d13cSopenharmony_ci */
15bae4d13cSopenharmony_ci
16bae4d13cSopenharmony_ci#ifndef PROTO_H
17bae4d13cSopenharmony_ci#define PROTO_H
18bae4d13cSopenharmony_ci
19bae4d13cSopenharmony_ci#include <sys/types.h>
20bae4d13cSopenharmony_ci
21bae4d13cSopenharmony_cinamespace OHOS {
22bae4d13cSopenharmony_cinamespace Sensors {
23bae4d13cSopenharmony_cistatic constexpr size_t SEND_RETRY_LIMIT = 32;
24bae4d13cSopenharmony_cistatic constexpr size_t SEND_RETRY_SLEEP_TIME = 10000;
25bae4d13cSopenharmony_cistatic constexpr size_t MAX_VECTOR_SIZE = 10;
26bae4d13cSopenharmony_cistatic constexpr size_t MAX_SESSON_ALARM = 100;
27bae4d13cSopenharmony_cistatic constexpr size_t MAX_RECV_LIMIT = 13;
28bae4d13cSopenharmony_cistatic constexpr size_t MAX_STREAM_BUF_SIZE = 256;
29bae4d13cSopenharmony_cistatic constexpr size_t MAX_PACKET_BUF_SIZE = 256;
30bae4d13cSopenharmony_cistatic constexpr size_t ONCE_PROCESS_NETPACKET_LIMIT = 100;
31bae4d13cSopenharmony_ci
32bae4d13cSopenharmony_cienum class MessageId : int32_t {
33bae4d13cSopenharmony_ci    INVALID,
34bae4d13cSopenharmony_ci    ACTIVE_INFO,
35bae4d13cSopenharmony_ci};
36bae4d13cSopenharmony_ci} // namespace Sensors
37bae4d13cSopenharmony_ci} // namespace OHOS
38bae4d13cSopenharmony_ci#endif // PROTO_H