• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef TLS_CONSTANT_H
17 #define TLS_CONSTANT_H
18 
19 namespace OHOS {
20 namespace NetStack {
21 constexpr int PARAM_NONE = 0;
22 constexpr int PARAM_JUST_OPTIONS = 1;
23 constexpr int PARAM_JUST_CALLBACK = 1;
24 constexpr int PARAM_DOUBLE_OPTIONS = 2;
25 constexpr int PARAM_TRIPLE_OPTIONS = 3;
26 constexpr int PARAM_OPTIONS_AND_CALLBACK = 2;
27 constexpr int PARAM_DOUBLE_OPTIONS_AND_CALLBACK = 3;
28 constexpr int PARAM_TRIPLE_OPTIONS_AND_CALLBACK = 4;
29 
30 enum {
31     ARG_NUM_0,
32     ARG_NUM_1,
33     ARG_NUM_2,
34 };
35 
36 enum {
37     ARG_INDEX_0 = 0,
38     ARG_INDEX_1,
39     ARG_INDEX_2,
40     ARG_INDEX_3,
41 };
42 } // namespace NetStack
43 } // namespace OHOS
44 #endif // TLS_CONSTANT_H
45