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