• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 /**
17  * @addtogroup Telephony
18  * @{
19  *
20  * @brief Provides C interface for the telephony cellular data.
21  *
22  * @since 13
23  */
24 
25 /**
26  * @file telephony_data.h
27  *
28  * @brief Provides C interface for the telephony cellular data.
29  *
30  * @kit TelephonyKit
31  * @syscap SystemCapability.Telephony.CellularData
32  * @library libtelephony_data.so
33  * @since 13
34  */
35 
36 #ifndef NATIVE_TELEPHONY_DATA_API_H
37 #define NATIVE_TELEPHONY_DATA_API_H
38 
39 #include <stdint.h>
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 /**
46  * @brief Obtains the default cellular data slot id.
47  *
48  * @return the default cellular data slot id (0 for slot 1, 1 for slot 2).
49  * @syscap SystemCapability.Telephony.CellularData
50  * @since 13
51  */
52 int32_t OH_Telephony_GetDefaultCellularDataSlotId(void);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif // NATIVE_TELEPHONY_DATA_API_H
59 /** @} */
60