2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __CAPI_TELEPHONY_MODEM_H__
18 #define __CAPI_TELEPHONY_MODEM_H__
21 * @file telephony_modem.h
22 * @brief This file contains modem APIs.
25 #include "telephony_common.h"
32 * @addtogroup CAPI_TELEPHONY_INFORMATION_MODEM
37 * @brief Gets the IMEI (International Mobile Station Equipment Identity) of a mobile phone.
38 * @details The IMEI number is used by a GSM network to identify valid devices
39 * and therefore can be used for stopping a stolen phone from accessing that network.
43 * @privilege %http://tizen.org/privilege/telephony
45 * @remarks You must release @c imei using free().
47 * @param[in] handle The handle from telephony_init()
48 * @param[out] imei The International Mobile Station Equipment Identity
50 * @return @c 0 on success,
51 * otherwise a negative error value
53 * @retval #TELEPHONY_ERROR_NONE Successful
54 * @retval #TELEPHONY_ERROR_INVALID_PARAMETER Invalid parameter
55 * @retval #TELEPHONY_ERROR_PERMISSION_DENIED Permission denied
56 * @retval #TELEPHONY_ERROR_NOT_SUPPORTED Not supported
57 * @retval #TELEPHONY_ERROR_OPERATION_FAILED Operation failed
59 int telephony_modem_get_imei(telephony_h handle, char **imei);
69 #endif // __CAPI_TELEPHONY_MODEM_H__