Sync from SPIN branch 97/47297/2 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150903.053603 accepted/tizen/tv/20150903.053715 accepted/tizen/wearable/20150903.053836 submit/tizen/20150903.021205 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorWootak Jung <wootak.jung@samsung.com>
Wed, 2 Sep 2015 05:31:37 +0000 (14:31 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 2 Sep 2015 05:43:41 +0000 (22:43 -0700)
- Fix 64bit build error

Change-Id: Iea7a7335e60f0d45ac20a6df6a69ab8b9419157a

52 files changed:
CMakeLists.txt
LICENSE
doc/libtapi_doc.h
include/ITapiCall.h
include/ITapiModem.h
include/ITapiNetText.h
include/ITapiNetwork.h
include/ITapiOem.h [new file with mode: 0644]
include/ITapiPhonebook.h
include/ITapiSat.h
include/ITapiSim.h
include/ITapiSs.h
include/TelCall.h
include/TelMisc.h
include/TelNetwork.h
include/TelOem.h [new file with mode: 0644]
include/TelPower.h
include/TelSat.h
include/TelSatEnvelope.h
include/TelSatObj.h
include/TelSatProactvCmd.h
include/TelSim.h
include/TelSms.h
include/TelSs.h
include/tapi_common.h
include/tapi_event.h
include/tapi_type.h
libtapi.manifest
packaging/libtapi.spec
src/common.h
src/tapi_call.c
src/tapi_common.c
src/tapi_modem.c
src/tapi_network.c
src/tapi_oem.c [new file with mode: 0644]
src/tapi_phonebook.c
src/tapi_sap.c
src/tapi_sat.c
src/tapi_sim.c
src/tapi_sms.c
src/tapi_ss.c
test_src/CMakeLists.txt
test_src/call.c
test_src/main.c
test_src/modem.c
test_src/oem.c [new file with mode: 0644]
test_src/oem.h [new file with mode: 0644]
test_src/sat.c
test_src/sim.c
test_src/sms.c
test_src/sms_util.c
test_src/sms_util_cdma.c

index ffd27c0dc5912628bd4f1f095e38b882a7cf58a3..6c2ee33ca483593cd6a8fa6829a2f5ab33bad515 100644 (file)
@@ -8,7 +8,7 @@ SET(INCLUDEDIR "\${prefix}/include")
 
 # Set required packages
 INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED glib-2.0 gio-2.0 gthread-2.0 dlog)
+pkg_check_modules(pkgs REQUIRED glib-2.0 gio-2.0 gthread-2.0 dlog vconf)
 
 FOREACH(flag ${pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
@@ -33,16 +33,17 @@ MESSAGE(${CMAKE_EXE_LINKER_FLAGS})
 
 ### Build ###
 SET(SRCS
-               src/tapi_common.c
-               src/tapi_network.c
-               src/tapi_sim.c
-               src/tapi_phonebook.c
-               src/tapi_sap.c
-               src/tapi_call.c
-               src/tapi_ss.c
-               src/tapi_sms.c
-               src/tapi_sat.c
-               src/tapi_modem.c
+       src/tapi_common.c
+       src/tapi_network.c
+       src/tapi_sim.c
+       src/tapi_phonebook.c
+       src/tapi_sap.c
+       src/tapi_call.c
+       src/tapi_ss.c
+       src/tapi_sms.c
+       src/tapi_sat.c
+       src/tapi_modem.c
+       src/tapi_oem.c
 )
 
 ADD_LIBRARY(SLP-tapi SHARED ${SRCS})
diff --git a/LICENSE b/LICENSE
index 9c13a9b68d4e48276d504b9caed8dff81b5547e6..a06208b6e9bcdc2812cb99f0454e3abc9b40d868 100644 (file)
--- a/LICENSE
+++ b/LICENSE
-Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
-\r
-                                 Apache License\r
-                           Version 2.0, January 2004\r
-                        http://www.apache.org/licenses/\r
-\r
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\r
-\r
-   1. Definitions.\r
-\r
-      "License" shall mean the terms and conditions for use, reproduction,\r
-      and distribution as defined by Sections 1 through 9 of this document.\r
-\r
-      "Licensor" shall mean the copyright owner or entity authorized by\r
-      the copyright owner that is granting the License.\r
-\r
-      "Legal Entity" shall mean the union of the acting entity and all\r
-      other entities that control, are controlled by, or are under common\r
-      control with that entity. For the purposes of this definition,\r
-      "control" means (i) the power, direct or indirect, to cause the\r
-      direction or management of such entity, whether by contract or\r
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the\r
-      outstanding shares, or (iii) beneficial ownership of such entity.\r
-\r
-      "You" (or "Your") shall mean an individual or Legal Entity\r
-      exercising permissions granted by this License.\r
-\r
-      "Source" form shall mean the preferred form for making modifications,\r
-      including but not limited to software source code, documentation\r
-      source, and configuration files.\r
-\r
-      "Object" form shall mean any form resulting from mechanical\r
-      transformation or translation of a Source form, including but\r
-      not limited to compiled object code, generated documentation,\r
-      and conversions to other media types.\r
-\r
-      "Work" shall mean the work of authorship, whether in Source or\r
-      Object form, made available under the License, as indicated by a\r
-      copyright notice that is included in or attached to the work\r
-      (an example is provided in the Appendix below).\r
-\r
-      "Derivative Works" shall mean any work, whether in Source or Object\r
-      form, that is based on (or derived from) the Work and for which the\r
-      editorial revisions, annotations, elaborations, or other modifications\r
-      represent, as a whole, an original work of authorship. For the purposes\r
-      of this License, Derivative Works shall not include works that remain\r
-      separable from, or merely link (or bind by name) to the interfaces of,\r
-      the Work and Derivative Works thereof.\r
-\r
-      "Contribution" shall mean any work of authorship, including\r
-      the original version of the Work and any modifications or additions\r
-      to that Work or Derivative Works thereof, that is intentionally\r
-      submitted to Licensor for inclusion in the Work by the copyright owner\r
-      or by an individual or Legal Entity authorized to submit on behalf of\r
-      the copyright owner. For the purposes of this definition, "submitted"\r
-      means any form of electronic, verbal, or written communication sent\r
-      to the Licensor or its representatives, including but not limited to\r
-      communication on electronic mailing lists, source code control systems,\r
-      and issue tracking systems that are managed by, or on behalf of, the\r
-      Licensor for the purpose of discussing and improving the Work, but\r
-      excluding communication that is conspicuously marked or otherwise\r
-      designated in writing by the copyright owner as "Not a Contribution."\r
-\r
-      "Contributor" shall mean Licensor and any individual or Legal Entity\r
-      on behalf of whom a Contribution has been received by Licensor and\r
-      subsequently incorporated within the Work.\r
-\r
-   2. Grant of Copyright License. Subject to the terms and conditions of\r
-      this License, each Contributor hereby grants to You a perpetual,\r
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r
-      copyright license to reproduce, prepare Derivative Works of,\r
-      publicly display, publicly perform, sublicense, and distribute the\r
-      Work and such Derivative Works in Source or Object form.\r
-\r
-   3. Grant of Patent License. Subject to the terms and conditions of\r
-      this License, each Contributor hereby grants to You a perpetual,\r
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r
-      (except as stated in this section) patent license to make, have made,\r
-      use, offer to sell, sell, import, and otherwise transfer the Work,\r
-      where such license applies only to those patent claims licensable\r
-      by such Contributor that are necessarily infringed by their\r
-      Contribution(s) alone or by combination of their Contribution(s)\r
-      with the Work to which such Contribution(s) was submitted. If You\r
-      institute patent litigation against any entity (including a\r
-      cross-claim or counterclaim in a lawsuit) alleging that the Work\r
-      or a Contribution incorporated within the Work constitutes direct\r
-      or contributory patent infringement, then any patent licenses\r
-      granted to You under this License for that Work shall terminate\r
-      as of the date such litigation is filed.\r
-\r
-   4. Redistribution. You may reproduce and distribute copies of the\r
-      Work or Derivative Works thereof in any medium, with or without\r
-      modifications, and in Source or Object form, provided that You\r
-      meet the following conditions:\r
-\r
-      (a) You must give any other recipients of the Work or\r
-          Derivative Works a copy of this License; and\r
-\r
-      (b) You must cause any modified files to carry prominent notices\r
-          stating that You changed the files; and\r
-\r
-      (c) You must retain, in the Source form of any Derivative Works\r
-          that You distribute, all copyright, patent, trademark, and\r
-          attribution notices from the Source form of the Work,\r
-          excluding those notices that do not pertain to any part of\r
-          the Derivative Works; and\r
-\r
-      (d) If the Work includes a "NOTICE" text file as part of its\r
-          distribution, then any Derivative Works that You distribute must\r
-          include a readable copy of the attribution notices contained\r
-          within such NOTICE file, excluding those notices that do not\r
-          pertain to any part of the Derivative Works, in at least one\r
-          of the following places: within a NOTICE text file distributed\r
-          as part of the Derivative Works; within the Source form or\r
-          documentation, if provided along with the Derivative Works; or,\r
-          within a display generated by the Derivative Works, if and\r
-          wherever such third-party notices normally appear. The contents\r
-          of the NOTICE file are for informational purposes only and\r
-          do not modify the License. You may add Your own attribution\r
-          notices within Derivative Works that You distribute, alongside\r
-          or as an addendum to the NOTICE text from the Work, provided\r
-          that such additional attribution notices cannot be construed\r
-          as modifying the License.\r
-\r
-      You may add Your own copyright statement to Your modifications and\r
-      may provide additional or different license terms and conditions\r
-      for use, reproduction, or distribution of Your modifications, or\r
-      for any such Derivative Works as a whole, provided Your use,\r
-      reproduction, and distribution of the Work otherwise complies with\r
-      the conditions stated in this License.\r
-\r
-   5. Submission of Contributions. Unless You explicitly state otherwise,\r
-      any Contribution intentionally submitted for inclusion in the Work\r
-      by You to the Licensor shall be under the terms and conditions of\r
-      this License, without any additional terms or conditions.\r
-      Notwithstanding the above, nothing herein shall supersede or modify\r
-      the terms of any separate license agreement you may have executed\r
-      with Licensor regarding such Contributions.\r
-\r
-   6. Trademarks. This License does not grant permission to use the trade\r
-      names, trademarks, service marks, or product names of the Licensor,\r
-      except as required for reasonable and customary use in describing the\r
-      origin of the Work and reproducing the content of the NOTICE file.\r
-\r
-   7. Disclaimer of Warranty. Unless required by applicable law or\r
-      agreed to in writing, Licensor provides the Work (and each\r
-      Contributor provides its Contributions) on an "AS IS" BASIS,\r
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r
-      implied, including, without limitation, any warranties or conditions\r
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\r
-      PARTICULAR PURPOSE. You are solely responsible for determining the\r
-      appropriateness of using or redistributing the Work and assume any\r
-      risks associated with Your exercise of permissions under this License.\r
-\r
-   8. Limitation of Liability. In no event and under no legal theory,\r
-      whether in tort (including negligence), contract, or otherwise,\r
-      unless required by applicable law (such as deliberate and grossly\r
-      negligent acts) or agreed to in writing, shall any Contributor be\r
-      liable to You for damages, including any direct, indirect, special,\r
-      incidental, or consequential damages of any character arising as a\r
-      result of this License or out of the use or inability to use the\r
-      Work (including but not limited to damages for loss of goodwill,\r
-      work stoppage, computer failure or malfunction, or any and all\r
-      other commercial damages or losses), even if such Contributor\r
-      has been advised of the possibility of such damages.\r
-\r
-   9. Accepting Warranty or Additional Liability. While redistributing\r
-      the Work or Derivative Works thereof, You may choose to offer,\r
-      and charge a fee for, acceptance of support, warranty, indemnity,\r
-      or other liability obligations and/or rights consistent with this\r
-      License. However, in accepting such obligations, You may act only\r
-      on Your own behalf and on Your sole responsibility, not on behalf\r
-      of any other Contributor, and only if You agree to indemnify,\r
-      defend, and hold each Contributor harmless for any liability\r
-      incurred by, or claims asserted against, such Contributor by reason\r
-      of your accepting any such warranty or additional liability.\r
-\r
-   END OF TERMS AND CONDITIONS\r
-\r
-   APPENDIX: How to apply the Apache License to your work.\r
-\r
-      To apply the Apache License to your work, attach the following\r
-      boilerplate notice, with the fields enclosed by brackets "[]"\r
-      replaced with your own identifying information. (Don't include\r
-      the brackets!)  The text should be enclosed in the appropriate\r
-      comment syntax for the file format. We also recommend that a\r
-      file or class name and description of purpose be included on the\r
-      same "printed page" as the copyright notice for easier\r
-      identification within third-party archives.\r
-\r
-   Copyright [yyyy] [name of copyright owner]\r
-\r
-   Licensed under the Apache License, Version 2.0 (the "License");\r
-   you may not use this file except in compliance with the License.\r
-   You may obtain a copy of the License at\r
-\r
-       http://www.apache.org/licenses/LICENSE-2.0\r
-\r
-   Unless required by applicable law or agreed to in writing, software\r
-   distributed under the License is distributed on an "AS IS" BASIS,\r
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-   See the License for the specific language governing permissions and\r
-   limitations under the License.\r
-\r
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
index 11a9273223c01d4f6cfcc033d6acaeb90157aafc..ef91cc1b44516080a0346192edd7340275ce3c94 100644 (file)
  * More details on featuring your application can be found from <a href="../org.tizen.mobile.native.appprogramming/html/ide_sdk_tools/feature_element.htm"><b>Feature Element</b>.</a>
  */
 
+/**
+ * @ingroup CAPI_TELEPHONY_SERVICE
+ * @defgroup CAPI_TELEPHONY_SERVICE_OEM OEM Service
+ * @brief
+ *
+ * @section CAPI_TELEPHONY_SERVICE_OEM_HEADER Required Header
+ *   \#include <ITapiOem.h>
+ *
+ * @section CAPI_TELEPHONY_SERVICE_OEM_OVERVIEW Overview
+ * OEM Service APIs allow an application to accomplish the following services:
+ * - Send OEM (proprietary) data to modem
+ * - Receive OEM (proprietary) data to modem (as notification)
+ *
+ * Telephony provides APIs to send OEM (proprietary) data to modem.\n
+ * This service makes it possible for a application to send properitary format of data to modem.\n
+ * The data passed through this API would be by-passed to modem directly.\n
+ * Application can request for either a synchrnous or asynchronous mode of operations.
+ * Telephony provides interface to application receive prorietary data from modem directly.
+ * The data is by-apssed through Telephony framework to applications.\n
+ *
+ * @section CAPI_TELEPHONY_SERVICE_OEM_FEATURE Related Features
+ * This API is related with the following feature:\n
+ * - http://tizen.org/feature/network.telephony
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="../org.tizen.mobile.native.appprogramming/html/ide_sdk_tools/feature_element.htm"><b>Feature Element</b>.</a>
+ */
+
 #endif /* __TIZEN_TELEPHONY_SERVICE_DOC_H__ */
index 8cb696be0efd51ff6d204cb4524c30c0b42dcd90..bac8f18b5d43d408da83dd18ac34b0311a6027c0 100644 (file)
@@ -78,7 +78,7 @@ extern "C"
  * @pre Initialize the Dbus connection with #tel_init.\n
  *      Register the telephony event to be listened with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.
- *
+ * @post callback will be invoked and data is NULL.
  * @see #tel_answer_call #tel_end_call
  */
 int tel_dial_call(TapiHandle *handle, const TelCallDial_t *pParams, tapi_response_cb callback, void *user_data);
@@ -119,7 +119,7 @@ int tel_dial_call(TapiHandle *handle, const TelCallDial_t *pParams, tapi_respons
  *      An event loop runs to listen to events.\n
  *      Call associated with the call handle should be in the #TAPI_CALL_STATE_INCOM state otherwise the API fails and there can be a
  *      a maximum of 1 existing call.
- *
+ * @post callback will be invoked and #TelCallAnswerCnf_t will be stored in data on success case.
  * @see tel_dial_call()
  * @see tel_end_call()
  */
@@ -161,7 +161,7 @@ int tel_answer_call(TapiHandle *handle, unsigned int CallHandle, TelCallAnswerTy
  *      Register the telephony event to be listened with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.\n
  *      The call handle should be valid and there should be an existing call in the active/hold state.
- *
+ * @post callback will be invoked and #TelCallEndCnf_t will be stored in data on success case.
  * @see tel_dial_call()
  * @see tel_answer_call()
  */
@@ -199,7 +199,7 @@ int tel_end_call(TapiHandle *handle, unsigned int CallHandle, TelCallEndType_t E
  *      Register the telephony event to be listened with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.\n
  *      The call identified by the call handle should be in the active state.
- *
+ * @post callback will be invoked and #TelCallHoldCnf_t will be stored in data on success case.
  * @see tel_retrieve_call()
  */
 int tel_hold_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data);
@@ -238,6 +238,7 @@ int tel_hold_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb
  *      Register the telephony event to be listened with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.\n
  *      Call should be in the held state in order to retrieve it into the active state unless no active call is present.
+ * @post callback will be invoked and #TelCallActiveCnf_t will be stored in data on success case.
  */
 int tel_active_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data);
 
@@ -278,6 +279,7 @@ int tel_active_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_c
  * @pre Initialize the Dbus connection with #tel_init.\n
  *      Register the telephony event to be listened with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.
+ * @post callback will be invoked and #TelCallSwapCnf_t will be stored in data on success case.
  */
 int tel_swap_call(TapiHandle *handle, unsigned int CallHandle1, unsigned int CallHandle2, tapi_response_cb callback, void *user_data);
 
@@ -327,6 +329,7 @@ int tel_swap_call(TapiHandle *handle, unsigned int CallHandle1, unsigned int Cal
  *
  * @pre Initialize the Dbus connection with #tel_init.\n
  *      An active call should be present.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_start_call_cont_dtmf(TapiHandle *handle, unsigned char dtmf_digit, tapi_response_cb callback, void *user_data);
 
@@ -374,6 +377,7 @@ int tel_start_call_cont_dtmf(TapiHandle *handle, unsigned char dtmf_digit, tapi_
  * @pre Initialize the Dbus connection with #tel_init.\n
  *      An active call should be present.\n
  *      Start a continuous DTMF request should be sent already.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_stop_call_cont_dtmf(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -415,6 +419,7 @@ int tel_stop_call_cont_dtmf(TapiHandle *handle, tapi_response_cb callback, void
  *
  * @pre Initialize the Dbus connection with #tel_init.\n
  *      An active call should be present.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_send_call_burst_dtmf(TapiHandle *handle, const TelCallBurstDtmf_t *info, tapi_response_cb callback, void *user_data);
 
@@ -454,6 +459,7 @@ int tel_send_call_burst_dtmf(TapiHandle *handle, const TelCallBurstDtmf_t *info,
  *      An event loop runs to listen to events.\n
  *      For a Multiparty call or for joining two calls into conference, there should be one call in the active state and another call
  *      in the held state.
+ * @post callback will be invoked and #TelCallJoinCnf_t will be stored in data on success case.
  *
  * @see tel_split_call()
  */
@@ -498,6 +504,7 @@ int tel_join_call(TapiHandle *handle, unsigned int CallHandle1, unsigned int Cal
  *      The call should be in a multiparty conference call.
  *
  * @post The split call will be the active call and the conference call will be the held call.
+ * @post callback will be invoked and #TelCallSplitCnf_t will be stored in data on success case.
  *
  * @see tel_join_call()
  */
@@ -548,6 +555,7 @@ int tel_split_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb
  *      in the held state.
  *
  * @post When the request has been completed successfully, a call end indication will be sent to both the calls (active and held).
+ * @post callback will be invoked and #TelCallTransferCnf_t will be stored in data on success case.
  */
 int tel_transfer_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data);
 
@@ -580,7 +588,7 @@ int tel_transfer_call(TapiHandle *handle, unsigned int CallHandle, tapi_response
  *
  * @pre Initialize the Dbus connection with #tel_init.
  */
-int tel_get_call_status(TapiHandle *handle, int call_id, TelCallStatus_t *out );
+int tel_get_call_status(TapiHandle *handle, int call_id, TelCallStatus_t *out);
 
 /**
  * @brief Gets the status all of the current call
@@ -593,6 +601,7 @@ int tel_get_call_status(TapiHandle *handle, int call_id, TelCallStatus_t *out );
  * @privlevel public
  * @privilege %http://tizen.org/privilege/telephony
  *
+ * @post TelCallStatusCallback() will be invoked before return of this API as much as the number of call.
  * @see tel_get_call_status()
  */
 int tel_get_call_status_all(TapiHandle *handle, TelCallStatusCallback cb, void *user_data);
@@ -629,6 +638,7 @@ int tel_get_call_status_all(TapiHandle *handle, TelCallStatusCallback cb, void *
  * @pre Initialize the Dbus connection with #tel_init.\n
  *      Register the telephony event to be listened with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_deflect_call(TapiHandle *handle, unsigned int CallHandle, const TelCallDeflectDstInfo_t *deflect_info, tapi_response_cb callback, void *user_data);
 
@@ -660,8 +670,9 @@ int tel_deflect_call(TapiHandle *handle, unsigned int CallHandle, const TelCallD
  * @return The return type (int)
  *         @c 0 indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer Doxygen doc or #TapiResult_t)
+ * @post callback will be invoked and #TelCallGetVolumeInfoResp_t will be stored in data on success case.
  */
-int tel_get_call_volume_info(TapiHandle *handle, TelSoundDevice_t device, TelSoundType_t type, tapi_response_cb callback, void *user_data );
+int tel_get_call_volume_info(TapiHandle *handle, TelSoundDevice_t device, TelSoundType_t type, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sets the call volume.
@@ -689,8 +700,9 @@ int tel_get_call_volume_info(TapiHandle *handle, TelSoundDevice_t device, TelSou
  * @return The return type (int)
  *         @c 0 indicates that the operation has completed successfully,
  *         else it will return failure and an error code (Refer Doxygen doc or #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_set_call_volume_info(TapiHandle *handle, TelCallVolumeInfo_t *info, tapi_response_cb callback, void *user_data );
+int tel_set_call_volume_info(TapiHandle *handle, TelCallVolumeInfo_t *info, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sets the call sound path.
@@ -718,8 +730,9 @@ int tel_set_call_volume_info(TapiHandle *handle, TelCallVolumeInfo_t *info, tapi
  * @return The return type (int)
  *         @c 0 indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer Doxygen doc or #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_set_call_sound_path(TapiHandle *handle, TelCallSoundPathInfo_t *path, tapi_response_cb callback, void *user_data );
+int tel_set_call_sound_path(TapiHandle *handle, TelCallSoundPathInfo_t *path, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sets the call mute state.
@@ -747,8 +760,9 @@ int tel_set_call_sound_path(TapiHandle *handle, TelCallSoundPathInfo_t *path, ta
  * @return The return type (int)
  *         @c 0 indicating that the operation has completed successfully,
  *         else it will return failure and an error code (Refer Doxygen doc or #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_set_call_mute_status(TapiHandle *handle, TelSoundMuteStatus_t mute, TelSoundMutePath_t path, tapi_response_cb callback, void *user_data );
+int tel_set_call_mute_status(TapiHandle *handle, TelSoundMuteStatus_t mute, TelSoundMutePath_t path, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Gets the call mute state.
@@ -774,8 +788,9 @@ int tel_set_call_mute_status(TapiHandle *handle, TelSoundMuteStatus_t mute, TelS
  * @return The return type (int)
  *         @c 0 indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer Doxygen doc or #TapiResult_t)
+ * @post callback will be invoked and #TelCallGetMuteStatusResp_t will be stored in data on success case.
  */
-int tel_get_call_mute_status(TapiHandle *handle, tapi_response_cb callback, void *user_data );
+int tel_get_call_mute_status(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Gets the voice privacy option mode in the phone. (3GPP2 specific)
@@ -805,6 +820,7 @@ int tel_get_call_mute_status(TapiHandle *handle, tapi_response_cb callback, void
  * @pre Initialize the Dbus connection with #tel_init.\n
  *      Register the telephony event to be listened with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.
+ * @post callback will be invoked and #TelCallGetPrivacyModeResp_t will be stored in data on success case.
  */
 int tel_get_call_privacy_mode(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -838,6 +854,7 @@ int tel_get_call_privacy_mode(TapiHandle *handle, tapi_response_cb callback, voi
  * @pre Initialize the Dbus connection with #tel_init.\n
  *      Register the telephony event to be listened with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_call_privacy_mode(TapiHandle *handle, TelCallPrivacyMode_t PrivacyMode, tapi_response_cb callback, void *user_data);
 
@@ -861,15 +878,13 @@ int tel_set_call_privacy_mode(TapiHandle *handle, TelCallPrivacyMode_t PrivacyMo
  * @param [in] user_data
  * - user_data for user specification.
  *
- * @post
- *  - None.
- *
  * @return Return Type (int) \n
  * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
  * - Refer #TapiResult_t for failure and error code
  *
  * @par Prospective Clients:
  * External Apps.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_call_preferred_voice_subscription(TapiHandle *handle, TelCallPreferredVoiceSubs_t preferred_subscription,
        tapi_response_cb callback, void *user_data);
index 74f151d1369d4c91e18b3dce71043fef16da2a13..db9ac92e17b1b27f93bbf563641d9d2a1340b94c 100644 (file)
@@ -56,6 +56,7 @@ extern "C" {
  * @return The return type (int) \n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it provides an error code (Refer #TapiResult_t).
+ * @post callback will be invoked and data is NULL.
  */
 int tel_process_power_command(TapiHandle *handle, tapi_power_phone_cmd_t cmd, tapi_response_cb callback, void *user_data);
 
@@ -79,6 +80,7 @@ int tel_process_power_command(TapiHandle *handle, tapi_power_phone_cmd_t cmd, ta
  * @return The return type (int) \n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully, \n
  *         else it provides an error code (Refer #TapiResult_t).
+ * @post callback will be invoked and #tapi_power_flight_mode_resp_type_t will be stored in result and data is NULL.
  */
 int tel_set_flight_mode(TapiHandle *handle, tapi_power_flight_mode_type_t mode, tapi_response_cb callback, void *user_data);
 
@@ -92,6 +94,8 @@ int tel_set_flight_mode(TapiHandle *handle, tapi_power_flight_mode_type_t mode,
  * @param[in] handle The handle from tel_init()
  * @param[in] callback To register a callback function for result
  * @param[in] user_data The user data for user specification
+ *
+ * @post callback will be invoked and 1(ON) or 0(OFF) will be stored in data on success case.
  */
 int tel_get_flight_mode(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -113,6 +117,7 @@ int tel_get_flight_mode(TapiHandle *handle, tapi_response_cb callback, void *use
  * @return The return type (int) \n
  *         Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation is completed successfully \n
  *         Negative integer : It provides an error code (Refer #TapiResult_t).
+ * @post callback will be invoked and #TelMiscVersionInformation will be stored in data on success case.
  */
 int tel_get_misc_me_version(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -152,6 +157,7 @@ TelMiscVersionInformation *tel_get_misc_me_version_sync(TapiHandle *handle);
  * @return The return type (int) \n
  *         Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation is completed successfully \n
  *         Negative integer : It provides an error code (Refer #TapiResult_t).
+ * @post callback will be invoked and #TelMiscSNInformation will be stored in data on success case.
  */
 int tel_get_misc_me_sn(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -195,6 +201,7 @@ TelMiscSNInformation *tel_get_misc_me_sn_sync(TapiHandle *handle);
  * @return The return type (int) \n
  *         Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation is completed successfully \n
  *         Negative integer : It provides an error code (Refer #TapiResult_t).
+ * @post callback will be invoked and IMEI value(char *) will be stored in data on success case.
  */
 int tel_get_misc_me_imei(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -241,6 +248,7 @@ char *tel_get_misc_me_imei_sync(TapiHandle *handle);
  * @return The return type (int) \n
  *         @c 0 indicates that the operation is completed successfully, \n
  *         else it will return failure and an error code (Refer Doxygen doc or #TapiResult_t).
+ * @post #tapi_power_phone_power_status_t will be stored in result.
  */
 int tel_check_modem_power_status(TapiHandle *handle, int *result);
 
@@ -265,6 +273,7 @@ int tel_check_modem_power_status(TapiHandle *handle, int *result);
  * @return The return type (int) \n
  *         Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation is completed successfully. \n
  *         Negative integer : It provides an error code (Refer #TapiResult_t).
+ * @post callback will be invoked and #TelMiscDeviceInfo_t will be stored in data on success case.
  */
 int tel_get_device_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
index 9cbfe52687c25eda13fb7f48a6f79c559322bd1c..2b27fa7c6f567c715db4acd83eb3169b2d4d6a2f 100644 (file)
@@ -66,8 +66,9 @@ extern "C"
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_send_sms(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage, int bMoreMsgToSend, tapi_response_cb callback, voiduser_data);
+int tel_send_sms(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage, int bMoreMsgToSend, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Reads a message from the SIM card storage.
@@ -86,15 +87,16 @@ int tel_send_sms(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage
  * @remarks Access to this API is limited to in-house applications and Message Framework API(MAPI) is recommended instead.
  *
  * @param[in] handle The handle from tel_init()
- * @param[in] read_index  The index number of the message to be read
+ * @param[in] read_index The index number of the message to be read
  * @param[in] callback To register a callback function for result
  * @param[in] user_data The user data for user specification
  *
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and #TelSmsData_t will be stored in data on success case.
  */
-int tel_read_sms_in_sim(TapiHandle *handle, int read_index, tapi_response_cb callback, voiduser_data);
+int tel_read_sms_in_sim(TapiHandle *handle, int read_index, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Writes a message to the SIM storage area.
@@ -117,8 +119,9 @@ int tel_read_sms_in_sim(TapiHandle *handle, int read_index, tapi_response_cb cal
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and SMS index(int) will be stored in data on success case.
  */
-int tel_write_sms_in_sim(TapiHandle *handle, const TelSmsData_t *pWriteData, tapi_response_cb callback, voiduser_data);
+int tel_write_sms_in_sim(TapiHandle *handle, const TelSmsData_t *pWriteData, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Deletes the message specified by an index (SIM index used when storing the SMS)
@@ -142,8 +145,9 @@ int tel_write_sms_in_sim(TapiHandle *handle, const TelSmsData_t *pWriteData, tap
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and SMS index(int) will be stored in data on success case.
  */
-int tel_delete_sms_in_sim(TapiHandle *handle, int del_index, tapi_response_cb callback, voiduser_data);
+int tel_delete_sms_in_sim(TapiHandle *handle, int del_index, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Retrieves message count information like total record count,
@@ -151,7 +155,7 @@ int tel_delete_sms_in_sim(TapiHandle *handle, int del_index, tapi_response_cb ca
  *
  * @details <b> Sync (or) Async: </b> This is an Asynchronous API.
  *
- * <b> Prospective Clients: </b>  External Apps.
+ * <b> Prospective Clients: </b> External Apps.
  *
  * @since_tizen 2.3
  * @privlevel public
@@ -167,8 +171,9 @@ int tel_delete_sms_in_sim(TapiHandle *handle, int del_index, tapi_response_cb ca
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and #TelSmsStoredMsgCountInfo_t will be stored in data on success case.
  */
-int tel_get_sms_count(TapiHandle *handle, tapi_response_cb callback, voiduser_data);
+int tel_get_sms_count(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sets SMS CB Message Identifiers in the appropriate EF-CBMI/EF-CBMIR file in the (U)SIM.
@@ -200,15 +205,16 @@ int tel_get_sms_count(TapiHandle *handle, tapi_response_cb callback, void* user_
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_set_sms_cb_config(TapiHandle *handle, const TelSmsCbConfig_t *pCBConfig, tapi_response_cb callback, voiduser_data);
+int tel_set_sms_cb_config(TapiHandle *handle, const TelSmsCbConfig_t *pCBConfig, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Retrieves the SMS CB configuration parameters from the EFcbmi file in the SIM.
  *
  * @details <b> Sync (or) Async: </b> This is an Asynchronous API.
  *
- * <b> Prospective Clients: </b>  External Apps.
+ * <b> Prospective Clients: </b> External Apps.
  *
  * @since_tizen 2.3
  * @privlevel public
@@ -223,8 +229,9 @@ int tel_set_sms_cb_config(TapiHandle *handle, const TelSmsCbConfig_t *pCBConfig,
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and #TelSmsCbConfig_t will be stored in data on success case.
  */
-int tel_get_sms_cb_config(TapiHandle *handle, tapi_response_cb callback, voiduser_data);
+int tel_get_sms_cb_config(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Gets the SMS parameters for a particular SMS (sent/received)
@@ -248,8 +255,9 @@ int tel_get_sms_cb_config(TapiHandle *handle, tapi_response_cb callback, void* u
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and #TelSmsParams_t will be stored in data on success case.
  */
-int tel_get_sms_parameters(TapiHandle *handle, int get_index, tapi_response_cb callback, voiduser_data);
+int tel_get_sms_parameters(TapiHandle *handle, int get_index, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sets the short message service header parameters which are used in the origination of MO messages.
@@ -277,8 +285,9 @@ int tel_get_sms_parameters(TapiHandle *handle, int get_index, tapi_response_cb c
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_set_sms_parameters(TapiHandle *handle, const TelSmsParams_t *pSmsSetParameters, tapi_response_cb callback, voiduser_data);
+int tel_set_sms_parameters(TapiHandle *handle, const TelSmsParams_t *pSmsSetParameters, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sends a delivery report for the received incoming SMS to the network.
@@ -304,8 +313,9 @@ int tel_set_sms_parameters(TapiHandle *handle, const TelSmsParams_t *pSmsSetPara
  *         else it will return failure and an error code (Refer #TapiResult_t)
  *
  * @pre The SMS-DELIVER-REPORT message structure should be in the TPDU format as specified by 3GPP TS 23.040 SMS TPDU.
+ * @post callback will be invoked and data is NULL.
  */
-int tel_send_sms_deliver_report(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage, TelSmsResponse_t RPCause, tapi_response_cb callback, voiduser_data);
+int tel_send_sms_deliver_report(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage, TelSmsResponse_t RPCause, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sets SMS Service Centre Address information in order to send the SMS.
@@ -331,8 +341,9 @@ int tel_send_sms_deliver_report(TapiHandle *handle, const TelSmsDatapackageInfo_
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_set_sms_sca(TapiHandle *handle, const TelSmsAddressInfo_t *pSCA, int sca_index, tapi_response_cb callback, voiduser_data);
+int tel_set_sms_sca(TapiHandle *handle, const TelSmsAddressInfo_t *pSCA, int sca_index, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Gets current SMS Service Centre Address information.
@@ -355,8 +366,9 @@ int tel_set_sms_sca(TapiHandle *handle, const TelSmsAddressInfo_t *pSCA, int sca
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and #TelSmsAddressInfo_t will be stored in data on success case.
  */
-int tel_get_sms_sca(TapiHandle *handle, int sca_index, tapi_response_cb callback, voiduser_data);
+int tel_get_sms_sca(TapiHandle *handle, int sca_index, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Informs a modem about the memory status of the PDA (whether FULL or AVAILABLE) so that the modem can inform the network.
@@ -379,8 +391,9 @@ int tel_get_sms_sca(TapiHandle *handle, int sca_index, tapi_response_cb callback
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_set_sms_memory_status(TapiHandle *handle, int memoryStatus, tapi_response_cb callback, voiduser_data);
+int tel_set_sms_memory_status(TapiHandle *handle, int memoryStatus, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sets the message status in the SIM EF.
@@ -404,8 +417,9 @@ int tel_set_sms_memory_status(TapiHandle *handle, int memoryStatus, tapi_respons
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and data is NULL.
  */
-int tel_set_sms_message_status(TapiHandle *handle, int set_index, TelSmsMsgStatus_t msgStatus, tapi_response_cb callback, voiduser_data);
+int tel_set_sms_message_status(TapiHandle *handle, int set_index, TelSmsMsgStatus_t msgStatus, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Gets the count of the SMS parameter records stored in the SIM EF.
@@ -427,8 +441,9 @@ int tel_set_sms_message_status(TapiHandle *handle, int set_index, TelSmsMsgStatu
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post callback will be invoked and Record count(int) will be stored in data on success case.
  */
-int tel_get_sms_parameter_count(TapiHandle *handle, tapi_response_cb callback, voiduser_data);
+int tel_get_sms_parameter_count(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Checks the SMS ready status (whether ready or not).
@@ -447,6 +462,7 @@ int tel_get_sms_parameter_count(TapiHandle *handle, tapi_response_cb callback, v
  * @return The return type (int)
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully,
  *         else it will return failure and an error code (Refer #TapiResult_t)
+ * @post 1(Ready) or 0(Not Ready) will be stored in pReadyStatus.
  */
 int tel_check_sms_device_status(TapiHandle *handle, int *pReadyStatus);
 
index 83dc81d73ab6999e330fb8083535ac7d8ba25e5e..b7593adb24a445d000e4b8a9e3a91e84b6a30cbb 100644 (file)
@@ -64,6 +64,7 @@ extern "C"
  *         Refer #TapiResult_t for failure and an error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_select_network_automatic(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -97,6 +98,7 @@ int tel_select_network_automatic(TapiHandle *handle, tapi_response_cb callback,
  *         Refer #TapiResult_t for failure and an error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_select_network_manual(TapiHandle *handle, const char *plmn, int act, tapi_response_cb callback, void *user_data);
 
@@ -126,7 +128,7 @@ int tel_select_network_manual(TapiHandle *handle, const char *plmn, int act, tap
  *         Refer #TapiResult_t for failure and an error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
- *
+ * @post callback will be invoked and #TelNetworkPlmnList_t will be stored in data on success case.
  * @post In the available network list, the user can select one of the networks successfully.
  */
 int tel_search_network(TapiHandle *handle, tapi_response_cb callback, void *user_data);
@@ -157,6 +159,7 @@ int tel_search_network(TapiHandle *handle, tapi_response_cb callback, void *user
  *         Refer #TapiResult_t for failure and an error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and #TelNetworkSelectionMode_t will be stored in data on success case.
  */
 int tel_get_network_selection_mode(struct tapi_handle *handle, tapi_response_cb callback, void *user_data);
 
@@ -190,6 +193,7 @@ int tel_get_network_selection_mode(struct tapi_handle *handle, tapi_response_cb
  *         Refer #TapiResult_t for failure and an error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_network_preferred_plmn(TapiHandle *handle, TelNetworkPreferredPlmnOp_t operation,
                TelNetworkPreferredPlmnInfo_t *info, tapi_response_cb callback, void *user_data);
@@ -220,6 +224,7 @@ int tel_set_network_preferred_plmn(TapiHandle *handle, TelNetworkPreferredPlmnOp
  *         Refer #TapiResult_t for failure and an error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and #TelNetworkPreferredPlmnList_t will be stored in data on success case.
  */
 int tel_get_network_preferred_plmn(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -243,6 +248,7 @@ int tel_get_network_preferred_plmn(TapiHandle *handle, tapi_response_cb callback
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_cancel_network_manual_search(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -266,6 +272,7 @@ int tel_cancel_network_manual_search(TapiHandle *handle, tapi_response_cb callba
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
+ * @post callback will be invoked and #TelNetworkServing_t will be stored in data on success case.
  */
 int tel_get_network_serving(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -291,6 +298,7 @@ int tel_get_network_serving(TapiHandle *handle, tapi_response_cb callback, void
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS - indicates that the operation is completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_network_mode(TapiHandle *handle, int mode, tapi_response_cb callback, void *user_data);
 
@@ -314,6 +322,14 @@ int tel_set_network_mode(TapiHandle *handle, int mode, tapi_response_cb callback
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
+ * @post callback will be invoked and TAPI_NETWORK_MODE_XXX will be masked in data on success case.
+ * @see #TAPI_NETWORK_MODE_AUTO
+ * @see #TAPI_NETWORK_MODE_GSM
+ * @see #TAPI_NETWORK_MODE_WCDMA
+ * @see #TAPI_NETWORK_MODE_1XRTT
+ * @see #TAPI_NETWORK_MODE_LTE
+ * @see #TAPI_NETWORK_MODE_EVDO
+ * @see #TAPI_NETWORK_MODE_CDMA
  */
 int tel_get_network_mode(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -337,6 +353,7 @@ int tel_get_network_mode(TapiHandle *handle, tapi_response_cb callback, void *us
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
+ * @post callback will be invoked and #TelNetworkNeighboringCellInfo_t will be stored in data on success case.
  */
 int tel_get_network_neighboring_cell_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -362,6 +379,7 @@ int tel_get_network_neighboring_cell_info(TapiHandle *handle, tapi_response_cb c
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_network_emergency_callback_mode(TapiHandle *handle, TelNetworkEmergencyCallbackMode_t mode,
                tapi_response_cb callback, void *user_data);
@@ -388,6 +406,7 @@ int tel_set_network_emergency_callback_mode(TapiHandle *handle, TelNetworkEmerge
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_network_roaming_preference(TapiHandle *handle, TelNetworkPrefNetType_t roam_pref, tapi_response_cb callback, void *user_data);
 
@@ -411,12 +430,17 @@ int tel_set_network_roaming_preference(TapiHandle *handle, TelNetworkPrefNetType
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation is completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
+ * @post callback will be invoked and #TelNetworkPrefNetType_t will be stored in data on success case.
  */
 int tel_get_network_roaming_preference(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sets the Subscription (related to #TapiHandle) as 'default' Data Subscription.
  *
+ * @details <b> Sync (or) Async: </b> This is an Asynchronous API. \n
+ *
+ *          <b> Prospective Clients: </b> External Apps.
+ *
  * @since_tizen 2.3
  * @privlevel platform
  * @privilege %http://tizen.org/privilege/telephony.admin
@@ -427,19 +451,20 @@ int tel_get_network_roaming_preference(TapiHandle *handle, tapi_response_cb call
  *
  * @param[in] user_data The user data for user specification
  *
- * @post None.
- *
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation has completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
- *
- * @par Prospective Clients: External Apps.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_network_default_data_subscription(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Gets the Subscription which is configured as 'default' Data Subscription.
  *
+ * @details <b> Sync (or) Async: </b> This is an Asynchronous API. \n
+ *
+ *          <b> Prospective Clients: </b> External Apps.
+ *
  * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/telephony
@@ -450,19 +475,19 @@ int tel_set_network_default_data_subscription(TapiHandle *handle, tapi_response_
  *             - 'default' Data Subscription.
  *             - Refer #TelNetworkDefaultDataSubs_t for Subscription details.
  *
- * @post None.
- *
  * @return The return type (int)\n
  *         #TAPI_API_SUCCESS indicates that the operation has completed successfully\n
  *         Refer #TapiResult_t for failure and an error code.
- *
- * @par Prospective Clients: External Apps.
  */
 int tel_get_network_default_data_subscription(TapiHandle *handle, TelNetworkDefaultDataSubs_t *default_subscription);
 
 /**
  * @brief This function is called to set the Subscription (related to #TapiHandle) as 'default' Subscription for CS (Voice).
  *
+ * @details <b> Sync (or) Async: </b> This is an Asynchronous API. \n
+ *
+ *          <b> Prospective Clients: </b> External Apps.
+ *
  * @since_tizen 2.3
  * @privlevel platform
  * @privilege %http://tizen.org/privilege/telephony.admin
@@ -476,21 +501,20 @@ int tel_get_network_default_data_subscription(TapiHandle *handle, TelNetworkDefa
  * @param [in] user_data
  * - user_data for user specification.
  *
- * @post
- *  - None.
- *
  * @return Return Type (int) \n
  * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
  * - Refer #TapiResult_t for failure and error code
- *
- * @par Prospective Clients:
- * External Apps.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_network_default_subscription(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief This function is called to get the Subscription which is configured as 'default' Subscription for CS (Voice).
  *
+ * @details <b> Sync (or) Async: </b> This is an Asynchronous API. \n
+ *
+ *          <b> Prospective Clients: </b> External Apps.
+ *
  * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/telephony
@@ -502,15 +526,9 @@ int tel_set_network_default_subscription(TapiHandle *handle, tapi_response_cb ca
  * - 'default' Subscription for CS (Voice).
  * - Refer #TelNetworkDefaultSubs_t for Subscription details
  *
- * @post
- *  - None.
- *
  * @return Return Type (int) \n
  * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
  * - Refer #TapiResult_t for failure and error code
- *
- * @par Prospective Clients:
- * External Apps.
  */
 int tel_get_network_default_subscription(TapiHandle *handle, TelNetworkDefaultSubs_t *default_subscription);
 
diff --git a/include/ITapiOem.h b/include/ITapiOem.h
new file mode 100644 (file)
index 0000000..95ec2b6
--- /dev/null
@@ -0,0 +1,167 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @file ITapiOem.h
+ */
+
+/**
+ * @addtogroup CAPI_TELEPHONY_SERVICE_OEM
+ * @{
+ */
+
+#ifndef _ITAPI_OEM_H_
+#define _ITAPI_OEM_H_
+
+#include <tapi_common.h>
+#include <TelOem.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @brief This function sends oem data directly and getting response as notification.
+ *
+ * @details Access to this API is limited to in-house applications. \n
+ *
+ *          <b> Sync (or) Async: </b> This is a Synchronous API. \n
+ *
+ *          <b> Prospective Clients: </b> External Apps. \n
+ *
+ * @since_tizen 2.4
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/telephony.admin
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] oem_id
+ * - oem_id for user specification.
+ *
+ * @param [in] data
+ * - data for sending.
+ *
+ * @param [in] data_len
+ * - data length for sending.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Refer #TapiResult_t for failure and error code
+ *
+ */
+int tel_send_oem_data(TapiHandle *handle, int oem_id,
+       void *data, unsigned int data_len);
+
+/**
+ * @brief This function sends oem data directly and getting response from TelOemData_t.
+ *
+ * @details Access to this API is limited to in-house applications. \n
+ *
+ *          <b> Sync (or) Async: </b> This is a Synchronous API. \n
+ *
+ *          <b> Prospective Clients: </b> External Apps. \n
+ *
+ * @since_tizen 2.4
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/telephony.admin
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] oem_id
+ * - oem_id for user specification.
+ *
+ * @param [in] data
+ * - data for sending.
+ *
+ * @param [in] data_len
+ * - data length for sending.
+ *
+ * @param [in] outparam
+ * - data for receiving #TelOemData_t.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Refer #TapiResult_t for failure and error code
+ *
+ */
+int tel_send_oem_data_sync(TapiHandle *handle, int oem_id,
+       void *data, unsigned int data_len, TelOemData_t *outparam);
+
+/**
+ * @brief This function sends oem data and gets response from async callback.
+ *
+ * @details Access to this API is limited to in-house applications. \n
+ *
+ *          <b> Sync (or) Async: </b> This is a Asynchronous API. \n
+ *
+ *          <b> Prospective Clients: </b> External Apps. \n
+ *
+ * @since_tizen 2.4
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/telephony.admin
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] oem_id
+ * - oem_id for user specification.
+ *
+ * @param [in] data
+ * - data for sending.
+ *
+ * @param [in] data_len
+ * - data length for sending.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ * Data associated with the response is #TelOemData_t.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Refer #TapiResult_t for failure and error code
+ * @post callback will be invoked and #TelOemData_t will be stored in data on success case.
+ */
+int tel_send_oem_data_async(TapiHandle *handle, int oem_id,
+       void *data, unsigned int data_len, tapi_response_cb callback, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_OEM_H_ */
+
+/**
+ * @}
+ */
index b1c7d25392a95e2fecb1484f0e7fcb4e38887019..63d35ff52134ab634bfd6a89ffde4d4a0f8b56f7 100644 (file)
@@ -99,6 +99,7 @@ int tel_get_sim_pb_init_info(TapiHandle *handle, int *init_completed, TelSimPbLi
  *         Negative integer - It provides an error code (Refer #TapiResult_t).
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and #TelSimPbStorageInfo_t will be stored in data on success case.
  */
 int tel_get_sim_pb_count(TapiHandle *handle, TelSimPbType_t pb_type, tapi_response_cb callback, void *user_data);
 
@@ -135,6 +136,7 @@ int tel_get_sim_pb_count(TapiHandle *handle, TelSimPbType_t pb_type, tapi_respon
  *         Negative integer : It provides an error code (Refer #TapiResult_t).
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and #TelSimPbEntryInfo_t will be stored in data on success case.
  */
 int tel_get_sim_pb_meta_info(TapiHandle *handle, TelSimPbType_t pb_type, tapi_response_cb callback, void *user_data);
 
@@ -168,6 +170,7 @@ int tel_get_sim_pb_meta_info(TapiHandle *handle, TelSimPbType_t pb_type, tapi_re
  *         Negative integer : It provides an error code (Refer #TapiResult_t).
  *
  * @pre Initialize Dbus connection with #tel_init\n
+ * @post callback will be invoked and #TelSimPbCapabilityInfo_t will be stored in data on success case.
  */
 int tel_get_sim_pb_usim_meta_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -206,6 +209,7 @@ int tel_get_sim_pb_usim_meta_info(TapiHandle *handle, tapi_response_cb callback,
  *         Negative integer : It provides an error code (Refer #TapiResult_t)
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and #TelSimPbRecord_t will be stored in data on success case.
  */
 int tel_read_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type, unsigned short pb_index, tapi_response_cb callback, void *user_data);
 
@@ -241,6 +245,7 @@ int tel_read_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type, unsigned
  *         Negative integer : It provides an error code (Refer #TapiResult_t).
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_update_sim_pb_record(TapiHandle *handle, const TelSimPbRecord_t *req_data, tapi_response_cb callback, void *user_data);
 
@@ -279,6 +284,7 @@ int tel_update_sim_pb_record(TapiHandle *handle, const TelSimPbRecord_t *req_dat
  *         Negative integer : (It provides an error code (Refer #TapiResult_t).
  *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_delete_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type, unsigned short pb_index, tapi_response_cb callback, void *user_data);
 
@@ -289,5 +295,5 @@ int tel_delete_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type, unsigne
 #endif /* _ITAPI_PHONEBOOK_H_ */
 
 /**
-* @}
-*/
+ * @}
+ */
index 33a544d760c97aaed134275f6cf19f5ee653a7a8..19767f8df4a731e162a47ea8417aee9883cefeda 100644 (file)
@@ -75,10 +75,10 @@ extern "C"
  *         else it will return failure and an error code (Refer #TapiResult_t).
  *
  * @pre This function is supposed to be called after getting the #TAPI_EVENT_SAT_SETUP_MENU_IND event from the telephony server.
- *
+ * @post callback will be invoked and #TelSatEnvelopeResp_t will be stored in data on success case.
  * @see tel_get_sat_main_menu_info()
  */
-int tel_select_sat_menu(TapiHandle *handle, const TelSatMenuSelectionReqInfo_tpMenuSelect, tapi_response_cb callback, void *user_data);
+int tel_select_sat_menu(TapiHandle *handle, const TelSatMenuSelectionReqInfo_t *pMenuSelect, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Downloads SAT events to the USIM.
@@ -116,8 +116,9 @@ int tel_select_sat_menu(TapiHandle *handle, const TelSatMenuSelectionReqInfo_t*
  *         else it will return failure and an error code (Refer #TapiResult_t).
  *
  * @pre A SET UP EVENT LIST proactive command supplies a set of events to monitor.
+ * @post callback will be invoked and #TelSatEnvelopeResp_t will be stored in data on success case.
  */
-int tel_download_sat_event(TapiHandle *handle, const TelSatEventDownloadReqInfo_t*  pEventData, tapi_response_cb callback, void *user_data);
+int tel_download_sat_event(TapiHandle *handle, const TelSatEventDownloadReqInfo_t *pEventData, tapi_response_cb callback, void *user_data);
 
 /**
  * @brief Sends the UI display status of the alpha identifier of a specific proactive command to the Telephony Server.
index 8ac4b1057f185f06ff3a87c4fc1144153bc35587..1c132db363d38f808183d33294456770e7b703fe 100644 (file)
@@ -166,6 +166,7 @@ int tel_get_sim_ecc(TapiHandle *handle, TelSimEccList_t *ecc);
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimIccIdInfo_t will be stored in data on success case.
  */
 int tel_get_sim_iccid(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -191,6 +192,7 @@ int tel_get_sim_iccid(TapiHandle *handle, tapi_response_cb callback, void *user_
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimLanguagePreferenceCode_t will be stored in data on success case.
  */
 int tel_get_sim_language(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -223,6 +225,7 @@ int tel_get_sim_language(TapiHandle *handle, tapi_response_cb callback, void *us
  *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
  *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_sim_language(TapiHandle *handle, TelSimLanguagePreferenceCode_t language, tapi_response_cb callback, void *user_data);
 
@@ -250,6 +253,7 @@ int tel_set_sim_language(TapiHandle *handle, TelSimLanguagePreferenceCode_t lang
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimCallForwardingResp_t will be stored in data on success case.
  */
 int tel_get_sim_callforwarding_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -279,6 +283,7 @@ int tel_get_sim_callforwarding_info(TapiHandle *handle, tapi_response_cb callbac
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_sim_callforwarding_info(TapiHandle *handle, TelSimCallForwardingReq_t *req_cf, tapi_response_cb callback, void *user_data);
 
@@ -306,6 +311,7 @@ int tel_set_sim_callforwarding_info(TapiHandle *handle, TelSimCallForwardingReq_
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimMessageWaitingResp_t will be stored in data on success case.
  */
 int tel_get_sim_messagewaiting_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -335,6 +341,7 @@ int tel_get_sim_messagewaiting_info(TapiHandle *handle, tapi_response_cb callbac
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_sim_messagewaiting_info(TapiHandle *handle, TelSimMessageWaitingReq_t *req_mw, tapi_response_cb callback, void *user_data);
 
@@ -362,6 +369,7 @@ int tel_set_sim_messagewaiting_info(TapiHandle *handle, TelSimMessageWaitingReq_
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimMailboxList_t will be stored in data on success case.
  */
 int tel_get_sim_mailbox_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -391,6 +399,7 @@ int tel_get_sim_mailbox_info(TapiHandle *handle, tapi_response_cb callback, void
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_sim_mailbox_info(TapiHandle *handle, TelSimMailBoxNumber_t *req_mb, tapi_response_cb callback, void *user_data);
 
@@ -418,6 +427,7 @@ int tel_set_sim_mailbox_info(TapiHandle *handle, TelSimMailBoxNumber_t *req_mb,
  *         Positive integer : it provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimCphsInfo_t will be stored in data on success case.
  */
 int tel_get_sim_cphs_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -445,6 +455,7 @@ int tel_get_sim_cphs_info(TapiHandle *handle, tapi_response_cb callback, void *u
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimServiceTable_t will be stored in data on success case.
  */
 int tel_get_sim_service_table(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -472,6 +483,7 @@ int tel_get_sim_service_table(TapiHandle *handle, tapi_response_cb callback, voi
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimMsisdnList_t will be stored in data on success case.
  */
 int tel_get_sim_msisdn(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -499,6 +511,7 @@ int tel_get_sim_msisdn(TapiHandle *handle, tapi_response_cb callback, void *user
  *         Positive integer : It provides an error code while actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimOplmnwactList_t will be stored in data on success case.
  */
 int tel_get_sim_oplmnwact(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -526,6 +539,7 @@ int tel_get_sim_oplmnwact(TapiHandle *handle, tapi_response_cb callback, void *u
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return value or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimSpn_t will be stored in data on success case.
  */
 int tel_get_sim_spn(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -551,6 +565,7 @@ int tel_get_sim_spn(TapiHandle *handle, tapi_response_cb callback, void *user_da
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimCphsNetName_t will be stored in data on success case.
  */
 int tel_get_sim_cphs_netname(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -583,10 +598,12 @@ int tel_get_sim_cphs_netname(TapiHandle *handle, tapi_response_cb callback, void
  *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
  *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ * @post callback will be invoked and #TelSimAuthenticationResponse_t will be stored in data on success case.
  */
 int tel_req_sim_authentication(TapiHandle *handle, TelSimAuthenticationData_t *authentication_data, tapi_response_cb callback, void *user_data);
 
 /**
+ * @deprecated Deprecated Since 2.4. Use tel_verify_sim_pins().
  * @brief Performs PIN1/PIN2/SIM LOCK verification.
  * @details This function performs PIN verification based on the PIN type passed along with @a pin_data:\n
  *          PIN1 code: The SIM card has its own password to check access permissions.\n
@@ -622,9 +639,50 @@ int tel_req_sim_authentication(TapiHandle *handle, TelSimAuthenticationData_t *a
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre This API is used when #TelSimCardStatus_t is #TAPI_SIM_STATUS_SIM_PIN_REQUIRED or #TAPI_SIM_STATUS_SIM_LOCK_REQUIRED on boot time.
+ * @post callback will be invoked and #TelSimSecResult_t will be stored in data on success case.
  */
 int tel_verifiy_sim_pins(TapiHandle *handle, const TelSimSecPw_t *pin_data, tapi_response_cb callback, void *user_data);
 
+/**
+ * @brief Performs PIN1/PIN2/SIM LOCK verification.
+ * @details This function performs PIN verification based on the PIN type passed along with @a pin_data:\n
+ *          PIN1 code: The SIM card has its own password to check access permissions.\n
+ *          SIM Lock code: Between Device and SIM card using a SIM password is only available on certain handsets to authorize.\n
+ *
+ *          This function makes a Dbus method call to the Telephony Server and returns an immediate value.
+ *          However it just means that the API request has been transfered to the CP successfully.
+ *          The actual operation result is delivered in the corresponding event asynchronously.
+ *
+ * <b> Sync (or) Async: </b> This is an Asynchronous API.
+ *
+ * <b> Prospective Clients: </b> External Apps.
+ *
+ * @since_tizen 2.4
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/telephony.admin
+ *
+ * @remarks If the PIN status (PIN/PUK/SIM LOCK) is blocked, an unsolicited event #TAPI_EVENT_SIM_STATUS_IND will be published to Applications on Device boot time.
+ *          If the PIN status is PUK, you should use #tel_verify_sim_puks instead of this API.
+ *
+ * @param[in] handle The handle from tel_init()
+ *
+ * @param[in] pin_data The PIN code, entered by the user \n
+ *                     You should make all the parameters.
+ *
+ * @param[in] callback To register a callback function for result
+ *
+ * @param[in] user_data The user data for user specification
+ *
+ * @return The return type (int)
+ *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation is completed successfully
+ *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
+ *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ *
+ * @pre This API is used when #TelSimCardStatus_t is #TAPI_SIM_STATUS_SIM_PIN_REQUIRED or #TAPI_SIM_STATUS_SIM_LOCK_REQUIRED on boot time.
+ * @post callback will be invoked and #TelSimSecResult_t will be stored in data on success case.
+ */
+int tel_verify_sim_pins(TapiHandle *handle, const TelSimSecPw_t *pin_data, tapi_response_cb callback, void *user_data);
+
 /**
  * @brief Performs PIN1/PIN2 unblocking operation based on PUK information passed along with
  *        unblock information entered by the user.
@@ -666,6 +724,7 @@ int tel_verifiy_sim_pins(TapiHandle *handle, const TelSimSecPw_t *pin_data, tapi
  *
  * @pre PIN1 or PIN2 status should be #TAPI_SIM_PIN_STATUS_BLOCKED and Card status should be #TAPI_SIM_STATUS_SIM_PUK_REQUIRED on boot time.
  *
+ * @post callback will be invoked and #TelSimSecResult_t will be stored in data on success case.
  * @post After success on unblocking for PIN1 or PIN2, each pin check facility is enabled even if the previous facility is disabled.
  */
 int tel_verify_sim_puks(TapiHandle *handle, const TelSimSecPw_t *puk_data, const TelSimSecPw_t *new_pin_data, tapi_response_cb callback, void *user_data);
@@ -705,6 +764,7 @@ int tel_verify_sim_puks(TapiHandle *handle, const TelSimSecPw_t *puk_data, const
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimSecResult_t will be stored in data on success case.
  */
 int tel_change_sim_pins(TapiHandle *handle, const TelSimSecPw_t *old_pin, const TelSimSecPw_t *new_pin, tapi_response_cb callback, void *user_data);
 
@@ -730,6 +790,7 @@ int tel_change_sim_pins(TapiHandle *handle, const TelSimSecPw_t *old_pin, const
  *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
  *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ * @post callback will be invoked and #TelSimFacilityResult_t will be stored in data on success case.
  */
 int tel_disable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw, tapi_response_cb callback, void *user_data);
 
@@ -755,6 +816,7 @@ int tel_disable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw, tapi_re
  *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
  *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ * @post callback will be invoked and #TelSimFacilityResult_t will be stored in data on success case.
  */
 int tel_enable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw, tapi_response_cb callback, void *user_data);
 
@@ -780,6 +842,7 @@ int tel_enable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw, tapi_res
  *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
  *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ * @post callback will be invoked and #TelSimFacilityInfo_t will be stored in data on success case.
  */
 int tel_get_sim_facility(TapiHandle *handle, TelSimLockType_t type, tapi_response_cb callback, void *user_data);
 
@@ -805,6 +868,7 @@ int tel_get_sim_facility(TapiHandle *handle, TelSimLockType_t type, tapi_respons
  *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
  *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ * @post callback will be invoked and #TelSimLockInfo_t will be stored in data on success case.
  */
 int tel_get_sim_lock_info(TapiHandle *handle, TelSimLockType_t type, tapi_response_cb callback, void *user_data);
 
@@ -831,9 +895,7 @@ int tel_get_sim_lock_info(TapiHandle *handle, TelSimLockType_t type, tapi_respon
  * @return The return type (int)
  *         Integer '0' ( same with #TAPI_SIM_POWER_SET_SUCCESS ) - indicates that the operation has completed successfully
  *         Positive integer : It provides an error code while actual operations (Refer #TelSimPowerSetResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_sim_power_state(TapiHandle *handle, TelSimPowerState_t state, tapi_response_cb callback, void *user_data);
 
@@ -871,6 +933,7 @@ int tel_set_sim_power_state(TapiHandle *handle, TelSimPowerState_t state, tapi_r
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimApduResp_t will be stored in data on success case.
  */
 int tel_req_sim_apdu(TapiHandle *handle, TelSimApdu_t* apdu_data, tapi_response_cb callback, void *user_data);
 
@@ -901,6 +964,7 @@ int tel_req_sim_apdu(TapiHandle *handle, TelSimApdu_t* apdu_data, tapi_response_
  *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
  *
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimAtrResp_t will be stored in data on success case.
  */
 int tel_req_sim_atr(TapiHandle *handle, tapi_response_cb callback, void *user_data);
 
@@ -928,6 +992,129 @@ int tel_req_sim_atr(TapiHandle *handle, tapi_response_cb callback, void *user_da
  * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
  */
 int tel_get_sim_application_list(TapiHandle *handle, unsigned char *app_list);
+
+/**
+ * @breif Gets the IMPI(IMS private user identity). (ISIM only)
+ * @details Private user identity of the user.
+ *
+ * <b> Sync (or) Async: </b> This is Asynchronous API.
+ *
+ * @since_tizen 2.4
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/telephony
+ *
+ * @param[in] handle The handle from tel_init()
+ * @param[in] callback To reigster a callback function for result
+ * @param[in] user_data The user data for user specification
+ *
+ * @return The return type (int)
+ *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
+ *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
+ *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ *
+ * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimImpi_t will be stored in data on success case.
+ */
+int tel_get_sim_impi(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @breif Gets the IMPU(IMS public user identity). (ISIM only)
+ * @details SIP URI by which other parties know the subscriber.
+ *
+ * <b> Sync (or) Async: </b> This is Asynchronous API.
+ *
+ * @since_tizen 2.4
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/telephony
+ *
+ * @param[in] handle The handle from tel_init()
+ * @param[in] callback To reigster a callback function for result
+ * @param[in] user_data The user data for user specification
+ *
+ * @return The return type (int)
+ *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
+ *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
+ *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ *
+ * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimImpuList_t will be stored in data on success case.
+ */
+int tel_get_sim_impu(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @breif Gets the Domain(Home Network Domain Name). (ISIM only)
+ * @details Home Network Domain Name.
+ *
+ * <b> Sync (or) Async: </b> This is Asynchronous API.
+ *
+ * @since_tizen 2.4
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/telephony
+ *
+ * @param[in] handle The handle from tel_init()
+ * @param[in] callback To reigster a callback function for result
+ * @param[in] user_data The user data for user specification
+ *
+ * @return The return type (int)
+ *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
+ *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
+ *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ *
+ * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimDomain_t will be stored in data on success case.
+ */
+int tel_get_sim_domain(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @breif Gets the P-CSCF(Proxy Call Session Control Function). (ISIM only)
+ * @details Address of Proxy Call Session Control Function, in the format of a FQDN, an IPv4 address, or an IPv6 address. \n
+ *          A UE supporting IMS Local Breakout shall use this EF only if EFIST indicates that service n=5 is "available".
+ *
+ * <b> Sync (or) Async: </b> This is Asynchronous API.
+ *
+ * @since_tizen 2.4
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/telephony
+ *
+ * @param[in] handle The handle from tel_init()
+ * @param[in] callback To reigster a callback function for result
+ * @param[in] user_data The user data for user specification
+ *
+ * @return The return type (int)
+ *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
+ *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
+ *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ *
+ * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimPcscfList_t will be stored in data on success case.
+ */
+int tel_get_sim_pcscf(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @breif Gets the ISIM service table. (ISIM only)
+ * @details This EF indicates which optional services are available. \n
+ *          If a service is not indicated as available in the ISIM, the ME shall not select this service.
+ *
+ * <b> Sync (or) Async: </b> This is Asynchronous API.
+ *
+ * @since_tizen 2.4
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/telephony
+ *
+ * @param[in] handle The handle from tel_init()
+ * @param[in] callback To reigster a callback function for result
+ * @param[in] user_data The user data for user specification
+ *
+ * @return The return type (int)
+ *         Integer '0' ( same with #TAPI_API_SUCCESS & #TAPI_SIM_ACCESS_SUCCESS ) - indicates that the operation has completed successfully
+ *         Negative integer : It provides an error code before actual operations (Refer #TapiResult_t)
+ *         Positive integer : It provides an error code during actual operations (Refer #TelSimAccessResult_t)
+ *
+ * @pre The user can get valid return values or make operations after SIM init completes(card status is #TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ * @post callback will be invoked and #TelSimIST_t will be stored in data on success case.
+ */
+int tel_get_sim_isim_service_table(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
 #ifdef __cplusplus
 }
 #endif
index be72a2ce257a76262da6d24da2dfce28d066fc29..84a0f7e1173a064ac1d459537340778333e9f290 100644 (file)
@@ -74,7 +74,7 @@ extern "C"
  *         Refer #TapiResult_t for failure and error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
- *
+ * @post callback will be invoked and #TelSsBarringResp_t will be stored in data on success case.
  * @see tel_get_ss_barring_status()
  * @see tel_change_ss_barring_password()
  */
@@ -115,7 +115,7 @@ int tel_set_ss_barring(TapiHandle *handle, TelSsBarringInfo_t *info, tapi_respon
  *         Refer #TapiResult_t for failure and error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
- *
+ * @post callback will be invoked and #TelSsBarringResp_t will be stored in data on success case.
  * @see tel_set_ss_barring()
  * @asee tel_change_ss_barring_password()
  */
@@ -166,6 +166,7 @@ int tel_get_ss_barring_status(TapiHandle *handle, TelSsClass_t ss_class, TelSsBa
  *
  * @pre Initialize the Dbus connection with #tel_init.
  *      An event loop runs to listen to events.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_change_ss_barring_password(TapiHandle *handle,
                const char *old_password,
@@ -215,7 +216,7 @@ int tel_change_ss_barring_password(TapiHandle *handle,
  *         Refer #TapiResult_t for failure and error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
- *
+ * @post callback will be invoked and #TelSsForwardResp_t will be stored in data on success case.
  * @see tel_get_ss_forward_status()
  */
 int tel_set_ss_forward(TapiHandle *handle, const TelSsForwardInfo_t *info, tapi_response_cb callback, void *user_data);
@@ -262,7 +263,7 @@ int tel_set_ss_forward(TapiHandle *handle, const TelSsForwardInfo_t *info, tapi_
  *         Refer #TapiResult_t for failure and error code.
  *
  * @pre Initialize the Dbus connection with #tel_init.
- *
+ * @post callback will be invoked and #TelSsForwardResp_t will be stored in data on success case.
  * @see tel_set_ss_forward()
  */
 int tel_get_ss_forward_status(TapiHandle *handle, TelSsClass_t ss_class, TelSsForwardWhen_t condition, tapi_response_cb callback, void *user_data);
@@ -302,7 +303,7 @@ int tel_get_ss_forward_status(TapiHandle *handle, TelSsClass_t ss_class, TelSsFo
  *         Refer #TapiResult_t for failure and error code
  *
  * @pre Initialize the Dbus connection with #tel_init.
- *
+ * @post callback will be invoked and #TelSsWaitingResp_t will be stored in data on success case.
  * @see tel_get_ss_waiting_status()
  */
 int tel_set_ss_waiting(TapiHandle *handle, const TelSsWaitingInfo_t *info, tapi_response_cb callback, void *user_data);
@@ -340,7 +341,7 @@ int tel_set_ss_waiting(TapiHandle *handle, const TelSsWaitingInfo_t *info, tapi_
  *         Refer #TapiResult_t for failure and error code
  *
  * @pre Initialize the Dbus connection with #tel_init.
- *
+ * @post callback will be invoked and #TelSsWaitingResp_t will be stored in data on success case.
  * @see tel_set_ss_waiting()
  */
 int tel_get_ss_waiting_status(TapiHandle *handle, const TelSsClass_t ss_class, tapi_response_cb callback, void *user_data);
@@ -398,8 +399,8 @@ int tel_get_ss_waiting_status(TapiHandle *handle, const TelSsClass_t ss_class, t
  * @return The return type (int) \n
  *         #TAPI_API_SUCCESS - indicates that the operation is completed successfully. \n
  *         Refer #TapiResult_t for failure and error code
- *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and data is NULL.
  */
 int tel_set_ss_cli_status(TapiHandle *handle, TelSsCliType_t type, TelSsCliStatus_t status, tapi_response_cb callback, void *user_data);
 
@@ -454,8 +455,8 @@ int tel_set_ss_cli_status(TapiHandle *handle, TelSsCliType_t type, TelSsCliStatu
  * @return The return type (int) \n
  *         #TAPI_API_SUCCESS - indicates that the operation is completed successfully. \n
  *         Refer #TapiResult_t for failure and error code
- *
  * @pre Initialize the Dbus connection with #tel_init.
+ * @post callback will be invoked and #TelSsCliResp_t will be stored in data on success case.
  */
 int tel_get_ss_cli_status(TapiHandle *handle, TelSsCliType_t type, tapi_response_cb callback, void *user_data);
 
@@ -505,7 +506,7 @@ int tel_get_ss_cli_status(TapiHandle *handle, TelSsCliType_t type, tapi_response
  *      Register the telephony event to be listend with #tel_register_noti_event.\n
  *      An event loop runs to listen to events.
  *      No SS and USSD transaction should be ongoing. If there is an ongoing transaction, a new USSD request will be returned to the application with an error (USSD_BUSY).
- *
+ * @post callback will be invoked and #TelSsUssdResp_t will be stored in data on success case.
  */
 int tel_send_ss_ussd_request(TapiHandle *handle, const TelSsUssdMsgInfo_t *info, tapi_response_cb callback, void *user_data);
 
index d943b14c8a9994cb394c61628f62f10f10545ac1..d5780fb0cce0627948afe1630ea968b97951c0ce 100644 (file)
@@ -41,40 +41,38 @@ extern "C" {
  * @brief Definition for the maximum length of the string for the calling party name.
  * @since_tizen 2.3
  */
-#define TAPI_CALLING_NAME_SIZE_MAX      80
+#define TAPI_CALLING_NAME_SIZE_MAX     80
 
 /**
  * @brief Definition for the maximum length of the user to user signalling data string.
  * @since_tizen 2.3
  */
-#define TAPI_CALL_UUS_DATA_LEN_MAX      131
+#define TAPI_CALL_UUS_DATA_LEN_MAX     131
 
 /**
  * @brief Definition for the maximum length of the string for display record in CDMA.
  * @since_tizen 2.3
  */
-#define TAPI_CALL_DISPLAY_RECORD_MAX    32
+#define TAPI_CALL_DISPLAY_RECORD_MAX   32
 
 /**
  * @brief Definition for the maximum number of calls possible at a time.
  * @since_tizen 2.3
  */
-#define MAX_TAPI_CALL_COUNT                            6
+#define MAX_TAPI_CALL_COUNT    6
 
 /**
  * @brief Definition for the maximum number of calls possible in a conference call at a time.
  * @since_tizen 2.3
  */
-#define MAX_TAPI_CONF_CALL_COUNT               5
+#define MAX_TAPI_CONF_CALL_COUNT       5
 
 /**
  * @brief Definition for the invalid call handle.
  * @details TS_UINT is used for the call handle.
  * @since_tizen 2.3
  */
-#define INVALID_CALL_HANDLE                            0
-
-/* Call */
+#define INVALID_CALL_HANDLE    0
 
 /**
  * @brief Definition for the maximum dialling digit length.
@@ -117,103 +115,103 @@ extern "C" {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CAUSE_SUCCESS,                                 /**< Success */
-       TAPI_CAUSE_ACCESSDISCARD,                       /**< Access discarded */
-       TAPI_CAUSE_BARR_BYOPERATOR,                 /**< Barred by operator */
+       TAPI_CAUSE_SUCCESS,                     /**< Success */
+       TAPI_CAUSE_ACCESSDISCARD,               /**< Access discarded */
+       TAPI_CAUSE_BARR_BYOPERATOR,             /**< Barred by operator */
        TAPI_CAUSE_BEARERMODE_NOTIMPL,          /**< Bearer mode not implemented */
        TAPI_CAUSE_BEARERMODE_RESTRICTED,       /**< Bearer mode restricted */
        TAPI_CAUSE_BEARERMODE_UNAUTH,           /**< Bearer mode unauthorized */
        TAPI_CAUSE_BEARERMODE_UNAVAIL,          /**< Bearer mode not available */
-       TAPI_CAUSE_BUSY,                                        /**< (Network/Server) busy */
+       TAPI_CAUSE_BUSY,                        /**< (Network/Server) busy */
        TAPI_CAUSE_CALLMETER_EXPIRED,           /**< Call meter expired */
-       TAPI_CAUSE_CALLNO_ERROR,                        /**< Call number error */
-       TAPI_CAUSE_CKTUNAVAIL,                          /**< Circuit channel unavailable */                     //10
-       TAPI_CAUSE_CONGESTION,                          /**< Congestion occurred */
+       TAPI_CAUSE_CALLNO_ERROR,                /**< Call number error */
+       TAPI_CAUSE_CKTUNAVAIL,                  /**< Circuit channel unavailable */             /* 10 */
+       TAPI_CAUSE_CONGESTION,                  /**< Congestion occurred */
        TAPI_CAUSE_NO_CIRCUIT_AVAIL,            /**< Circuit not available */
-       TAPI_CAUSE_DESTIN_INCOMPAT,                 /**< Destination incompatibility */
-       TAPI_CAUSE_DTMF_NOSPEECH,                       /**< No speech in DTMF */
-       TAPI_CAUSE_DTMF_REJECTED,                       /**< DTMF rejected */
+       TAPI_CAUSE_DESTIN_INCOMPAT,             /**< Destination incompatibility */
+       TAPI_CAUSE_DTMF_NOSPEECH,               /**< No speech in DTMF */
+       TAPI_CAUSE_DTMF_REJECTED,               /**< DTMF rejected */
        TAPI_CAUSE_FACILITY_NOTIMPL,            /**< Facility not implemented */
        TAPI_CAUSE_FACILITY_NOTSUBSCRIBED,      /**< Facility not subscribed */
-       TAPI_CAUSE_INCOMINGCUGCALLS_BARRED, /**< Incoming CUG Calls barred */
-       TAPI_CAUSE_INVALNUM,                            /**< Invalid number */
-       TAPI_CAUSE_MPTY_ERROR,                          /**< Multiparty error */                                                //20
-       TAPI_CAUSE_NOANSWER,                            /**< No answer */
-       TAPI_CAUSE_NONCUGMEMBER,                        /**< Non CUG member */
-       TAPI_CAUSE_NUMBERCHANGED,                       /**< Number changed */
-       TAPI_CAUSE_NUMBER_ERROR,                        /**< Number error */
-       TAPI_CAUSE_NWFAILURE,                           /**< Network failure */
+       TAPI_CAUSE_INCOMINGCUGCALLS_BARRED,     /**< Incoming CUG Calls barred */
+       TAPI_CAUSE_INVALNUM,                    /**< Invalid number */
+       TAPI_CAUSE_MPTY_ERROR,                  /**< Multiparty error */                        /* 20 */
+       TAPI_CAUSE_NOANSWER,                    /**< No answer */
+       TAPI_CAUSE_NONCUGMEMBER,                /**< Non CUG member */
+       TAPI_CAUSE_NUMBERCHANGED,               /**< Number changed */
+       TAPI_CAUSE_NUMBER_ERROR,                /**< Number error */
+       TAPI_CAUSE_NWFAILURE,                   /**< Network failure */
        TAPI_CAUSE_OPERATIONUNAVAIL,            /**< Operation not available */
-       TAPI_CAUSE_OUTOFORDER,                          /**< Out of order */
-       TAPI_CAUSE_PROTOCOL_ERROR,                      /**< Protocol error */
-       TAPI_CAUSE_QOSUNAVAIL,                          /**< QOS unavailable */
-       TAPI_CAUSE_REJECT,                                      /**< Rejected */                                                                //30
-       TAPI_CAUSE_REJ_FAIL,                            /**< Rejection failed */
+       TAPI_CAUSE_OUTOFORDER,                  /**< Out of order */
+       TAPI_CAUSE_PROTOCOL_ERROR,              /**< Protocol error */
+       TAPI_CAUSE_QOSUNAVAIL,                  /**< QOS unavailable */
+       TAPI_CAUSE_REJECT,                      /**< Rejected */                                /* 30 */
+       TAPI_CAUSE_REJ_FAIL,                    /**< Rejection failed */
        TAPI_CAUSE_REJ_SRVC_NOT_AVL,            /**< Rejection service not available */
        TAPI_CAUSE_REJ_SAT_CALL_CTRL,           /**< Rejection SAT Call Control */
        TAPI_CAUSE_REMOTE_CKTUNAVAIL,           /**< Remote Circuit channel unavailable */
-       TAPI_CAUSE_RESOURCEUNAVAIL,                 /**< Resource not available */
-       TAPI_CAUSE_SERVICEID_ERROR,                 /**< Service ID error */
-       TAPI_CAUSE_SERVICE_NOTIMPL,                 /**< Service not implemented */
-       TAPI_CAUSE_SERVICE_UNAVAIL,                 /**< Service not available */
+       TAPI_CAUSE_RESOURCEUNAVAIL,             /**< Resource not available */
+       TAPI_CAUSE_SERVICEID_ERROR,             /**< Service ID error */
+       TAPI_CAUSE_SERVICE_NOTIMPL,             /**< Service not implemented */
+       TAPI_CAUSE_SERVICE_UNAVAIL,             /**< Service not available */
        TAPI_CAUSE_MODIFY_SAME_BEARER,          /**< Modify same bearer */
        TAPI_CAUSE_MODIFY_NOT_PERMITTED,        /**< Modification not permitted */
-       TAPI_CAUSE_HOLD_FAIL,                           /**< Call hold failure */                                                       //40
-       TAPI_CAUSE_TEMPFAILURE,                     /**< Temporary failure */
-       TAPI_CAUSE_WRONGNUM,                            /**< Wrong number */
+       TAPI_CAUSE_HOLD_FAIL,                   /**< Call hold failure */                       /* 40 */
+       TAPI_CAUSE_TEMPFAILURE,                 /**< Temporary failure */
+       TAPI_CAUSE_WRONGNUM,                    /**< Wrong number */
        TAPI_CAUSE_NORMAL_UNSPECIFIED,          /**< Normal but unspecified */
-       TAPI_CAUSE_SSERRINVALIDTIVALUE,     /**< SS invalid transaction ID value */
-       TAPI_CAUSE_SSERRINVALIDTI,                      /**< SS Invalid transaction ID */
-       TAPI_CAUSE_SSINCOMPATIBLESTATE,     /**< SS incompatible state */
+       TAPI_CAUSE_SSERRINVALIDTIVALUE,         /**< SS invalid transaction ID value */
+       TAPI_CAUSE_SSERRINVALIDTI,              /**< SS Invalid transaction ID */
+       TAPI_CAUSE_SSINCOMPATIBLESTATE,         /**< SS incompatible state */
        TAPI_CAUSE_SSERRSYNTAXERROR,            /**< SS syntax error */
-       TAPI_CAUSE_SSPROTOCOLERROR,                 /**< Protocol error */
-       TAPI_CAUSE_SSNEGATIVEPASSWORDCHECK, /**< Negative password check */
-       TAPI_CAUSE_SSSENTASPHASE1,                      /**< SS sent as phase1 message */                               //50
-       TAPI_CAUSE_SSERROR,                                 /**< Supplementary service error */
-       TAPI_CAUSE_SS_USSD_BUSY,                        /**< Second USSD request will be rejected when a USSD transaction is already in progess */
-       TAPI_CAUSE_IDLE,                                        /**< Idle */
+       TAPI_CAUSE_SSPROTOCOLERROR,             /**< Protocol error */
+       TAPI_CAUSE_SSNEGATIVEPASSWORDCHECK,     /**< Negative password check */
+       TAPI_CAUSE_SSSENTASPHASE1,              /**< SS sent as phase1 message */               /* 50 */
+       TAPI_CAUSE_SSERROR,                     /**< Supplementary service error */
+       TAPI_CAUSE_SS_USSD_BUSY,                /**< Second USSD request will be rejected when a USSD transaction is already in progess */
+       TAPI_CAUSE_IDLE,                        /**< Idle */
        TAPI_CAUSE_NETWORK_SPECIFIC,            /**< Network specific error */
-       TAPI_CAUSE_FADE,                                        /**< Voice call is dropped e.g. because of a loss of signal */
-       TAPI_CAUSE_UNKNOWN,                                 /**< Unknown and no details available */
-       TAPI_CAUSE_INCOM_CALL,                          /**< Terminated by an incoming call */
-       TAPI_CAUSE_ALERT_STOP,                          /**< Terminated by an alert stop */
-       TAPI_CAUSE_INTERCEPT,                           /**< Voice call is dropped by interception */
-       TAPI_CAUSE_REORDER,                                 /**< Voice call is dropped by reordering */ //60
-       TAPI_CAUSE_CLIENT_END,                          /**< Client ended the call */
+       TAPI_CAUSE_FADE,                        /**< Voice call is dropped e.g. because of a loss of signal */
+       TAPI_CAUSE_UNKNOWN,                     /**< Unknown and no details available */
+       TAPI_CAUSE_INCOM_CALL,                  /**< Terminated by an incoming call */
+       TAPI_CAUSE_ALERT_STOP,                  /**< Terminated by an alert stop */
+       TAPI_CAUSE_INTERCEPT,                   /**< Voice call is dropped by interception */
+       TAPI_CAUSE_REORDER,                     /**< Voice call is dropped by reordering */     /* 60 */
+       TAPI_CAUSE_CLIENT_END,                  /**< Client ended the call */
        TAPI_CAUSE_ACCESS_CLASS_BLOCKED,        /**< Access class blocked */
-       TAPI_CAUSE_MEMCAPEXCEEDED,                      /**< Memory capacity exceeded */
+       TAPI_CAUSE_MEMCAPEXCEEDED,              /**< Memory capacity exceeded */
        TAPI_CAUSE_TYPENOTSUPPORTED,            /**< Type not supported */
-       TAPI_CAUSE_REPLACENOTSUPPORTED,     /**< Replace not supported */
+       TAPI_CAUSE_REPLACENOTSUPPORTED,         /**< Replace not supported */
        TAPI_CAUSE_PROTOCOLID_ERROR,            /**< Protocol ID error */
        TAPI_CAUSE_CLASSNOTSUPPORTED,           /**< Class not supported */
        TAPI_CAUSE_DATACODING_ERROR,            /**< Data coding error */
-       TAPI_CAUSE_INVAL_MSG,                           /**< Invalid message */
-       TAPI_CAUSE_CALL_BARRED,                     /**< Call barred */                                                 //70
-       TAPI_CAUSE_SIM_CALL_CONTROL_CHANGED_TO_SS,              /**< Sim call control changed to SS */
+       TAPI_CAUSE_INVAL_MSG,                   /**< Invalid message */
+       TAPI_CAUSE_CALL_BARRED,                 /**< Call barred */                             /* 70 */
+       TAPI_CAUSE_SIM_CALL_CONTROL_CHANGED_TO_SS,      /**< Sim call control changed to SS */
        TAPI_CAUSE_SIM_CALL_CONTROL_CHANGED_TO_CALL,    /**< SIM Call control changed to call */
-       TAPI_CAUSE_SIM_ERROR,                                       /**< SIM error */
-       TAPI_CAUSE_SIM_CALL_CONTROL_MODIFIED,                   /**< SIM call control modified */
-       TAPI_CAUSE_RANDOM_ACCESS_FAILURE,                   /**< Random access error */
-       TAPI_CAUSE_LOWER_LAYER_FAILURE,                 /**< Lower layer error */
-       TAPI_CAUSE_ACCESS_REJECTED,                             /**< Access rejected */
-       TAPI_CAUSE_RESET_NOT_ALLOWED,                       /**< Reset not allowed */
-       TAPI_CAUSE_EMERGENCY_CALL_NOT_ALLOWED,                  /**< Emergency call not allowed */
-       TAPI_CAUSE_ACCESS_NOT_ALLOWED,                      /**< Access not allowed */                                          //80
-       TAPI_CAUSE_RADIO_LINK_FAILURE,                      /**< Radio link failure */
-       TAPI_CAUSE_INVALID_IDENTITY,                        /**< Invalid identity */
-       TAPI_CAUSE_UNKNOWN_IDENTITY,                        /**< Unknown identity */
-       TAPI_CAUSE_UNACCEPTABLE_IDENTITY,                   /**< Unacceptable identity */
-       TAPI_CAUSE_NO_SERVICE_HERE,                             /**< No service here */
-       TAPI_CAUSE_SERVICE_NOT_ALLOWED,                 /**< Service not allowed */
-       TAPI_CAUSE_SERVICE_NOT_AVAIL,                       /**< Service not available */
-       TAPI_CAUSE_SERVICE_NOT_WORKING,                 /**< Service not working */
-       TAPI_CAUSE_CANNOT_IDENTIFY_CALL,                    /**< Cannot identify the call */
-       TAPI_CAUSE_DEACTIVATION,                                    /**< Deactivation */                                                        //90
-       TAPI_CAUSE_FATAL_ERROR,                                 /**< Fatal error */
-       TAPI_CAUSE_SEND_DTMF_SUCCESS,                       /**< Sending DTMF succeeded */
-       TAPI_CAUSE_SEND_DTMF_FAIL,                                  /**< Sending DTMF failed */
-       TAPI_CAUSE_FIXED_DIALING_NUMBER_ONLY,           /**< Fixed Dialing Number Only */
-       TAPI_CAUSE_TIMER_EXPIRED,                                   /**< Call Timer Expired */
+       TAPI_CAUSE_SIM_ERROR,                           /**< SIM error */
+       TAPI_CAUSE_SIM_CALL_CONTROL_MODIFIED,           /**< SIM call control modified */
+       TAPI_CAUSE_RANDOM_ACCESS_FAILURE,               /**< Random access error */
+       TAPI_CAUSE_LOWER_LAYER_FAILURE,                 /**< Lower layer error */
+       TAPI_CAUSE_ACCESS_REJECTED,                     /**< Access rejected */
+       TAPI_CAUSE_RESET_NOT_ALLOWED,                   /**< Reset not allowed */
+       TAPI_CAUSE_EMERGENCY_CALL_NOT_ALLOWED,          /**< Emergency call not allowed */
+       TAPI_CAUSE_ACCESS_NOT_ALLOWED,                  /**< Access not allowed */              /* 80 */
+       TAPI_CAUSE_RADIO_LINK_FAILURE,                  /**< Radio link failure */
+       TAPI_CAUSE_INVALID_IDENTITY,                    /**< Invalid identity */
+       TAPI_CAUSE_UNKNOWN_IDENTITY,                    /**< Unknown identity */
+       TAPI_CAUSE_UNACCEPTABLE_IDENTITY,               /**< Unacceptable identity */
+       TAPI_CAUSE_NO_SERVICE_HERE,                     /**< No service here */
+       TAPI_CAUSE_SERVICE_NOT_ALLOWED,                 /**< Service not allowed */
+       TAPI_CAUSE_SERVICE_NOT_AVAIL,                   /**< Service not available */
+       TAPI_CAUSE_SERVICE_NOT_WORKING,                 /**< Service not working */
+       TAPI_CAUSE_CANNOT_IDENTIFY_CALL,                /**< Cannot identify the call */
+       TAPI_CAUSE_DEACTIVATION,                        /**< Deactivation */                    /* 90 */
+       TAPI_CAUSE_FATAL_ERROR,                         /**< Fatal error */
+       TAPI_CAUSE_SEND_DTMF_SUCCESS,                   /**< Sending DTMF succeeded */
+       TAPI_CAUSE_SEND_DTMF_FAIL,                      /**< Sending DTMF failed */
+       TAPI_CAUSE_FIXED_DIALING_NUMBER_ONLY,           /**< Fixed Dialing Number Only */
+       TAPI_CAUSE_TIMER_EXPIRED,                       /**< Call Timer Expired */
 } TelCallCause_t;
 
 /**
@@ -222,63 +220,63 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_END_NO_CAUSE = 0x00,                          /**< No Cause */
+       TAPI_CALL_END_NO_CAUSE = 0x00,                  /**< No Cause */
 
-       TAPI_CC_CAUSE_UNASSIGNED_NUMBER,                        /**< Unassigned Number */
-       TAPI_CC_CAUSE_NO_ROUTE_TO_DEST,                     /**< No Route to Destination */
-       TAPI_CC_CAUSE_CHANNEL_UNACCEPTABLE,                 /**< Channel Unacceptable */
+       TAPI_CC_CAUSE_UNASSIGNED_NUMBER,                /**< Unassigned Number */
+       TAPI_CC_CAUSE_NO_ROUTE_TO_DEST,                 /**< No Route to Destination */
+       TAPI_CC_CAUSE_CHANNEL_UNACCEPTABLE,             /**< Channel Unacceptable */
        TAPI_CC_CAUSE_OPERATOR_DETERMINED_BARRING,      /**< Operator Determined Barring */
-       TAPI_CC_CAUSE_NORMAL_CALL_CLEARING,                 /**< Normal Call Clearing */
+       TAPI_CC_CAUSE_NORMAL_CALL_CLEARING,             /**< Normal Call Clearing */
 
-       TAPI_CC_CAUSE_USER_BUSY,                                        /**< User Busy */
-       TAPI_CC_CAUSE_NO_USER_RESPONDING,                       /**< No user responding */
+       TAPI_CC_CAUSE_USER_BUSY,                        /**< User Busy */
+       TAPI_CC_CAUSE_NO_USER_RESPONDING,               /**< No user responding */
        TAPI_CC_CAUSE_USER_ALERTING_NO_ANSWER,          /**< User Alerting no Answer */
-       TAPI_CC_CAUSE_CALL_REJECTED,                            /**< Call Rejected */
-       TAPI_CC_CAUSE_NUMBER_CHANGED,                           /**< Number Changed */
+       TAPI_CC_CAUSE_CALL_REJECTED,                    /**< Call Rejected */
+       TAPI_CC_CAUSE_NUMBER_CHANGED,                   /**< Number Changed */
 
        TAPI_CC_CAUSE_NON_SELECTED_USER_CLEARING,       /**< Non Selected User Clearing */
-       TAPI_CC_CAUSE_DESTINATION_OUT_OF_ORDER,     /**< Destination out of Order */
+       TAPI_CC_CAUSE_DESTINATION_OUT_OF_ORDER,         /**< Destination out of Order */
        TAPI_CC_CAUSE_INVALID_NUMBER_FORMAT,            /**< Invalid Number Format */
-       TAPI_CC_CAUSE_FACILITY_REJECTED,                        /**< Facility Rejected */
+       TAPI_CC_CAUSE_FACILITY_REJECTED,                /**< Facility Rejected */
        TAPI_CC_CAUSE_RESPONSE_TO_STATUS_ENQUIRY,       /**< Response to Status Enquiry */
 
-       TAPI_CC_CAUSE_NORMAL_UNSPECIFIED,                               /**< Normal Unspecified */
-       TAPI_CC_CAUSE_NO_CIRCUIT_CHANNEL_AVAILABLE,         /**< No Circuit Channel Available */
-       TAPI_CC_CAUSE_NETWORK_OUT_OF_ORDER,                         /**< Network out of Order */
-       TAPI_CC_CAUSE_TEMPORARY_FAILURE,                                /**< Temporary Failure */
+       TAPI_CC_CAUSE_NORMAL_UNSPECIFIED,               /**< Normal Unspecified */
+       TAPI_CC_CAUSE_NO_CIRCUIT_CHANNEL_AVAILABLE,     /**< No Circuit Channel Available */
+       TAPI_CC_CAUSE_NETWORK_OUT_OF_ORDER,             /**< Network out of Order */
+       TAPI_CC_CAUSE_TEMPORARY_FAILURE,                /**< Temporary Failure */
        TAPI_CC_CAUSE_SWITCHING_EQUIPMENT_CONGESTION,   /**< Switching Equipment Congestion */
 
-       TAPI_CC_CAUSE_ACCESS_INFORMATION_DISCARDED,                         /**< Access Information Discarded */
+       TAPI_CC_CAUSE_ACCESS_INFORMATION_DISCARDED,             /**< Access Information Discarded */
        TAPI_CC_CAUSE_REQUESTED_CIRCUIT_CHANNEL_NOT_AVAILABLE,  /**< Requested Circuit channel not available */
-       TAPI_CC_CAUSE_RESOURCES_UNAVAILABLE_UNSPECIFIED,                /**< Resources unavailable and unspecified */
-       TAPI_CC_CAUSE_QUALITY_OF_SERVICE_UNAVAILABLE,                   /**< Quality of service unavailable */
-       TAPI_CC_CAUSE_REQUESTED_FACILITY_NOT_SUBSCRIBED,                /**< Requested facility not subscribed */
+       TAPI_CC_CAUSE_RESOURCES_UNAVAILABLE_UNSPECIFIED,        /**< Resources unavailable and unspecified */
+       TAPI_CC_CAUSE_QUALITY_OF_SERVICE_UNAVAILABLE,           /**< Quality of service unavailable */
+       TAPI_CC_CAUSE_REQUESTED_FACILITY_NOT_SUBSCRIBED,        /**< Requested facility not subscribed */
 
-       TAPI_CC_CAUSE_INCOMING_CALL_BARRED_WITHIN_CUG,                  /**< Incoming call barred within CUG */
-       TAPI_CC_CAUSE_BEARER_CAPABILITY_NOT_AUTHORISED,             /**< Bearer capability not Authorised */
+       TAPI_CC_CAUSE_INCOMING_CALL_BARRED_WITHIN_CUG,          /**< Incoming call barred within CUG */
+       TAPI_CC_CAUSE_BEARER_CAPABILITY_NOT_AUTHORISED,         /**< Bearer capability not Authorised */
        TAPI_CC_CAUSE_BEARER_CAPABILITY_NOT_PRESENTLY_AVAILABLE,/**< Bearer capability not presently Available */
-       TAPI_CC_CAUSE_SERVICE_OR_OPTION_NOT_AVAILABLE,                  /**< Service or Option not available */
-       TAPI_CC_CAUSE_BEARER_SERVICE_NOT_IMPLEMENTED,                   /**< Service not implemented */
+       TAPI_CC_CAUSE_SERVICE_OR_OPTION_NOT_AVAILABLE,          /**< Service or Option not available */
+       TAPI_CC_CAUSE_BEARER_SERVICE_NOT_IMPLEMENTED,           /**< Service not implemented */
 
-       TAPI_CC_CAUSE_ACM_GEQ_ACMMAX,                                                   /**< ACM GEQ ACMAX */
-       TAPI_CC_CAUSE_REQUESTED_FACILITY_NOT_IMPLEMENTED,               /**< Requested facility not implemented */
+       TAPI_CC_CAUSE_ACM_GEQ_ACMMAX,                           /**< ACM GEQ ACMAX */
+       TAPI_CC_CAUSE_REQUESTED_FACILITY_NOT_IMPLEMENTED,       /**< Requested facility not implemented */
        TAPI_CC_CAUSE_ONLY_RESTRICTED_DIGITAL_INFO_BC_AVAILABLE,/**< Restricted digital info BC not available */
-       TAPI_CC_CAUSE_SERVICE_OR_OPTION_NOT_IMPLEMENTED,                /**< Service or Option not Implemented */
-       TAPI_CC_CAUSE_INVALID_TRANSACTION_ID_VALUE,                         /**< Transaction ID value */
+       TAPI_CC_CAUSE_SERVICE_OR_OPTION_NOT_IMPLEMENTED,        /**< Service or Option not Implemented */
+       TAPI_CC_CAUSE_INVALID_TRANSACTION_ID_VALUE,             /**< Transaction ID value */
 
-       TAPI_CC_CAUSE_USER_NOT_MEMBER_OF_CUG,                               /**< Not a member of CUG */
-       TAPI_CC_CAUSE_INCOMPATIBLE_DESTINATION,                         /**< Incompatible Destination */
-       TAPI_CC_CAUSE_INVALID_TRANSIT_NETWORK_SELECTION,            /**< Transit Network selection */
-       TAPI_CC_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE,               /**< Semantically Incorrect message */
-       TAPI_CC_CAUSE_INVALID_MANDATORY_INFORMATION,                /**< Invalid Mandatory Message */
+       TAPI_CC_CAUSE_USER_NOT_MEMBER_OF_CUG,                   /**< Not a member of CUG */
+       TAPI_CC_CAUSE_INCOMPATIBLE_DESTINATION,                 /**< Incompatible Destination */
+       TAPI_CC_CAUSE_INVALID_TRANSIT_NETWORK_SELECTION,        /**< Transit Network selection */
+       TAPI_CC_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE,           /**< Semantically Incorrect message */
+       TAPI_CC_CAUSE_INVALID_MANDATORY_INFORMATION,            /**< Invalid Mandatory Message */
 
-       TAPI_CC_CAUSE_MESSAGE_TYPE_NON_EXISTENT,                                        /**< Message Type Non Existent */
+       TAPI_CC_CAUSE_MESSAGE_TYPE_NON_EXISTENT,                        /**< Message Type Non Existent */
        TAPI_CC_CAUSE_MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROT_STATE,      /**< Message type not compatible with Prot state */
-       TAPI_CC_CAUSE_IE_NON_EXISTENT_OR_NOT_IMPLEMENTED,                       /**< IE non exitent or not implemented */
-       TAPI_CC_CAUSE_CONDITIONAL_IE_ERROR,                                                 /**< Conditional IE error */
+       TAPI_CC_CAUSE_IE_NON_EXISTENT_OR_NOT_IMPLEMENTED,               /**< IE non exitent or not implemented */
+       TAPI_CC_CAUSE_CONDITIONAL_IE_ERROR,                             /**< Conditional IE error */
        TAPI_CC_CAUSE_MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE,       /**< Not Compatible with protocol state */
 
-       TAPI_CC_CAUSE_RECOVERY_ON_TIMER_EXPIRY,     /**< Recovery on timer expiry */
+       TAPI_CC_CAUSE_RECOVERY_ON_TIMER_EXPIRY, /**< Recovery on timer expiry */
        TAPI_CC_CAUSE_PROTOCOL_ERROR_UNSPECIFIED,       /**< Protocol error unspecified */
        TAPI_CC_CAUSE_INTERWORKING_UNSPECIFIED, /**< Interworking unspecified */
        TAPI_CC_CAUSE_REORDER,  /**< Reorder */
@@ -287,104 +285,95 @@ typedef enum {
 
        /* Reject causes*/
        TAPI_REJECT_CAUSE_IMSI_UNKNOWN_IN_HLR,  /**< IMSI unknown in HLR */
-       TAPI_REJECT_CAUSE_ILLEGAL_MS,                   /**< Illegal MS */
+       TAPI_REJECT_CAUSE_ILLEGAL_MS,           /**< Illegal MS */
        TAPI_REJECT_CAUSE_IMSI_UNKNOWN_IN_VLR,  /**< IMSI unknown in VLR */
        TAPI_REJECT_CAUSE_IMEI_NOT_ACCEPTED,    /**< IMEI not accepted */
-       TAPI_REJECT_CAUSE_ILLEGAL_ME,                   /**< Illegal ME */
+       TAPI_REJECT_CAUSE_ILLEGAL_ME,           /**< Illegal ME */
 
-       TAPI_REJECT_CAUSE_GPRS_SERVICES_NOT_ALLOWED,                                            /**< GPRS service not allowed */
+       TAPI_REJECT_CAUSE_GPRS_SERVICES_NOT_ALLOWED,                            /**< GPRS service not allowed */
        TAPI_REJECT_CAUSE_GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED,      /**< GPRS services and Non-GPRS services not allowed */
-       TAPI_REJECT_CAUSE_MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK,     /**< MS device cannot be derived by the network */
-       TAPI_REJECT_CAUSE_IMPLICITLY_DETACHED,                                                          /**< Implicitly detached */
-       TAPI_REJECT_CAUSE_PLMN_NOT_ALLOWED,                                                                 /**< PLMN not allowed */
+       TAPI_REJECT_CAUSE_MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK, /**< MS device cannot be derived by the network */
+       TAPI_REJECT_CAUSE_IMPLICITLY_DETACHED,                          /**< Implicitly detached */
+       TAPI_REJECT_CAUSE_PLMN_NOT_ALLOWED,                             /**< PLMN not allowed */
 
-       TAPI_REJECT_CAUSE_LA_NOT_ALLOWED,                                                       /**< LA not allowed */
-       TAPI_REJECT_CAUSE_NATIONAL_ROAMING_NOT_ALLOWED,                     /**< National roaming not allowed */
+       TAPI_REJECT_CAUSE_LA_NOT_ALLOWED,                               /**< LA not allowed */
+       TAPI_REJECT_CAUSE_NATIONAL_ROAMING_NOT_ALLOWED,                 /**< National roaming not allowed */
        TAPI_REJECT_CAUSE_GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN,       /**< GPRS services not allowed in this PLMN */
-       TAPI_REJECT_CAUSE_NO_SUITABLE_CELLS_IN_LA,                                      /**< No suitable cells in the LA */
-       TAPI_REJECT_CAUSE_MSC_TEMPORARILY_NOT_REACHABLE,                        /**< MSC temporarily not reachable */
+       TAPI_REJECT_CAUSE_NO_SUITABLE_CELLS_IN_LA,                      /**< No suitable cells in the LA */
+       TAPI_REJECT_CAUSE_MSC_TEMPORARILY_NOT_REACHABLE,                /**< MSC temporarily not reachable */
 
-       TAPI_REJECT_CAUSE_NETWORK_FAILURE,              /**< Network unavailable */
-       TAPI_REJECT_CAUSE_MAC_FAILURE,                  /**< MAC failure */
-       TAPI_REJECT_CAUSE_SYNCH_FAILURE,                /**< SYNCH failure */
-       TAPI_REJECT_CAUSE_CONGESTTION,                  /**< Congestion */
+       TAPI_REJECT_CAUSE_NETWORK_FAILURE,      /**< Network unavailable */
+       TAPI_REJECT_CAUSE_MAC_FAILURE,          /**< MAC failure */
+       TAPI_REJECT_CAUSE_SYNCH_FAILURE,        /**< SYNCH failure */
+       TAPI_REJECT_CAUSE_CONGESTTION,          /**< Congestion */
        TAPI_REJECT_CAUSE_GSM_AUTH_UNACCEPTED,  /**< GSM Auth unaccepted */
 
        TAPI_REJECT_CAUSE_SERVICE_OPTION_NOT_SUPPORTED, /**< Service option not supported */
        TAPI_REJECT_CAUSE_REQ_SERV_OPT_NOT_SUBSCRIBED,  /**< REQ_SERV option not suscribed */
        TAPI_REJECT_CAUSE_SERVICE_OPT__OUT_OF_ORDER,    /**< Service OPT out of order */
        TAPI_REJECT_CAUSE_CALL_CANNOT_BE_IDENTIFIED,    /**< Call cannot be identified */
-       TAPI_REJECT_CAUSE_NO_PDP_CONTEXT_ACTIVATED,         /**< No PDP context Activated */
+       TAPI_REJECT_CAUSE_NO_PDP_CONTEXT_ACTIVATED,     /**< No PDP context Activated */
 
        TAPI_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_A_NEW_CELL_MIN_VALUE,   /**< Retry upon entry into a new call min value */
        TAPI_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_A_NEW_CELL_MAX_VALUE,   /**< Retry upon entry into a new call max value */
-       TAPI_REJECT_CAUSE_SEMANTICALLY_INCORRECT_MSG,                                   /**< Semantically incorret message */
-       TAPI_REJECT_CAUSE_INVALID_MANDATORY_INFO,                                               /**< Invalid mandatory information */
-       TAPI_REJECT_CAUSE_MESSAGE_TYPE_NON_EXISTANT,                                    /**< Message type non-existant */
+       TAPI_REJECT_CAUSE_SEMANTICALLY_INCORRECT_MSG,                   /**< Semantically incorret message */
+       TAPI_REJECT_CAUSE_INVALID_MANDATORY_INFO,                       /**< Invalid mandatory information */
+       TAPI_REJECT_CAUSE_MESSAGE_TYPE_NON_EXISTANT,                    /**< Message type non-existant */
 
-       TAPI_REJECT_CAUSE_MESSAGE_TYPE_NOT_COMP_PRT_ST,             /**< Message type not COMP PRT ST */
-       TAPI_REJECT_CAUSE_IE_NON_EXISTANT,                                              /**< IE non existent */
+       TAPI_REJECT_CAUSE_MESSAGE_TYPE_NOT_COMP_PRT_ST,         /**< Message type not COMP PRT ST */
+       TAPI_REJECT_CAUSE_IE_NON_EXISTANT,                      /**< IE non existent */
        TAPI_REJECT_CAUSE_MSG_NOT_COMPATIBLE_PROTOCOL_STATE,    /**< MSG not compatible protocol state */
 
        /* Connection Management establishment rejection cause */
        TAPI_REJECT_CAUSE_REJ_UNSPECIFIED,      /**< REJ unspecified */
 
        /* AS reject causes */
-       TAPI_REJECT_CAUSE_AS_REJ_RR_REL_IND,                                            /**< RR release indication */
-       TAPI_REJECT_CAUSE_AS_REJ_RR_RANDOM_ACCESS_FAILURE,                      /**< Random Access Failure */
-       TAPI_REJECT_CAUSE_AS_REJ_RRC_REL_IND,                                           /**< RRC release indication */
-       TAPI_REJECT_CAUSE_AS_REJ_RRC_CLOSE_SESSION_IND,                     /**< RRC close session indication */
-       TAPI_REJECT_CAUSE_AS_REJ_RRC_OPEN_SESSION_FAILURE,                      /**< RRC open session failure */
-       TAPI_REJECT_CAUSE_AS_REJ_LOW_LEVEL_FAIL,                                        /**< Low level failure */
+       TAPI_REJECT_CAUSE_AS_REJ_RR_REL_IND,                    /**< RR release indication */
+       TAPI_REJECT_CAUSE_AS_REJ_RR_RANDOM_ACCESS_FAILURE,      /**< Random Access Failure */
+       TAPI_REJECT_CAUSE_AS_REJ_RRC_REL_IND,                   /**< RRC release indication */
+       TAPI_REJECT_CAUSE_AS_REJ_RRC_CLOSE_SESSION_IND,         /**< RRC close session indication */
+       TAPI_REJECT_CAUSE_AS_REJ_RRC_OPEN_SESSION_FAILURE,      /**< RRC open session failure */
+       TAPI_REJECT_CAUSE_AS_REJ_LOW_LEVEL_FAIL,                /**< Low level failure */
        TAPI_REJECT_CAUSE_AS_REJ_LOW_LEVEL_FAIL_REDIAL_NOT_ALLOWED, /**< Low level failure redial not alowed */
-       TAPI_REJECT_CAUSE_AS_REJ_LOW_LEVEL_IMMED_RETRY,                     /**< Low level immediate retry */
+       TAPI_REJECT_CAUSE_AS_REJ_LOW_LEVEL_IMMED_RETRY,         /**< Low level immediate retry */
 
        /* MM reject causes */
-       TAPI_REJECT_CAUSE_MM_REJ_INVALID_SIM,                   /**< Invalid SIM */
-       TAPI_REJECT_CAUSE_MM_REJ_NO_SERVICE,                    /**< No service */
-       TAPI_REJECT_CAUSE_MM_REJ_TIMER_T3230_EXP,               /**< Timer T3230 expiry */
-       TAPI_REJECT_CAUSE_MM_REJ_NO_CELL_AVAILABLE,         /**< No call available  */
-       TAPI_REJECT_CAUSE_MM_REJ_WRONG_STATE,                   /**< Wrong state */
+       TAPI_REJECT_CAUSE_MM_REJ_INVALID_SIM,           /**< Invalid SIM */
+       TAPI_REJECT_CAUSE_MM_REJ_NO_SERVICE,            /**< No service */
+       TAPI_REJECT_CAUSE_MM_REJ_TIMER_T3230_EXP,       /**< Timer T3230 expiry */
+       TAPI_REJECT_CAUSE_MM_REJ_NO_CELL_AVAILABLE,     /**< No call available */
+       TAPI_REJECT_CAUSE_MM_REJ_WRONG_STATE,           /**< Wrong state */
        TAPI_REJECT_CAUSE_MM_REJ_ACCESS_CLASS_BLOCKED,  /**< Access class blocked */
 
        /* Definitions for release ind causes between MM and CNM */
        TAPI_REJECT_CAUSE_ABORT_MSG_RECEIVED,   /**< Abort Message received */
-       TAPI_REJECT_CAUSE_OTHER_CAUSE,                  /**< Other cause */
+       TAPI_REJECT_CAUSE_OTHER_CAUSE,          /**< Other cause */
 
        /* CNM reject causes */
        TAPI_REJECT_CAUSE_CNM_REJ_TIMER_T303_EXP,       /**< Timer T303 expiry */
-       TAPI_REJECT_CAUSE_CNM_REJ_NO_RESOURCES,     /**< Rejected due to unavailibilty of resources */
+       TAPI_REJECT_CAUSE_CNM_REJ_NO_RESOURCES,         /**< Rejected due to unavailibilty of resources */
        TAPI_REJECT_CAUSE_CNM_MM_REL_PENDING,           /**< MM release pending */
        TAPI_REJECT_CAUSE_CNM_INVALID_USER_DATA,        /**< Invalid user data */
-       TAPI_CALL_END_CAUSE_MAX = 255,                          /**< Maximum End Cause limit for GSM/WCDMA */
+       TAPI_CALL_END_CAUSE_MAX = 255,                  /**< Maximum End Cause limit for GSM/WCDMA */
 
        /* CDMA CALL END CAUSE */
-       TAPI_CDMA_END_CAUSE_REL_BY_USER = 0x1001,               /**< Call Released by User */
-       TAPI_CDMA_END_CAUSE_REL_BY_NET,                             /**< Call Released by Network */
-       TAPI_CDMA_END_CAUSE_REL_NET_BUSY,                               /**< Call Released because the network is busy */
-       TAPI_CDMA_END_CAUSE_NO_SVC,                                         /**< Call Released because of No Service area */
-       TAPI_CDMA_END_CAUSE_FADING,                                         /**< Call Released because of Fading */
-       TAPI_CDMA_END_CAUSE_RELEASE_BY_REORDER,             /**< Call Released because of reorder */
-       TAPI_CDMA_END_CAUSE_RELEASE_BY_INTERCEPT,               /**< Call Released because of intercept */
-       TAPI_CDMA_END_CAUSE_SILENT_ZONE_RETRY,                  /**< Call Released because of silent zone retry */
-       TAPI_CDMA_END_CAUSE_OTA_CALL_FAIL,                              /**< Call Released because of OTA call failure */
-       TAPI_CDMA_END_CAUSE_PHONE_OFFLINE,                              /**< Call Released because phone is offline */
-       TAPI_CDMA_END_CAUSE_PHONE_IS_CDMA_LOCKED,               /**< Call Released because CDMA is locked */
+       TAPI_CDMA_END_CAUSE_REL_BY_USER = 0x1001,       /**< Call Released by User */
+       TAPI_CDMA_END_CAUSE_REL_BY_NET,                 /**< Call Released by Network */
+       TAPI_CDMA_END_CAUSE_REL_NET_BUSY,               /**< Call Released because the network is busy */
+       TAPI_CDMA_END_CAUSE_NO_SVC,                     /**< Call Released because of No Service area */
+       TAPI_CDMA_END_CAUSE_FADING,                     /**< Call Released because of Fading */
+       TAPI_CDMA_END_CAUSE_RELEASE_BY_REORDER,         /**< Call Released because of reorder */
+       TAPI_CDMA_END_CAUSE_RELEASE_BY_INTERCEPT,       /**< Call Released because of intercept */
+       TAPI_CDMA_END_CAUSE_SILENT_ZONE_RETRY,          /**< Call Released because of silent zone retry */
+       TAPI_CDMA_END_CAUSE_OTA_CALL_FAIL,              /**< Call Released because of OTA call failure */
+       TAPI_CDMA_END_CAUSE_PHONE_OFFLINE,              /**< Call Released because phone is offline */
+       TAPI_CDMA_END_CAUSE_PHONE_IS_CDMA_LOCKED,       /**< Call Released because CDMA is locked */
        TAPI_CDMA_END_CAUSE_FLASH_IS_IN_PROGRESS_ERR,   /**< Call Released because of the flash-is-in-progress error */
-       TAPI_CDMA_END_CAUSE_E911_MODE_ERR,                              /**< Call Released because of the e911 mode */
-       TAPI_CDMA_END_CAUSE_OTHERS,                                         /**< Call Released by Others */
-       TAPI_CDMA_END_CAUSE_MAX                                             /**< Maximum End Cause limit for CDMA */
+       TAPI_CDMA_END_CAUSE_E911_MODE_ERR,              /**< Call Released because of the e911 mode */
+       TAPI_CDMA_END_CAUSE_OTHERS,                     /**< Call Released by Others */
+       TAPI_CDMA_END_CAUSE_MAX                         /**< Maximum End Cause limit for CDMA */
 } TelTapiEndCause_t;
 
-/**
- * @brief Enumeration for the call conference states.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CALL_CONFERENCE_IDLE,      /**< Idle */
-       TAPI_CALL_CONFERENCE_ACTIVE /**< Active */
-} TelConferenceCallState_t;
-
 /**
  * @brief Enumeration for application usable states. Applications can have their own states as well.
  * @since_tizen 2.3
@@ -397,11 +386,11 @@ typedef enum {
        TAPI_CALL_STATE_ALERT,          /**< Call is in the alerting state */
        TAPI_CALL_STATE_INCOMING,       /**< Call is in the incoming state */
        TAPI_CALL_STATE_WAITING,        /**< Call is in the answered state, and waiting for connected indication event */
-       TAPI_CALL_STATE_MAX             /**< Call state unknown */
+       TAPI_CALL_STATE_MAX             /**< Call state unknown */
 } TelCallStates_t;
 
 /**
- * @brief IN GSM ONLY: call identification number.
+ * @brief Enumeration for call active line(IN GSM ONLY: call identification number).
  * @since_tizen 2.3
  */
 typedef enum {
@@ -409,30 +398,14 @@ typedef enum {
        TAPI_CALL_ACTIVE_LINE2  /**< Line 2 */
 } TelCallActiveLine_t;
 
-typedef enum {
-       TAPI_CALL_UUS_NONE, /**< No User to User information  */
-       TAPI_CALL_UUS_1,        /**< User to User information 1 */
-} TelCallUusType_t;
-
-/**
- * @brief Enumeration for SS info messages of an incoming call indication.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CALL_MT_CLI_PRESENT = 0x31, /**< Number details are present in the "char number" of the call info struct. If the number is not present then the "no cli cause" member in  mt_ss_info is set accordingly */
-       TAPI_CALL_MT_CNA_PRESENT = 0x32, /**< Calling Name Info present, #TelCallingNameInfo_t of the call info struct contains this info */
-       TAPI_CALL_MT_SS_UNDEFINED = 0x00, /**< Undefined SS indication. Ignore mt_ss_info */
-
-} TelCallMtSSInfo_t;
-
 /**
  * @brief Enumeration for the answer type used as a parameter in the answer call API.
  * @since_tizen 2.3
  */
 typedef enum {
        TAPI_CALL_ANSWER_ACCEPT = 0,            /**< Used to answer an incoming call when there are no current active calls */
-       TAPI_CALL_ANSWER_REJECT,                        /**< Used to reject the incoming call */
-       TAPI_CALL_ANSWER_REPLACE,                       /**< Release current active call and accept the waiting call */
+       TAPI_CALL_ANSWER_REJECT,                /**< Used to reject the incoming call */
+       TAPI_CALL_ANSWER_REPLACE,               /**< Release current active call and accept the waiting call */
        TAPI_CALL_ANSWER_HOLD_AND_ACCEPT,       /**< Hold the current active call, and accept the waiting call */
 } TelCallAnswerType_t;
 
@@ -441,82 +414,30 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_END = 0,        /**< End Specific Call */
-       TAPI_CALL_END_ALL,        /**< End All Calls */
-       TAPI_CALL_END_ACTIVE_ALL, /**< End All Active Calls */
-       TAPI_CALL_END_HOLD_ALL,   /**< End All Held Calls */
+       TAPI_CALL_END = 0,      /**< End Specific Call */
+       TAPI_CALL_END_ALL,      /**< End All Calls */
+       TAPI_CALL_END_ACTIVE_ALL,       /**< End All Active Calls */
+       TAPI_CALL_END_HOLD_ALL, /**< End All Held Calls */
 } TelCallEndType_t;
 
-
-
-
 /**
  * @brief Enumeration for call type to be used by applications while using the setup call API. Like the requested call is a voice call or video call.
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_TYPE_VOICE,   /**< Voice call type */// in ipcv4, 0x0100
-       TAPI_CALL_TYPE_DATA,    /**< Data call type - (for modem, fax, packet, and other such calls) */// in ipcv4, 0x0200
-       TAPI_CALL_TYPE_E911         /**< Emergency call type */// in ipcv4, 0x0700
+       TAPI_CALL_TYPE_VOICE,   /**< Voice call type */
+       TAPI_CALL_TYPE_DATA,    /**< Data call type - (for modem, fax, packet, and other such calls) */
+       TAPI_CALL_TYPE_E911     /**< Emergency call type */
 } TelCallType_t;
 
-/**
- * @brief Enumeration for the various alerting patterns available.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CALL_ALERTING_PATTERN_1 = 0x00, /**< Pattern 1 */
-       TAPI_CALL_ALERTING_PATTERN_2 = 0x01, /**< Pattern 2 */
-       TAPI_CALL_ALERTING_PATTERN_3 = 0x02, /**< Pattern 3 */
-       TAPI_CALL_ALERTING_PATTERN_4 = 0x03, /**< Pattern 4 */
-       TAPI_CALL_ALERTING_PATTERN_5 = 0x04, /**< Pattern 5 */
-       TAPI_CALL_ALERTING_PATTERN_6 = 0x05, /**< Pattern 6 */
-       TAPI_CALL_ALERTING_PATTERN_7 = 0x06, /**< Pattern 7 */
-       TAPI_CALL_ALERTING_PATTERN_8 = 0x07, /**< Pattern 8 */
-       TAPI_CALL_NO_ALERTING_PATTERN = 0x08 /**< No Alerting Pattern */
-} TelCallAlertingPattern_t;
-
-/**
- * @brief Enumeration for state of the current call.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CALL_CONNECT_IDLE,     /**< Call is in the Idle state */
-       TAPI_CALL_CONNECT_ACTIVE,       /**< Call is in the Active state */
-       TAPI_CALL_CONNECT_HELD          /**< Call is in the Held state */
-} TelCallActiveState_t;
-
-/**
- * @brief Enumeration for closed user group options.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CALL_CUG_NO_INFO = 0x00,           /**< No information */
-       TAPI_CALL_CUG_SUPRESS_OA,                       /**< Suppress OA */
-       TAPI_CALL_CUG_SUPRESS_PRF_CUG,          /**< Suppress preferential CUG */
-       TAPI_CALL_CUG_SUPRESS_OA_AND_CUG        /**< Suppress OA and preferential CUG */
-} TelCallCugOptions_t;
-
-/**
- * @brief Enumeration for tapi call UUS protocol types.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CALL_UUS_PROTO_SPECIFIC = 0,                       /**< The user information is structured according to user needs */
-       TAPI_CALL_UUS_PROTO_OSI_HIGHER_LAYER = 1,       /**< OSI high layer protocols */
-       TAPI_CALL_UUS_PROTO_IA5_CHARS = 4,                      /**< User information consists of IA5 characters */
-       TAPI_CALL_UUS_PROTO_V120 = 7,                           /**< Rate adaptation */
-       TAPI_CALL_UUS_PROTO_Q931 = 8                            /**< User-network call control messages */
-} TelCallUusProtocolType_t;
-
 /**
  * @brief Enumeration for the call name mode.
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_NAME_AVAIL = 0,               /**< This identifier refers to presenting the calling party's name identity to the called party */
-       TAPI_CALL_NAME_RESTRICTED = 1,      /**< This identifier refers to restricting the name identity of the calling party from being presented to the called party */
-       TAPI_CALL_NAME_UNAVAIL = 2,                     /**< This identifier refers to the unavailability of the calling party's name identity from being offered to the called party */
+       TAPI_CALL_NAME_AVAIL = 0,       /**< This identifier refers to presenting the calling party's name identity to the called party */
+       TAPI_CALL_NAME_RESTRICTED = 1,  /**< This identifier refers to restricting the name identity of the calling party from being presented to the called party */
+       TAPI_CALL_NAME_UNAVAIL = 2,     /**< This identifier refers to the unavailability of the calling party's name identity from being offered to the called party */
        TAPI_CALL_NAME_AVAIL_RESTRICTED = 3     /**< This identifier refers to offering the calling party's name identity to the called party with which the presentation restriction is overridden */
 } TelCallNameMode_t;
 
@@ -525,11 +446,11 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_NO_CLI_CAUSE_NONE = -1,                            /**< None */
-       TAPI_CALL_NO_CLI_CAUSE_UNAVAILABLE = 0x00,                       /**< Unavailable */
-       TAPI_CALL_NO_CLI_CAUSE_REJECTBY_USER = 0x01,                 /**< Rejected by User */
-       TAPI_CALL_NO_CLI_CAUSE_INTERACTION_OTHERSERVICES = 0x02, /**< Other services */
-       TAPI_CALL_NO_CLI_CAUSE_COINLINE_PAYPHONE = 0x03,             /**< Coin line phone */
+       TAPI_CALL_NO_CLI_CAUSE_NONE = -1,               /**< None */
+       TAPI_CALL_NO_CLI_CAUSE_UNAVAILABLE = 0x00,      /**< Unavailable */
+       TAPI_CALL_NO_CLI_CAUSE_REJECTBY_USER = 0x01,    /**< Rejected by User */
+       TAPI_CALL_NO_CLI_CAUSE_INTERACTION_OTHERSERVICES = 0x02,        /**< Other services */
+       TAPI_CALL_NO_CLI_CAUSE_COINLINE_PAYPHONE = 0x03,                /**< Coin line phone */
 } TelCallNoCliCause_t;
 
 /**
@@ -540,7 +461,8 @@ typedef enum {
        TAPI_CALL_PRES_AVAIL,           /**< Presentation Allowed */
        TAPI_CALL_PRES_RESTRICTED,      /**< Presentation Restricted */
        TAPI_CALL_NUM_UNAVAIL,          /**< Number Not Available */
-}TelCallCliMode_t;
+       TAPI_CALL_PRES_DEFAULT,         /**< Presentation Default */
+} TelCallCliMode_t;
 
 /**
  * @brief Enumeration for the the fwded ind type used for MO and Mt from SS Noti Info.
@@ -556,8 +478,8 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_PRIVACY_MODE_STANDARD = 0x00, /**< Standard mode */
-       TAPI_CALL_PRIVACY_MODE_ENHANCED             /**< Enhanced mode */
+       TAPI_CALL_PRIVACY_MODE_STANDARD = 0x00, /**< Standard mode */
+       TAPI_CALL_PRIVACY_MODE_ENHANCED         /**< Enhanced mode */
 } TelCallPrivacyMode_t;
 
 /**
@@ -566,20 +488,20 @@ typedef enum {
  */
 typedef enum {
        TAPI_CALL_OTASP_OK_SPL_UNLOCKED = 0x01, /**< OTASP : SPL unlocked ok */
-       TAPI_CALL_OTASP_OK_AKEY_EXCESS,             /**< OTASP : A-Key excess ok */
-       TAPI_CALL_OTASP_OK_SSD_UPDATE,              /**< OTASP : SSD update ok */
-       TAPI_CALL_OTASP_OK_NAM_DWNLD,               /**< OTASP : NAM download ok */
-       TAPI_CALL_OTASP_OK_MDN_DWNLD,               /**< OTASP : MDN download ok */
-       TAPI_CALL_OTASP_OK_IMSI_DWNLD,              /**< OTASP : IMSI download ok */
-       TAPI_CALL_OTASP_OK_PRL_DWNLD,               /**< OTASP : PRL download ok */
-       TAPI_CALL_OTASP_OK_COMMIT,                      /**< OTASP : commit ok */
-       TAPI_CALL_OTASP_OK_PROGRAMMING,             /**< OTASP : programming ok */
-       TAPI_CALL_OTASP_SUCCESS,                        /**< OTASP : success */
-       TAPI_CALL_OTASP_UNSUCCESS,                      /**< OTASP : unsuccess */
-       TAPI_CALL_OTASP_OK_OTAPA_VERIFY,            /**< OTASP : verify ok */
-       TAPI_CALL_OTASP_PROGRESS,                       /**< OTASP : progress */
+       TAPI_CALL_OTASP_OK_AKEY_EXCESS,         /**< OTASP : A-Key excess ok */
+       TAPI_CALL_OTASP_OK_SSD_UPDATE,          /**< OTASP : SSD update ok */
+       TAPI_CALL_OTASP_OK_NAM_DWNLD,           /**< OTASP : NAM download ok */
+       TAPI_CALL_OTASP_OK_MDN_DWNLD,           /**< OTASP : MDN download ok */
+       TAPI_CALL_OTASP_OK_IMSI_DWNLD,          /**< OTASP : IMSI download ok */
+       TAPI_CALL_OTASP_OK_PRL_DWNLD,           /**< OTASP : PRL download ok */
+       TAPI_CALL_OTASP_OK_COMMIT,              /**< OTASP : commit ok */
+       TAPI_CALL_OTASP_OK_PROGRAMMING,         /**< OTASP : programming ok */
+       TAPI_CALL_OTASP_SUCCESS,                /**< OTASP : success */
+       TAPI_CALL_OTASP_UNSUCCESS,              /**< OTASP : unsuccess */
+       TAPI_CALL_OTASP_OK_OTAPA_VERIFY,        /**< OTASP : verify ok */
+       TAPI_CALL_OTASP_PROGRESS,               /**< OTASP : progress */
        TAPI_CALL_OTASP_FAILURES_EXCESS_SPC,    /**< OTASP : SPC excess failure */
-       TAPI_CALL_OTASP_LOCK_CODE_PW_SET,           /**< OTASP : lock code password set */
+       TAPI_CALL_OTASP_LOCK_CODE_PW_SET,       /**< OTASP : lock code password set */
 } TelCallOtaspStatus_t;
 
 /**
@@ -588,7 +510,7 @@ typedef enum {
  */
 typedef enum {
        TAPI_CALL_OTAPA_STOP = 0x00,    /**< OTAPA : stop */
-       TAPI_CALL_OTAPA_START,              /**< OTAPA : start */
+       TAPI_CALL_OTAPA_START,          /**< OTAPA : start */
 } TelCallOtapaStatus_t;
 
 /**
@@ -596,10 +518,10 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_SIGNAL_TYPE_TONE = 0x00,
-       TAPI_CALL_SIGNAL_TYPE_ISDN_ALERTING,
-       TAPI_CALL_SIGNAL_TYPE_IS54B_ALERTING,
-       TAPI_CALL_SIGNAL_TYPE_RESERVED
+       TAPI_CALL_SIGNAL_TYPE_TONE = 0x00, /**< Tone */
+       TAPI_CALL_SIGNAL_TYPE_ISDN_ALERTING, /**< ISDN Alerting */
+       TAPI_CALL_SIGNAL_TYPE_IS54B_ALERTING, /**< IS54B Alerting */
+       TAPI_CALL_SIGNAL_TYPE_RESERVED /** Reserved */
 } TelCallAlertSignalType_t;
 
 /**
@@ -607,10 +529,10 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_ALERT_PITCH_MED = 0x00,
-       TAPI_CALL_ALERT_PITCH_HIGH,
-       TAPI_CALL_ALERT_PITCH_LOW,
-       TAPI_CALL_ALERT_PITCH_RESERVED
+       TAPI_CALL_ALERT_PITCH_MED = 0x00, /**< Alert Pitch Med */
+       TAPI_CALL_ALERT_PITCH_HIGH, /**< Alert Pitch High */
+       TAPI_CALL_ALERT_PITCH_LOW, /**< Alert Pitch Low */
+       TAPI_CALL_ALERT_PITCH_RESERVED /**< Reserved */
 } TelCallAlertPitchType_t;
 
 /**
@@ -618,134 +540,81 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_SIGNAL_TONE_DIAL = 0x00,
-       TAPI_CALL_SIGNAL_TONE_RINGBACK_TONE_ON,
-       TAPI_CALL_SIGNAL_TONE_INTERCEPT_TONE_ON,
-       TAPI_CALL_SIGNAL_TONE_ABBREV_TONE,
-       TAPI_CALL_SIGNAL_TONE_NETWORK_CONGESTION_TONE_ON,
-       TAPI_CALL_SIGNAL_TONE_ABBREV_NETWORK_CONGESTION,
-       TAPI_CALL_SIGNAL_TONE_BUSY_TONE_ON,
-       TAPI_CALL_SIGNAL_TONE_CFRM_TONE_ON,
-       TAPI_CALL_SIGNAL_TONE_ANSWER_TONE_ON,
-       TAPI_CALL_SIGNAL_TONE_CALL_WAITING_TONE_ON,
-       TAPI_CALL_SINGNAL_TONE_PIPE_TONE_ON,
-       TAPI_CALL_SIGNAL_TONE_OFF
+       TAPI_CALL_SIGNAL_TONE_DIAL = 0x00, /**< Dial */
+       TAPI_CALL_SIGNAL_TONE_RINGBACK_TONE_ON, /**< Ringback Tone ON */
+       TAPI_CALL_SIGNAL_TONE_INTERCEPT_TONE_ON, /**< Intercept Tone ON */
+       TAPI_CALL_SIGNAL_TONE_ABBREV_TONE, /**< Abbreviation Tone */
+       TAPI_CALL_SIGNAL_TONE_NETWORK_CONGESTION_TONE_ON, /**< Network Congestion Tone ON */
+       TAPI_CALL_SIGNAL_TONE_ABBREV_NETWORK_CONGESTION, /**< Abbreviation Network Congestion */
+       TAPI_CALL_SIGNAL_TONE_BUSY_TONE_ON, /**< Busy Tone ON */
+       TAPI_CALL_SIGNAL_TONE_CFRM_TONE_ON, /**< CFRM Tone ON */
+       TAPI_CALL_SIGNAL_TONE_ANSWER_TONE_ON, /**< Answer Tone ON */
+       TAPI_CALL_SIGNAL_TONE_CALL_WAITING_TONE_ON, /**< Call Waiting Tone ON */
+       TAPI_CALL_SINGNAL_TONE_PIPE_TONE_ON, /**< Pipe Tone ON */
+       TAPI_CALL_SIGNAL_TONE_OFF /**< Tone OFF */
 } TelCallToneSignal_t;
 
 /**
  * @brief Enumeration for the signals specific to the alert signal type TAPI_CALL_SIGNAL_TYPE_ISDN_ALERTING. (CDMA only)
+ * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_SIGNAL_ISDN_ALERT_NORMAL = 0x00,
-       TAPI_CALL_SIGNAL_ISDN_ALERT_INTER_GROUP,
-       TAPI_CALL_SIGNAL_ISDN_ALERT_SPECIAL_PRIORITY,
-       TAPI_CALL_SIGNAL_ISDN_ALERT_ISDN_RESERVED1,
-       TAPI_CALL_SIGNAL_ISDN_ALERT_PING_RING,
-       TAPI_CALL_SIGNAL_ISDN_ALERT_ISDN_RESERVED2,
-       TAPI_CALL_SIGNAL_ISDN_ALERT_ISDN_RESERVED3,
-       TAPI_CALL_SIGNAL_ISDN_ALERT_ISDN_RESERVED4,
-       TAPI_CALL_SIGNAL_ISDN_ALERT_OFF
+       TAPI_CALL_SIGNAL_ISDN_ALERT_NORMAL = 0x00, /**< Normal */
+       TAPI_CALL_SIGNAL_ISDN_ALERT_INTER_GROUP, /**< Inter group */
+       TAPI_CALL_SIGNAL_ISDN_ALERT_SPECIAL_PRIORITY, /**< Special Priority */
+       TAPI_CALL_SIGNAL_ISDN_ALERT_ISDN_RESERVED1, /**< ISDN Reserved1 */
+       TAPI_CALL_SIGNAL_ISDN_ALERT_PING_RING, /**< Ping Ring */
+       TAPI_CALL_SIGNAL_ISDN_ALERT_ISDN_RESERVED2, /**< ISDN Reserved2 */
+       TAPI_CALL_SIGNAL_ISDN_ALERT_ISDN_RESERVED3, /**< ISDN Reserved3 */
+       TAPI_CALL_SIGNAL_ISDN_ALERT_ISDN_RESERVED4, /**< ISDN Reserved4 */
+       TAPI_CALL_SIGNAL_ISDN_ALERT_OFF /**< Alert OFF */
 } TelCallIsdnAlertSignal_t;
 
 /**
  * @brief Enumeration for the signals specific to the alert signal type TAPI_CALL_SIGNAL_TYPE_IS54B_ALERTING. (CDMA only)
- */
-typedef enum {
-       TAPI_CALL_SIGNAL_IS54B_ALERT_NOTONE = 0x00,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_LONG,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_SHORT,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_SHORT_LONG,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_SHORT_2,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_LONG_SHORT,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_SHORT_SHORT_SHORT,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_LONG,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_SHORT_SHORT,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_SHORT_SHORT_LONG,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_SHORT_LONG_SHORT,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_SHORT_SHORT_SHORT_SHORT,
-       TAPI_CALL_SIGNAL_IS54B_ALERT_PIP_PIP_PIP_PIP
-} TelCallIs54bAlertSignal_t;
-
-/**
- * @brief Enumeration for the call time request mask type.
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_TIME_TYPE_TOTAL_CALL_CNT = 0x01,      /**< Total Call Count Mask */
-       TAPI_CALL_TIME_TYPE_TOTAL_CALL_TIME = 0x02, /**< Total Call Time Mask */
-       TAPI_CALL_TIME_TYPE_LAST_CALL_TIME = 0x04,      /**< Last Call Time Mask */
-} TelCallTimeMaskType_t;
-
-/**
- * @brief Enumeration for the DTMF tone length.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CALL_TONE_DURATION_SHORT = 0x01, /**< Tone Duration Short */
-       TAPI_CALL_TONE_DURATION_LONG          /**< Tone Duration Long */
-} TelCallToneDuration_t;
+       TAPI_CALL_SIGNAL_IS54B_ALERT_NOTONE = 0x00, /**< No Tone */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_LONG, /**< Long */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_SHORT, /**< Short Short */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_SHORT_LONG, /**< Short Short Long */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_SHORT_2, /**< Short Short 2*/
+       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_LONG_SHORT, /**< Short Long Short */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_SHORT_SHORT_SHORT_SHORT, /**< Short Short Short Short */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_LONG, /**< PBX Long */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_SHORT_SHORT, /**< PBX(Private Branch Exchange) Short Short */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_SHORT_SHORT_LONG, /**< PBX Short Short Long */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_SHORT_LONG_SHORT, /**< PBX Short Long Short */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_PBX_SHORT_SHORT_SHORT_SHORT, /**< PBX Short Short Short Short */
+       TAPI_CALL_SIGNAL_IS54B_ALERT_PIP_PIP_PIP_PIP /**< PIP PIP PIP PIP */
+} TelCallIs54bAlertSignal_t;
 
 /**
  * @brief Enumeration for the emergency category type.
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_ECC_DEFAULT = 0x00,        /**< Default case */
-       TAPI_CALL_ECC_POLICE = 0x01,         /**< Police emergency */
-       TAPI_CALL_ECC_AMBULANCE = 0x02,      /**< Ambulance emergency */
-       TAPI_CALL_ECC_FIREBRIGADE = 0x04,    /**< Firebrigade emergency */
-       TAPI_CALL_ECC_MARINEGUARD = 0x08,    /**< Marineguard emergency */
-       TAPI_CALL_ECC_MOUNTAINRESCUE = 0x10, /**< Mountain rescue emergency */
-       TAPI_CALL_ECC_MANUAL_ECALL = 0x20,   /**< Manual emergency call */
-       TAPI_CALL_ECC_AUTO_ECALL = 0x40,     /**< Automatic emergency call */
-       TAPI_CALL_ECC_NONE = 0xff,           /**< Unspecified emergency */
+       TAPI_CALL_ECC_DEFAULT = 0x00,           /**< Default case */
+       TAPI_CALL_ECC_POLICE = 0x01,            /**< Police emergency */
+       TAPI_CALL_ECC_AMBULANCE = 0x02,         /**< Ambulance emergency */
+       TAPI_CALL_ECC_FIREBRIGADE = 0x04,       /**< Firebrigade emergency */
+       TAPI_CALL_ECC_MARINEGUARD = 0x08,       /**< Marineguard emergency */
+       TAPI_CALL_ECC_MOUNTAINRESCUE = 0x10,    /**< Mountain rescue emergency */
+       TAPI_CALL_ECC_MANUAL_ECALL = 0x20,      /**< Manual emergency call */
+       TAPI_CALL_ECC_AUTO_ECALL = 0x40,        /**< Automatic emergency call */
+       TAPI_CALL_ECC_NONE = 0xff,              /**< Unspecified emergency */
 } TelCallEmergencyCategory_t;
 
-typedef enum {
-       TAPI_CALL_IDENTITY_DEFAULT, /**< Calling line identity will be sent. Based on the network setting, the line identity will be presented to the called party */
-       TAPI_CALL_IDENTITY_SHOW,        /**< Display the calling line identity */
-       TAPI_CALL_IDENTITY_HIDE     /**< Hide the display of the calling line identity */
-} TelCallIdentityMode_t;
-
-/**
- * @brief Enumeration for the context type.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CONTEXT_TYPE_NONE = 0x00,       /**< Unspecified context */
-       TAPI_CONTEXT_TYPE_VOICE_CALL = 0x01, /**< Voice call context */
-       TAPI_CONTEXT_TYPE_DATA_CALL = 0x2,   /**< Data call context */
-       TAPI_CONTEXT_TYPE_VIDEO_CALL = 0x3,  /**< Video call context */
-       TAPI_CONTEXT_TYPE_NETTEXT,           /**< Network text context */
-       TAPI_CONTEXT_TYPE_E911,              /**< Emergency context */
-} TapiContextType;
-
-/**
- * @brief Enumeration for the timer state and/or call timer ID.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_CALL_TSTATE_IDLE = 0x00,           /**< No timer running */
-       TAPI_CALL_TSTATE_SETUP_PENDING,     /**< Setup Timer */
-       TAPI_CALL_TSTATE_CONNECT_PENDING,       /**< Connect Timer */
-       TAPI_CALL_TSTATE_END_PENDING,           /**< Release Timer */
-       TAPI_CALL_TSTATE_HOLD_PENDING,          /**< Hold Timer */
-       TAPI_CALL_TSTATE_RETRIEVE_PENDING,      /**< Retrieve Timer */
-       TAPI_CALL_TSTATE_JOIN_PENDING,          /**< Join Timer */
-       TAPI_CALL_TSTATE_SPLIT_PENDING,     /**< Split Timer */
-       TAPI_CALL_TSTATE_ECT_PENDING,           /**< ECT Timer */
-       TAPI_CALL_TSTATE_DTMF_PENDING,          /**< DTMF Timer */
-} TelTapiCallTimerState;
-
 /**
  * @brief Enumeration for the offlength to send DTMF.
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_DTMF_OFFLENGTH_60MS,
-       TAPI_CALL_DTMF_OFFLENGTH_100MS,
-       TAPI_CALL_DTMF_OFFLENGTH_150MS,
-       TAPI_CALL_DTMF_OFFLENGTH_200MS,
+       TAPI_CALL_DTMF_OFFLENGTH_60MS, /**< 60 ms */
+       TAPI_CALL_DTMF_OFFLENGTH_100MS, /**< 100 ms */
+       TAPI_CALL_DTMF_OFFLENGTH_150MS, /**< 150 ms */
+       TAPI_CALL_DTMF_OFFLENGTH_200MS, /**< 200 ms */
 } TelCallDtmfInterDigitInterval_t;
 
 /**
@@ -753,44 +622,36 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_DTMF_ONLENGTH_95MS,
-       TAPI_CALL_DTMF_ONLENGTH_150MS,
-       TAPI_CALL_DTMF_ONLENGTH_200MS,
-       TAPI_CALL_DTMF_ONLENGTH_250MS,
-       TAPI_CALL_DTMF_ONLENGTH_300MS,
-       TAPI_CALL_DTMF_ONLENGTH_350MS,
-       TAPI_CALL_DTMF_ONLENGTH_SMS
-}TelCallDtmfPulseWidth_t;
+       TAPI_CALL_DTMF_ONLENGTH_95MS, /**< 95 ms */
+       TAPI_CALL_DTMF_ONLENGTH_150MS, /**< 150 ms */
+       TAPI_CALL_DTMF_ONLENGTH_200MS, /**< 200 ms */
+       TAPI_CALL_DTMF_ONLENGTH_250MS, /**< 250 ms */
+       TAPI_CALL_DTMF_ONLENGTH_300MS, /**< 300 ms */
+       TAPI_CALL_DTMF_ONLENGTH_350MS, /**< 350 ms */
+       TAPI_CALL_DTMF_ONLENGTH_SMS /**< SMS */
+} TelCallDtmfPulseWidth_t;
 
 /**
  * @brief Enumeration for the Call Record Info Type
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_REC_INFO_TYPE_NAME,
-       TAPI_CALL_REC_INFO_TYPE_NUMBER,
-}TelCallRecordInfoType_t;
+       TAPI_CALL_REC_INFO_TYPE_NAME, /**< Name Type */
+       TAPI_CALL_REC_INFO_TYPE_NUMBER, /**< Number Type */
+} TelCallRecordInfoType_t;
 
 /**
- * @brief TelCallPreferredVoiceSubs_t
- * This enumeration defines possible 'preferred' Voice Subscriptions
+ * @brief Enumeration for call preferred voice subscription.
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALL_PREFERRED_VOICE_SUBS_UNKNOWN = -1,  /**<  Unknown status **/
+       TAPI_CALL_PREFERRED_VOICE_SUBS_UNKNOWN = -1, /**< Unknown status **/
        TAPI_CALL_PREFERRED_VOICE_SUBS_CURRENT_NETWORK = 0, /**< Current network **/
        TAPI_CALL_PREFERRED_VOICE_SUBS_ASK_ALWAYS, /**< ASK Always **/
        TAPI_CALL_PREFERRED_VOICE_SUBS_SIM1, /**< SIM 1 **/
-       TAPI_CALL_PREFERRED_VOICE_SUBS_SIM2 /**<  SIM 2 **/
+       TAPI_CALL_PREFERRED_VOICE_SUBS_SIM2 /**< SIM 2 **/
 } TelCallPreferredVoiceSubs_t;
 
-
-typedef struct {
-       int bRequestedBySAT;                    /**< This flag is to indicate whether the request has been initiated by SAT. Possible values are @c 0 and @c 1. This flag should be updated only when initiating a setup request */
-       TelCallIdentityMode_t IdentityMode; /**< Sets the Calling Line Identity mode. If the default value #TAPI_IDENTITY_DEFAULT is set, OEM will set the default value */
-       TelCallEmergencyCategory_t ecc;
-} tel_set_call_satflag_identiymode;
-
 /**
  * @brief The structure type to redirect destination information.
  * @since_tizen 2.3
@@ -804,7 +665,7 @@ typedef struct {
  * @since_tizen 2.3
  */
 typedef struct {
-       TelCallNameMode_t NameMode;                                         /**< Display mode of @a szNameData */
+       TelCallNameMode_t NameMode;     /**< Display mode of @a szNameData */
        char szNameData[TAPI_CALLING_NAME_SIZE_MAX];    /**< Calling party name string */
 } TelCallingNameInfo_t;
 
@@ -813,8 +674,8 @@ typedef struct {
  * @since_tizen 2.3
  */
 typedef struct {
-       TelCallType_t CallType;                                         /**< Sets type of call (voice, data, video, emergency) */
-       TelCallEmergencyCategory_t Ecc;
+       TelCallType_t CallType;         /**< Sets type of call (voice, data, video, emergency) */
+       TelCallEmergencyCategory_t Ecc; /**< Emergency Category */
        char szNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1]; /**< A string containing the destination phone number. This follows the dial number format */
 } TelCallDial_t;
 
@@ -823,102 +684,49 @@ typedef struct {
  * @since_tizen 2.3
  */
 typedef struct {
-       int CallHandle;
-       int bMoCall;                                                                    /**< Status will be yes for MO Calls. If MT call, then FALSE */
+       int CallHandle; /**< Call Handle */
+       int bMoCall;    /**< Status will be yes for MO Calls. If MT call, then FALSE */
        char pNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1];  /**< Mobile Number */
-       TelCallType_t CallType;                                             /**< Type of call (voice, data, emergency) */
-       TelCallStates_t CallState;                                              /**< Current Call state */
-       int bConferenceState;                                                   /**< Whether Call is in Conference */
+       TelCallType_t CallType; /**< Type of call (voice, data, emergency) */
+       TelCallStates_t CallState;      /**< Current Call state */
+       int bConferenceState;   /**< Whether Call is in Conference */
 } TelCallStatus_t;
 
 /**
  * @brief Called to get the call status.
  * @since_tizen 2.3
  */
-typedef void (*TelCallStatusCallback)( TelCallStatus_t *out, void *user_data );
-
-
-/**
- * @brief The structure type for information about call redirection details.
- * @since_tizen 2.3
- */
-typedef struct {
-       char szRedirectedNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1];               /**< Redirected party number */
-       char szRedirectSubAddress[TAPI_CALL_SUBADDRESS_LEN_MAX + 1];    /**< Redirect party sub-address */
-} TelCallRedirectionInfo_t;
+typedef void (*TelCallStatusCallback)(TelCallStatus_t *out, void *user_data);
 
 /**
  * @brief The structure type for incoming call information.
  * @since_tizen 2.3
  */
 typedef struct {
-       unsigned int CallHandle;                                /**< At the Foundation API Level, call handle indicates the handle of the call for the application. At the Framework API Level, call handle indicates the call identifier used for a call by the OEM Adaptation Layer Plug-in */
-       TelCallType_t CallType;                             /**< Call type */
-       TelSsLineIdentificationType_t CliPresentationIndicator; /**< Calling Party presentation indicator */
+       unsigned int CallHandle; /**< At the Foundation API Level, call handle indicates the handle of the call for the application. At the Framework API Level, call handle indicates the call identifier used for a call by the OEM Adaptation Layer Plug-in */
+       TelCallType_t CallType; /**< Call type */
        char szCallingPartyNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1]; /**< Caller number, null terminated ASCII */
-       TelCallingNameInfo_t CallingNameInfo;   /**< Call name info. If there is no information from the network, this information will be @c NULL */
-       TelCallRedirectionInfo_t RedirectInfo;  /**< The data for the Call Redirect information. If there is no information from the network, this information will be @c NULL */
-       TelCallCliMode_t CliMode;                       /**< CLI mode */
-       TelCallNoCliCause_t CliCause;               /**< No CLI cause */
-       int fwded;                                                              /**< True or false. If the incoming call is a forwarded call, then @c true else @c false */
-       TelCallActiveLine_t ActiveLine;             /**< Current Active Line */
+       TelCallingNameInfo_t CallingNameInfo; /**< Call name info. If there is no information from the network, this information will be @c NULL */
+       TelCallCliMode_t CliMode; /**< CLI mode */
+       TelCallNoCliCause_t CliCause; /**< No CLI cause */
+       int fwded; /**< True or false. If the incoming call is a forwarded call, then @c true else @c false */
+       TelCallActiveLine_t ActiveLine; /**< Current Active Line */
 } TelCallIncomingCallInfo_t;
 
-/**
- * @brief The structure type for SS Info message.
- * @since_tizen 2.3
- */
-typedef struct {
-       TelCallMtSSInfo_t type;             /**< Type of SS Info present */
-       TelCallCliMode_t CliMode;                   /**< CLI mode */
-       TelCallNoCliCause_t no_cli_cause;       /**< TBD */
-} TelCallMtSsInfo_t; // not used
-
-typedef struct {
-       int isMobileOriginated;                                      /**< Is this call Mobile Originated? */
-       TelCallNameMode_t nameMode;                                  /**< Calling Party Name availability mode */
-       char callNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1]; /**< A character array of the destination address. This follows the dial @a callNumber format */
-       unsigned int startTime;                                     /**< Time when a call is started */
-       unsigned int endTime;                                           /**< Time when a call is ended */
-       TelCallType_t callType;                                     /**< Type of a call */
-       TelCallStates_t callState;                                      /**< State of a call */
-       TelCallActiveState_t activeState;                       /**< Status of a call */
-       TelConferenceCallState_t conferenceState;       /**< State of a conference call */
-       TelCallingNameInfo_t callingNameInfo;           /**< Calling name information of a call */
-       TelCallActiveLine_t current_line;                       /**< Line information of a call */
-       TelCallCause_t cause;                                           /**< End type of a call when a call is ended */
-       TelTapiEndCause_t endCause;                                 /**< End Cause */
-} TelTapiCallInfo_t;
-
 /**
  * @brief The structure type for the connected number information.
  * @since_tizen 2.3
  */
 typedef struct {
-       TelCallCliMode_t CliMode;                   /**< CLI mode */
-       TelCallNoCliCause_t no_cli_cause;   /**< Cause when no CLI number */
-       unsigned char dcs;                                      /**< DCS */
-       unsigned char number_type;                      /**< Number type */
-       TelCallNameMode_t name_mode;            /**< Display mode of the name */
+       TelCallCliMode_t CliMode;       /**< CLI mode */
+       TelCallNoCliCause_t no_cli_cause;       /**< Cause when no CLI number */
+       unsigned char dcs;              /**< DCS */
+       unsigned char number_type;      /**< Number type */
+       TelCallNameMode_t name_mode;    /**< Display mode of the name */
        char number[TAPI_CALL_DIALDIGIT_LEN_MAX + 1];           /**< Caller number, null terminated ASCII */
-       char sub_address[TAPI_CALL_SUBADDRESS_LEN_MAX + 1]; /**< Called sub-address, null terminated ASCII */
+       char sub_address[TAPI_CALL_SUBADDRESS_LEN_MAX + 1];     /**< Called sub-address, null terminated ASCII */
 } TelCallConnectedNumberInfo_t;
 
-/**
- * @brief The structure type for information about call time and call count.
- * @since_tizen 2.3
- */
-typedef struct {
-       unsigned short req_type_mask;   /**< Call time request type */
-       unsigned long TotalCallCnt;         /**< Total Call Count */
-       unsigned long OutgoingCallCnt;  /**< Outgoing Call Count */
-       unsigned long IncomingCallCnt;  /**< Incoming Call Count */
-       unsigned long TotalCallTime;    /**< Overall Call Time(Outgoing + Incoming, in seconds) */
-       unsigned long OutgoingCallTime; /**< Overall Outgoing Call Time(in seconds) */
-       unsigned long IncomingCallTime; /**< Overall Incoming Call Time(in seconds) */
-       unsigned long LastCallTime;         /**< Last Call Time(in seconds) */
-} TelCallTimeInfo_t;
-
 /**
  * @brief The structure type for information about display record in CDMA.
  * @since_tizen 2.3
@@ -933,8 +741,8 @@ typedef struct {
  */
 typedef struct {
        char dtmf_string[TAPI_CALL_BURST_DTMF_STRING_MAX + 1]; /** Burst DTMF string NULL terminated */
-       TelCallDtmfPulseWidth_t pulse_width;
-       TelCallDtmfInterDigitInterval_t inter_digit_interval;
+       TelCallDtmfPulseWidth_t pulse_width; /**< DTMF Pulse Width */
+       TelCallDtmfInterDigitInterval_t inter_digit_interval; /**< DTMF Inter Digit Interval */
 } TelCallBurstDtmf_t;
 
 /**
@@ -955,16 +763,16 @@ typedef struct {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_SOUND_MUTE              =0x00,             /**< Sound is mute */
-       TAPI_SOUND_VOLUME_LEVEL_1=0x01,         /**< Volume level is 1 */
-       TAPI_SOUND_VOLUME_LEVEL_2=0x02,         /**< Volume level is 2 */
-       TAPI_SOUND_VOLUME_LEVEL_3=0x03,         /**< Volume level is 3 */
-       TAPI_SOUND_VOLUME_LEVEL_4=0x04,         /**< Volume level is 4 */
-       TAPI_SOUND_VOLUME_LEVEL_5=0x05,         /**< Volume level is 5 */
-       TAPI_SOUND_VOLUME_LEVEL_6=0x06,         /**< Volume level is 6 */
-       TAPI_SOUND_VOLUME_LEVEL_7=0x07,         /**< Volume level is 7 */
-       TAPI_SOUND_VOLUME_LEVEL_8=0x08,         /**< Volume level is 8 */
-       TAPI_SOUND_VOLUME_LEVEL_9=0x09          /**< Volume level is 9 */
+       TAPI_SOUND_MUTE = 0x00,         /**< Sound is mute */
+       TAPI_SOUND_VOLUME_LEVEL_1 = 0x01,       /**< Volume level is 1 */
+       TAPI_SOUND_VOLUME_LEVEL_2 = 0x02,       /**< Volume level is 2 */
+       TAPI_SOUND_VOLUME_LEVEL_3 = 0x03,       /**< Volume level is 3 */
+       TAPI_SOUND_VOLUME_LEVEL_4 = 0x04,       /**< Volume level is 4 */
+       TAPI_SOUND_VOLUME_LEVEL_5 = 0x05,       /**< Volume level is 5 */
+       TAPI_SOUND_VOLUME_LEVEL_6 = 0x06,       /**< Volume level is 6 */
+       TAPI_SOUND_VOLUME_LEVEL_7 = 0x07,       /**< Volume level is 7 */
+       TAPI_SOUND_VOLUME_LEVEL_8 = 0x08,       /**< Volume level is 8 */
+       TAPI_SOUND_VOLUME_LEVEL_9 = 0x09        /**< Volume level is 9 */
 } TelSoundVolume_t;
 
 /**
@@ -972,12 +780,12 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_SOUND_DEVICE_RECEIVER = 0x00,      /**< Device type Receiver */
+       TAPI_SOUND_DEVICE_RECEIVER = 0x00,      /**< Device type Receiver */
        TAPI_SOUND_DEVICE_SPEAKER_PHONE = 0x10, /**< Device type Speaker */
-       TAPI_SOUND_DEVICE_HFK = 0x20,           /**< Device type Handsfree */
-       TAPI_SOUND_DEVICE_HEADSET = 0x30,       /**< Device type HeadSet */
-       TAPI_SOUND_DEVICE_BLUETOOTH = 0x40,     /**< Device type Bluetooth */
-       TAPI_SOUND_DEVICE_EC = 0xA0,            /**< Device type external*/
+       TAPI_SOUND_DEVICE_HFK = 0x20,           /**< Device type Handsfree */
+       TAPI_SOUND_DEVICE_HEADSET = 0x30,       /**< Device type HeadSet */
+       TAPI_SOUND_DEVICE_BLUETOOTH = 0x40,     /**< Device type Bluetooth */
+       TAPI_SOUND_DEVICE_EC = 0xA0,            /**< Device type external*/
 } TelSoundDevice_t;
 
 /**
@@ -985,232 +793,436 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_SOUND_TYPE_VOICE = 0x01,    /**< Call Sound type voice */
-       TAPI_SOUND_TYPE_KEYTONE = 0x02,  /**< Call Sound type keytone */
-       TAPI_SOUND_TYPE_BELL = 0x03,     /**< Call Sound type bell */
-       TAPI_SOUND_TYPE_MESSAGE = 0x04,  /**< Call Sound type message */
-       TAPI_SOUND_TYPE_ALARM = 0x05,    /**< Call Sound type alarm */
+       TAPI_SOUND_TYPE_VOICE = 0x01,   /**< Call Sound type voice */
+       TAPI_SOUND_TYPE_KEYTONE = 0x02, /**< Call Sound type keytone */
+       TAPI_SOUND_TYPE_BELL = 0x03,    /**< Call Sound type bell */
+       TAPI_SOUND_TYPE_MESSAGE = 0x04, /**< Call Sound type message */
+       TAPI_SOUND_TYPE_ALARM = 0x05,   /**< Call Sound type alarm */
        TAPI_SOUND_TYPE_PDA_MISC = 0x06, /**< Call Sound type PDA miscellaneous */
 } TelSoundType_t;
 
-
+/**
+ * @brief The structure type for call volume info.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       TelSoundDevice_t device; /**< Call Sound device info structure */
-       TelSoundType_t type;     /**< Call Sound type info structure */
-       TelSoundVolume_t volume; /**< Call Sound volume info structure */
+       TelSoundDevice_t device;        /**< Call Sound device info structure */
+       TelSoundType_t type;            /**< Call Sound type info structure */
+       TelSoundVolume_t volume;        /**< Call Sound volume info structure */
 } TelCallVolumeInfo_t;
 
+/**
+ * @brief Enumeration for call sound path.
+ * @since_tizen 2.3
+ */
 typedef enum {
-       TAPI_SOUND_PATH_HANDSET                 =0x01,          /**< Audio path is handset */
-       TAPI_SOUND_PATH_HEADSET         =0x02,          /**< Audio path is handset */
-       TAPI_SOUND_PATH_HANDSFREE               =0x03,  /**< Audio path is Handsfree */
-       TAPI_SOUND_PATH_BLUETOOTH               =0x04,  /**< Audio path is bluetooth */
-       TAPI_SOUND_PATH_STEREO_BLUETOOTH   =0x05,       /**< Audio path is stereo bluetooth */
-       TAPI_SOUND_PATH_SPK_PHONE               =0x06,  /**< Audio path is speaker phone */
-       TAPI_SOUND_PATH_HEADSET_3_5PI       =0x07,      /**< Audio path is headset_3_5PI */
-       TAPI_SOUND_PATH_BT_NSEC_OFF         =0x08,      /**< Audio path Bluetooth NSEC is off */
-       TAPI_SOUND_PATH_MIC1                =0x09,      /**< Audio path Mic one */
-       TAPI_SOUND_PATH_MIC2                =0x0A,      /**< Audio path Bluetooth Mic two */
-       TAPI_SOUND_PATH_HEADSET_HAC         =0x0B,      /**< Audio path is headset HAC */
+       TAPI_SOUND_PATH_HANDSET = 0x01,         /**< Audio path is handset */
+       TAPI_SOUND_PATH_HEADSET = 0x02,         /**< Audio path is handset */
+       TAPI_SOUND_PATH_HANDSFREE = 0x03,       /**< Audio path is Handsfree */
+       TAPI_SOUND_PATH_BLUETOOTH = 0x04,       /**< Audio path is bluetooth */
+       TAPI_SOUND_PATH_STEREO_BLUETOOTH = 0x05,        /**< Audio path is stereo bluetooth */
+       TAPI_SOUND_PATH_SPK_PHONE = 0x06,       /**< Audio path is speaker phone */
+       TAPI_SOUND_PATH_HEADSET_3_5PI = 0x07,   /**< Audio path is headset_3_5PI */
+       TAPI_SOUND_PATH_BT_NSEC_OFF = 0x08,     /**< Audio path Bluetooth NSEC is off */
+       TAPI_SOUND_PATH_MIC1 = 0x09,    /**< Audio path Mic one */
+       TAPI_SOUND_PATH_MIC2 = 0x0A,    /**< Audio path Bluetooth Mic two */
+       TAPI_SOUND_PATH_HEADSET_HAC = 0x0B,     /**< Audio path is headset HAC */
 } TelSoundPath_t;
 
+/**
+ * @brief The structure type for call sound path.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       TelSoundPath_t path;    /**< TBD */
+       TelSoundPath_t path;    /**< Sound Path */
        enum ExtraVolumeStatus {
-               TAPI_SOUND_EX_VOLUME_OFF,       /**< TBD */
-               TAPI_SOUND_EX_VOLUME_ON,        /**< TBD */
-       } ex_volume;    /**< TBD */
+               TAPI_SOUND_EX_VOLUME_OFF,       /**< Extra Volume OFF */
+               TAPI_SOUND_EX_VOLUME_ON,        /**< Extra volume ON */
+       } ex_volume;
 } TelCallSoundPathInfo_t;
 
+/**
+ * @brief Enumeration for call sound mute path.
+ * @since_tizen 2.3
+ */
 typedef enum {
        TAPI_SOUND_MUTE_PATH_TX = 0x00, /**< Sound mute path transmit */
        TAPI_SOUND_MUTE_PATH_RX = 0x02, /**< Sound mute path receiver */
-       TAPI_SOUND_MUTE_PATH_ALL= 0x04, /**< Sound mute path all */
+       TAPI_SOUND_MUTE_PATH_ALL = 0x04, /**< Sound mute path all */
 } TelSoundMutePath_t;
 
+/**
+ * @brief Enumeration for call sound mute status.
+ * @since_tizen 2.3
+ */
 typedef enum {
        TAPI_SOUND_MUTE_STATUS_OFF = 0x00, /**< Sound mute status off */
-       TAPI_SOUND_MUTE_STATUS_ON  = 0x01, /**< Sound mute status on */
+       TAPI_SOUND_MUTE_STATUS_ON = 0x01, /**< Sound mute status on */
 } TelSoundMuteStatus_t;
 
+/**
+ * @brief Enumeration for call sound noise reduction.
+ * @since_tizen 2.3
+ */
 typedef enum {
        TAPI_SOUND_NOISE_REDUCTION_OFF, /**< Sound noise reduction off */
-       TAPI_SOUND_NOISE_REDUCTION_ON,  /**< Sound noise reduction on */
+       TAPI_SOUND_NOISE_REDUCTION_ON, /**< Sound noise reduction on */
 } TelSoundNoiseReduction_t;
 
+/**
+ * @brief The structure type for call answer response data.
+ * @since_tizen 2.3
+ * @see tel_answer_call()
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallAnswerCnf_t;
 
+/**
+ * @brief The structure type for call end response data.
+ * @since_tizen 2.3
+ * @see tel_end_call()
+ */
 typedef struct {
-       TelCallEndType_t type;  /**< TBD */
-       unsigned int id;        /**< TBD */
+       TelCallEndType_t type;  /**< End Type */
+       unsigned int id;        /**< ID */
 } TelCallEndCnf_t;
 
+/**
+ * @brief The structure type for call hold response data.
+ * @since_tizen 2.3
+ * @see tel_hold_call()
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallHoldCnf_t;
 
+/**
+ * @brief The structure type for call active response data.
+ * @since_tizen 2.3
+ * @see tel_active_call()
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallActiveCnf_t;
 
+/**
+ * @brief The structure type for call swap response data.
+ * @since_tizen 2.3
+ * @see tel_swap_call()
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallSwapCnf_t;
 
+/**
+ * @brief The structure type for call join response data.
+ * @since_tizen 2.3
+ * @see tel_join_call()
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallJoinCnf_t;
 
+/**
+ * @brief The structure type for call split response data.
+ * @since_tizen 2.3
+ * @see tel_split_call()
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallSplitCnf_t;
 
+/**
+ * @brief The structure type for call transfer response data.
+ * @since_tizen 2.3
+ * @see tel_transfer_call()
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallTransferCnf_t;
 
+/**
+ * @brief The structure type for call volume info response data.
+ * @since_tizen 2.3
+ * @see tel_get_call_volume_info()
+ */
 typedef struct {
-       unsigned int record_num;        /**< TBD */
-       TelCallVolumeInfo_t record[ 20 ];       /**< TBD */
+       unsigned int record_num;        /**< Record Number */
+       TelCallVolumeInfo_t record[20]; /**< Volume Info Record */
 } TelCallGetVolumeInfoResp_t;
 
+/**
+ * @brief The structure type for call mute status response data.
+ * @since_tizen 2.3
+ * @see tel_get_call_mute_status()
+ */
 typedef struct {
-       TelSoundMutePath_t path;        /**< TBD */
-       TelSoundMuteStatus_t status;    /**< TBD */
+       TelSoundMutePath_t path;        /**< Mute Path */
+       TelSoundMuteStatus_t status;    /**< Mute Status */
 } TelCallGetMuteStatusResp_t;
 
+/**
+ * @brief The structure type for call privacy mode response data.
+ * @since_tizen 2.3
+ * @see tel_get_call_privacy_mode()
+ */
 typedef struct {
-       TelCallPrivacyMode_t mode;
+       TelCallPrivacyMode_t mode; /**< Privacy Mode */
 } TelCallGetPrivacyModeResp_t;
 
+/**
+ * @brief The structure type for call idle status notification data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
        TelTapiEndCause_t cause; /**< End cause for the call indicates whether the call is released normally or due to some other cause */
 } TelCallStatusIdleNoti_t;
 
+/**
+ * @brief The structure type for call active status notification data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallStatusActiveNoti_t;
 
+/**
+ * @brief The structure type for call held status notification data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallStatusHeldNoti_t;
 
+/**
+ * @brief The structure type for call dialing status notification data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallStatusDialingNoti_t;
 
+/**
+ * @brief The structure type for call alert status notification data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallStatusAlertNoti_t;
 
+/**
+ * @brief The structure type for call incoming status notification data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallStatusIncomingNoti_t;
 
+/**
+ * @brief The structure type for call waiting status notification data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallStatusWaitingNoti_t;
 
+/**
+ * @brief The structure type for call waiting info notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_WAITING
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoWaitingNoti_t;
 
+/**
+ * @brief The structure type for call forward info notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_FORWARDED
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoForwardedNoti_t;
 
+/**
+ * @brief The structure type for call forwarded info notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_FORWARDED_CALL
+ */
 typedef struct {
-       unsigned int id;
+       unsigned int id;        /**< ID */
 } TelCallInfoForwardedCallNoti_t;
 
+/**
+ * @brief The structure type for call barred incoming notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_BARRED_INCOMING
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoBarredIncomingNoti_t;
 
+/**
+ * @brief The structure type for call barred outgoing notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_BARRED_OUTGOING
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoBarredOutgoingNoti_t;
 
+/**
+ * @brief The structure type for call forward conditional notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_FORWARD_CONDITIONAL
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoForwardConditionalNoti_t;
 
+/**
+ * @brief The structure type for call forward unconditional notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_FORWARD_UNCONDITIONAL
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoForwardUnconditionalNoti_t;
 
+/**
+ * @brief The structure type for call active info notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_ACTIVE
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoActiveNoti_t;
 
+/**
+ * @brief The structure type for call held info notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_HELD
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoHeldNoti_t;
 
+/**
+ * @brief The structure type for call joined info notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_JOINED
+ */
 typedef struct {
-       unsigned int id;        /**< TBD */
+       unsigned int id;        /**< ID */
 } TelCallInfoJoinedNoti_t;
 
+/**
+ * @brief The structure type for OTASP status notification data. (CDMA only)
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_OTASP_STATUS
+ */
 typedef struct {
-       TelCallOtaspStatus_t otasp_status;
+       TelCallOtaspStatus_t otasp_status; /**< OTASP Status */
 } TelCallOtaspStatusNoti_t;
 
+/**
+ * @brief The structure type for OTAPA status notification data. (CDMA only)
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_OTAPA_STATUS
+ */
 typedef struct {
-       TelCallOtapaStatus_t otapa_status;
+       TelCallOtapaStatus_t otapa_status; /**< OTAPA Status */
 } TelCallOtapaStatusNoti_t;
 
-
+/**
+ * @brief The structure type for voice privacy notification data. (CDMA only)
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_PRIVACY_MODE
+ */
 typedef struct {
        TelCallPrivacyMode_t privacy_mode; /**< Voice Privacy Mode */
 } TelCallVoicePrivacyNoti_t;
 
-
+/**
+ * @brief The structure type for call record info notification data. (CDMA only)
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_INFO_REC
+ */
 typedef struct {
-       TelCallRecordInfo_t info;
+       TelCallRecordInfo_t info; /**< Record Info */
 } TelCallRecordInfoNoti_t;
 
+/**
+ * @brief The structure type for signal info notification data. (CDMA only)
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_SIGNAL_INFO
+ */
 typedef struct {
-       TelCallAlertSignalType_t signal_type;
-       TelCallAlertPitchType_t pitch_type;
+       TelCallAlertSignalType_t signal_type; /**< Signal Type */
+       TelCallAlertPitchType_t pitch_type; /**< Pitch Type */
        union {
-               TelCallToneSignal_t sig_tone_type;
-               TelCallIsdnAlertSignal_t sig_isdn_alert_type;
-               TelCallIs54bAlertSignal_t sig_is54b_alert_type;
+               TelCallToneSignal_t sig_tone_type; /**< Signal Tone Type */
+               TelCallIsdnAlertSignal_t sig_isdn_alert_type; /**< Signal ISDN Alert Type */
+               TelCallIs54bAlertSignal_t sig_is54b_alert_type; /**< Signal IS54B Alert Type */
        } signal;
 } TelCallSignalInfoNoti_t;
 
+/**
+ * @brief The structure type for call sound path notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_SOUND_PATH
+ */
 typedef struct {
-       TelSoundPath_t path;    /**< TBD */
+       TelSoundPath_t path;    /**< Sound Path */
 } TelCallSoundPathNoti_t;
 
+/**
+ * @brief Enumeration for call sound ringback tone notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_SOUND_RINGBACK_TONE
+ */
 typedef enum {
-       TAPI_CALL_SOUND_RINGBACK_TONE_END,      /**< TBD */
-       TAPI_CALL_SOUND_RINGBACK_TONE_START,    /**< TBD */
+       TAPI_CALL_SOUND_RINGBACK_TONE_END,      /**< Ringback Tone End */
+       TAPI_CALL_SOUND_RINGBACK_TONE_START,    /**< Ringback Tone Start */
 } TelCallSoundRingbackToneNoti_t;
 
+/**
+ * @brief Enumeration for call sound WBAMR notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_SOUND_WBAMR
+ */
 typedef enum {
-       TAPI_CALL_SOUND_WBAMR_STATUS_OFF,       /**< TBD */
-       TAPI_CALL_SOUND_WBAMR_STATUS_ON,        /**< TBD */
-       TAPI_CALL_SOUND_WBAMR_STATUS_OFF_16K,   /**< TBD */
-       TAPI_CALL_SOUND_WBAMR_STATUS_ON_8K,     /**< TBD */
+       TAPI_CALL_SOUND_WBAMR_STATUS_OFF,       /**< Status OFF */
+       TAPI_CALL_SOUND_WBAMR_STATUS_ON,        /**< Status ON */
+       TAPI_CALL_SOUND_WBAMR_STATUS_OFF_16K,   /**< Status OFF 16k */
+       TAPI_CALL_SOUND_WBAMR_STATUS_ON_8K,     /**< Status ON 8k */
 } TelCallSoundWbamrNoti_t;
 
+/**
+ * @brief The structure type for call sound noise reduction notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_SOUND_NOISE_REDUCTION
+ */
 typedef struct {
-       TelSoundNoiseReduction_t status;        /**< TBD */
+       TelSoundNoiseReduction_t status;        /**< Noise Reduction Status */
 } TelCallSoundNoiseReductionNoti_t;
 
+/**
+ * @brief The structure type for preferred voice subscription.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_CALL_PREFERRED_VOICE_SUBSCRIPTION
+ */
 typedef struct {
-       TelCallPreferredVoiceSubs_t preferred_subs;
+       TelCallPreferredVoiceSubs_t preferred_subs; /**< Preferred Voice Subscription */
 } TelCallPreferredVoiceSubsNoti_t;
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif  // _TEL_CALL_H_
+#endif /* _TEL_CALL_H_ */
 
 /**
  * @}
index e153b0e4409103613358703cbd660d8597953385..3b4c2a848bf112e3a01c6109de6d0a78d17b3fa2 100644 (file)
 #ifndef _TEL_MISC_H_
 #define _TEL_MISC_H_
 
-#include <sys/time.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#define MAX_VERSION_LEN        32    /**< Maximum version length *///sw version, hw version, rf cal date, me sn
-#define FUS_DUMMY_DATA_SIZE 2     /**< Data Size*/
-
-#define        MMICHECK_CALL_RELEASE_NOTI      "User.LauncherUi.RequestTermination"
-#define        MMICHECK_END_ALL_NOTI           "User.LauncherUi.RequestTermination"
-#define        MMICHECK_DIALER_KEY_NOTI        "User.LauncherUi.DialerKeyInsert"
-#define        MMICHECK_ACTIVITY_VIEW_NOTI     "User.MMICheck.ActivityView.ChangeStatus"
-
-#define TAPI_MISC_ME_SN_LEN_MAX                                32
-#define TAPI_MISC_PRODUCT_CODE_LEN_MAX         32
-#define TAPI_MISC_MODEL_ID_LEN_MAX                     17
-#define TAPI_MISC_PRL_ERI_VER_LEN_MAX          17
-
-#define TAPI_MISC_MCC_LEN_MAX                          3
-#define TAPI_MISC_MNC_LEN_MAX                          2
-#define TAPI_MISC_MIN_LEN_MAX                          10
-#define TAPI_MISC_MDN_LEN_MAX                          15
-#define TAPI_MISC_NAME_LEN_MAX                         17
-#define TAPI_MISC_ME_DEVICE_NAME_LEN_MAX               32
-
 /**
- * @brief Enumeration for the MMI check key values.
+ * @brief Definition for the maximum length of version.
  * @since_tizen 2.3
  */
-typedef enum {
-       MMI_CHECK_DIAL_STAR             =       0x2A,   /**< 20 00 2A AF 4B 7E */
-       MMI_CHECK_DIAL_SHARP    =       0x23,   /**< 20 00 23 6E D6 7E */
-       MMI_CHECK_DIAL_0                =       0x30,   /**< 20 00 30 74 F4 7E */
-       MMI_CHECK_DIAL_1,                                       /**< 20 00 31 FD E5 7E */
-       MMI_CHECK_DIAL_2,                                       /**< 20 00 32 66 D7 7E */
-       MMI_CHECK_DIAL_3,                                       /**< 20 00 33 EF C6 7E */
-       MMI_CHECK_DIAL_4,                                       /**< 20 00 34 50 B2 7E */
-       MMI_CHECK_DIAL_5,                                       /**< 20 00 35 D9 A3 7E */
-       MMI_CHECK_DIAL_6,                                       /**< 20 00 36 42 91 7E */
-       MMI_CHECK_DIAL_7,                                       /**< 20 00 37 CB 80 7E */
-       MMI_CHECK_DIAL_8,                                       /**< 20 00 38 3C 78 7E */
-       MMI_CHECK_DIAL_9,                                       /**< 20 00 39 B5 69 7E */
-
-       MMI_CHECK_END_ALL               =       0x41,   /**< TBD */
-
-       MMI_CHECK_CALL                  =       0x50,   /**< 20 00 50 72 97 7E */
-       MMI_CHECK_END                   =       0x51,   /**< 20 00 51 FB 86 7E */
-       MMI_CHECK_CANCEL                =       0x52,   /**< 20 00 52 60 B4 7E */
-       MMI_CHECK_RIGHT                 =       0x53,   /**< 20 00 5C 1E 5D 7E */
-       MMI_CHECK_SIDE_UP               =       0x54,   /**< 20 00 54 56 D1 7E */
-       MMI_CHECK_SIDE_DOWN             =       0x55,   /**< 20 00 55 DF C0 7E */
-
-       MMI_CHECK_LEFT                  =       0x5B,   /**< 20 00 5B A1 29 7E */
-       MMI_CHECK_ARROW_UP              =       0x63,   /**< 20 00 63 6A 94 7E */
-       MMI_CHECK_ARROW_DOWN    =       0x64,   /**< 20 00 64 D5 E0 7E */
-       MMI_CHECK_ARROW_LEFT    =       0x65,   /**< 20 00 65 5C F1 7E */
-       MMI_CHECK_ARROW_RIGHT   =       0x66,   /**< 20 00 66 C7 C3 7E */
-
-       MMI_CHECK_WAP                   =       0x8C,   /**< 20 00 53 E9 A5 7E */
-       MMI_CHECK_CAMERA                =       0x8D,   /**< 20 01 8D C2 83 7E */
-       MMI_CHECK_MP3                   =       0xDD,   /**< 20 00 DD 9F C8 7E */
-       MMI_CHECK_POWER                 =       0x95,   /**< 20 00 95 D3 06 7E */
-       MMI_CHECK_LONG_PRESS    =       0xFF    /**< TBD */
-} TelMiscMMICHECK_t;
+#define MAX_VERSION_LEN 32
 
 /**
- * @brief Enumeration for the application key types.
+ * @brief Definition for the maximum length of serial number.
  * @since_tizen 2.3
  */
-typedef enum {
-       KEY_EXT_DIAL_0 = 0,     /**< TBD */
-       KEY_EXT_DIAL_1,     /**< TBD */
-       KEY_EXT_DIAL_2,     /**< TBD */
-       KEY_EXT_DIAL_3,     /**< TBD */
-       KEY_EXT_DIAL_4,     /**< TBD */
-       KEY_EXT_DIAL_5,     /**< TBD */
-       KEY_EXT_DIAL_6,     /**< TBD */
-       KEY_EXT_DIAL_7,     /**< TBD */
-       KEY_EXT_DIAL_8,     /**< TBD */
-       KEY_EXT_DIAL_9,     /**< TBD */
-       KEY_EXT_DIAL_STAR,      /**< 10 : * */
-       KEY_EXT_DIAL_SHARP,     /**< 11 : # */
-
-       KEY_EXT_DIAL_BACK,      /**< 12 : <- (backkey) */
-       KEY_EXT_DIAL_HIDE,      /**< 13 :�� (hidekey) */
-       KEY_EXT_DIAL_P,         /**< 14 : p */
-       KEY_EXT_DIAL_PLUS,      /**< 15 : + */
-       KEY_EXT_DIAL_MUTE,      /**< 16 : mute */
-
-       KEY_EXT_DIAL_CALL                       =       100,            /**< 100 : BTN1 (call) */
-       KEY_EXT_DIAL_MESSAGE,                                           /**< 101 : BTN2 (message) */
-       KEY_EXT_DIAL_VIDEO_CALL,                                        /**< 102 : BTN3 (video call) */
-       KEY_EXT_DIAL_SAVE,                                                      /**< 103 : BTN4 (save) */
-       KEY_EXT_DIAL_CALL_END,                                          /**< noti publish */
-       KEY_EXT_TERMINATE_ALL,  /**< TBD */
-
-       KEY_EXT_PAGEDOWN                        =       114,            /**< Volume down */
-       KEY_EXT_PAGEUP                          =       115,            /**< Volume up */
-       KEY_EXT_POWER                           =       116,            /**< Power short */
-       KEY_EXT_PEOPLE_VIEW                     =       132,            /**< People view */
-       KEY_EXT_TIMELINE                        =       169,            /**< Lifedrive */
-       KEY_EXT_PREPARE_CAMERA          =       171,            /**< Prepare Camera */
-       KEY_EXT_ACTIVITY_VIEW           =       174,            /**< Activity view */
-       KEY_EXT_CAMERA                          =       212,            /**< Camera */
-       KEY_EXT_SEARCH                          =       217,            /**< Phone Search */
-       KEY_EXT_POWER_LONG                      =       356,            /**< Power off */
-
-       KEY_EXT_INVALID_KEY                     =       500     /**< TBD */
-} TelMiscApplicationKey_t;
+#define TAPI_MISC_ME_SN_LEN_MAX 32
 
 /**
- * @brief Enumeration for the touch event types.
+ * @brief Definition for the maximum length of product code.
  * @since_tizen 2.3
  */
-typedef enum {
-       TAPI_DIAG_TOUCH_CLICK_DOWN = 0x000F, /**< 0x0F00: Click Down */
-       TAPI_DIAG_TOUCH_MOVE = 0x0010,       /**< 0x1000: Move */
-       TAPI_DIAG_TOUCH_CLICK_UP = 0x0011,   /**< 0x1100: Click Up */
-       TAPI_DIAG_TOUCH_HOLD = 0x0012        /**< 0x1200: Hold */
-} TelMiscDiagTouchEventType_t;
+#define TAPI_MISC_PRODUCT_CODE_LEN_MAX 32
 
 /**
- * @brief Enumeration for the validity of alarm booting.
+ * @brief Definition for the maximum length of model ID.
  * @since_tizen 2.3
  */
-typedef enum {
-       TAPI_MISC_ALARMBOOT_INACTIVATE, /**< 0x00: Inactivate */
-       TAPI_MISC_ALARMBOOT_ACTIVATE    /**< 0x00: Activate */
-} TelMiscAlarmMode_t;
-
-typedef enum {
-       TAPI_MISC_ME_IMEI = 0x00, /**< 0x00: IMEI, GSM/UMTS device */
-       TAPI_MISC_ME_ESN = 0x01,  /**< 0x01: ESN(Electronic Serial Number), it has essentially run out. CDMA device */
-       TAPI_MISC_ME_MEID = 0x02, /**< 0x02: MEID, this value can have hexa decimal digits. CDMA device */
-       TAPI_MISC_ME_MAX = 0xff   /**< 0xff: Reserved */
-} TelMiscSNIndexType_t;
+#define TAPI_MISC_MODEL_ID_LEN_MAX 17
 
 /**
- * @brief Enumeration for the NAM Information MASK field.
+ * @brief Definition for the maximum length of PRL version.
  * @since_tizen 2.3
  */
-typedef enum {
-       TAPI_MISC_NAM_INFO_MASK_TOTAL                   = 0x0001,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_CURRENT_INDEX   = 0x0002,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_REQUEST_INDEX   = 0x0004,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_AUTONAM         = 0x0008,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_MCC                     = 0x0010,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_MNC                     = 0x0020,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_MIN                     = 0x0040,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_MDN                     = 0x0080,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_NAM_NAME                = 0x0100,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_NAM_CHANGE              = 0x0200,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_NAM_NUM         = 0x0400,       /**< TBD */
-       TAPI_MISC_NAM_INFO_MASK_ALL                     = 0x8000        /**< TBD */
-} TelMiscNamInfoMaskType_t;
+#define TAPI_MISC_PRL_ERI_VER_LEN_MAX 17
 
 /**
- * @brief Enumeration for the NAMIndex field.
+ * @brief Definition for the maximum length of device name.
  * @since_tizen 2.3
  */
-typedef enum {
-       TAPI_MISC_NAM_1 = 0x00, /**< TBD */
-       TAPI_MISC_NAM_2,            /**< TBD */
-       TAPI_MISC_NAM_3,            /**< TBD */
-       TAPI_MISC_NAM_4,            /**< TBD */
-       TAPI_MISC_NAM_5         /**< TBD */
-} TelMiscNamIndex_t;
-
-
-/**
- * @brief Enumeration for the day of the week.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_MISC_NITZ_DOW_SUN = 0x00, /**< Sunday */
-       TAPI_MISC_NITZ_DOW_MON = 0x01, /**< Monday */
-       TAPI_MISC_NITZ_DOW_TUE = 0x02, /**< Tuesday */
-       TAPI_MISC_NITZ_DOW_WED = 0x03, /**< Wednesday */
-       TAPI_MISC_NITZ_DOW_THU = 0x04, /**< Thursday */
-       TAPI_MISC_NITZ_DOW_FRI = 0X05, /**< Friday */
-       TAPI_MISC_NITZ_DOW_SAT = 0x06  /**< Saturday */
-} tapi_misc_nitz_dayofweek_t;
-
-/**
- * @brief Enumeration for daylight adjustment.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_MISC_NITZ_NOADJUST = 0x00, /**< No daylight adjustment */
-       TAPI_MISC_NITZ_ONE_HR = 0x01,   /**< One hour */
-       TAPI_MISC_NITZ_TW0_HR = 0x02    /**< Two hours */
-} tapi_misc_nitz_daylight_t;
-
-/**
- * @brief Enumeration for the types of data.
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_MISC_NITZ_INVALID                  = 0x00, /**< Invalid */
-       TAPI_MISC_NITZ_TIMEINFO_NW_CDMA = 0x01, /**< Time info network */
-       TAPI_MISC_NITZ_TIMEINFO_NW_GSM  = 0x02, /**< Time info network */
-       TAPI_MISC_NITZ_RTC_INFO_LINE    = 0x03, /**< RTC Info line */
-       TAPI_MISC_NITZ_RTC_BKUP_PHONE   = 0x04, /**< RTC Backup phone */
-       TAPI_MISC_NITZ_NO_TIME_INFO     = 0x05      /**< No time info */
-} tapi_misc_nitz_timeinfo_t;
+#define TAPI_MISC_ME_DEVICE_NAME_LEN_MAX 32
 
 /**
  * @brief The structure type for Mobile Equipment Version Information.
  * @since_tizen 2.3
+ * @see tel_get_misc_me_version()
+ * @see tel_get_misc_me_version_sync()
  */
 typedef struct {
-       unsigned char ver_mask; /**< Version mask  - 0x01:SW_ver, 0x02:HW_ver, 0x04:RF_CAL_date, 0x08:Product_code, 0x10:Model_ID, 0x20:PRL, 0x04:ERI, 0xff:all */
+       unsigned char ver_mask; /**< Version mask - 0x01:SW_ver, 0x02:HW_ver, 0x04:RF_CAL_date, 0x08:Product_code, 0x10:Model_ID, 0x20:PRL, 0x04:ERI, 0xff:all */
        unsigned char szSwVersion[MAX_VERSION_LEN]; /**< Software version, null termination */
        unsigned char szHwVersion[MAX_VERSION_LEN]; /**< Hardware version, null termination */
        unsigned char szRfCalDate[MAX_VERSION_LEN]; /**< Calculation Date, null termination */
@@ -257,6 +92,8 @@ typedef struct {
 /**
  * @brief The structure type for Mobile Equipment Serial Number Information.
  * @since_tizen 2.3
+ * @see tel_get_misc_me_sn()
+ * @see tel_get_misc_me_sn_sync()
  */
 typedef struct {
        unsigned char szEsn[TAPI_MISC_ME_SN_LEN_MAX]; /**< Number */
@@ -265,101 +102,21 @@ typedef struct {
        unsigned char szImeiSv[TAPI_MISC_ME_SN_LEN_MAX]; /**< Number */
 } TelMiscSNInformation;
 
-/**
- * @brief The structure type for the event delivery - event type.
- * @since_tizen 2.3
- */
-typedef struct {
-       struct timeval time; /**< Time information */
-       unsigned short type; /**< Type of event */
-       unsigned short code; /**< Code */
-       long value; /**< Value */
-} input_event_t;
-
-/**
- * @brief The structure type for Diagnostic Key Code Information.
- * @since_tizen 2.3
- */
-typedef struct {
-       unsigned char keycode; /**< Key Code */
-       unsigned char keyhold; /**< Key Hold */
-} TelMiscDiagKeyCodeInfomation;
-
-/**
- * @brief The structure type for alarm info.
- * @since_tizen 2.3
- */
-typedef struct {
-       unsigned char year; /**< Year */
-       unsigned char month; /**< Month */
-       unsigned char day; /**< Day */
-       unsigned char hour; /**< Hour */
-       unsigned char minute; /**< Minute */
-       unsigned char second; /**< Second */
-       unsigned char time_zone; /**< Time zone */
-       tapi_misc_nitz_dayofweek_t day_of_week; /**< Day of the week */
-} TelMiscAlarmInfo_t;
-
-/**
- * @brief The structure type for the alarm response.
- * @since_tizen 2.3
- */
-typedef struct {
-       TelMiscAlarmMode_t validity; /**< Validity */
-       TelMiscAlarmInfo_t alarm_info; /**< Alarm info */
-} TelMiscAlarmStatus_t;
-
-/**
- * @brief The structure type for nam info.
- * @since_tizen 2.3
- */
-typedef struct {
-       unsigned short nam_info_mask;   /**< TBD */
-       unsigned char nam_total;        /**< TBD */ // this field is not used in case of nam set req.
-       unsigned char nam_current_index;        /**< TBD */
-       unsigned char nam_req_index;    /**< TBD */
-       unsigned char nam_auto; /**< TBD */
-       unsigned char nam_mcc[TAPI_MISC_MCC_LEN_MAX+1]; /**< TBD */
-       unsigned char nam_mnc[TAPI_MISC_MCC_LEN_MAX+1]; /**< TBD */
-       unsigned char nam_min[TAPI_MISC_MIN_LEN_MAX+1]; /**< TBD */
-       unsigned char nam_mdn[TAPI_MISC_MDN_LEN_MAX+1]; /**< TBD */
-       unsigned char nam_name[TAPI_MISC_NAME_LEN_MAX+1];       /**< TBD */
-} TelMiscNamInfo_t;
-
-/**
- * @brief The structure type for time info.
- * @since_tizen 2.3
- */
-typedef struct {
-       tapi_misc_nitz_timeinfo_t time_zone_valid; /**< Time zone */
-       int bDaylight_valid; /**< Day light */
-       unsigned char year; /**< Year */
-       unsigned char month; /**< Month */
-       unsigned char day; /**< Day */
-       unsigned char hour; /**< Hour */
-       unsigned char minute; /**< Minute */
-       unsigned char second; /**< Second */
-       unsigned char time_zone; /**< Time zone */
-       tapi_misc_nitz_daylight_t daylight_adjust; /**< Day light adjust */
-       tapi_misc_nitz_dayofweek_t day_of_week; /**< Day of the week */
-       unsigned long plmn; /**< Day of the week */
-} tapi_misc_time_zone_info_type;
-
 /**
  * @brief The structure type for device info of cellular dongle.
  * @since_tizen 2.4
+ * @see tel_get_device_info()
  */
 typedef struct {
-       unsigned char vendor_name[TAPI_MISC_ME_DEVICE_NAME_LEN_MAX+1]; /**< Vendor name */
-       unsigned char device_name[TAPI_MISC_ME_DEVICE_NAME_LEN_MAX+1]; /**< Device name */
+       unsigned char vendor_name[TAPI_MISC_ME_DEVICE_NAME_LEN_MAX + 1]; /**< Vendor name */
+       unsigned char device_name[TAPI_MISC_ME_DEVICE_NAME_LEN_MAX + 1]; /**< Device name */
 } TelMiscDeviceInfo_t;
 
-
 #ifdef __cplusplus
 }
 #endif
 
-#endif // _TEL_MISC_H_
+#endif /* _TEL_MISC_H_ */
 
 /**
  * @}
index c9fa6fc8509d42bf2ead547eb79689c30a3df983..e646fa2c48f9ccbd8480e26f782bc0345788ace9 100644 (file)
@@ -39,90 +39,90 @@ extern "C"
  * @brief Definition for the maximum network order.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_ORDER_MAX                                 5
+#define TAPI_NETWORK_ORDER_MAX 5
 
 /**
  * @brief Definition for the maximum network list.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_LIST_MAX                                  15
+#define TAPI_NETWORK_LIST_MAX  15
 
 /**
  * @brief Definition for the maximum length of the network PLMN.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_PLMN_LEN_MAX                              6
+#define TAPI_NETWORK_PLMN_LEN_MAX      6
 
 /**
  * @brief Definition for the maximum length of the network name.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_NAME_LEN_MAX                              40
+#define TAPI_NETWORK_NAME_LEN_MAX      40
 
 /**
  * @brief Definition for the maximum length of the network service provider's name.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_SPN_LEN_MAX                               20
+#define TAPI_NETWORK_SPN_LEN_MAX       20
 /**
  * @brief Definition for the maximum records of the preferred PLMN list.
  * @since_tizen 2.3
  */
-#define TAPI_PREFERRED_PLMN_RECORDS_MAX                        150
+#define TAPI_PREFERRED_PLMN_RECORDS_MAX        150
 
 /**
  * @brief Definition for the maximum network display info elements.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_DISPLAY_INFO_ELEMENTS             4
+#define TAPI_NETWORK_DISPLAY_INFO_ELEMENTS     4
 
 /**
  * @brief Definition for the maximum length of the network home zone tag.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_HOMEZONE_TAG_MAX_LEN              13
+#define TAPI_NETWORK_HOMEZONE_TAG_MAX_LEN      13
 
 /**
  * @brief Definition for the maximux network CS display index.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_CS_DISP_INDEX                             0
+#define TAPI_NETWORK_CS_DISP_INDEX     0
 
 /**
  * @brief Definition for the maximum network PS display index.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_PS_DISP_INDEX                             1
+#define TAPI_NETWORK_PS_DISP_INDEX     1
 
 /**
  * @brief Definition for the maximum network SVC display index.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_SVC_DISP_INDEX                            2
+#define TAPI_NETWORK_SVC_DISP_INDEX    2
 
 /**
  * @brief Definition for the maximum network roaming display index.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_ROAM_DISP_INDEX                   3
+#define TAPI_NETWORK_ROAM_DISP_INDEX   3
 
 /**
  * @brief Definition for the maximum number of subscriber services.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_SUBS_SVC_NUM_MAX                  6
+#define TAPI_NETWORK_SUBS_SVC_NUM_MAX  6
 
 /**
  * @brief Definition for the maximum length of the subscriber number.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_SUBS_NUM_LEN_MAX                  40
+#define TAPI_NETWORK_SUBS_NUM_LEN_MAX  40
 
 /**
  * @brief Definition for the maximum length of the subscriber name.
  * @since_tizen 2.3
  */
-#define TAPI_NETWORK_SUBS_ALPHA_LEN_MAX                        16
+#define TAPI_NETWORK_SUBS_ALPHA_LEN_MAX        16
 
 /**
  * @brief Definition for the maximum GERAN neighboring cell list.
@@ -140,48 +140,56 @@ extern "C"
 /**
  * @brief Definition for the "set network mode to automatic" value.
  * @since_tizen 2.3
+ * @see tel_get_network_mode()
  */
-#define TAPI_NETWORK_MODE_AUTO         0x00
+#define TAPI_NETWORK_MODE_AUTO 0x00
 
 /**
  * @brief Definition for "set network mode to GSM" value.
  * @since_tizen 2.3
+ * @see tel_get_network_mode()
  */
-#define TAPI_NETWORK_MODE_GSM          0x01
+#define TAPI_NETWORK_MODE_GSM  0x01
 
 /**
  * @brief Definition for the "set network mode to WCDMA" value.
  * @since_tizen 2.3
+ * @see tel_get_network_mode()
  */
-#define TAPI_NETWORK_MODE_WCDMA                0x02
+#define TAPI_NETWORK_MODE_WCDMA        0x02
 
 /**
  * @brief Definition for the "set network mode to 1XRTT" value.
  * @since_tizen 2.3
+ * @see tel_get_network_mode()
  */
-#define TAPI_NETWORK_MODE_1XRTT                0x04
+#define TAPI_NETWORK_MODE_1XRTT        0x04
 
 /**
  * @brief Definition for the "set network mode to LTE" value.
  * @since_tizen 2.3
+ * @see tel_get_network_mode()
  */
-#define TAPI_NETWORK_MODE_LTE          0x08
+#define TAPI_NETWORK_MODE_LTE  0x08
 
 /**
  * @brief Definition for the "set network mode to EVDO" value.
  * @since_tizen 2.3
+ * @see tel_get_network_mode()
  */
-#define TAPI_NETWORK_MODE_EVDO         0x10
+#define TAPI_NETWORK_MODE_EVDO 0x10
 
 /**
  * @brief Definition for the "set network mode to CDMA" value.
  * @since_tizen 2.3
+ * @see tel_get_network_mode()
  */
-#define TAPI_NETWORK_MODE_CDMA         0x14
+#define TAPI_NETWORK_MODE_CDMA 0x14
 
 /**
- * @brief Enumeration for the network selection modes.
+ * @brief Enumeration for the network selection mode.
  * @since_tizen 2.3
+ * @see tel_get_network_selection_mode()
  */
 typedef enum {
        TAPI_NETWORK_SELECTIONMODE_AUTOMATIC,   /**< Network selection is in the Automatic selection mode */
@@ -200,48 +208,51 @@ typedef enum {
 /**
  * @brief Enumeration for the status of the network service.
  * @since_tizen 2.3
+ * @see #TAPI_PROP_NETWORK_CIRCUIT_STATUS
+ * @see #TAPI_PROP_NETWORK_PACKET_STATUS
  */
 typedef enum {
-       TAPI_NETWORK_SERVICE_LEVEL_NO,                  /**< No service available in the network ME is camped */
+       TAPI_NETWORK_SERVICE_LEVEL_NO,          /**< No service available in the network ME is camped */
        TAPI_NETWORK_SERVICE_LEVEL_EMERGENCY,   /**< Only emergency service available in the network ME is camped */
-       TAPI_NETWORK_SERVICE_LEVEL_FULL,                /**< FULL service available in the network ME is camped */
-       TAPI_NETWORK_SERVICE_LEVEL_SEARCH               /**< Searching for service */
+       TAPI_NETWORK_SERVICE_LEVEL_FULL,        /**< FULL service available in the network ME is camped */
+       TAPI_NETWORK_SERVICE_LEVEL_SEARCH       /**< Searching for service */
 } TelNetworkServiceLevel_t;
 
 /**
  * @brief Enumeration for the service types of TAPI.
  * @since_tizen 2.3
+ * @see #TAPI_PROP_NETWORK_SERVICE_TYPE
  */
 typedef enum {
        TAPI_NETWORK_SERVICE_TYPE_UNKNOWN = 0x0,        /**< Service type is Unknown */
        TAPI_NETWORK_SERVICE_TYPE_NO_SERVICE,           /**< No Service available */
        TAPI_NETWORK_SERVICE_TYPE_EMERGENCY,            /**< Service type is Emergency */
-       TAPI_NETWORK_SERVICE_TYPE_SEARCH,                       /**< Service type is Searching */
-       TAPI_NETWORK_SERVICE_TYPE_2G,                           /**< Service type is 2G. In case of CDMA, service type is set to 2G when System Type is IS95A/IS95B/CDMA_1X */
-       TAPI_NETWORK_SERVICE_TYPE_2_5G,                         /**< Service type is 2.5G */
+       TAPI_NETWORK_SERVICE_TYPE_SEARCH,               /**< Service type is Searching */
+       TAPI_NETWORK_SERVICE_TYPE_2G,                   /**< Service type is 2G. In case of CDMA, service type is set to 2G when System Type is IS95A/IS95B/CDMA_1X */
+       TAPI_NETWORK_SERVICE_TYPE_2_5G,                 /**< Service type is 2.5G */
        TAPI_NETWORK_SERVICE_TYPE_2_5G_EDGE,            /**< Service type is 2.5G (EDGE) */
-       TAPI_NETWORK_SERVICE_TYPE_3G,                           /**< Service type is 3G. In case of CDMA, service type is set to 3G when System Type is EVDO_REV_0/REV_A/REV_B/EHRPD */
-       TAPI_NETWORK_SERVICE_TYPE_HSDPA,                        /**< Service type is HSDPA */
-       TAPI_NETWORK_SERVICE_TYPE_LTE                           /**< Service type is LTE */
+       TAPI_NETWORK_SERVICE_TYPE_3G,                   /**< Service type is 3G. In case of CDMA, service type is set to 3G when System Type is EVDO_REV_0/REV_A/REV_B/EHRPD */
+       TAPI_NETWORK_SERVICE_TYPE_HSDPA,                /**< Service type is HSDPA */
+       TAPI_NETWORK_SERVICE_TYPE_LTE                   /**< Service type is LTE */
 } TelNetworkServiceType_t;
 
 /**
  * @brief Enumeration for the system types of TAPI.
  * @since_tizen 2.3
+ * @see #TAPI_PROP_NETWORK_ACT
  */
-typedef enum
-{
-       TAPI_NETWORK_SYSTEM_NO_SRV,                             /**< No Service available */
-       TAPI_NETWORK_SYSTEM_GSM,                                /**< Available service is GSM */
-       TAPI_NETWORK_SYSTEM_GPRS,                               /**< Available service is GPRS */
-       TAPI_NETWORK_SYSTEM_EGPRS,                              /**< Available service is EGPRS */
-       TAPI_NETWORK_SYSTEM_PCS1900,                    /**< Available service is PCS1900 band */
-       TAPI_NETWORK_SYSTEM_UMTS,                               /**< Available service is UMTS */
-       TAPI_NETWORK_SYSTEM_GSM_AND_UMTS,               /**< Both GSM and UMTS systems available */
-       TAPI_NETWORK_SYSTEM_HSDPA,                              /**< Available service is HSDPA */
-       TAPI_NETWORK_SYSTEM_IS95A,                              /**< Available service is IS95A */
-       TAPI_NETWORK_SYSTEM_IS95B,                              /**< Available service is IS95B */
-       TAPI_NETWORK_SYSTEM_CDMA_1X,                    /**< Available service is CDMA 1X */
+typedef enum {
+       TAPI_NETWORK_SYSTEM_NO_SRV,             /**< No Service available */
+       TAPI_NETWORK_SYSTEM_GSM,                /**< Available service is GSM */
+       TAPI_NETWORK_SYSTEM_GPRS,               /**< Available service is GPRS */
+       TAPI_NETWORK_SYSTEM_EGPRS,              /**< Available service is EGPRS */
+       TAPI_NETWORK_SYSTEM_PCS1900,            /**< Available service is PCS1900 band */
+       TAPI_NETWORK_SYSTEM_UMTS,               /**< Available service is UMTS */
+       TAPI_NETWORK_SYSTEM_GSM_AND_UMTS,       /**< Both GSM and UMTS systems available */
+       TAPI_NETWORK_SYSTEM_HSDPA,              /**< Available service is HSDPA */
+       TAPI_NETWORK_SYSTEM_IS95A,              /**< Available service is IS95A */
+       TAPI_NETWORK_SYSTEM_IS95B,              /**< Available service is IS95B */
+       TAPI_NETWORK_SYSTEM_CDMA_1X,            /**< Available service is CDMA 1X */
        TAPI_NETWORK_SYSTEM_EVDO_REV_0, /**< Available service is EV-DO rev0 */
        TAPI_NETWORK_SYSTEM_1X_EVDO_REV_0_HYBRID, /**< Available service is 1X and EV-DO rev0 */
        TAPI_NETWORK_SYSTEM_EVDO_REV_A, /**< Available service is EV-DO revA */
@@ -257,135 +268,129 @@ typedef enum
  * @brief Enumeration for the different network bands.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_NETWORK_BAND_TYPE_ANY = 0x00,              /**< All bands can be tried */
-       TAPI_NETWORK_BAND_TYPE_GSM850,                  /**< This member sets the band to GSM 850 */
+typedef enum {
+       TAPI_NETWORK_BAND_TYPE_ANY = 0x00,      /**< All bands can be tried */
+       TAPI_NETWORK_BAND_TYPE_GSM850,          /**< This member sets the band to GSM 850 */
        TAPI_NETWORK_BAND_TYPE_GSM_900_1800,    /**< This member sets the band to GSM 900_1800 */
-       TAPI_NETWORK_BAND_TYPE_GSM1900,                 /**< GSM 1900 */
-       TAPI_NETWORK_BAND_TYPE_GSM,                             /**< This member sets all GSM bands */
-       TAPI_NETWORK_BAND_TYPE_WCDMA,                   /**< This member sets all WCDMA bands */
-       TAPI_NETWORK_BAND_TYPE_WCDMA850,                /**< This member sets the band to WCDMA 850 */
-       TAPI_NETWORK_BAND_TYPE_WCDMA1900,               /**< This member sets the band to WCDMA 1900 */
-       TAPI_NETWORK_BAND_TYPE_WCDMA2100,               /**< This member sets the band to WCDMA 2100 */
-       TAPI_NETWORK_BAND_TYPE_GSM900,                  /**< GSM 900 */
-       TAPI_NETWORK_BAND_TYPE_GSM1800,                 /**< This member sets the band to GSM 1800 */
+       TAPI_NETWORK_BAND_TYPE_GSM1900,         /**< GSM 1900 */
+       TAPI_NETWORK_BAND_TYPE_GSM,             /**< This member sets all GSM bands */
+       TAPI_NETWORK_BAND_TYPE_WCDMA,           /**< This member sets all WCDMA bands */
+       TAPI_NETWORK_BAND_TYPE_WCDMA850,        /**< This member sets the band to WCDMA 850 */
+       TAPI_NETWORK_BAND_TYPE_WCDMA1900,       /**< This member sets the band to WCDMA 1900 */
+       TAPI_NETWORK_BAND_TYPE_WCDMA2100,       /**< This member sets the band to WCDMA 2100 */
+       TAPI_NETWORK_BAND_TYPE_GSM900,          /**< GSM 900 */
+       TAPI_NETWORK_BAND_TYPE_GSM1800,         /**< This member sets the band to GSM 1800 */
        TAPI_NETWORK_BAND_TYPE_GSM_850_1900,    /**< This member sets the band to GSM 850_1900 */
-       TAPI_NETWORK_BAND_TYPE_LTE_BAND_4,              /**< This member sets the band to LTE BAND 4 */
-       TAPI_NETWORK_BAND_TYPE_LTE_BAND_17              /**< This member sets the band to LTE BAND 17 */
+       TAPI_NETWORK_BAND_TYPE_LTE_BAND_4,      /**< This member sets the band to LTE BAND 4 */
+       TAPI_NETWORK_BAND_TYPE_LTE_BAND_17      /**< This member sets the band to LTE BAND 17 */
 } TelNetworkBand_t;
 
 /**
  * @brief Enumeration for the different network operation causes.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_NETWORK_NO_ERR = 0x00,                                     /**< There is no error for any network operation */
-       TAPI_NETWORK_OPERATION_ABORTED,                         /**< This error is sent when an operation is aborted */
-       TAPI_NETWORK_OPERATION_FAILED,                          /**< There is an error for a network operation */
-       TAPI_NETWORK_PHONE_IN_USE_ERR,                          /**< This error will be returned when a network operation is tried while the phone is in use(eg: Voice / Data call in progress due to which network operation failed) */
-       TAPI_NETWORK_OFFLINE_ERR,                                       /**< This error is sent when a network option is tried when the phone is in the offline mode */
+typedef enum {
+       TAPI_NETWORK_NO_ERR = 0x00,             /**< There is no error for any network operation */
+       TAPI_NETWORK_OPERATION_ABORTED,         /**< This error is sent when an operation is aborted */
+       TAPI_NETWORK_OPERATION_FAILED,          /**< There is an error for a network operation */
+       TAPI_NETWORK_PHONE_IN_USE_ERR,          /**< This error will be returned when a network operation is tried while the phone is in use(eg: Voice / Data call in progress due to which network operation failed) */
+       TAPI_NETWORK_OFFLINE_ERR,               /**< This error is sent when a network option is tried when the phone is in the offline mode */
        TAPI_NETWORK_CONFIG_SETTINGS_FAILURE_ERR,       /**< This error is sent when a modem is unable to process the config settings information */
-       TAPI_NETWORK_INTERNAL_FAILURE_ERR,                      /**< This error is used to indicate an internal failure */
-       TAPI_NETWORK_MEMORY_FULL_ERR                            /**< This error is caused when the memory is full */
+       TAPI_NETWORK_INTERNAL_FAILURE_ERR,      /**< This error is used to indicate an internal failure */
+       TAPI_NETWORK_MEMORY_FULL_ERR            /**< This error is caused when the memory is full */
 } TelNetworkOperationCause_t;
 
 /**
  * @brief Enumeration for the operation that can be done on a preferred PLMN.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_NETWORK_PREF_PLMN_ADD=0x01,                        /**< Addition to the Network Preferred PLMN list */
-       TAPI_NETWORK_PREF_PLMN_EDIT,                            /**< Edit the network Preferred PLMN list */
-       TAPI_NETWORK_PREF_PLMN_DELETE                           /**< Delete the entry to the network Preferred PLMN list */
+typedef enum {
+       TAPI_NETWORK_PREF_PLMN_ADD = 0x01,      /**< Addition to the Network Preferred PLMN list */
+       TAPI_NETWORK_PREF_PLMN_EDIT,            /**< Edit the network Preferred PLMN list */
+       TAPI_NETWORK_PREF_PLMN_DELETE           /**< Delete the entry to the network Preferred PLMN list */
 } TelNetworkPreferredPlmnOp_t;
 
 /**
  * @brief Enumeration for the network PLMN type.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_UNKNOWN_PLMN=0,                            /**< Network PLMN type - Unknown */
-       TAPI_HOME_PLMN ,                                        /**< Network PLMN type - Home PLMN */
-       TAPI_AVAILABLE_PLMN,                            /**< Network PLMN type - Available */
-       TAPI_FORBIDDEN_PLMN,                            /**< Network PLMN type - Forbidden */
-}TelNetworkPlmnType_t;
+typedef enum {
+       TAPI_UNKNOWN_PLMN = 0,  /**< Network PLMN type - Unknown */
+       TAPI_HOME_PLMN ,        /**< Network PLMN type - Home PLMN */
+       TAPI_AVAILABLE_PLMN,    /**< Network PLMN type - Available */
+       TAPI_FORBIDDEN_PLMN,    /**< Network PLMN type - Forbidden */
+} TelNetworkPlmnType_t;
 
 /**
  * @brief Enumeration for the network home zone command.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_NETWORK_ZONEINFO_NONE,                             /**< Network Zone info none */
-       TAPI_NETWORK_ZONEINFO_IND,                              /**< Network Zone info indication */
-       TAPI_NETWORK_ZONEINFO_CLEAR                             /**< Network Zone info clear */
-}TelNetworkHomeZoneCommand_t;
+typedef enum {
+       TAPI_NETWORK_ZONEINFO_NONE,     /**< Network Zone info none */
+       TAPI_NETWORK_ZONEINFO_IND,      /**< Network Zone info indication */
+       TAPI_NETWORK_ZONEINFO_CLEAR     /**< Network Zone info clear */
+} TelNetworkHomeZoneCommand_t;
 
 /**
  * @brief Enumeration for the network home zone type.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_NETWORK_ZONE_NONE,                                 /**< Network Zone Type none */
-       TAPI_NETWORK_ZONETYPE_HOMEZONE,             /**< Network Zone Type Home zone */
-       TAPI_NETWORK_ZONETYPE_CITYZONE,                 /**< Network Zone Type City zone */
-}TelNetworkHomeZone_t;
+typedef enum {
+       TAPI_NETWORK_ZONE_NONE,                 /**< Network Zone Type none */
+       TAPI_NETWORK_ZONETYPE_HOMEZONE,         /**< Network Zone Type Home zone */
+       TAPI_NETWORK_ZONETYPE_CITYZONE,         /**< Network Zone Type City zone */
+} TelNetworkHomeZone_t;
 
 /**
  * @brief Enumeration for the network name display condition type.
  * @since_tizen 2.3
+ * @see #TAPI_PROP_NETWORK_NAME_OPTION
  */
-typedef enum
-{
-       TAPI_NETWORK_DISP_INVALID= 0x00,                /**< Invalid Display Condition */
-       TAPI_NETWORK_DISP_SPN = 0x01,                   /**< Display Condition is SPN */
-       TAPI_NETWORK_DISP_PLMN = 0x02,              /**< Display Condition is PLMN */
-       TAPI_NETWORK_DISP_SPN_PLMN = 0x03,          /**< Display Condition is SPN or PLMN */
-}TelNetworkNameDispCondition_t;
+typedef enum {
+       TAPI_NETWORK_DISP_INVALID = 0x00,       /**< Invalid Display Condition */
+       TAPI_NETWORK_DISP_SPN = 0x01,           /**< Display Condition is SPN */
+       TAPI_NETWORK_DISP_PLMN = 0x02,          /**< Display Condition is PLMN */
+       TAPI_NETWORK_DISP_SPN_PLMN = 0x03,      /**< Display Condition is SPN or PLMN */
+} TelNetworkNameDispCondition_t;
 
 /**
  * @brief Enumeration for the CDMA Preferred Network Type(CDMA only).
  * @since_tizen 2.3
+ * @see tel_get_network_roaming_preference()
  */
-typedef enum
-{
-    TAPI_NETWORK_PREF_NET_TYPE_HOME_ONLY = 0,
-    TAPI_NETWORK_PREF_NET_TYPE_AFFILIATED = 1,
-    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC = 2,
-    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_A = 3,
-    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_B = 4,
-    TAPI_NETWORK_PREF_NET_TYPE_ROAM_DOMESTIC = 5,
-    TAPI_NETWORK_PREF_NET_TYPE_ROAM_INTERNATIONAL = 6,
-    TAPI_NETWORK_PREF_NET_TYPE_ROAM_DUAL = 7,
-    TAPI_NETWORK_PREF_NET_TYPE_BLANK = 8,
+typedef enum {
+       TAPI_NETWORK_PREF_NET_TYPE_HOME_ONLY = 0, /**< Home only */
+       TAPI_NETWORK_PREF_NET_TYPE_AFFILIATED = 1, /**< Affiliated */
+       TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC = 2, /**< Automatic */
+       TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_A = 3, /**< Automatic-A */
+       TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_B = 4, /**< Automatic-B */
+       TAPI_NETWORK_PREF_NET_TYPE_ROAM_DOMESTIC = 5, /**< Roam Domestic */
+       TAPI_NETWORK_PREF_NET_TYPE_ROAM_INTERNATIONAL = 6, /**< Roam International */
+       TAPI_NETWORK_PREF_NET_TYPE_ROAM_DUAL = 7, /**< Roam Dual */
+       TAPI_NETWORK_PREF_NET_TYPE_BLANK = 8, /**< Blank */
 } TelNetworkPrefNetType_t;
 
 /**
  * @brief Enumeration for the CDMA PRL Preferred Only field stored in the PRL(CDMA only).
  * @since_tizen 2.3
  */
-typedef enum
-{
-    TAPI_NETWORK_PRL_PREF_ONLY_OFF,                    /**< Preferred Only is FALSE */
-    TAPI_NETWORK_PRL_PREF_ONLY_ON,                     /**< Preferred Only is TRUE */
-    TAPI_NETWORK_PRL_PREF_ONLY_NONE                    /**< There isn't any Preferred Only Option */
+typedef enum {
+       TAPI_NETWORK_PRL_PREF_ONLY_OFF, /**< Preferred Only is FALSE */
+       TAPI_NETWORK_PRL_PREF_ONLY_ON,  /**< Preferred Only is TRUE */
+       TAPI_NETWORK_PRL_PREF_ONLY_NONE /**< There isn't any Preferred Only Option */
 } TelNetworkPrlPrefOnly_t;
 
 /**
  * @brief Enumeration for the packet service protocol type.
  * @since_tizen 2.3
+ * @see #TAPI_PROP_NETWORK_PS_TYPE
  */
 typedef enum {
-       TAPI_NETWORK_PS_TYPE_UNKNOWN,
-       TAPI_NETWORK_PS_TYPE_HSDPA,
-       TAPI_NETWORK_PS_TYPE_HSUPA,
-       TAPI_NETWORK_PS_TYPE_HSPA,
-       TAPI_NETWORK_PS_TYPE_HSPAP
+       TAPI_NETWORK_PS_TYPE_UNKNOWN, /**< Unknown PS Type */
+       TAPI_NETWORK_PS_TYPE_HSDPA, /**< HSDPA */
+       TAPI_NETWORK_PS_TYPE_HSUPA, /**< HSUPA */
+       TAPI_NETWORK_PS_TYPE_HSPA, /**< HSPA */
+       TAPI_NETWORK_PS_TYPE_HSPAP /**< HSPAP */
 } TelNetworkPsType_t;
 
 /**
@@ -393,10 +398,10 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_NETWORK_NAME_OPTION_NONE,
-       TAPI_NETWORK_NAME_OPTION_SPN,
-       TAPI_NETWORK_NAME_OPTION_OPERATOR,
-       TAPI_NETWORK_NAME_OPTION_ANY
+       TAPI_NETWORK_NAME_OPTION_NONE, /**< Name Option None */
+       TAPI_NETWORK_NAME_OPTION_SPN, /**< SPN */
+       TAPI_NETWORK_NAME_OPTION_OPERATOR, /**< Operator */
+       TAPI_NETWORK_NAME_OPTION_ANY /**< Any */
 } TelNetworkNameOption_t;
 
 /**
@@ -404,9 +409,9 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_NETWORK_DEFAULT_DATA_SUBS_UNKNOWN = -1,  /**< Unknown status */
-       TAPI_NETWORK_DEFAULT_DATA_SUBS_SIM1 = 0,      /**< SIM 1 */
-       TAPI_NETWORK_DEFAULT_DATA_SUBS_SIM2           /**< SIM 2 */
+       TAPI_NETWORK_DEFAULT_DATA_SUBS_UNKNOWN = -1, /**< Unknown status */
+       TAPI_NETWORK_DEFAULT_DATA_SUBS_SIM1 = 0, /**< SIM 1 */
+       TAPI_NETWORK_DEFAULT_DATA_SUBS_SIM2 /**< SIM 2 */
 } TelNetworkDefaultDataSubs_t;
 
 /**
@@ -415,9 +420,9 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_NETWORK_DEFAULT_SUBS_UNKNOWN = -1,  /**<  Unknown status **/
+       TAPI_NETWORK_DEFAULT_SUBS_UNKNOWN = -1, /**< Unknown status **/
        TAPI_NETWORK_DEFAULT_SUBS_SIM1 = 0, /**< SIM 1 network **/
-       TAPI_NETWORK_DEFAULT_SUBS_SIM2 /**<  SIM 2 network **/
+       TAPI_NETWORK_DEFAULT_SUBS_SIM2 /**< SIM 2 network **/
 } TelNetworkDefaultSubs_t;
 
 /**
@@ -435,6 +440,7 @@ typedef struct {
 /**
  * @brief The structure type for the preferred PLMN list.
  * @since_tizen 2.3
+ * @see tel_get_network_preferred_plmn()
  */
 typedef struct {
        unsigned int NumOfPrefPlmns; /**< Number of preferred PLMNs in the list */
@@ -447,7 +453,7 @@ typedef struct {
  */
 typedef struct {
        unsigned short LocationAreaCode; /**< Network Location area code */
-       unsigned long CellId;            /**< Network Cell ID */
+       unsigned long CellId; /**< Network Cell ID */
 } TelNetworkLocationCellInfo_t;
 
 /**
@@ -475,7 +481,7 @@ typedef struct {
 typedef struct {
        char network_name[TAPI_NETWORK_NAME_LEN_MAX + 1]; /**< Network Name */
        char service_provider_name[TAPI_NETWORK_NAME_LEN_MAX + 1]; /**< Service provider name */
-       char plmn[TAPI_NETWORK_PLMN_LEN_MAX+1]; /**< Network PLMN */
+       char plmn[TAPI_NETWORK_PLMN_LEN_MAX + 1]; /**< Network PLMN */
        unsigned int plmn_id; /**< PLMN ID */
        TelNetworkPlmnType_t type_of_plmn; /**< PLMN type */
        TelNetworkSystemType_t access_technology; /**< Access technology */
@@ -484,6 +490,7 @@ typedef struct {
 /**
  * @brief The structure type for the network PLMN list.
  * @since_tizen 2.3
+ * @see tel_search_network()
  */
 typedef struct {
        char networks_count; /**< Network PLMN count */
@@ -498,6 +505,10 @@ typedef struct {
        int DisplayInfo[TAPI_NETWORK_DISPLAY_INFO_ELEMENTS]; /**< Network display info */
 } TelNetworkDisplayInfo_t;
 
+/**
+ * @brief The structure type for network SPN PLMN display info.
+ * @since_tizen 2.3
+ */
 typedef struct {
        TelNetworkNameDispCondition_t DispCondition; /**< Display condition of SPN & PLMN */
        unsigned char Spn[TAPI_NETWORK_SPN_LEN_MAX + 1]; /**< SPN value */
@@ -521,7 +532,7 @@ typedef struct {
  * @since_tizen 2.3
  */
 typedef struct {
-       int  carrier; /**< CDMA Carrier */
+       int carrier; /**< CDMA Carrier */
        unsigned int system_id; /**< System ID */
        unsigned int network_id; /**< Network ID */
        unsigned int base_station_id; /**< Base station ID */
@@ -531,58 +542,79 @@ typedef struct {
        unsigned int pilot_offset; /**< Pilot Offset */
 } TelNetworkCdmaSysInfo_t;
 
+/**
+ * @brief The structure type for serving network info.
+ * @since_tizen 2.3
+ * @see tel_get_network_serving()
+ */
 typedef struct {
        TelNetworkSystemType_t act; /**< Access technology */
-       char plmn[TAPI_NETWORK_PLMN_LEN_MAX+1]; /**< Network PLMN */
+       char plmn[TAPI_NETWORK_PLMN_LEN_MAX + 1]; /**< Network PLMN */
        union {
                int lac; /**< Location Area Code - 3GPP Only */
                TelNetworkCdmaSysInfo_t cdma_info; /**< CDMA Only */
-       }info;
+       } info;
 } TelNetworkServing_t;
 
+/**
+ * @brief The structure type for GERAN cell info.
+ * @since_tizen 2.3
+ */
 typedef struct {
        int cell_id;    /**< Cell ID (@c -1 indicates that cell ID information is not present) */
-       int lac;                /**< Location area code (this field is ignored when @a cell_id is not present) */
-       int bcch;               /**< Broadcast Control Channel Frequency number */
-       int bsic;               /**< Base Station Identification Code */
-       int rxlev;              /**< Received Signal Strength level. Valid values are (0-63, 99)
-                                        * Reference: 33GPP TS 45.008 [20] subclause 8.1.4
-                                          - Rxlev 0 is a signal strength less than -110 dBm
-                                      - Rxlev 1 is -110 dBm to -109 dBm
-                                      - Rxlev 2 is -109 dBm to -108 dBm
-                                      - ...
-                                      - Rxlev 62 is -49 dBm to -48 dBm
-                                      - Rxlev 63 is greater than -48 dBm
-                                      - Rxlev 99 is not known or detectable
-                                    */
+       int lac;        /**< Location area code (this field is ignored when @a cell_id is not present) */
+       int bcch;       /**< Broadcast Control Channel Frequency number */
+       int bsic;       /**< Base Station Identification Code */
+       int rxlev;      /**< Received Signal Strength level. Valid values are (0-63, 99)
+                        * Reference: 33GPP TS 45.008 [20] subclause 8.1.4
+                        - Rxlev 0 is a signal strength less than -110 dBm
+                        - Rxlev 1 is -110 dBm to -109 dBm
+                        - Rxlev 2 is -109 dBm to -108 dBm
+                        - ...
+                        - Rxlev 62 is -49 dBm to -48 dBm
+                        - Rxlev 63 is greater than -48 dBm
+                        - Rxlev 99 is not known or detectable
+                        */
 } TelNetworkGeranCellInfo_t;
 
+/**
+ * @brief The structure type for UMTS cell info.
+ * @since_tizen 2.3
+ */
 typedef struct {
        int cell_id;    /**< UCID (@c -1 indicates that cell ID information is not present) */
-                                       /* UCID : RNCID + Cell ID(16 bit) */
-       int lac;                /**< Location area code (this field is ignored when @a cell_id is not present) */
+                       /* UCID : RNCID + Cell ID(16 bit) */
+       int lac;        /**< Location area code (this field is ignored when @a cell_id is not present) */
        int arfcn;      /**< UTRA Absolute RF Channel Number */
-       int psc;                /**< Primary scrambling Code */
-       int rscp;               /**< Received Signal Code Power. Valid values are (0-96, 255)
-                                        * Reference : 3GPP TS 25.133 [95] subclause 9.1.1.3 and 3GPP TS 25.123 [96] subclause 9.1.1.1.3)
-                                          - Rscp 0 is a signal strength less than -120 dBm
-                                      - Rscp 1 is -120 dBm to -119 dBm
-                                      - Rscp 2 is -119 dBm to -118 dBm
-                                      - ...
-                                      - Rscp 95 is -26 dBm to -25 dBm
-                                      - Rscp 96 is greater than -25 dBm
-                                      - Rscp 255 is not known or detectable
-                                */
+       int psc;        /**< Primary scrambling Code */
+       int rscp;       /**< Received Signal Code Power. Valid values are (0-96, 255)
+                        * Reference : 3GPP TS 25.133 [95] subclause 9.1.1.3 and 3GPP TS 25.123 [96] subclause 9.1.1.1.3)
+                        - Rscp 0 is a signal strength less than -120 dBm
+                        - Rscp 1 is -120 dBm to -119 dBm
+                        - Rscp 2 is -119 dBm to -118 dBm
+                        - ...
+                        - Rscp 95 is -26 dBm to -25 dBm
+                        - Rscp 96 is greater than -25 dBm
+                        - Rscp 255 is not known or detectable
+                        */
 } TelNetworkUmtsCellInfo_t;
 
+/**
+ * @brief The structure type for LTE cell info.
+ * @since_tizen 2.3
+ */
 typedef struct {
        int cell_id;    /**< Cell ID (@c -1 indicates that cell ID information is not present) */
-       int lac;                /**< Location area code (this field is ignored when @a cell_id is not present) */
+       int lac;        /**< Location area code (this field is ignored when @a cell_id is not present) */
        int earfcn;     /**< E-UTRA Absolute RF Channel Number */
-       int tac;                /**< Tracking area code */
-       int rssi;               /**< RSSI in dBm(signed) */
+       int tac;        /**< Tracking area code */
+       int rssi;       /**< RSSI in dBm(signed) */
 } TelNetworkLteCellInfo_t;
 
+/**
+ * @brief The structure type for CDMA cell info.
+ * @since_tizen 2.3
+ */
 typedef struct {
        unsigned int system_id; /**< System ID */
        unsigned int network_id;        /**< Network ID */
@@ -592,6 +624,10 @@ typedef struct {
        int base_station_longitude; /**< Longitude of the current base station */
 } TelNetworkCdmaCellInfo_t;
 
+/**
+ * @brief The structure type for serving cell info.
+ * @since_tizen 2.3
+ */
 typedef struct {
        TelNetworkSystemType_t act;     /**< Access technology */
        int mcc;        /**< Mobile Country Code */
@@ -601,9 +637,14 @@ typedef struct {
                TelNetworkUmtsCellInfo_t umts;  /**< UMTS cell info */
                TelNetworkLteCellInfo_t lte;    /**< LTE cell info */
                TelNetworkCdmaCellInfo_t cdma;  /**< CDMA cell info */
-       } cell;         /**< TBD */
+       } cell;
 } TelNetworkServingCellInfo_t;
 
+/**
+ * @brief The structure type for neighboring cell info.
+ * @since_tizen 2.3
+ * @see tel_get_network_neighboring_cell_info()
+ */
 typedef struct {
        TelNetworkServingCellInfo_t serving;    /**< Serving cell info */
        int geran_list_count;/**< GERAN cell info list count */
@@ -613,7 +654,9 @@ typedef struct {
 } TelNetworkNeighboringCellInfo_t;
 
 /**
- * NEW NEW NEW
+ * @brief The structure type for network registration status.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_REGISTRATION_STATUS
  */
 typedef struct {
        TelNetworkServiceLevel_t cs; /**< Circuit Switched status */
@@ -622,52 +665,96 @@ typedef struct {
        int is_roaming; /**< Roaming status 1: TRUE; FALSE otherwise */
 } TelNetworkRegistrationStatus_t;
 
+/**
+ * @brief The structure type for network signal strength notification.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_SIGNALSTRENGTH
+ */
 struct tel_noti_network_signal_strength {
        int dbm; /**< Signal Strenght in dBm */
 };
 
+/**
+ * @brief The structure type for network cell info notification.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_CELLINFO
+ */
 struct tel_noti_network_cell_info {
-       int lac; /**< Location Area Code */
+       int lac; /**< Location Area Code (In case of LTE network, it represents Tracking Area Code) */
        int cell_id; /**< Cell ID */
 };
 
+/**
+ * @brief The structure type for network change notification.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_CHANGE
+ */
 struct tel_noti_network_change {
        TelNetworkSystemType_t act; /**< Access technology */
-       char plmn[TAPI_NETWORK_PLMN_LEN_MAX+1]; /**< Network PLMN */
+       char plmn[TAPI_NETWORK_PLMN_LEN_MAX + 1]; /**< Network PLMN */
 };
 
+/**
+ * @brief The structure type for network time notification.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_TIMEINFO
+ */
 struct tel_noti_network_time_info {
-       int year;               /**< TBD */
-       int month;              /**< TBD */
-       int day;                /**< TBD */
-       int hour;               /**< TBD */
-       int minute;             /**< TBD */
-       int second;             /**< TBD */
-       int wday;               /**< TBD */
-       int gmtoff;             /**< TBD */
-       int dstoff;             /**< TBD */
-       int isdst;              /**< TBD */
-       char plmn[TAPI_NETWORK_PLMN_LEN_MAX+1]; /**< Network PLMN */
+       int year;       /**< Year */
+       int month;      /**< Month */
+       int day;        /**< Day */
+       int hour;       /**< Hour */
+       int minute;     /**< Minute */
+       int second;     /**< Second */
+       int wday;       /**< Wday */
+       int gmtoff;     /**< GMT Off */
+       int dstoff;     /**< DST Off */
+       int isdst;      /**< Is DST */
+       char plmn[TAPI_NETWORK_PLMN_LEN_MAX + 1]; /**< Network PLMN */
 };
 
-struct  tel_noti_network_identity {
-       char plmn[TAPI_NETWORK_PLMN_LEN_MAX+1]; /**< Network PLMN */
+/**
+ * @brief The structure type for network identity notification.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_IDENTITY
+ */
+struct tel_noti_network_identity {
+       char plmn[TAPI_NETWORK_PLMN_LEN_MAX + 1]; /**< Network PLMN */
        char short_name[17]; /**< Short network name */
        char full_name[33]; /**< Full network name */
 };
 
+/**
+ * @brief The structure type for network emergency callback mode notification.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_EMERGENCY_CALLBACK_MODE
+ */
 struct tel_noti_network_emergency_callback_mode {
        TelNetworkEmergencyCallbackMode_t mode; /**< Emergency Callback Mode status */
 };
 
+/**
+ * @brief The structure type for network neighboring cell info notification.
+ * @since_tizen 2.3
+ */
 struct tel_noti_network_neighboring_cell_info {
        TelNetworkNeighboringCellInfo_t info; /**< Neighboring Cell Information */
 };
 
+/**
+ * @brief The structure type for network default data subscription.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_DEFAULT_DATA_SUBSCRIPTION
+ */
 struct tel_noti_network_default_data_subs {
        TelNetworkDefaultDataSubs_t default_subs; /**< 'default' Data Subscription */
 };
 
+/**
+ * @brief The structure type for network default subscription.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_NETWORK_DEFAULT_SUBSCRIPTION
+ */
 struct tel_noti_network_default_subs {
        TelNetworkDefaultSubs_t default_subs; /**< 'default' Subscription */
 };
@@ -676,8 +763,8 @@ struct tel_noti_network_default_subs {
 }
 #endif
 
-#endif // _TEL_NETWORK_H_
+#endif /* _TEL_NETWORK_H_ */
 
 /**
-* @}
-*/
+ * @}
+ */
diff --git a/include/TelOem.h b/include/TelOem.h
new file mode 100644 (file)
index 0000000..0f4a5e9
--- /dev/null
@@ -0,0 +1,68 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @file TelOem.h
+ */
+
+/**
+ * @addtogroup CAPI_TELEPHONY_SERVICE_OEM
+ * @{
+ */
+
+#ifndef _TEL_OEM_H_
+#define _TEL_OEM_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief OEM data Request & Response structure - typedef #struct oem_data
+ * @since_tizen 2.4
+ */
+typedef struct oem_data TelOemData_t;
+
+/**
+ * @brief OEM data Notification structure - typedef #struct oem_data
+ * @since_tizen 2.4
+ */
+typedef struct oem_data TelOemNotiData_t;
+
+/**
+ * @brief OEM data base structure
+ * @since_tizen 2.4
+ * @see tel_send_oem_data_sync()
+ * @see tel_send_oem_data_async()
+ */
+struct oem_data {
+       unsigned int oem_id; /**< Oem ID */
+       unsigned int data_len; /**< Oem data length */
+       unsigned char *data; /**< Oem data */
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif  /* _TEL_OEM_H_ */
+/**
+ * @}
+ */
index 6869213bdc1c0ddf2de0305b82fde10154cec094..19859f28b219a6ea9768c87d9f133c369f0369cf 100644 (file)
@@ -49,6 +49,7 @@ typedef enum {
 /**
  * @brief Enumeration for the phone power status values.
  * @since_tizen 2.3
+ * @see tel_check_modem_power_status()
  */
 typedef enum {
        TAPI_PHONE_POWER_STATUS_UNKNOWN = -1,
@@ -60,39 +61,27 @@ typedef enum {
 } tapi_power_phone_power_status_t;
 
 /**
- * @details Enumeration for flight modes.
+ * @brief Enumeration for flight mode request type.
  * @since_tizen 2.3
  */
 typedef enum {
        TAPI_POWER_FLIGHT_MODE_ENTER = 0x01, /**< ONLINE OFF */
        TAPI_POWER_FLIGHT_MODE_LEAVE, /**< ONLINE ON */
-       TAPI_POWER_FLIGHT_MODE_MAX              /**< TBD */
+       TAPI_POWER_FLIGHT_MODE_MAX /**< MAX value */
 } tapi_power_flight_mode_type_t;
 
+/**
+ * @brief Enumeration for flight mode response type.
+ * @since_tizen 2.3
+ * @see tel_set_flight_mode()
+ */
 typedef enum {
        TAPI_POWER_FLIGHT_MODE_RESP_ON = 0x01, /**< Flight Mode On Success */
        TAPI_POWER_FLIGHT_MODE_RESP_OFF, /**< Flight Mode Off Success */
        TAPI_POWER_FLIGHT_MODE_RESP_FAIL, /**< Flight Mode Request Fail */
-       TAPI_POWER_FLIGHT_MODE_RESP_MAX         /**< TBD */
+       TAPI_POWER_FLIGHT_MODE_RESP_MAX /**< MAX value */
 } tapi_power_flight_mode_resp_type_t;
 
-/**
- * @brief Enumeration for the phone battery status levels.
- *
- * @details
- * 0x01 : Power Off Level                     => PhoneLevel = power off
- * 0x02 : Critical-Low Battery Level          => PhoneLevel = 0
- * 0x03 : Low Battery Level                   => PhoneLevel = 1
- * 0x04 : Normal Level                        => PhoneLevel = 2,3,4
- * @since_tizen 2.3
- */
-typedef enum {
-       TAPI_POWER_BATT_STAT_POWER_OFF_LEVEL = 0x01, /**< Power Off Level */
-       TAPI_POWER_BATT_STAT_CRIT_LOW_LEVEL = 0x02, /**< Critical-Low Battery Level */
-       TAPI_POWER_BATT_STAT_LOW_LEVEL = 0x03, /**< Low Battery Level */
-       TAPI_POWER_BATT_STAT_NORMAL_LEVEL = 0x04 /**< Normal Level */
-} tapi_power_battery_status_level_t;
-
 #ifdef __cplusplus
 }
 #endif
index dee0c3e0f00ec75838eac973c88e37a187c3130a..ce57330c54b63901f993ffe6911579cfd9e7b5b1 100644 (file)
@@ -83,255 +83,251 @@ extern "C"
  * @since_tizen 2.3
  */
 #define TAPI_SAT_REFRESH_FILE_LIST                     20
-#define TAPI_SAT_DEF_SS_LEN_MAX             250
-#define TAPI_SAT_DEF_USSD_LEN_MAX           250
+
+/**
+ * @brief Definition for the maximum length of ss string.
+ * @since_tizen 2.3
+ */
+#define TAPI_SAT_DEF_SS_LEN_MAX 160
+
+/**
+ * @brief Definition for the maximum length of ussd string.
+ * @since_tizen 2.3
+ */
+#define TAPI_SAT_DEF_USSD_LEN_MAX 255
 
 //     Telephony UI USER CONFIRM TYPE
 /**
  * @brief Enumeration for the UI user confirm type.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_SAT_USER_CONFIRM_YES,                      /**< Informs that the user confirms yes */
+typedef enum {
+       TAPI_SAT_USER_CONFIRM_YES,              /**< Informs that the user confirms yes */
        TAPI_SAT_USER_CONFIRM_NO_OR_CANCEL,     /**< Informs that the user confirms no/cancel */
        TAPI_SAT_USER_CONFIRM_HELP_INFO,        /**< Informs that the user wants help information */
-       TAPI_SAT_USER_CONFIRM_END,                      /**< Informs that the user confirms end */
+       TAPI_SAT_USER_CONFIRM_END,              /**< Informs that the user confirms end */
        TAPI_SAT_USER_CONFIRM_TIMEOUT,          /**< Informs that the user did not respond */
-}TelSatUiUserConfirmType_t;
+} TelSatUiUserConfirmType_t;
 
 //     Telephony UI INKEY TYPE
 /**
  * @brief Enumeration for the UI inkey type.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_SAT_INKEY_CONFIRM_NO                               = 0x00,         /**< No */
-       TAPI_SAT_INKEY_CONFIRM_YES                              = 0x01,         /**< Yes */
-}TelSatUiInkeyYesNoCaseType_t;
+typedef enum {
+       TAPI_SAT_INKEY_CONFIRM_NO = 0x00,       /**< No */
+       TAPI_SAT_INKEY_CONFIRM_YES = 0x01,      /**< Yes */
+} TelSatUiInkeyYesNoCaseType_t;
 
 //     Telephony UI DISPLAY STATUS
 /**
  * @brief Enumeration for the UI display status.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_SAT_DISPLAY_SUCCESS                                = 0x00,         /**< Informs about UI display success */
-       TAPI_SAT_DISPLAY_FAIL                                   = 0x01,         /**< Informs about UI display failure */
-}TelSatUiDisplayStatusType_t;
+typedef enum {
+       TAPI_SAT_DISPLAY_SUCCESS = 0x00,        /**< Informs about UI display success */
+       TAPI_SAT_DISPLAY_FAIL = 0x01,           /**< Informs about UI display failure */
+} TelSatUiDisplayStatusType_t;
 
 //     TELEPHONY REFRESH APPLICATION TYPE
 /**
  * @brief Enumeration for the refresh application type.
  * @since_tizen 2.3
  */
- typedef enum
-{
-       TAPI_SAT_REFRESH_CONTACT = 0x00,                                /**< Refresh application type - Phonebook */
-       TAPI_SAT_REFRESH_MSG,                                                   /**< Refresh application type - SMS */
-       TAPI_SAT_REFRESH_OTHER,                                                 /**< Refresh application type - Other */
-       TAPI_SAT_REFRESH_MAX,                                                   /**< Maximum Enumeration Value */
-}TelSatRefreshAppType_t;
+typedef enum {
+       TAPI_SAT_REFRESH_CONTACT = 0x00,        /**< Refresh application type - Phonebook */
+       TAPI_SAT_REFRESH_MSG,                   /**< Refresh application type - SMS */
+       TAPI_SAT_REFRESH_OTHER,                 /**< Refresh application type - Other */
+       TAPI_SAT_REFRESH_MAX,                   /**< Maximum Enumeration Value */
+} TelSatRefreshAppType_t;
 
 //     Telephony COMMAND PERFORMED RESULT
 /**
  * @brief Enumeration for the result of proactive command execution.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_SAT_CMD_PERFORM_SUCCESS = 0x00,            /**< Command performed successfully */
-       TAPI_SAT_CMD_PERFORM_FAIL,                                      /**< Command execution failed */
-       TAPI_SAT_CMD_PERFORM_MAX,                                       /**< Maximum Enumeration Value */
-}TelSatCommandPerformResultType_t;
+typedef enum {
+       TAPI_SAT_CMD_PERFORM_SUCCESS = 0x00,    /**< Command performed successfully */
+       TAPI_SAT_CMD_PERFORM_FAIL,              /**< Command execution failed */
+       TAPI_SAT_CMD_PERFORM_MAX,               /**< Maximum Enumeration Value */
+} TelSatCommandPerformResultType_t;
 
 //     Telephony CALL CONTROL TYPE
 /**
  * @brief Enumeration for the call control type.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_SAT_CALL_CNF_NONE  = 0x00,         /**< Call control confirm type - None */
-       TAPI_SAT_CALL_CNF_CALL,                     /**< Call control confirm type - Call */
-       TAPI_SAT_CALL_CNF_SS,                           /**< Call control confirm type - SS */
-       TAPI_SAT_CALL_CNF_USSD,                         /**< Call control confirm type - USSD */
-       TAPI_SAT_CALL_CNF_MAX,                          /**< Maximum Enumeration Value */
-}TelSatCallCtrlType_t;
+typedef enum {
+       TAPI_SAT_CALL_CNF_NONE  = 0x00, /**< Call control confirm type - None */
+       TAPI_SAT_CALL_CNF_CALL,         /**< Call control confirm type - Call */
+       TAPI_SAT_CALL_CNF_SS,           /**< Call control confirm type - SS */
+       TAPI_SAT_CALL_CNF_USSD,         /**< Call control confirm type - USSD */
+       TAPI_SAT_CALL_CNF_MAX,          /**< Maximum Enumeration Value */
+} TelSatCallCtrlType_t;
 
 //     SAT UI USER CONFIRMATION INFO
 /**
  * @brief The structure type defining user confirmation data.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                             commandId;                              /**< Proactive Command Number sent by USIM */
-       TelSatCommandType_t             commandType;                    /**< Proactive Command Type */
-       TelSatUiUserConfirmType_t       keyType;                        /**< User Response Type */
-       unsigned char*                          pAdditionalData;        /**< Additional Data */
-       int                                                     dataLen;                        /**< Additional Data Length */
-}TelSatUiUserConfirmInfo_t;
+typedef struct {
+       int commandId;                          /**< Proactive Command Number sent by USIM */
+       TelSatCommandType_t commandType;        /**< Proactive Command Type */
+       TelSatUiUserConfirmType_t keyType;      /**< User Response Type */
+       unsigned char *pAdditionalData;         /**< Additional Data */
+       int dataLen;                            /**< Additional Data Length */
+} TelSatUiUserConfirmInfo_t;
 
 //     Telephony TEXT INFO
 /**
  * @brief The structure type defining character data for the SAT engine data structure.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       unsigned short  stringLen;                                                                              /**< Character data length */
-       unsigned char           string[TAPI_SAT_DEF_TEXT_STRING_LEN_MAX+1];     /**< Character data */
-}TelSatTextInfo_t;
+typedef struct {
+       unsigned short stringLen; /**< Character data length */
+       unsigned char string[TAPI_SAT_DEF_TEXT_STRING_LEN_MAX + 1]; /**< Character data */
+} TelSatTextInfo_t;
 
 //     Telephony MAIN MENU TITLE INFO
 /**
  * @brief The structure type defining the main menu title to check the SAT menu.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                             bIsMainMenuPresent;             /**< Flag to check SAT main menu existence */
-       TelSatTextInfo_t        mainMenuTitle;          /**< Main menu title data */
-}TelSatMainMenuTitleInfo_t;
+typedef struct {
+       int bIsMainMenuPresent;         /**< Flag to check SAT main menu existence */
+       TelSatTextInfo_t mainMenuTitle; /**< Main menu title data */
+} TelSatMainMenuTitleInfo_t;
 
 //     Telephony DISPLAY TEXT DATA
 /**
  * @brief The structure type defining the display text proactive command for SAT UI.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_DISPLAY_TEXT
  */
-typedef struct
-{
-       int                                                     commandId;                                      /**< Proactive Command Number sent by USIM */
-       TelSatTextInfo_t                                text;                                   /**< Character data to display on screen */
-       unsigned int                                    duration;                               /**< The duration of the display */
-       int                                                     bIsPriorityHigh;                        /**< Flag that indicates whether text is to be displayed if some other app is using the screen */
-       int                                                     bIsUserRespRequired;            /**< Flag that indicates whether user response is required */
-       int                                                     b_immediately_resp;                 /**< TBD */
-       TelSatIconIdentifierInfo_t      iconId;                                         /**< Icon Identifier */
-}TelSatDisplayTextInd_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       TelSatTextInfo_t text;  /**< Character data to display on screen */
+       unsigned int duration;  /**< The duration of the display */
+       int bIsPriorityHigh;    /**< Flag that indicates whether text is to be displayed if some other app is using the screen */
+       int bIsUserRespRequired;        /**< Flag that indicates whether user response is required */
+       int b_immediately_resp;         /**< Immediately Response */
+       TelSatIconIdentifierInfo_t iconId;      /**< Icon Identifier */
+} TelSatDisplayTextInd_t;
 
 //     Telephony INKEY DATA
 /**
  * @brief The structure type defining get inkey proactive command data for SAT UI.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_GET_INKEY
  */
-typedef struct
-{
-       int                                                     commandId;                              /**< Proactive Command Number sent by USIM */
-       TelSatInkeyType_t                               keyType;                        /**< Input Type: Character Set or Yes/No */
-       TelSatUseInputAlphabetType_t    inputCharMode;          /**< Input character mode(SMS default, UCS2) */
-       int                                                     bIsNumeric;                             /**< Is input character numeric(0-9, *, # and +) */
-       int                                                     bIsHelpInfoAvailable;   /**< Help info request flag */
-       TelSatTextInfo_t                                text;                           /**< Character data to display on the screen */
-       unsigned int                                    duration;                       /**< Duration of the display */
-       TelSatIconIdentifierInfo_t              iconId;                         /**< Icon Identifier */
-}TelSatGetInkeyInd_t;
+typedef struct {
+       int commandId;                  /**< Proactive Command Number sent by USIM */
+       TelSatInkeyType_t keyType;      /**< Input Type: Character Set or Yes/No */
+       TelSatUseInputAlphabetType_t inputCharMode;     /**< Input character mode(SMS default, UCS2) */
+       int bIsNumeric;                 /**< Is input character numeric(0-9, *, # and +) */
+       int bIsHelpInfoAvailable;       /**< Help info request flag */
+       TelSatTextInfo_t text;          /**< Character data to display on the screen */
+       unsigned int duration;          /**< Duration of the display */
+       TelSatIconIdentifierInfo_t iconId;      /**< Icon Identifier */
+} TelSatGetInkeyInd_t;
 
 //     Telephony GET INPUT DATA
 /**
  * @brief The structure type defining get input proactive command data for SAT UI.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_GET_INPUT
  */
-typedef struct
-{
-       int                                                     commandId;                              /**< Proactive Command Number sent by USIM */
-       TelSatUseInputAlphabetType_t    inputCharMode;          /**< Input character mode(SMS default, UCS2) */
-       int                                                     bIsNumeric;                             /**< Is input character numeric(0-9, *, # and +) */
-       int                                                     bIsHelpInfoAvailable;   /**< Help info request flag */
-       int                                                     bIsEchoInput;                   /**< Flag that indicates whether to show input data on the screen */
-       TelSatTextInfo_t                                text;                           /**< Character data to display on the screen*/
-       TelSatRespLenInfo_t                             respLen;                        /**< Input data min, max length */
-       TelSatTextInfo_t                                defaultText;            /**< Default input character data */
-       TelSatIconIdentifierInfo_t              iconId;                         /**< Icon Identifier */
-}TelSatGetInputInd_t;
+typedef struct {
+       int commandId;  /**< Proactive Command Number sent by USIM */
+       TelSatUseInputAlphabetType_t inputCharMode;     /**< Input character mode(SMS default, UCS2) */
+       int bIsNumeric;                 /**< Is input character numeric(0-9, *, # and +) */
+       int bIsHelpInfoAvailable;       /**< Help info request flag */
+       int bIsEchoInput;               /**< Flag that indicates whether to show input data on the screen */
+       TelSatTextInfo_t text;          /**< Character data to display on the screen*/
+       TelSatRespLenInfo_t respLen;    /**< Input data min, max length */
+       TelSatTextInfo_t defaultText;   /**< Default input character data */
+       TelSatIconIdentifierInfo_t iconId;      /**< Icon Identifier */
+} TelSatGetInputInd_t;
 
 //     Telephony PLAY TONE DATA
 /**
  * @brief The structure type defining play tone proactive command data for an application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                             commandId;          /**< Proactive Command Number sent by USIM */
-       TelSatTextInfo_t                        text;           /**< Character data to display on the screen */
-       TelSatToneInfo_t                        tone;           /**< Tone info */
-       unsigned int                            duration;       /**< Duration for playing the tone */
-       TelSatIconIdentifierInfo_t      iconId;         /**< Icon Identifier */
-}TelSatPlayToneInd_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       TelSatTextInfo_t text;  /**< Character data to display on the screen */
+       TelSatToneInfo_t tone;  /**< Tone info */
+       unsigned int duration;  /**< Duration for playing the tone */
+       TelSatIconIdentifierInfo_t iconId;      /**< Icon Identifier */
+} TelSatPlayToneInd_t;
 
 //     Telephony UI info
 /**
  * @brief The structure type defining data for SAT UI.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                             commandId;              /**< Proactive Command Number sent by USIM */
-       int                                             user_confirm;   /**< TBD */
-       TelSatTextInfo_t                        text;           /**< Character data to display on the screen */
-       TelSatIconIdentifierInfo_t      iconId;         /**< Icon Identifier */
-}TelSatSendUiInfo_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       int user_confirm;       /**< User Confirm */
+       TelSatTextInfo_t text;  /**< Character data to display on the screen */
+       TelSatIconIdentifierInfo_t iconId;      /**< Icon Identifier */
+} TelSatSendUiInfo_t;
 
 //     Telephony MENU ITEM DATA FOR SETUP MENU
 /**
  * @brief The structure type defining menu item info for the setup menu.
  * @since_tizen 2.3
  */
-typedef struct
-{
+typedef struct {
        char itemString[TAPI_SAT_DEF_ITEM_STR_LEN_MAX + 6];     /**< Menu item character data */
-       char itemId;                                                                            /**< Identifies the item on the menu that the user selected */
-}TelSatMenuInfo_t;
+       char itemId;    /**< Identifies the item on the menu that the user selected */
+} TelSatMenuInfo_t;
 
 //     Telephony SETUP MENU INFO
 /**
  * @brief The structure type defining SAT main menu info.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_SETUP_MENU
  */
-typedef struct
-{
+typedef struct {
        int commandId;  /**< Proactive Command Number sent by USIM */
-       int     bIsMainMenuPresent;             /**< TBD */
+       int bIsMainMenuPresent;         /**< Main Menu Present or not */
        char satMainTitle[TAPI_SAT_DEF_TITLE_LEN_MAX + 1];      /**< Menu title text */
        TelSatMenuInfo_t satMainMenuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX]; /**< Menu items */
        unsigned short satMainMenuNum;  /**< Number of menu items */
-       int     bIsSatMainMenuHelpInfo; /**< Flag for a help information request */
-       int     bIsUpdatedSatMainMenu;          /**< TBD */
+       int bIsSatMainMenuHelpInfo;     /**< Flag for a help information request */
+       int bIsUpdatedSatMainMenu;      /**< Updated Sat Main Menu or not */
        TelSatIconIdentifierInfo_t iconId;      /**< Icon Identifier */
        TelSatIconIdentifierListInfo_t iconIdList;      /**< List of Icon Identifiers */
-}TelSatSetupMenuInfo_t;
+} TelSatSetupMenuInfo_t;
 
 //     Telephony SELECT ITEM DATA
 /**
  * @brief The structure type defining select item proactive command data for SAT UI.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_SELECT_ITEM
  */
-typedef struct
-{
-       int                                                     commandId;                                                                          /**< Proactive Command Number sent by USIM */
-       int                                                     bIsHelpInfoAvailable;                                               /**< Flag for a help information request */
-       TelSatTextInfo_t                                text;                                                                       /**< Menu title text */
-       char                                                    defaultItemIndex;                                                       /**< Selected default item - default value is @c 0 */
-       char                                                    menuItemCount;                                                          /**< Number of menu items */
-       TelSatMenuItemInfo_t                    menuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX];         /**< Menu items */
-       TelSatIconIdentifierInfo_t              iconId;                                                                         /**< Icon Identifier */
-       TelSatIconIdentifierListInfo_t  iconIdList;                                                                     /**< List of Icon Identifiers */
-
-}TelSatSelectItemInd_t;
+typedef struct {
+       int commandId;                  /**< Proactive Command Number sent by USIM */
+       int bIsHelpInfoAvailable;       /**< Flag for a help information request */
+       TelSatTextInfo_t text;          /**< Menu title text */
+       char defaultItemIndex;          /**< Selected default item - default value is @c 0 */
+       char menuItemCount;             /**< Number of menu items */
+       TelSatMenuItemInfo_t menuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX];    /**< Menu items */
+       TelSatIconIdentifierInfo_t iconId;              /**< Icon Identifier */
+       TelSatIconIdentifierListInfo_t  iconIdList;     /**< List of Icon Identifiers */
+} TelSatSelectItemInd_t;
 
 //     Telephony IDLE MODE TEXT DATA
 /**
  * @brief The structure type defining the setup idle mode text proactive command for the idle application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                             commandId;                      /**< Proactive Command Number sent by USIM */
-       TelSatTextInfo_t                        text;                   /**< Character data to display on the screen */
-       TelSatIconIdentifierInfo_t      iconId;             /**< TBD */
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       TelSatTextInfo_t text;  /**< Character data to display on the screen */
+       TelSatIconIdentifierInfo_t iconId; /**< Icon Identifier */
 } TelSatSetupIdleModeTextInd_t;
 
 //     Telephony REFRESH DATA
@@ -339,50 +335,48 @@ typedef struct
  * @brief The structure type defining refresh proactive command data for SAT UI.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                                     commandId;                      /**< Proactive Command Number sent by USIM */
-       unsigned int                            duration;                       /**< Duration of the display */
-       TelSatCmdQualiRefresh_t         refreshType;            /**< Refresh mode */
-}TelSatRefreshIndUiInfo_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       unsigned int duration;  /**< Duration of the display */
+       TelSatCmdQualiRefresh_t refreshType;    /**< Refresh mode */
+} TelSatRefreshIndUiInfo_t;
 
 //     Telephony REFRESH DATA
 /**
  * @brief The structure type defining refresh proactive command data for applications that are concerned with files residing on USIM.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_REFRESH
  */
-typedef struct
-{
-       int                                             commandId;                                                                  /**< Proactive Command Number sent by USIM */
-       TelSatRefreshAppType_t          appType;                                                                /**< Concerned application type */
-       TelSatCmdQualiRefresh_t         refreshMode;                                                    /**< Refresh mode */
-       unsigned char                                   fileCount;                                                      /**< Refresh file count */
-       TelSimFileID_t                          fileId[TAPI_SAT_REFRESH_FILE_LIST];             /**< Refresh file identifier */
-}TelSatRefreshInd_t;
+typedef struct {
+       int commandId;  /**< Proactive Command Number sent by USIM */
+       TelSatRefreshAppType_t appType;         /**< Concerned application type */
+       TelSatCmdQualiRefresh_t refreshMode;    /**< Refresh mode */
+       unsigned char fileCount;                /**< Refresh file count */
+       TelSimFileID_t fileId[TAPI_SAT_REFRESH_FILE_LIST];      /**< Refresh file identifier */
+} TelSatRefreshInd_t;
 
 //     Telephony END PROACTIVE COMMAND INFO
 /**
  * @brief The structure type defining data objects to indicate to SAT UI, the end of execution of a specific proactive command by another application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                                                     commandId;                      /**< Proactive Command Number sent by USIM */
-       char                                                                    commandType;    /**< Command Type */
-       TelSatCommandPerformResultType_t                result;                 /**< Result of command execution by the application */
-}TelSatProactiveCmdEndIndInfo_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       char commandType;       /**< Command Type */
+       TelSatCommandPerformResultType_t result;        /**< Result of command execution by the application */
+} TelSatProactiveCmdEndIndInfo_t;
 
 //     Telephony SEND SMS DATA
 /**
  * @brief The structure type defining send SMS proactive command data for the SMS application.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_SEND_SMS
  */
-typedef struct
-{
-       int                                     commandId;                              /**< Proactive Command Number sent by USIM */
-       int                                     bIsPackingRequired;             /**< Flag to check if packing is required for SMS TPDU */
-       TelSatAddressInfo_t     address;                                /**< Destination address */
-       TelSatSmsTpduInfo_t     smsTpdu;                                /**< SMS TPDU data */
+typedef struct {
+       int commandId;                  /**< Proactive Command Number sent by USIM */
+       int bIsPackingRequired;         /**< Flag to check if packing is required for SMS TPDU */
+       TelSatAddressInfo_t address;    /**< Destination address */
+       TelSatSmsTpduInfo_t smsTpdu;    /**< SMS TPDU data */
 } TelSatSendSmsIndSmsData_t;
 
 //     Telephony SEND SS DATA
@@ -390,376 +384,350 @@ typedef struct
  * @brief The structure type defining send SS proactive command data for the SS application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                     commandId;              /**< Proactive Command Number sent by USIM */
-       TelSimTypeOfNum_t ton;              /**< Type of number */
-       TelSimNumberingPlanIdentity_t npi;  /**< Number plan identity */
-       unsigned short          ssStringLen;    /**< TBD */
-       unsigned char           ssString[TAPI_SAT_DEF_SS_LEN_MAX+1]; /**< TBD */
-}TelSatSendSsIndSsData_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       TelSimTypeOfNum_t ton;  /**< Type of number */
+       TelSimNumberingPlanIdentity_t npi;      /**< Number plan identity */
+       unsigned short ssStringLen;             /**< SS String Length */
+       unsigned char ssString[TAPI_SAT_DEF_SS_LEN_MAX + 1]; /**< SS String */
+} TelSatSendSsIndSsData_t;
 
 //     Telephony USSD DATA
 /**
  * @brief The structure type defining send USSD proactive command data for the USSD application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                     commandId;                          /**< Proactive Command Number sent by USIM */
-       unsigned char           rawDcs;                     /**< Data coding scheme */
-       unsigned short          ussdStringLen;          /**< TBD */
-       unsigned char           ussdString[TAPI_SAT_DEF_USSD_LEN_MAX+1];                /**< TBD */
-}TelSatSendUssdIndUssdData_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       unsigned char rawDcs;   /**< Data coding scheme */
+       unsigned short ussdStringLen; /**< USSD String Length */
+       unsigned char ussdString[TAPI_SAT_DEF_USSD_LEN_MAX + 1]; /**< USSD String */
+} TelSatSendUssdIndUssdData_t;
 
 //     Telephony SEND DTMF DATA
 /**
  * @brief The structure type defining send DTMF proactive command data for the DTMF application.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_SEND_DTMF
  */
-typedef struct
-{
-       int                                     commandId;                      /**< Proactive Command Number sent by USIM */
-       int                                     bIsHiddenMode;          /**< Hidden mode flag */
-       TelSatTextInfo_t                dtmfString;             /**< DTMF string data */
-}TelSatSendDtmfIndDtmfData_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       int bIsHiddenMode;      /**< Hidden mode flag */
+       TelSatTextInfo_t dtmfString;    /**< DTMF string data */
+} TelSatSendDtmfIndDtmfData_t;
 
-//     Telephony SETUP CALL  DATA
+//     Telephony SETUP CALL DATA
 /**
  * @brief The structure type defining setup call proactive command data for the call application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                                     commandId;                  /**< Proactive Command Number sent by USIM */
-       TelSatCmdQualiSetupCall_t               calltype;               /**< Call type */
-       TelSatTextInfo_t                                dispText;               /**< Display data for calling */
-       TelSatTextInfo_t                                callNumber;             /**< Call number */
-       unsigned int                                    duration;               /**< Maximum repeat duration */
-       TelSatIconIdentifierInfo_t              iconId;                 /**< Icon identifier for the call application */
-}TelSatSetupCallIndCallData_t;
+typedef struct {
+       int commandId;                  /**< Proactive Command Number sent by USIM */
+       TelSatCmdQualiSetupCall_t calltype;     /**< Call type */
+       TelSatTextInfo_t dispText;      /**< Display data for calling */
+       TelSatTextInfo_t callNumber;    /**< Call number */
+       unsigned int duration;          /**< Maximum repeat duration */
+       TelSatIconIdentifierInfo_t iconId;      /**< Icon identifier for the call application */
+} TelSatSetupCallIndCallData_t;
 
 //     Telephony LAUNCH BROWSER DATA
 /**
  * @brief The structure type defining launch browser proactive command data for the browser application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                                     commandId;              /**< Proactive Command Number sent by USIM */
-       TelSatUrlInfo_t                                 url;            /**< URL to connect */
-       TelSatCmdQualiLaunchBrowser_t   launchType;     /**< Launch type */
-       TelSatBrowserIdentityType_t     IdentityType;   /**< Browser Identity - default, HTML, and so on */
-}TelSatLaunchBrowserIndBrowserData_t;
+typedef struct {
+       int commandId;          /**< Proactive Command Number sent by USIM */
+       TelSatUrlInfo_t url;    /**< URL to connect */
+       TelSatCmdQualiLaunchBrowser_t launchType;       /**< Launch type */
+       TelSatBrowserIdentityType_t IdentityType;       /**< Browser Identity - default, HTML, and so on */
+} TelSatLaunchBrowserIndBrowserData_t;
 
 //     Telephony PROVIDE LOCAL INFO DATA
 /**
  * @brief The structure type defining provide local info proactive command data for the application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int commandId;                                                                          /**< Proactive Command Number sent by USIM */
-       TelSatCmdQualiProvideLocalInfo_t localInfoType;         /**< Provide Local Information Type */
-}TelSatProvideLocalInfoInd_t;
+typedef struct {
+       int commandId; /**< Proactive Command Number sent by USIM */
+       TelSatCmdQualiProvideLocalInfo_t localInfoType; /**< Provide Local Information Type */
+} TelSatProvideLocalInfoInd_t;
 
 //     Telephony LANGUAGE NOTIFICATION DATA
 /**
  * @brief The structure type defining language notification proactive command data for the application.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       int                                                     commandId;                                              /**< Proactive Command Number sent by USIM */
-       int                                                     bSpecificLanguageNotification;  /**< Flag for checking a specific language notification. If FALSE, non-specific language notification */
-       TelSatLanguageInfo_t                    language;                                       /**< Language info from the USIM application */
-}TelSatLanguageNotiInfoInd_t;
+typedef struct {
+       int commandId; /**< Proactive Command Number sent by USIM */
+       int bSpecificLanguageNotification; /**< Flag for checking a specific language notification. If FALSE, non-specific language notification */
+       TelSatLanguageInfo_t language; /**< Language info from the USIM application */
+} TelSatLanguageNotiInfoInd_t;
 
 //     Telephony PLAY TONE RETURN INFO
 /**
  * @brief The structure type defining result data for the Play Tone proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**< Result response value */
-}TelSatSetupMenuRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp; /**< Result response value */
+} TelSatSetupMenuRetInfo_t;
 
 //     Telephony REFRESH RETURN INFO
 /**
  * @brief The structure type defining result data for the refresh proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatRefreshAppType_t  appType;                        /**< Application type */
-       TelSatResultType_t              resp;                           /**< Result response value */
-}TelSatRefreshRetInfo_t;
+typedef struct {
+       TelSatRefreshAppType_t appType; /**< Application type */
+       TelSatResultType_t resp;        /**< Result response value */
+} TelSatRefreshRetInfo_t;
 
 //     Telephony CALL RETURN INFO
 /**
  * @brief The structure type defining result data for the setup call proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t                              resp;                                               /**< Result response value */
-       int                                                     bIsTapiCauseExist;                                  /**< Flag for checking tapi error cause */
-       TelCallCause_t                                  tapiCause;                                              /**< Tapi call error cause */
-       TelSsCause_t                                            ssCause;                                        /**< Tapi SS error cause */
-       TelSatMeProblemType_t                           meProblem;                                      /**< ME problem error cause */
-       int                                                             bIsOtherInfoExist;                              /**< Call control result existence flag */
-       TelSatCallCtrlProblemType_t             permanentCallCtrlProblem;               /**< Call control problem type */
-       TelSatCallCtrlRequestedActionInfo_t     callCtrlRequestedAction;        /**< Call control request data */
-       TelSatResultInfo_t                      result2;                                                    /**< Call control envelope result value */
-       TelSatTextTypeInfo_t                    text;                                                   /**< Call control envelope display data */
-}TelSatCallRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp;        /**< Result response value */
+       int bIsTapiCauseExist;          /**< Flag for checking tapi error cause */
+       TelCallCause_t tapiCause;       /**< Tapi call error cause */
+       TelSsCause_t ssCause;           /**< Tapi SS error cause */
+       TelSatMeProblemType_t meProblem; /**< ME problem error cause */
+       int bIsOtherInfoExist;                          /**< Call control result existence flag */
+       TelSatCallCtrlProblemType_t permanentCallCtrlProblem;   /**< Call control problem type */
+       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction;    /**< Call control request data */
+       TelSatResultInfo_t result2;     /**< Call control envelope result value */
+       TelSatTextTypeInfo_t text;      /**< Call control envelope display data */
+} TelSatCallRetInfo_t;
 
 //     Telephony SS RETURN INFO
 /**
  * @brief The structure type defining result data for the send SS proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t                              resp;                                                       /**< Result response value */
-       TelSsCause_t                                            ssCause;                                                /**< Error - SS cause */
-       TelSatTextInfo_t                                        ssString;                                               /**< SS result string */
-       TelSatMeProblemType_t                   meProblem;                                                  /**< Error - ME problem */
-       int                                                             bIsOtherInfoExist;                                  /**< Call control result exist flag */
-       TelSatCallCtrlProblemType_t                     additionalCallCtrlProblemInfo;  /**< Call control problem */
-       TelSatCallCtrlRequestedActionInfo_t     callCtrlRequestedAction;                /**< Call control request data */
-       TelSatResultInfo_t                                      result2;                                                /**< Call control envelope result value */
-}TelSatSsRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp;        /**< Result response value */
+       TelSsCause_t ssCause;           /**< Error - SS cause */
+       TelSatTextInfo_t ssString;      /**< SS result string */
+       TelSatMeProblemType_t meProblem; /**< Error - ME problem */
+       int bIsOtherInfoExist;          /**< Call control result exist flag */
+       TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo;      /**< Call control problem */
+       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction;    /**< Call control request data */
+       TelSatResultInfo_t result2;     /**< Call control envelope result value */
+} TelSatSsRetInfo_t;
 
 //     Telephony USSD RETURN INFO
 /**
  * @brief The structure type defining result data for the send USSD proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t                                      resp;                                                   /**< Result response value */
-       TelSsCause_t                                            ssCause;                                                /**< Error - SS cause */
-       TelSatTextInfo_t                                        ussdString;                                             /**< USSD result string */
-       TelSatDataCodingSchemeInfo_t            dcsUssdString;                                  /**< DCS of USSD result string */
-       TelSatMeProblemType_t                           meProblem;                                              /**< Error - ME problem */
-       int                                                             bIsOtherInfoExist;                                  /**< Call control result exist flag */
-       TelSatCallCtrlProblemType_t                     additionalCallCtrlProblemInfo;  /**< Call control problem */
-       int                                                             bCallCtrlHasModification;                   /**< Call control request modification flag */
-       TelSatCallCtrlRequestedActionInfo_t     callCtrlRequestedAction;                /**< Call control request data */
-       TelSatResultInfo_t                                      result2;                                                /**< Call control envelope result value */
-       TelSatTextTypeInfo_t                            text2;                                                  /**< CC envelope display data */
-}TelSatUssdRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp;        /**< Result response value */
+       TelSsCause_t ssCause;           /**< Error - SS cause */
+       TelSatTextInfo_t ussdString;    /**< USSD result string */
+       TelSatDataCodingSchemeInfo_t dcsUssdString; /**< DCS of USSD result string */
+       TelSatMeProblemType_t meProblem; /**< Error - ME problem */
+       int bIsOtherInfoExist; /**< Call control result exist flag */
+       TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< Call control problem */
+       int bCallCtrlHasModification; /**< Call control request modification flag */
+       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**< Call control request data */
+       TelSatResultInfo_t result2;     /**< Call control envelope result value */
+       TelSatTextTypeInfo_t text2;     /**< CC envelope display data */
+} TelSatUssdRetInfo_t;
 
 //     Telephony SMS RETURN INFO
 /**
  * @brief The structure type defining result data for the send SMS proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**< Result response value */
-}TelSatSmsRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp; /**< Result response value */
+} TelSatSmsRetInfo_t;
 
 //     Telephony DTMF RETUEN INFO
 /**
  * @brief The structure type defining result data for the send DTMF proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**< Result response value */
-}TelSatDtmfRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp; /**< Result response value */
+} TelSatDtmfRetInfo_t;
 
 //     Telephony BROWSER RETURN INFO
 /**
  * @brief The structure type defining result data for the launch browser proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t                                      resp;                   /**< Result response value */
-       TelSatLaunchBrowserProblemType_t    browserProblem;     /**< Specific browser problem */
-}TelSatBrowserRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp; /**< Result response value */
+       TelSatLaunchBrowserProblemType_t browserProblem; /**< Specific browser problem */
+} TelSatBrowserRetInfo_t;
 
 //     Telephony SETUP IDLE MODE TEXT RETURN INFO
 /**
  * @brief The structure type defining result data for the setup idle mode text proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**< Result response value */
-}TelSatIdleTextRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp; /**< Result response value */
+} TelSatIdleTextRetInfo_t;
 
 //     Telephony PLAY TONE RETURN INFO
 /**
  * @brief The structure type defining result data for the Play Tone proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**< Result response value */
-}TelSatPlayToneRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp; /**< Result response value */
+} TelSatPlayToneRetInfo_t;
 
-//     Telephony  PROVIDE LOCAL INFO RETURN INFO
+//     Telephony PROVIDE LOCAL INFO RETURN INFO
 /**
  * @brief The structure type defining result data for the setup idle mode text proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatResultType_t                                      resp;                   /**< Result response value */
-       int                                                             bOtherInfo;                 /**< Flag to check whether other information is required */
-       TelSatCmdQualiProvideLocalInfo_t        infoType;               /**< Local info type - e.g. time zone, language info, and so on */
-       union
-       {
-               TelSatDataTimeZoneInfo_t                timeZoneInfo;   /**< Current time zone info     */
-               TelSatLanguageInfo_t                    languageInfo;   /**< Current ME language setting info */
-       }u;                                                                                                     /**< Union */
-}TelSatProvideLocalRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp;        /**< Result response value */
+       int bOtherInfo;                 /**< Flag to check whether other information is required */
+       TelSatCmdQualiProvideLocalInfo_t infoType;      /**< Local info type - e.g. time zone, language info, and so on */
+       union {
+               TelSatDataTimeZoneInfo_t timeZoneInfo;  /**< Current time zone info */
+               TelSatLanguageInfo_t languageInfo;      /**< Current ME language setting info */
+       } u;
+} TelSatProvideLocalRetInfo_t;
 
 //     Telephony LANGUAGE NOTI RETURN INFO
 /**
  * @brief The structure type defining result data for the setup idle mode text proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-       {
-               TelSatResultType_t               resp;                          /**< Result response value */
-       }TelSatLanguageNotiRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp; /**< Result response value */
+} TelSatLanguageNotiRetInfo_t;
 
 //     Telephony DISPLAY TEXT RETURN INFO
 /**
  * @brief The structure type defining result data for the setup idle mode text proactive command.
  * @since_tizen 2.3
  */
-typedef struct
-       {
-               TelSatResultType_t               resp;                          /**< Result response value */
-               TelSatMeProblemType_t    meProblem;                     /**< ME Problem Type */
-       }TelSatDiplayTextRetInfo_t;
+typedef struct {
+       TelSatResultType_t resp; /**< Result response value */
+       TelSatMeProblemType_t meProblem; /**< ME Problem Type */
+} TelSatDiplayTextRetInfo_t;
 
 //     Telephony APPLICATIONS RETURN DATA
 /**
  * @brief The structure type defining common result data for the applications proactive command.
  * @since_tizen 2.3
- */
-typedef struct
-{
-       TelSatCommandType_t     commandType;                                            /**< Proactive Command type */
-       int commandId;                                                                                  /**< Proactive Command Number sent by USIM */
-       union
-               {
-                       TelSatSetupMenuRetInfo_t        setupMenu;                          /**< Result response value to setup menu */
-                       TelSatRefreshRetInfo_t          refresh;                                /**< Result response value to refresh */
-                       TelSatCallRetInfo_t                     setupCall;                              /**< Result response value to setup call */
-                       TelSatSsRetInfo_t                       sendSs;                                 /**< Result response value to send SS */
-                       TelSatUssdRetInfo_t                     sendUssd;                               /**< Result response value to send USSD */
-                       TelSatSmsRetInfo_t                      sendSms;                                /**< Result response value to send SMS */
-                       TelSatDtmfRetInfo_t                     sendDtmf;                               /**< Result response value to send DTMF */
-                       TelSatBrowserRetInfo_t          launchBrowser;                  /**< Result response value to launch the browser */
-                       TelSatIdleTextRetInfo_t         setupIdleModeText;              /**< Result response value to setup idle mode text */
-                       TelSatLanguageNotiRetInfo_t     languageNoti;                   /**< Result response value for language notification */
-                       TelSatProvideLocalRetInfo_t provideLocalInfo;           /**< Result response value to provide local info */
-                       TelSatDiplayTextRetInfo_t   displayText;                        /**< Result response value to display text */
-                       TelSatPlayToneRetInfo_t     playTone;                           /**< Result response value to play a tone */
-               }appsRet;                                                                                               /**< Common union result value */
-}TelSatAppsRetInfo_t;
-
-//     Telephony CALL CONTROL CONFIRM  DATA FOR CALL
+ * @see #TAPI_NOTI_SAT_SESSION_END_EVENT
+ */
+typedef struct {
+       TelSatCommandType_t commandType; /**< Proactive Command type */
+       int commandId; /**< Proactive Command Number sent by USIM */
+       union {
+               TelSatSetupMenuRetInfo_t setupMenu;     /**< Result response value to setup menu */
+               TelSatRefreshRetInfo_t refresh;         /**< Result response value to refresh */
+               TelSatCallRetInfo_t setupCall;          /**< Result response value to setup call */
+               TelSatSsRetInfo_t sendSs;               /**< Result response value to send SS */
+               TelSatUssdRetInfo_t sendUssd;           /**< Result response value to send USSD */
+               TelSatSmsRetInfo_t sendSms;             /**< Result response value to send SMS */
+               TelSatDtmfRetInfo_t sendDtmf;           /**< Result response value to send DTMF */
+               TelSatBrowserRetInfo_t launchBrowser;   /**< Result response value to launch the browser */
+               TelSatIdleTextRetInfo_t setupIdleModeText; /**< Result response value to setup idle mode text */
+               TelSatLanguageNotiRetInfo_t languageNoti; /**< Result response value for language notification */
+               TelSatProvideLocalRetInfo_t provideLocalInfo; /**< Result response value to provide local info */
+               TelSatDiplayTextRetInfo_t displayText; /**< Result response value to display text */
+               TelSatPlayToneRetInfo_t playTone; /**< Result response value to play a tone */
+       } appsRet;      /**< Common union result value */
+} TelSatAppsRetInfo_t;
+
+//     Telephony CALL CONTROL CONFIRM DATA FOR CALL
 /**
  * @brief The structure type defining call control confirm data for the call.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatTextInfo_t                                address;                                        /**< Call destination address */
-       TelSatTextInfo_t                                subAddress;                                     /**< Call SUB address */
-       TelSatBcRepeatIndicatorType_t   bcRepeatIndicator;                      /**< BC repeat indicator */
-       TelSatTextInfo_t                                ccp1;                                           /**< Configuration Capability Parameter 1 */
-       TelSatTextInfo_t                                ccp2;                                           /**< Configuration Capability Parameter 2 */
+typedef struct {
+       TelSatTextInfo_t address;       /**< Call destination address */
+       TelSatTextInfo_t subAddress;    /**< Call SUB address */
+       TelSatBcRepeatIndicatorType_t bcRepeatIndicator; /**< BC repeat indicator */
+       TelSatTextInfo_t ccp1;          /**< Configuration Capability Parameter 1 */
+       TelSatTextInfo_t ccp2;          /**< Configuration Capability Parameter 2 */
 } TelSatCallCtrlIndCallData_t;
 
-//     Telephony CALL CONTROL CONFIRM  DATA FOR SS
+//     Telephony CALL CONTROL CONFIRM DATA FOR SS
 /**
  * @brief The structure type defining call control confirm data for SS.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatTextInfo_t                                ssString;                                       /**< SS destination address */
-       TelSatTextInfo_t                                subAddress;                                     /**< Call SUB address */
-       TelSatBcRepeatIndicatorType_t   bcRepeatIndicator;                      /**< BC repeat indicator */
-       TelSatTextInfo_t                                ccp1;                                           /**< Configuration Capability Parameter 1 */
-       TelSatTextInfo_t                                ccp2;                                           /**< Configuration Capability Parameter 2 */
+typedef struct {
+       TelSatTextInfo_t ssString;      /**< SS destination address */
+       TelSatTextInfo_t subAddress;    /**< Call SUB address */
+       TelSatBcRepeatIndicatorType_t bcRepeatIndicator; /**< BC repeat indicator */
+       TelSatTextInfo_t ccp1;          /**< Configuration Capability Parameter 1 */
+       TelSatTextInfo_t ccp2;          /**< Configuration Capability Parameter 2 */
 } TelSatCallCtrlIndSsData_t;
 
-//     Telephony CALL CONTROL CONFIRM  DATA FOR USSD
+//     Telephony CALL CONTROL CONFIRM DATA FOR USSD
 /**
  * @brief The structure type defining call control confirm data for USSD.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatTextInfo_t                ussdString;                     /**< USSD destination address */
+typedef struct {
+       TelSatTextInfo_t ussdString; /**< USSD destination address */
 } TelSatCallCtrlIndUssdData_t;
 
 //     Telephony READ FILE REQUEST DATA
 /**
  * @brief The structure type defining common call control confirm data.
  * @since_tizen 2.3
- */
-typedef struct
-{
-       TelSatCallType_t                        callCtrlCnfType;                                /**< Call control confirm type - call, SS, or USSD */
-       TelSatCallCtrlResultType_t      callCtrlResult;                                 /**< Call control result */
-       TelSatTextInfo_t                        dispData;                                               /**< Call control display data */
-       int                                             bIsUserInfoDisplayEnabled;                  /**< Flag for checking existence of call control display */
-
-       union
-               {
-                       TelSatCallCtrlIndCallData_t             callCtrlCnfCallData;    /**< Call control call address */
-                       TelSatCallCtrlIndSsData_t               callCtrlCnfSsData;              /**< Call control SS string */
-                       TelSatCallCtrlIndUssdData_t             callCtrlCnfUssdData;    /**< Call control USSD string */
-               }u;                                                                                                                     /**< Union */
+ * @see #TAPI_NOTI_SAT_CALL_CONTROL_RESULT
+ */
+typedef struct {
+       TelSatCallType_t callCtrlCnfType;               /**< Call control confirm type - call, SS, or USSD */
+       TelSatCallCtrlResultType_t callCtrlResult;      /**< Call control result */
+       TelSatTextInfo_t dispData;      /**< Call control display data */
+       int bIsUserInfoDisplayEnabled;  /**< Flag for checking existence of call control display */
+       union {
+               TelSatCallCtrlIndCallData_t callCtrlCnfCallData;        /**< Call control call address */
+               TelSatCallCtrlIndSsData_t callCtrlCnfSsData;            /**< Call control SS string */
+               TelSatCallCtrlIndUssdData_t callCtrlCnfUssdData;        /**< Call control USSD string */
+       } u;
 } TelSatCallCtrlIndData_t;
 
 //     Telephony MO SMS CONTROL CONFIRMATION DATA
 /**
  * @brief The structure type defining MO SMS control confirm data.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_MO_SM_CONTROL_RESULT
  */
-typedef struct
-{
-       TelSatCallCtrlResultType_t              moSmsCtrlResult;                        /**< Envelope result */
-       int                                                             bIsUserInfoDisplayEnabled;      /**< Display present flag */
-       TelSatTextTypeInfo_t                    dispData;                                       /**< Display data for sending SMS */
-       TelSatTextTypeInfo_t                    rpDestAddr;                                 /**< The RP_Destination_Address of the Service Center */
-       TelSatTextTypeInfo_t                    tpDestAddr;                                     /**< The TP_Destination_Address */
+typedef struct {
+       TelSatCallCtrlResultType_t moSmsCtrlResult; /**< Envelope result */
+       int bIsUserInfoDisplayEnabled; /**< Display present flag */
+       TelSatTextTypeInfo_t dispData; /**< Display data for sending SMS */
+       TelSatTextTypeInfo_t rpDestAddr; /**< The RP_Destination_Address of the Service Center */
+       TelSatTextTypeInfo_t tpDestAddr; /**< The TP_Destination_Address */
 } TelSatMoSmCtrlIndData_t;
 
 //     Telephony EVENT LIST INFO
 /**
  * @brief The structure type defining Event List Info.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SAT_SETUP_EVENT_LIST
  */
-typedef struct
-{
-       int bIsEventDownloadActive;                     /**< Is Event Download Active */
-       int bIsMtCallEvent;                                     /**< Is Mt Call Event */
-       int bIsCallConnected;                           /**< Is Call Connected */
-       int bIsCallDisconnected;                        /**< Is Call Disconnected */
-       int bIsLocationStatus;                          /**< Is Location Status */
-       int bIsUserActivity;                            /**< Is User Activity */
-       int bIsIdleScreenAvailable;                     /**< Is Idle Screen Available */
-       int bIsCardReaderStatus;                        /**< Is Card Reader Status */
-       int bIsLanguageSelection;                       /**< Is Language Selection */
-       int bIsBrowserTermination;                      /**< Is Browser Termination */
-       int bIsDataAvailable;                           /**< Is Data Available */
-       int bIsChannelStatus;                           /**< Is Channel Status */
-}      TelSatEventListData_t;
+typedef struct {
+       int bIsEventDownloadActive;     /**< Is Event Download Active */
+       int bIsMtCallEvent;             /**< Is Mt Call Event */
+       int bIsCallConnected;           /**< Is Call Connected */
+       int bIsCallDisconnected;        /**< Is Call Disconnected */
+       int bIsLocationStatus;          /**< Is Location Status */
+       int bIsUserActivity;            /**< Is User Activity */
+       int bIsIdleScreenAvailable;     /**< Is Idle Screen Available */
+       int bIsCardReaderStatus;        /**< Is Card Reader Status */
+       int bIsLanguageSelection;       /**< Is Language Selection */
+       int bIsBrowserTermination;      /**< Is Browser Termination */
+       int bIsDataAvailable;           /**< Is Data Available */
+       int bIsChannelStatus;           /**< Is Channel Status */
+} TelSatEventListData_t;
 
 /**
  * @brief The structure type containing the data structures to be used to send any envelope/event download data.
@@ -767,18 +735,15 @@ typedef struct
  * @details This structure type is used by the Application to send envelope/event download data.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatEventDownloadType_t                                       eventDownloadType;                              /**< Event Download Type        */
-
-       union
-       {
-               int                                                                     bIdleScreenAvailable;                       /**< Flag to specify whether Idle Screen is Available */
-               TelSatLanguageSelectionEventReqInfo_t   languageSelectionEventReqInfo;  /**< Selected Language Information */
-               TelSatBrowserTerminationEventReqInfo_t  browserTerminationEventReqInfo; /**< Browser Termination Event Information */
-               TelSatDataAvailableEventReqInfo_t               dataAvailableEventReqInfo;              /**< dataAvailableEventReqInfo */
-               TelSatChannelStatusEventReqInfo_t               channelStatusEventReqInfo;              /**< channelStatusEventReqInfo */
-       } u;                                                                                                                                            /**< Union */
+typedef struct {
+       TelSatEventDownloadType_t eventDownloadType;    /**< Event Download Type */
+       union {
+               int bIdleScreenAvailable; /**< Flag to specify whether Idle Screen is Available */
+               TelSatLanguageSelectionEventReqInfo_t languageSelectionEventReqInfo;    /**< Selected Language Information */
+               TelSatBrowserTerminationEventReqInfo_t browserTerminationEventReqInfo;  /**< Browser Termination Event Information */
+               TelSatDataAvailableEventReqInfo_t dataAvailableEventReqInfo;            /**< dataAvailableEventReqInfo */
+               TelSatChannelStatusEventReqInfo_t channelStatusEventReqInfo;            /**< channelStatusEventReqInfo */
+       } u;
 } TelSatEventDownloadReqInfo_t;
 
 #ifdef __cplusplus
@@ -788,5 +753,5 @@ typedef struct
 #endif /* _TEL_SAT_H_ */
 
 /**
-* @}
-*/
+ * @}
+ */
index 835e68c79a462bf001ec996b592129cb93b87782..e381cfbfeda44f3b2c13a1d887de578f0b272c07 100644 (file)
@@ -41,26 +41,24 @@ extern "C"
  * @brief Enumeration for the SAT call type.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_SAT_CALL_TYPE_MO_VOICE = 0X00,     /**< Call type - MO voice */
-       TAPI_SAT_CALL_TYPE_MO_SMS,                      /**< Call type - MO SMS */
-       TAPI_SAT_CALL_TYPE_SS,                          /**< Call type - SS */
-       TAPI_SAT_CALL_TYPE_USSD,                        /**< Call type - USSD */
-       TAPI_SAT_PDP_CNTXT_ACT,                         /**< Call type - PDP context action */
-       TAPI_SAT_CALL_TYPE_MAX                          /**< Call type - max */
-}TelSatCallType_t;
+typedef enum {
+       TAPI_SAT_CALL_TYPE_MO_VOICE = 0x00,     /**< Call type - MO voice */
+       TAPI_SAT_CALL_TYPE_MO_SMS,      /**< Call type - MO SMS */
+       TAPI_SAT_CALL_TYPE_SS,          /**< Call type - SS */
+       TAPI_SAT_CALL_TYPE_USSD,        /**< Call type - USSD */
+       TAPI_SAT_PDP_CNTXT_ACT,         /**< Call type - PDP context action */
+       TAPI_SAT_CALL_TYPE_MAX          /**< Call type - max */
+} TelSatCallType_t;
 
 /**
  * @brief Enumeration for the result of call control by SIM.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_SAT_CALL_CTRL_R_ALLOWED_NO_MOD                     = 0,            /**< Call control result type -  ALLOWED WITH NO MOD */
-       TAPI_SAT_CALL_CTRL_R_NOT_ALLOWED                        = 1,            /**< Call control result type -  NOT ALLOWED */
-       TAPI_SAT_CALL_CTRL_R_ALLOWED_WITH_MOD           = 2,            /**< Call control result type -  ALLOWED WITH MOD */
-       TAPI_SAT_CALL_CTRL_R_RESERVED                           = 0xFF          /**< Call control result type -  RESERVED */
+typedef enum {
+       TAPI_SAT_CALL_CTRL_R_ALLOWED_NO_MOD = 0,        /**< Call control result type - ALLOWED WITH NO MOD */
+       TAPI_SAT_CALL_CTRL_R_NOT_ALLOWED = 1,           /**< Call control result type - NOT ALLOWED */
+       TAPI_SAT_CALL_CTRL_R_ALLOWED_WITH_MOD = 2,      /**< Call control result type - ALLOWED WITH MOD */
+       TAPI_SAT_CALL_CTRL_R_RESERVED = 0xFF            /**< Call control result type - RESERVED */
 
 } TelSatCallCtrlResultType_t;
 
@@ -68,23 +66,20 @@ typedef enum
  * @brief Enumeration for the general result of sending an envelope command to the USIM.
  * @since_tizen 2.3
  */
-typedef enum
-{
+typedef enum {
        TAPI_SAT_ENVELOPE_SUCCESS,      /**< Envelope result - success */
        TAPI_SAT_ENVELOPE_SIM_BUSY,     /**< Envelope result - USIM busy */
        TAPI_SAT_ENVELOPE_FAILED        /**< Envelope result - failed */
-
-}TelSatEnvelopeResp_t;
+} TelSatEnvelopeResp_t;
 
 //     8.      MENU SELECTION
 /**
  * @brief The structure type containing data objects for the MENU SELECTION envelope.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       unsigned char           itemIdentifier;         /**< Menu selection item identifier     */
-       int                             bIsHelpRequested;       /**< Flag to check whether help information is required */
+typedef struct {
+       unsigned char itemIdentifier;   /**< Menu selection item identifier */
+       int bIsHelpRequested;   /**< Flag to check whether help information is required */
 } TelSatMenuSelectionReqInfo_t;
 
 //     9.1 CALL CONTROL BY SIM
@@ -92,55 +87,50 @@ typedef struct
  * @brief Structure type containing data objects for Call Control result data sent by the USIM.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatAddressInfo_t                             address;                        /**< Call number */
-       TelSatSubAddressInfo_t                  subAddress;                     /**< Call number sub address */
-       TelSatBcRepeatIndicatorType_t   bcRepeatIndicator;      /**< BC repeat indicator */
-       TelSatCapaConfigParamInfo_t             ccp1;                           /**< Capability configuration parameter 1 */
-       TelSatCapaConfigParamInfo_t             ccp2;                           /**< Capability configuration parameter 2 */
-}TelSatVoiceCallCtrlIndInfo_t;
+typedef struct {
+       TelSatAddressInfo_t address;            /**< Call number */
+       TelSatSubAddressInfo_t subAddress;      /**< Call number sub address */
+       TelSatBcRepeatIndicatorType_t bcRepeatIndicator;        /**< BC repeat indicator */
+       TelSatCapaConfigParamInfo_t ccp1;       /**< Capability configuration parameter 1 */
+       TelSatCapaConfigParamInfo_t ccp2;       /**< Capability configuration parameter 2 */
+} TelSatVoiceCallCtrlIndInfo_t;
 
 /**
  * @brief The structure type containing SAT SS control result data sent by the USIM.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatSsStringInfo_t                    ssString;                       /**< SS number */
-       TelSatSubAddressInfo_t                  subAddress;                     /**< SS sub address */
-       TelSatBcRepeatIndicatorType_t   bcRepeatIndicator;      /**< BC repeat indicator */
-       TelSatCapaConfigParamInfo_t             ccp1;                           /**< Capability configuration parameter 1 */
-       TelSatCapaConfigParamInfo_t             ccp2;                           /**< Capability configuration parameter 2 */
-}TelSatSsCtrlIndInfo_t;
+typedef struct {
+       TelSatSsStringInfo_t ssString;          /**< SS number */
+       TelSatSubAddressInfo_t subAddress;      /**< SS sub address */
+       TelSatBcRepeatIndicatorType_t bcRepeatIndicator;        /**< BC repeat indicator */
+       TelSatCapaConfigParamInfo_t ccp1;       /**< Capability configuration parameter 1 */
+       TelSatCapaConfigParamInfo_t ccp2;       /**< Capability configuration parameter 2 */
+} TelSatSsCtrlIndInfo_t;
 
 /**
  * @brief The structure type containing SAT MO SMS control configuration data.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatAddressInfo_t             rpDestAddress;  /**< SMS control RP destination address */
-       TelSatAddressInfo_t             tpDestAddress;  /**< SMS control TP destination address */
+typedef struct {
+       TelSatAddressInfo_t rpDestAddress;      /**< SMS control RP destination address */
+       TelSatAddressInfo_t tpDestAddress;      /**< SMS control TP destination address */
 } TelSatMoSmsCtrlIndInfo_t;
 
 /**
  * @brief The structure type containing SAT call control configuration data.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatCallType_t                                        callType;               /**< Call type */
-       TelSatCallCtrlResultType_t                      callCtrlResult; /**< Call control result */
-       TelSatAlphaIdentifierInfo_t                     alphaIdentifier;/**< Alpha identifier */
-       unsigned char                                           callId;                 /**< Call ID */
-       TelSatCallType_t                                        oldCallType;    /**< Old call type */
-       union
-       {
-               TelSatVoiceCallCtrlIndInfo_t    voiceCallData;  /**< Voice call control data */
-               TelSatSsCtrlIndInfo_t                   ssData;                 /**< SS control data */
-               TelSatMoSmsCtrlIndInfo_t                smsData;
-       }u;                                                                                                     /**< Union */
+typedef struct {
+       TelSatCallType_t callType;      /**< Call type */
+       TelSatCallCtrlResultType_t callCtrlResult;      /**< Call control result */
+       TelSatAlphaIdentifierInfo_t alphaIdentifier;/**< Alpha identifier */
+       unsigned char callId;           /**< Call ID */
+       TelSatCallType_t oldCallType;   /**< Old call type */
+       union {
+               TelSatVoiceCallCtrlIndInfo_t voiceCallData;     /**< Voice call control data */
+               TelSatSsCtrlIndInfo_t ssData;                   /**< SS control data */
+               TelSatMoSmsCtrlIndInfo_t smsData; /**< MO SMS contrl data */
+       } u;
 } TelSatCallCtrlIndInfo_t;
 
 //     9.2 MO SHORT MESSAGE CONTROL BY SIM RESULT
@@ -148,23 +138,20 @@ typedef struct
  * @brief The structure type containing SAT MO SS control request data.
  * @since_tizen 2.3
  */
- typedef struct
-{
-       TelSatCallCtrlResultType_t              callCtrlResult;         /**< Call control result */
-       TelSatAlphaIdentifierInfo_t             alphaIdentifier;        /**< Alpha identifier */
-       TelSatMoSmsCtrlIndInfo_t                smsData;                        /**< SMS control data */
-}TelSatMoSMCtrlResult_t;
+typedef struct {
+       TelSatCallCtrlResultType_t callCtrlResult;      /**< Call control result */
+       TelSatAlphaIdentifierInfo_t alphaIdentifier;    /**< Alpha identifier */
+       TelSatMoSmsCtrlIndInfo_t smsData;               /**< SMS control data */
+} TelSatMoSMCtrlResult_t;
 
 //     11.5 EVENT DOWNLOAD - USER ACTIVITY EVENT
 /**
  * @brief The structure type containing SAT user activity event request data.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatEventListInfo_t                           eventList;                      /**< Event List */
-       TelSatDeviceIdentitiesInfo_t            deviceIdentities;       /**< Device identities info     */
-
+typedef struct {
+       TelSatEventListInfo_t eventList;                /**< Event List */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities;  /**< Device identities info */
 } TelSatUserActivityEventReqInfo_t;
 
 //     11.6 EVENT DOWNLOAD - IDLE SCREEN AVAILABLE EVENT
@@ -172,9 +159,8 @@ typedef struct
  * @brief The structure type containing the data objects for the IDLE SCREEN AVAILABLE event download.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatEventDownloadType_t       eventData;      /**< Event type */
+typedef struct {
+       TelSatEventDownloadType_t eventData; /**< Event type */
 } TelSatIdleScreenAvailableEventReqInfo_t;
 
 //     11.8 EVENT DOWNLOAD - LANGUAGE SELECTION EVENT
@@ -182,9 +168,8 @@ typedef struct
  * @brief The structure type containing the data objects for the LANGUAGE SELECTION event download.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatLanguageType_t     language;              /**< Selected language info     */
+typedef struct {
+       TelSatLanguageType_t language; /**< Selected language info */
 } TelSatLanguageSelectionEventReqInfo_t;
 
 //     11.9 EVENT DOWNLOAD - BROWSER TERMINATION EVENT
@@ -192,9 +177,8 @@ typedef struct
  * @brief The structure type containing the data objects for the BROWSER TERMINATION event download.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatBrowserTerminationCauseType_t             browserTerminationCause;        /**< Browser Termination Cause */
+typedef struct {
+       TelSatBrowserTerminationCauseType_t browserTerminationCause; /**< Browser Termination Cause */
 } TelSatBrowserTerminationEventReqInfo_t;
 
 //     11.10 EVENT DOWNLOAD - DATA AVAILABLE EVENT
@@ -202,13 +186,11 @@ typedef struct
  * @brief The structure type containing SAT data available event request data.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatEventListInfo_t                   eventList;                      /**< Event List */
-       TelSatDeviceIdentitiesInfo_t    deviceIdentities;       /**< Device identities info     */
-       TelSatChannelStatusInfo_t               channelStatus;          /**< Channel status     */
-       TelSatChannelDataLengthInfo_t   channelDataLen;         /**< Channel data length */
-
+typedef struct {
+       TelSatEventListInfo_t eventList;                /**< Event List */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities;  /**< Device identities info */
+       TelSatChannelStatusInfo_t channelStatus;        /**< Channel status */
+       TelSatChannelDataLengthInfo_t channelDataLen;   /**< Channel data length */
 } TelSatDataAvailableEventReqInfo_t;
 
 //     11.11 EVENT DOWNLOAD - CHANNEL STATUS EVENT
@@ -216,11 +198,10 @@ typedef struct
  * @brief The structure type containing SAT channel status even request data.
  * @since_tizen 2.3
  */
-typedef struct
-{
-       TelSatEventListInfo_t                   eventList;                      /**< Event list */
-       TelSatDeviceIdentitiesInfo_t    deviceIdentities;       /**< Device identities info     */
-       TelSatChannelStatusInfo_t               channelStatus;          /**< Channel Status     */
+typedef struct {
+       TelSatEventListInfo_t eventList;                /**< Event list */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities;  /**< Device identities info */
+       TelSatChannelStatusInfo_t channelStatus;        /**< Channel Status */
 } TelSatChannelStatusEventReqInfo_t;
 
 #ifdef __cplusplus
index f51d5d1ece70c0a62e0eacb50f5ea119882f3a78..1cb3449a1bbec39db495525a33eb43d676492bea 100644 (file)
@@ -691,24 +691,24 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_EVENT_SAT_DW_TYPE_MT_CALL = 0,     /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_CALL_CONNECTED = 1,      /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_CALL_DISCONNECTED = 2,   /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_LOCATION_STATUS = 3,     /**< TBD */
+       TAPI_EVENT_SAT_DW_TYPE_MT_CALL = 0,     /**< data download type - MT CALL */
+       TAPI_EVENT_SAT_DW_TYPE_CALL_CONNECTED = 1,      /**< data download type - CALL CONNECTED */
+       TAPI_EVENT_SAT_DW_TYPE_CALL_DISCONNECTED = 2,   /**< data download type - CALL DISCONNECTED */
+       TAPI_EVENT_SAT_DW_TYPE_LOCATION_STATUS = 3,     /**< data download type - LOCATION STATUS */
        TAPI_EVENT_SAT_DW_TYPE_USER_ACTIVITY = 4, /**< data download type - USER_ACTIVITY */
        TAPI_EVENT_SAT_DW_TYPE_IDLE_SCREEN_AVAILABLE = 5, /**< data download type - IDLE SCREEN AVAILABLE */
-       TAPI_EVENT_SAT_DW_TYPE_CARD_READER_STATUS = 6,  /**< TBD */
+       TAPI_EVENT_SAT_DW_TYPE_CARD_READER_STATUS = 6,  /**< data download type - CARD READER STATUS */
        TAPI_EVENT_SAT_DW_TYPE_LANGUAGE_SELECTION = 7, /**<     data download type - LANGUAGE SELECTION */
        TAPI_EVENT_SAT_DW_TYPE_BROWSER_TERMINATION = 8, /**< data download type - BROWSER TERMINATION */
        TAPI_EVENT_SAT_DW_TYPE_DATA_AVAILABLE = 9, /**< data download type - DATA AVAILABLE */
        TAPI_EVENT_SAT_DW_TYPE_CHANNEL_STATUS = 0x0A, /**< data download type - CHANNEL STATUS */
-       TAPI_EVENT_SAT_DW_TYPE_ACCESS_TECHNOLOGY_CHANGED = 0x0B,        /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_DISPLAY_PARAMETERS_CHANGED = 0x0C,       /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_LOCAL_CONNECTION = 0x0D, /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_NW_SEARCH_MODE_CHANGED = 0X0E,   /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_BROWSING_STATUS = 0X0F,  /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_FRAMES_INFORMATION_CHANGED = 0X10,       /**< TBD */
-       TAPI_EVENT_SAT_DW_TYPE_RESERVED_FOR_3GPP = 0X11,        /**< TBD */
+       TAPI_EVENT_SAT_DW_TYPE_ACCESS_TECHNOLOGY_CHANGED = 0x0B, /**< data download type - ACCESS TECHNOLOGY CHANGED */
+       TAPI_EVENT_SAT_DW_TYPE_DISPLAY_PARAMETERS_CHANGED = 0x0C, /**< data download type - DISPLAY PARAMETERS CHANGED */
+       TAPI_EVENT_SAT_DW_TYPE_LOCAL_CONNECTION = 0x0D, /**< data download type - LOCAL CONNECTION */
+       TAPI_EVENT_SAT_DW_TYPE_NW_SEARCH_MODE_CHANGED = 0X0E,   /**< data download type - NW SEARCH MODE CHANGED */
+       TAPI_EVENT_SAT_DW_TYPE_BROWSING_STATUS = 0X0F,  /**< data download type - BROWSING STATUS */
+       TAPI_EVENT_SAT_DW_TYPE_FRAMES_INFORMATION_CHANGED = 0X10,       /**< data download type - FRAMES INFORMATION CHANGED */
+       TAPI_EVENT_SAT_DW_TYPE_RESERVED_FOR_3GPP = 0X11,        /**< data download type - RESERVED FOR 3GPP */
        TAPI_EVENT_SAT_DW_TYPE_UNKNOWN = 0xFF /**< data download type - unknown */
 } TelSatEventDownloadType_t;
 
@@ -1390,8 +1390,8 @@ typedef struct {
        TelSatImageCodingSchemeType_t ics; /**< Image coding scheme */
        unsigned short iconDataLen; /**< Icon data length */
        unsigned short clutDataLen; /**< Clut data length */
-       char iconFile[TAPI_SAT_IMG_DATA_FILE_PATH_LEN_MAX];     /**< TBD */
-       char clutFile[TAPI_SAT_IMG_DATA_FILE_PATH_LEN_MAX];     /**< TBD */
+       char iconFile[TAPI_SAT_IMG_DATA_FILE_PATH_LEN_MAX];     /**< Icon File */
+       char clutFile[TAPI_SAT_IMG_DATA_FILE_PATH_LEN_MAX];     /**< Clut File */
 } TelSatIconInfo_t;
 
 /**
index d65f2cb9d867fcbf3f9b3bd5174ad84865faa61d..8a804c9b471cbc55d83cd91a64c438fa49bc0af2 100644 (file)
@@ -224,7 +224,6 @@ typedef struct {
 typedef struct {
        TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
        TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
-
 } TelSatProvideLocalInfoIndInfo_t;
 
 /**
@@ -235,7 +234,6 @@ typedef struct {
        TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier      */
        TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
        TelSatEventListInfo_t eventList; /**< Event list structure type containing events which are required by the USIM application */
-
 } TelSatSetupEventListIndInfo_t;
 
 /**
@@ -442,7 +440,7 @@ typedef struct {
  */
 typedef struct {
        union {
-               TelSatMoreTimeIndInfo_t moreTime;       /**< TBD */
+               TelSatMoreTimeIndInfo_t moreTime;       /**< More Time data */
                TelSatDisplayTextIndInfo_t displayText; /**< Parsed proactive command info from TLV to Telephony data type - display text */
                TelSatGetInkeyIndInfo_t getInkey; /**< Parsed proactive command info from TLV to Telephony data type - getInkey */
                TelSatGetInputIndInfo_t getInput; /**< Parsed proactive command info from TLV to Telephony data type - getInput */
@@ -483,7 +481,7 @@ typedef struct {
 typedef struct {
        TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
        TelSatTextTypeInfo_t text; /**< Inserted key info */
-       TelSatDurationInfo_t duration;  /**< TBD */
+       TelSatDurationInfo_t duration;  /**< Duration */
 } TelSatGetInkeyRespInfo_t;
 
 /**
@@ -711,7 +709,7 @@ typedef struct {
        unsigned char commandNumber; /**< Proactive command number */
        TelSatCommandType_t commandType; /**< Proactive command type */
        union {
-               TelSatMoreTimeRespInfo_t moreTime;      /**< TBD */
+               TelSatMoreTimeRespInfo_t moreTime;      /**< More Time data */
                TelSatDisplayTextRespInfo_t displayText; /**< Terminal response info from the displayText proactive command     */
                TelSatGetInkeyRespInfo_t getInkey; /**< Terminal response info from the getInkey proactive command */
                TelSatGetInputRespInfo_t getInput; /**< Terminal response info from the getInput proactive command */
@@ -736,20 +734,27 @@ typedef struct {
 /*
  * SAT Icon Data
  */
-
+/**
+ * @brief The structure type for SAT icon response data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned char iconId;   /**< TBD */
-       unsigned char imgType;  /**< TBD */
-       unsigned char imgLen;   /**< TBD */
-       unsigned char imgData[256];     /**< TBD */
+       unsigned char iconId;   /**< Icon ID */
+       unsigned char imgType;  /**< Image Type */
+       unsigned char imgLen;   /**< Image Length */
+       unsigned char imgData[256];     /**< Image Data */
 } TelSatIconDataResp_t;
 
+/**
+ * @brief The structure type for SAT icon data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       unsigned char iconId;   /**< TBD */
-       unsigned char imgType;  /**< TBD */
-       unsigned char fileId[2];        /**< TBD */
-       unsigned char reqDataLen[2];    /**< TBD */
-       unsigned char offset[2];        /**< TBD */
+       unsigned char iconId;   /**< Icon ID */
+       unsigned char imgType;  /**< Image Type */
+       unsigned char fileId[2];        /**< File ID */
+       unsigned char reqDataLen[2];    /**< Request Data Length */
+       unsigned char offset[2];        /**< Offset */
 } TelsatIconDataGet_t;
 
 #ifdef __cplusplus
index 3f70af259765c667aa560d0804b570ebafa1a327..5db1fa469a59a5582be5db9647957dbcd872dfa0 100644 (file)
@@ -27,8 +27,8 @@
  * @{
  */
 
-#ifndef _TELSIM_H_
-#define _TELSIM_H_
+#ifndef _TEL_SIM_H_
+#define _TEL_SIM_H_
 
 #ifdef __cplusplus
 extern "C"
@@ -114,35 +114,94 @@ extern "C"
  */
 #define TAPI_SIM_SAP_ATR_DATA  256
 
+/**
+ * @brief Definition for the maximum length of network full name.
+ * @since_tizen 2.3
+ */
 #define TAPI_SIM_NET_FULL_NAME_MAX_LEN 40
 
+/**
+ * @brief Definition for the maximum length of network short name.
+ * @since_tizen 2.3
+ */
 #define TAPI_SIM_NET_SHORT_NAME_MAX_LEN 10
 
+/**
+ * @brief Definition for the maximum count of MSP(Multiple Subscriber Profile)
+ * @since_tizen 2.3
+ */
 #define        TAPI_SIM_MSP_CNT_MAX 2
 
+/**
+ * @brief Definition for the operation timeout value
+ * @since_tizen 2.3
+ */
 #define TAPI_SIM_OPERATION_TIMEOUT 1234
 
+/**
+ * @brief Definition for the maximum count of SIM service table.
+ * @since_tizen 2.3
+ */
 #define TAPI_SIM_SST_SERVICE_CNT_MAX 56
 
+/**
+ * @brief Definition for the maximum count of USIM service table.
+ * @since_tizen 2.3
+ */
 #define TAPI_SIM_UST_SERVICE_CNT_MAX 64
 
+/**
+ * @brief Definition for the maximum count of ISIM service table.
+ * @since_tizen 2.3
+ */
 #define TAPI_SIM_IST_SERVICE_CNT_MAX 11
 
+/**
+ * @brief Definition for the maximum count of CDMA service table.
+ * @since_tizen 2.3
+ */
 #define TAPI_SIM_CDMA_ST_SERVICE_CNT_MAX 47
 
+/**
+ * @brief Definition for the maximum count of CSIM service table.
+ * @since_tizen 2.3
+ */
 #define TAPI_SIM_CSIM_ST_SERVICE_CNT_MAX 41
 
 /**
- * @brief Definition for the type of application on UICC
+ * @brief Definition for the type of SIM application
  * @since_tizen 2.4
  */
 #define TAPI_SIM_APP_TYPE_SIM 0x01
+
+/**
+ * @brief Definition for the type of USIM application
+ * @since_tizen 2.4
+ */
 #define TAPI_SIM_APP_TYPE_USIM 0x02
+
+/**
+ * @brief Definition for the type of CSIM application
+ * @since_tizen 2.4
+ */
 #define TAPI_SIM_APP_TYPE_CSIM 0x04
+
+/**
+ * @brief Definition for the type of ISIM application
+ * @since_tizen 2.4
+ */
 #define TAPI_SIM_APP_TYPE_ISIM 0x08
 
+/**
+ * @brief Definition for the maximum length of group identifier
+ * @since_tizen 2.4
+ */
 #define TAPI_SIM_GROUP_IDENTIFIER_LEN_MAX 10
 
+/**
+ * @brief Definition for the maximum length of OPLMNwACT
+ * @since_tizen 2.4
+ */
 #define TAPI_SIM_OPLMNWACT_LEN_MAX 100
 
 /**
@@ -209,16 +268,16 @@ typedef enum {
        /* Invalid File ID, All the file IDs are less than this Value */
        TAPI_SIM_EF_INVALID = 0xFFFF, /**< Invalid file */
        TAPI_SIM_EF_OTHERS, /**< Element to indicate an unknown file */
-}TelSimFileID_t;
+} TelSimFileID_t;
 
 /**
  * @brief Enumeration for the PIN status.
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_SIM_FACILITY_DISABLED = 0x00,      /**< TBD */
-       TAPI_SIM_FACILITY_ENABLED = 0x01,       /**< TBD */
-       TAPI_SIM_FACILITY_UNKNOWN = 0xFF        /**< TBD */
+       TAPI_SIM_FACILITY_DISABLED = 0x00,      /**< Facility disabled */
+       TAPI_SIM_FACILITY_ENABLED = 0x01,       /**< Facility enabled */
+       TAPI_SIM_FACILITY_UNKNOWN = 0xFF        /**< Facility unknown */
 } TelSimFacilityStatus_t;
 
 /**
@@ -336,6 +395,7 @@ typedef enum {
 /**
  * @brief Enumeration for the language preference code.
  * @since_tizen 2.3
+ * @see tel_get_sim_language()
  */
 typedef enum {
        TAPI_SIM_LP_GERMAN = 0x00, /**< German */
@@ -389,8 +449,8 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef struct {
-       TelSimCardStatus_t card_status; /**< TBD */
-       unsigned char b_is_changed;     /**< TBD */
+       TelSimCardStatus_t card_status; /**< SIM card status */
+       unsigned char b_is_changed;     /**< SIM changed or not */
 } TelSimInitInfo_t;
 
 /**
@@ -481,7 +541,7 @@ typedef enum {
        TAPI_SIM_AUTH_RUIM_MIPRRQ, /**< CDMA MIPRRQ Authentication */
        TAPI_SIM_AUTH_RUIM_MNAAA, /**< CDMA MNAAA Authentication */
        TAPI_SIM_AUTH_RUIM_HRPD,        /**< CDMA HRPD Authentication */
-       TAPI_SIM_AUTH_TYPE_MAX /**< TBD */
+       TAPI_SIM_AUTH_TYPE_MAX /**< MAX value */
 } TelSimAuthenticationType_t;
 
 /**
@@ -497,7 +557,7 @@ typedef enum {
        TAPI_SIM_AUTH_SQN_FAILURE, /**< Status - SQN(SeQuenceNumber) failure */
        TAPI_SIM_AUTH_SYNCH_FAILURE, /**< Status - synch failure */
        TAPI_SIM_AUTH_UNSUPPORTED_CONTEXT, /**< Status - unsupported context */
-       TAPI_SIM_AUTH_MAX /**< TBD */
+       TAPI_SIM_AUTH_MAX /**< MAX value */
 } TelSimAuthenticationResult_t;
 
 /**
@@ -958,6 +1018,10 @@ typedef enum {
        TAPI_SIM_CSIM_ST_IPV6 = 40,             /**< IPv6 */
 } TelSimCsimService_t;
 
+/**
+ * @brief Enumeration for the list of IST services in the ISIM Service Table. (ISIM)
+ * @since_tizen 2.4
+ */
 typedef enum {
        TAPI_SIM_IST_PCSCF_ADDR = 0,            /**< P-CSCF address */
        TAPI_SIM_IST_GBA,                       /**< Generic Bootstrapping Architecture */
@@ -973,45 +1037,76 @@ typedef enum {
        TAPI_SIM_IST_URI_SUPPORT,               /**< URI support by UICC */
 } TelSimIsimService_t;
 
+/**
+ * @brief Enumeration for CDMA service table.
+ * @since_tizen 2.3
+ */
 typedef enum {
-       TAPI_SIM_CDMA_SVC_TABLE = 0,
-       TAPI_SIM_CSIM_SVC_TABLE,
-       TAPI_SIM_MAX_SVC_TABLE
+       TAPI_SIM_CDMA_SVC_TABLE = 0, /**< CDMA service table */
+       TAPI_SIM_CSIM_SVC_TABLE, /**< CSIM service table */
+       TAPI_SIM_MAX_SVC_TABLE /**< MAX value */
 } TelSimCdmaSvcTable_t;
 
+/**
+ * @brief Enumeration for P-CSCF type.
+ * @since_tizen 2.4
+ */
 typedef enum {
        TAPI_SIM_PCSCF_TYPE_FQDN, /**< Fully Qualified Domain Name */
        TAPI_SIM_PCSCF_TYPE_IPV4, /**< IPv4 */
        TAPI_SIM_PCSCF_TYPE_IPV6, /**< IPv6 */
 } TelSimPcscfType;
 
+/**
+ * @brief The structure type for SIM service table.
+ * @since_tizen 2.4
+ */
 typedef struct {
-       char service[TAPI_SIM_SST_SERVICE_CNT_MAX];     /**< TBD */     // should access with 'enum TelSimSSTService_t' as index
+       char service[TAPI_SIM_SST_SERVICE_CNT_MAX];     /**< should access with 'enum TelSimSSTService_t' as index */
 } TelSimSST_t;
 
+/**
+ * @brief The structure type for USIM service table.
+ * @since_tizen 2.4
+ */
 typedef struct {
-       char service[TAPI_SIM_UST_SERVICE_CNT_MAX];     /**< TBD */     // should access with 'enum TelSimUSTService_t' as index
+       char service[TAPI_SIM_UST_SERVICE_CNT_MAX];     /**< should access with 'enum TelSimUSTService_t' as index */
 } TelSimUST_t;
 
+/**
+ * @brief The structure type for CSIM service table.
+ * @since_tizen 2.4
+ */
 typedef struct {
        TelSimCdmaSvcTable_t cdma_svc_table;    /* Member of service union is accessed based on the corresponding value of TelSimCdmaSvcTable_t */
        union {
-               char cdma_service[TAPI_SIM_CDMA_ST_SERVICE_CNT_MAX];    // should access with 'enum TelSimCdmaService_t' as index
-               char csim_service[TAPI_SIM_CSIM_ST_SERVICE_CNT_MAX];    // should access with 'enum TelSimCsimService_t' as index
+               char cdma_service[TAPI_SIM_CDMA_ST_SERVICE_CNT_MAX];    /**< should access with 'enum TelSimCdmaService_t' as index */
+               char csim_service[TAPI_SIM_CSIM_ST_SERVICE_CNT_MAX];    /**< should access with 'enum TelSimCsimService_t' as index */
        } service;
 } TelSimCST_t;
 
+/**
+ * @brief The structure type for ISIM service table.
+ * @since_tizen 2.4
+ * @remarks '#TelSimIsimService_t' will be stored.
+ * @see tel_get_sim_isim_service_table()
+ */
 typedef struct {
        char service[TAPI_SIM_IST_SERVICE_CNT_MAX];
 } TelSimIST_t;
 
+/**
+ * @brief The structure type for service table.
+ * @since_tizen 2.3
+ * @see tel_get_sim_service_table()
+ */
 typedef struct {
-       TelSimCardType_t sim_type;      /**< TBD */
+       TelSimCardType_t sim_type;      /**< SIM card type */
        union {
-               TelSimSST_t sst;        /**< TBD */
-               TelSimUST_t ust;        /**< TBD */
-               TelSimCST_t cst;
-       } table;        /**< TBD */
+               TelSimSST_t sst;        /**< SIM service table */
+               TelSimUST_t ust;        /**< USIM service table */
+               TelSimCST_t cst;        /**< CSIM service table */
+       } table;
 } TelSimServiceTable_t;
 
 /**
@@ -1032,23 +1127,37 @@ typedef struct {
        char name[30+1]; /**< Applicable only for USIM(3G) SIM */
        char number[6+1];
        TelSimEccEmergencyServiceInfo_t category;/**< Applicable only for USIM(3G) SIM */
-}TelSimEcc_t;
+} TelSimEcc_t;
 
+/**
+ * @brief The structure type for ECC information list.
+ * @since_tizen 2.3
+ * @see tel_get_sim_ecc()
+ */
 typedef struct {
-       int ecc_count;  /**< TBD */
-       TelSimEcc_t list[15];   /**< TBD */
-}TelSimEccList_t;
+       int ecc_count;  /**< ECC count */
+       TelSimEcc_t list[15];   /**< List of ECC */
+} TelSimEccList_t;
 
+/**
+ * @brief The structure type for ICCID(Integrated Circuit Card Identifier).
+ * @since_tizen 2.3
+ * @see tel_get_sim_iccid()
+ */
 typedef struct {
        int icc_length; /**< Integrated Circuit Card number length */
        char icc_num[TAPI_SIM_ICCID_LEN_MAX]; /**< Integrated Circuit Card number */
 } TelSimIccIdInfo_t;
 
+/**
+ * @brief The structure type for mailbox dialing number data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       int b_cphs;     /**< TBD */
+       int b_cphs;     /**< CPHS or not */
        int rec_index; /**< Index which stands for the location where the record is saved in SIM */
        int profile_num; /**< SIM profile index */
-       TelSimMailboxType_t mb_type;    /**< TBD */
+       TelSimMailboxType_t mb_type;    /**< Mailbox type */
        int alpha_id_max_len; /**< Alpha max length in SIM - READ ONLY */
        char alpha_id[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN + 1]; /**< Alpha Identifier */
        TelSimTypeOfNum_t ton; /**< Type Of Number */
@@ -1056,15 +1165,24 @@ typedef struct {
        char num[TAPI_SIM_XDN_DIALING_NUMBER_LEN + 1]; /**< Dialing Number/SSC String */
        unsigned char cc_id; /**< Capability/Configuration Identifier */
        unsigned char ext1_id; /**< Extension 1 Record Identifier */
-}TelSimMailBoxNumber_t;
+} TelSimMailBoxNumber_t;
 
+/**
+ * @brief The structure type for mailbox dialing number list.
+ * @since_tizen 2.3
+ * @see tel_get_sim_mailbox_info()
+ */
 typedef struct {
-       int count;      /**< TBD */
-       TelSimMailBoxNumber_t list[TAPI_SIM_MSP_CNT_MAX*5];     /**< TBD */ //max is 10
-}TelSimMailboxList_t;
+       int count;      /**< Mailbox count */
+       TelSimMailBoxNumber_t list[TAPI_SIM_MSP_CNT_MAX * 5];   /**< List of mailbox */
+} TelSimMailboxList_t;
 
+/**
+ * @brief The structure type for call forwarding indication status data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       int rec_index;  /**< TBD */
+       int rec_index;  /**< Record index */
        unsigned char msp_num; /**< MSP number*/
        unsigned char cfu_status; /**< Call forwarding unconditional indication status */
        TelSimTypeOfNum_t ton; /**< TON */
@@ -1072,69 +1190,107 @@ typedef struct {
        char cfu_num[TAPI_SIM_XDN_DIALING_NUMBER_LEN + 1];/**< Dialing Number/SSC String */
        unsigned char cc2_id; /**< Capability/Configuration 2 Record Identifier */
        unsigned char ext7_id; /**< Extension 7 Record Identifier */
-}TelSimCfis_t;
+} TelSimCfis_t;
 
+/**
+ * @brief The structure type for call forwarding indication status list.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       int profile_count;      /**< TBD */
-       TelSimCfis_t cf[TAPI_SIM_MSP_CNT_MAX];  /**< TBD */
-}TelSimCfisList_t;
+       int profile_count;      /**< Profile count */
+       TelSimCfis_t cf[TAPI_SIM_MSP_CNT_MAX];  /**< List of CFIS */
+} TelSimCfisList_t;
 
+/**
+ * @brief The structure type for CPHS call forwarding status data.
+ * @since_tizen 2.3
+ */
 typedef struct {
        int b_line1; /**< CallForwardUnconditionalLine 1 */
        int b_line2; /**< CallForwardUnconditionalLine 2 */
        int b_fax; /**< CallForwardUnconditional FAX */
        int b_data; /**< CallForwardUnconditional data */
-}TelSimCphsCf_t;
+} TelSimCphsCf_t;
 
+/**
+ * @brief The structure type for call forwarding response.
+ * @since_tizen 2.3
+ * @see tel_get_sim_callforwarding_info()
+ */
 typedef struct {
-       int b_cphs;     /**< TBD */
-       TelSimCfisList_t cf_list;       /**< TBD */
-       TelSimCphsCf_t cphs_cf; /**< TBD */
-}TelSimCallForwardingResp_t;
+       int b_cphs;     /**< CPHS or not */
+       TelSimCfisList_t cf_list;       /**< List of CFIS */
+       TelSimCphsCf_t cphs_cf; /**< CPHS CF */
+} TelSimCallForwardingResp_t;
 
+/**
+ * @brief The structure type for call forwarding request.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       int b_cphs;     /**< TBD */
+       int b_cphs;     /**< CPHS or not */
        union {
-               TelSimCfis_t cf;        /**< TBD */
-               TelSimCphsCf_t cphs_cf; /**< TBD */
-       } cf_data_u;    /**< TBD */
-}TelSimCallForwardingReq_t;
+               TelSimCfis_t cf;        /**< CFIS */
+               TelSimCphsCf_t cphs_cf; /**< CPHS CF */
+       } cf_data_u;
+} TelSimCallForwardingReq_t;
 
+/**
+ * @brief The structure type for message waiting indication status data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       int rec_index;  /**< TBD */
+       int rec_index;  /**< Record index */
        unsigned char indicator_status; /**< Indicator Type */
        int voice_count; /**< VoiceMail Count */
        int fax_count; /**< FAX Count */
        int email_count; /**< Email Count */
        int other_count; /**< Other Count */
        int video_count; /**< VideoMail Count */
-}TelSimMwis_t;
+} TelSimMwis_t;
 
+/**
+ * @brief The structure type for message waiting indication status list.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       int profile_count;      /**< TBD */
-       TelSimMwis_t mw[TAPI_SIM_MSP_CNT_MAX];  /**< TBD */
-}TelSimMwisList_t;
+       int profile_count;      /**< Profile count */
+       TelSimMwis_t mw[TAPI_SIM_MSP_CNT_MAX];  /**< List of MWIS */
+} TelSimMwisList_t;
 
+/**
+ * @brief The structure type for CPHS message waiting status data.
+ * @since_tizen 2.3
+ */
 typedef struct {
        int b_voice1; /**< VoiceMsgLine1 message waiting flag */
        int b_voice2; /**< VoiceMsgLine2 message waiting flag */
        int b_fax; /**< FAX message waiting flag */
        int b_data; /**< Data message waiting flag */
-}TelSimCphsMw_t;
+} TelSimCphsMw_t;
 
+/**
+ * @brief The structure type for message waiting reponse.
+ * @since_tizen 2.3
+ * @see tel_get_sim_messagewaiting_info()
+ */
 typedef struct {
-       int b_cphs;     /**< TBD */
-       TelSimMwisList_t mw_list;       /**< TBD */
-       TelSimCphsMw_t cphs_mw; /**< TBD */
-}TelSimMessageWaitingResp_t;
+       int b_cphs;     /**< CPHS or not */
+       TelSimMwisList_t mw_list;       /**< List of MWIS */
+       TelSimCphsMw_t cphs_mw; /**< CPHS MW */
+} TelSimMessageWaitingResp_t;
 
+/**
+ * @brief The structure type for message waiting request.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       int b_cphs;     /**< TBD */
+       int b_cphs;     /**< CPHS or not */
        union {
-               TelSimMwis_t mw;        /**< TBD */
-               TelSimCphsMw_t cphs_mw; /**< TBD */
-       } mw_data_u;    /**< TBD */
-}TelSimMessageWaitingReq_t;
+               TelSimMwis_t mw;        /**< MWIS */
+               TelSimCphsMw_t cphs_mw; /**< CPHS MW */
+       } mw_data_u;
+} TelSimMessageWaitingReq_t;
 
 /**
  * @brief The structure type for MSISDN information of the GSM/CDMA SIM.
@@ -1145,36 +1301,64 @@ typedef struct {
        char name[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN + 1]; /**< MSISDN name. If it does not exist, a null string will be returned. Not applicable for CDMA */
 } TelSimSubscriberInfo_t;
 
+/**
+ * @brief The structure type for MSISDN list.
+ * @since_tizen 2.3
+ * @see tel_get_sim_msisdn()
+ */
 typedef struct {
-       int count;      /**< TBD */
-       TelSimSubscriberInfo_t list[3]; /**< TBD */ //max is 3
-}TelSimMsisdnList_t;
+       int count;      /**< Count */
+       TelSimSubscriberInfo_t list[3]; /**< List of subscriber info */
+} TelSimMsisdnList_t;
 
+/**
+ * @brief The structure type for OPLMNwACT data.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       char plmn[6+1]; /**< TBD */
-       int b_umts;     /**< TBD */
-       int b_gsm;      /**< TBD */
-}TelSimOplmnwact_t;
+       char plmn[6 + 1];       /**< PLMN */
+       int b_umts;     /**< UMTS or not */
+       int b_gsm;      /**< GSM or not */
+} TelSimOplmnwact_t;
 
+/**
+ * @brief The structure type for OPLMNwACT list.
+ * @since_tizen 2.3
+ * @see tel_get_sim_oplmnwact()
+ */
 typedef struct {
-       int count;      /**< TBD */
-       TelSimOplmnwact_t list[TAPI_SIM_OPLMNWACT_LEN_MAX];     /**< TBD */ //max is 100
-}TelSimOplmnwactList_t;
+       int count;      /**< Count */
+       TelSimOplmnwact_t list[TAPI_SIM_OPLMNWACT_LEN_MAX];     /**< List of OPLMNwACT */
+} TelSimOplmnwactList_t;
 
+/**
+ * @brief The structure type for SPN(Service Provider Name).
+ * @since_tizen 2.3
+ * @see tel_get_sim_spn()
+ */
 typedef struct {
        unsigned char display_condition; /**< Display condition (1 byte) */
        unsigned char spn[TAPI_SIM_NET_FULL_NAME_MAX_LEN + 1]; /**< SPN */
-}TelSimSpn_t;
+} TelSimSpn_t;
 
+/**
+ * @brief The structure type for CPHS network name.
+ * @since_tizen 2.3
+ * @see tel_get_sim_cphs_netname()
+ */
 typedef struct {
-       unsigned char full_name[TAPI_SIM_NET_FULL_NAME_MAX_LEN + 1];    /**< TBD */
-       unsigned char short_name[TAPI_SIM_NET_SHORT_NAME_MAX_LEN + 1];  /**< TBD */
-}TelSimCphsNetName_t;
+       unsigned char full_name[TAPI_SIM_NET_FULL_NAME_MAX_LEN + 1];    /**< Full name */
+       unsigned char short_name[TAPI_SIM_NET_SHORT_NAME_MAX_LEN + 1];  /**< Short name */
+} TelSimCphsNetName_t;
 
+/**
+ * @brief The structure type for Groupe Identifier.
+ * @since_tizen 2.3
+ */
 typedef struct {
        int GroupIdentifierLen; /**< Group identifier length */
        unsigned char szGroupIdentifier[TAPI_SIM_GROUP_IDENTIFIER_LEN_MAX]; /**< Group identifier */
-}TelSimGid_t;
+} TelSimGid_t;
 
 /**
  * @details The structure type for authentication request data.
@@ -1191,6 +1375,7 @@ typedef struct {
 /**
  * @details The structure type for authentication result data.
  * @since_tizen 2.3
+ * @see tel_req_sim_authentication()
  */
 typedef struct {
        TelSimAuthenticationType_t auth_type; /**< Authentication type */
@@ -1205,7 +1390,6 @@ typedef struct {
        char integrity_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< Integrity key */
 } TelSimAuthenticationResponse_t;
 
-
 /**
  * @brief The structure type for information about PIN data.
  * @details The SIM PIN data. For PIN handling (Change, UnBlock) & for Type of PIN information.
@@ -1219,6 +1403,9 @@ typedef struct {
 /**
  * @brief The structure type for PIN information.
  * @since_tizen 2.3
+ * @see tel_verify_sim_pins()
+ * @see tel_verify_sim_puks()
+ * @see tel_change_sim_pins()
  */
 typedef struct {
        TelSimPinType_t type; /**< Specifies the PIN or PUK type */
@@ -1235,19 +1422,31 @@ typedef struct {
        int pw_len; /**< Password length */
 } TelSimFacilityPw_t;
 
+/**
+ * @brief The structure type for facility result data.
+ * @since_tizen 2.3
+ * @see tel_enable_sim_facility()
+ * @see tel_disable_sim_facility()
+ */
 typedef struct {
        TelSimLockType_t type; /**< Specifies the PIN or PUK type */
        int retry_count; /**< Number of attempts remaining for PIN/PUK verification */
 } TelSimFacilityResult_t;
 
+/**
+ * @brief The structure type for facility info data.
+ * @since_tizen 2.3
+ * @see tel_get_sim_facility()
+ */
 typedef struct {
-       TelSimLockType_t type;  /**< TBD */
-       TelSimFacilityStatus_t f_status;        /**< TBD */
-}TelSimFacilityInfo_t;
+       TelSimLockType_t type;  /**< Lock type */
+       TelSimFacilityStatus_t f_status;        /**< Facility status */
+} TelSimFacilityInfo_t;
 
 /**
  * @details The structure type for information about LOCK_TYPE.
  * @since_tizen 2.3
+ * @see tel_get_sim_lock_info()
  */
 typedef struct {
        TelSimLockType_t lock_type; /**< Lock type */
@@ -1260,26 +1459,28 @@ typedef struct {
  * @since_tizen 2.3
  */
 typedef struct {
-       unsigned short apdu_len;        /**< TBD */
-       unsigned char* apdu;    /**< TBD */
+       unsigned short apdu_len;        /**< Length of APDU */
+       unsigned char *apdu;    /**< APDU */
 } TelSimApdu_t;
 
 /**
  * @brief The structure type for the response of sending APDU.
  * @since_tizen 2.3
+ * @see tel_req_sim_apdu()
  */
 typedef struct {
-       unsigned short apdu_resp_len;   /**< TBD */
-       unsigned char apdu_resp[TAPI_SIM_APDU_MAX_LEN]; /**< TBD */
+       unsigned short apdu_resp_len;   /**< Length of response APDU */
+       unsigned char apdu_resp[TAPI_SIM_APDU_MAX_LEN]; /**< Response APDU */
 } TelSimApduResp_t;
 
 /**
- * @brief The structure type for the response of sending APDU.
+ * @brief The structure type for the response of sending ATR.
  * @since_tizen 2.3
+ * @see tel_req_sim_atr()
  */
 typedef struct {
-       unsigned short atr_resp_len;    /**< TBD */
-       unsigned char atr_resp[TAPI_SIM_APDU_MAX_LEN];  /**< TBD */
+       unsigned short atr_resp_len;    /**< Length of response ATR */
+       unsigned char atr_resp[TAPI_SIM_APDU_MAX_LEN];  /**< Response ATR */
 } TelSimAtrResp_t;
 
 /**
@@ -1325,6 +1526,7 @@ typedef struct {
 /**
  * @brief The structure type for CPHS information data.
  * @since_tizen 2.3
+ * @see tel_get_sim_cphs_info()
  */
 typedef struct {
        TelSimCphsPhaseType_t CphsPhase; /**< CPHS phase type */
@@ -1551,43 +1753,49 @@ typedef struct {
  * @since_tizen 2.3
  */
 typedef struct {
-       int init_completed;     /**< TBD */
-       TelSimPbList_t pb_list; /**< TBD */
+       int init_completed;     /**< Init completed or not */
+       TelSimPbList_t pb_list; /**< List of phonebook */
 } TelSimPbStatus_t;
 
+/**
+ * @brief The structure type for phone book record.
+ * @since_tizen 2.3
+ * @see tel_read_sim_pb_record()
+ */
 typedef struct {
-       TelSimPbType_t phonebook_type;  /**< TBD */
-       unsigned short index;   /**< TBD */
-       unsigned short next_index;      /**< TBD */ //this field is not used in the add/update case
-
-       unsigned char name[TAPI_SIM_PB_RECORD_NAME_MAX_LEN+1];  /**< TBD */
-       TelSimTextEncrypt_t dcs;        /**< TBD */
+       TelSimPbType_t phonebook_type; /**< Phonebook type */
+       unsigned short index; /**< Index */
+       unsigned short next_index; /**< Next index (This field is not used in the add/update case) */
 
-       unsigned char number[TAPI_SIM_PB_RECORD_NUMBER_MAX_LEN+1];      /**< TBD */
-       TelSimTypeOfNum_t ton;  /**< TBD */
+       unsigned char name[TAPI_SIM_PB_RECORD_NAME_MAX_LEN + 1]; /**< Name */
+       TelSimTextEncrypt_t dcs; /**< DCS */
 
-       /* following field is valid in only USIM*/
-       unsigned char sne[TAPI_SIM_PB_RECORD_NAME_MAX_LEN+1];   /**< TBD */
-       TelSimTextEncrypt_t sne_dcs;    /**< TBD */
-       unsigned char anr1[TAPI_SIM_PB_RECORD_NUMBER_MAX_LEN+1];        /**< TBD */
-       TelSimTypeOfNum_t anr1_ton;     /**< TBD */
-       unsigned char anr2[TAPI_SIM_PB_RECORD_NUMBER_MAX_LEN+1];        /**< TBD */
-       TelSimTypeOfNum_t anr2_ton;     /**< TBD */
-       unsigned char anr3[TAPI_SIM_PB_RECORD_NUMBER_MAX_LEN+1];        /**< TBD */
-       TelSimTypeOfNum_t anr3_ton;     /**< TBD */
-
-       unsigned char email1[TAPI_SIM_PB_RECORD_EMAIL_MAX_LEN+1];       /**< TBD */
-       unsigned char email2[TAPI_SIM_PB_RECORD_EMAIL_MAX_LEN+1];       /**< TBD */
-       unsigned char email3[TAPI_SIM_PB_RECORD_EMAIL_MAX_LEN+1];       /**< TBD */
-       unsigned char email4[TAPI_SIM_PB_RECORD_EMAIL_MAX_LEN+1];       /**< TBD */
+       unsigned char number[TAPI_SIM_PB_RECORD_NUMBER_MAX_LEN + 1]; /**< Number */
+       TelSimTypeOfNum_t ton; /**< TON */
 
-       unsigned short group_index;     /**< TBD */ //GRP
-       unsigned short pb_control;      /**< TBD */ //PBC
+       /* following field is valid in only USIM */
+       unsigned char sne[TAPI_SIM_PB_RECORD_NAME_MAX_LEN + 1]; /**< SNE(Second Name Entry) */
+       TelSimTextEncrypt_t sne_dcs; /**< SNE DCS */
+       unsigned char anr1[TAPI_SIM_PB_RECORD_NUMBER_MAX_LEN + 1]; /**< Additional Number1 */
+       TelSimTypeOfNum_t anr1_ton; /**< ANR TON */
+       unsigned char anr2[TAPI_SIM_PB_RECORD_NUMBER_MAX_LEN + 1]; /**< Additional Number2 */
+       TelSimTypeOfNum_t anr2_ton; /**< ANR2 TON */
+       unsigned char anr3[TAPI_SIM_PB_RECORD_NUMBER_MAX_LEN + 1]; /**< Additional Number3*/
+       TelSimTypeOfNum_t anr3_ton; /**< ANR3 TON */
+
+       unsigned char email1[TAPI_SIM_PB_RECORD_EMAIL_MAX_LEN + 1]; /**< Email1 */
+       unsigned char email2[TAPI_SIM_PB_RECORD_EMAIL_MAX_LEN + 1]; /**< Email2 */
+       unsigned char email3[TAPI_SIM_PB_RECORD_EMAIL_MAX_LEN + 1]; /**< Email3 */
+       unsigned char email4[TAPI_SIM_PB_RECORD_EMAIL_MAX_LEN + 1]; /**< Email4 */
+
+       unsigned short group_index; /**< Group index */
+       unsigned short pb_control; /**< Phonebook contrl */
 } TelSimPbRecord_t;
 
 /**
  * @brief The structure type for phone book storage count information.
  * @since_tizen 2.3
+ * @see tel_get_sim_pb_count()
  */
 typedef struct {
        TelSimPbType_t StorageFileType; /**< Storage file type */
@@ -1598,6 +1806,7 @@ typedef struct {
 /**
  * @brief The structure type for phone book entry information.
  * @since_tizen 2.3
+ * @see tel_get_sim_pb_meta_info()
  */
 typedef struct {
        TelSimPbType_t StorageFileType; /**< Storage file type */
@@ -1623,6 +1832,7 @@ typedef struct {
  * @brief The structure type for SIM PHONEBOOK & ITS CAPABILITIES information.
  * @details It refers to EF_PBR.
  * @since_tizen 2.3
+ * @see tel_get_sim_pb_usim_meta_info()
  */
 typedef struct {
        unsigned short FileTypeCount; /**< Phonebook file type count */
@@ -1639,8 +1849,6 @@ typedef struct {
        TelSimPbOp_t operation; /**< Phonebook operation */
 } TelSimPbContactChangeInfo_t;
 
-
-
 /* SAP (SIM Access Profile) related interface structures and enum */
 /**
  * @brief The structure type for SAP ATR response data information.
@@ -1652,7 +1860,6 @@ typedef struct {
 } TelSapAtrInfo_t;
 
 /* SAP transfer APDU request */
-
 /**
  * @brief The structure type for SAP APDU data information.
  * @since_tizen 2.3
@@ -1673,11 +1880,66 @@ typedef enum {
        TAPI_SIM_POWER_UNSPECIFIED = 0xFF /**< Unspecified */
 } TelSimPowerState_t;
 
+/**
+ * @brief The structure type for ISIM IMPI data.
+ * @since_tizen 2.4
+ * @see tel_get_sim_impi()
+ */
+typedef struct {
+       char *impi; /**< ISIM IMPI data */
+} TelSimImpi_t;
+
+/**
+ * @brief The structure type for ISIM IMPU list data.
+ * @since_tizen 2.4
+ */
+typedef struct {
+       char *impu; /**< ISIM IMPU data */
+} TelSimImpu_t;
+
+/**
+ * @brief The structure type for ISIM IMPU data.
+ * @since_tizen 2.4
+ * @see tel_get_sim_impu()
+ */
+typedef struct {
+       unsigned int count; /**< ISIM IMPU data count */
+       TelSimImpu_t *list; /**< ISIM IMPU list */
+} TelSimImpuList_t;
+
+/**
+ * @brief The structure type for ISIM domain data.
+ * @since_tizen 2.4
+ * @see tel_get_sim_domain()
+ */
+typedef struct {
+       char *domain; /**< ISIM Domain data */
+} TelSimDomain_t;
+
+/**
+ * @brief The structure type for ISIM P-CSCF list data.
+ * @since_tizen 2.4
+ */
+typedef struct {
+       TelSimPcscfType type; /**< ISIM P-CSCF type */
+       char *pcscf; /**< ISIM P-CSCF data */
+} TelSimPcscf_t;
+
+/**
+ * @brief The structure type for ISIM P-CSCF data.
+ * @since_tizen 2.4
+ * @see tel_get_sim_pcscf()
+ */
+typedef struct {
+       unsigned int count; /**< ISIM P-CSCF data count */
+       TelSimPcscf_t *list; /**< ISIM P-CSCF list */
+} TelSimPcscfList_t;
+
 #ifdef __cplusplus
 }
 #endif
 
-#endif // _TELSIM_H_
+#endif /* _TEL_SIM_H_ */
 /**
  * @}
  */
index b96466e20cd56c0d53748be60faf83067fe68e05..1f366e7bab69047a4fd70d5886ce239b3588572d 100644 (file)
@@ -37,8 +37,6 @@ extern "C"
 {
 #endif
 
-/* NetText */
-
 /**
  * @brief Definition for the EF-SMSP digit length.
  * @since_tizen 2.3
@@ -85,89 +83,90 @@ extern "C"
  * @brief Definition for the CB maximum page size.
  * @since_tizen 2.3
  */
-#define TAPI_NETTEXT_CB_PAGE_SIZE_MAX                           9
+#define TAPI_NETTEXT_CB_PAGE_SIZE_MAX  9
 
 /**
  * @brief Definition for the maximum GSM SMS message number.
  * @since_tizen 2.3
  */
-#define TAPI_NETTEXT_SMS_MSG_NUM_MAX             255    /**< Maximum SMS message number*/
+#define TAPI_NETTEXT_SMS_MSG_NUM_MAX   255 /**< Maximum SMS message number*/
 
 /**
  * @brief Definition for the maximum GSM SMS CBMI list size.
  * @since_tizen 2.3
  */
-#define TAPI_NETTEXT_SMS_CBMI_LIST_SIZE_MAX      50    /**< Maximum SMS CBMI list size*/
+#define TAPI_NETTEXT_SMS_CBMI_LIST_SIZE_MAX    50 /**< Maximum SMS CBMI list size*/
 
 /**
  * @brief Definition for the maximum SMS data size that can be stored.
  * @since_tizen 2.3
  */
-#define TAPI_NETTEXT_SMDATA_SIZE_MAX                           255  /**< Maximum SMS data size that can be stored*/
+#define TAPI_NETTEXT_SMDATA_SIZE_MAX   255 /**< Maximum SMS data size that can be stored*/
 
 /**
  * @brief Definition for the maximum SMS service center address.
  * @since_tizen 2.3
  */
-#define TAPI_NETTEXT_MAX_SMS_SERVICE_CENTER_ADDR   12
+#define TAPI_NETTEXT_MAX_SMS_SERVICE_CENTER_ADDR       12
 
 /**
  * @brief Definition for the maximum index value of the SMS.
  * @since_tizen 2.3
  */
-#define TAPI_NETTEXT_MAX_INDEX                                        255
+#define TAPI_NETTEXT_MAX_INDEX 255
 
-#define TAPI_NETTEXT_SMSP_PARAMS_MAX_LEN               28
+/**
+ * @brief Definition for the maximum length of SMSP parameters.
+ * @since_tizen 2.3
+ */
+#define TAPI_NETTEXT_SMSP_PARAMS_MAX_LEN       28
 
 /**
  * @brief Enumeration for network text status type.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_NETTEXT_STATUS_READ,                                       /**< MT message, stored and read */
-       TAPI_NETTEXT_STATUS_UNREAD,                                     /**< MT message, stored and unread */
-       TAPI_NETTEXT_STATUS_SENT,                                       /**< MO message, stored and sent */
-       TAPI_NETTEXT_STATUS_UNSENT,                                     /**< MO message, stored but not sent */
-       TAPI_NETTEXT_STATUS_DELIVERED,                         /**< Delivered destination */
-       TAPI_NETTEXT_STATUS_DELIVERY_UNCONFIRMED,  /**< Service centre forwarded message but is unable to confirm delivery */
-       TAPI_NETTEXT_STATUS_MESSAGE_REPLACED,          /**< Message has been replaced */
-       TAPI_NETTEXT_STATUS_RESERVED                            /**< Reserved for future use */
+typedef enum {
+       TAPI_NETTEXT_STATUS_READ,       /**< MT message, stored and read */
+       TAPI_NETTEXT_STATUS_UNREAD,     /**< MT message, stored and unread */
+       TAPI_NETTEXT_STATUS_SENT,       /**< MO message, stored and sent */
+       TAPI_NETTEXT_STATUS_UNSENT,     /**< MO message, stored but not sent */
+       TAPI_NETTEXT_STATUS_DELIVERED,  /**< Delivered destination */
+       TAPI_NETTEXT_STATUS_DELIVERY_UNCONFIRMED,       /**< Service centre forwarded message but is unable to confirm delivery */
+       TAPI_NETTEXT_STATUS_MESSAGE_REPLACED,   /**< Message has been replaced */
+       TAPI_NETTEXT_STATUS_RESERVED    /**< Reserved for future use */
 } TelSmsMsgStatus_t;
 
 /**
  * @brief Enumeration for memory status type.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SMS_MEMORY_STATUS
  */
-typedef enum
-{
-       TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE                = 0x01, /**< PDA memory is available */
-       TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL                     = 0x02,  /**< PDA memory is full */
-       TAPI_NETTEXT_PHONE_MEMORY_STATUS_AVAILABLE      = 0x03, /**< Phone memory is available */
-       TAPI_NETTEXT_PHONE_MEMORY_STATUS_FULL                   = 0x04, /**< Phone memory is full */
-}TelSmsMemStatusType;
+typedef enum {
+       TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE = 0x01, /**< PDA memory is available */
+       TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL = 0x02, /**< PDA memory is full */
+       TAPI_NETTEXT_PHONE_MEMORY_STATUS_AVAILABLE = 0x03, /**< Phone memory is available */
+       TAPI_NETTEXT_PHONE_MEMORY_STATUS_FULL = 0x04, /**< Phone memory is full */
+} TelSmsMemStatusType;
 
 /**
  * @brief Enumeration for different CB message types.
  * @since_tizen 2.3
  */
-typedef enum
-{
-               TAPI_NETTEXT_CB_MSG_GSM = 1,            /**< GSM Cell broadcast message */
-               TAPI_NETTEXT_CB_MSG_UMTS,                       /**< UMTSCell broadcast message */
-               TAPI_NETTEXT_CB_MSG_CDMA                        /**< CDMA broadcast message */
+typedef enum {
+       TAPI_NETTEXT_CB_MSG_GSM = 1,    /**< GSM Cell broadcast message */
+       TAPI_NETTEXT_CB_MSG_UMTS,       /**< UMTSCell broadcast message */
+       TAPI_NETTEXT_CB_MSG_CDMA        /**< CDMA broadcast message */
 } TelSmsCbMsgType_t;
 
 /**
  * @brief Enumeration for different ETWS message types.
  * @since_tizen 2.3
  */
-typedef enum
-{
-          TAPI_NETTEXT_ETWS_PRIMARY = 0,             /**< Primary ETWS message */
-          TAPI_NETTEXT_ETWS_SECONDARY_GSM,            /**< GSM Secondary ETWS message  */
-          TAPI_NETTEXT_ETWS_SECONDARY_UMTS,               /**< UMTS Secondary ETWS message  */
-          TAPI_NETTEXT_ETWS_SECONDARY_CDMA /*TODO:Will be supported*/
+typedef enum {
+       TAPI_NETTEXT_ETWS_PRIMARY = 0,  /**< Primary ETWS message */
+       TAPI_NETTEXT_ETWS_SECONDARY_GSM,        /**< GSM Secondary ETWS message */
+       TAPI_NETTEXT_ETWS_SECONDARY_UMTS,       /**< UMTS Secondary ETWS message */
+       TAPI_NETTEXT_ETWS_SECONDARY_CDMA        /**< CDMA Seconday ETWS message */
 } TelSmsEtwsMsgType_t;
 
 /**
@@ -175,134 +174,144 @@ typedef enum
  * sent status acknowledgement/notification after sending a message to the network.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_NETTEXT_SENDSMS_SUCCESS = 0x00,     /**< Message sent successfully */
-       TAPI_NETTEXT_ROUTING_NOT_AVAILABLE,     /**< Message routing not available */
-       TAPI_NETTEXT_INVALID_PARAMETER,             /**< Invalid parameter present in TPDU */
-       TAPI_NETTEXT_DEVICE_FAILURE,                    /**< Device failure */
-       TAPI_NETTEXT_SERVICE_RESERVED,                /**< Reserved Service */
-       TAPI_NETTEXT_INVALID_LOCATION,                /**< Invalid location */
-       TAPI_NETTEXT_NO_SIM,                                    /**< No SIM error */
-       TAPI_NETTEXT_SIM_NOT_READY,            /**< SIM not ready error */
-       TAPI_NETTEXT_NO_NETWORK_RESP,          /**< No response from network */
-       TAPI_NETTEXT_DEST_ADDRESS_FDN_RESTRICTED,/**< Destination address restricted */
-       TAPI_NETTEXT_SCADDRESS_FDN_RESTRICTED,   /**< Service center address restricted */
-       TAPI_NETTEXT_RESEND_ALREADY_DONE,        /**< Resend an already done operation */
-       TAPI_NETTEXT_SCADDRESS_NOT_AVAILABLE,    /**< SCA address not available */
-       TAPI_NETTEXT_UNASSIGNED_NUMBER = 0x8001,          /**< Unassigned number */
-       TAPI_NETTEXT_OPERATOR_DETERMINED_BARRING = 0x8008,/**< Operator determined barring */
-       TAPI_NETTEXT_CALL_BARRED = 0x800A,                /**< Call barred */
-       TAPI_NETTEXT_MESSAGE_TRANSFER_REJECTED = 0x8015,  /**< Message transfer rejected */
-       TAPI_NETTEXT_MEMORY_CAPACITY_EXCEEDED = 0x8016,   /**< Memory capacity exceeded/memory full */
-       TAPI_NETTEXT_DESTINAITION_OUTOFSERVICE = 0x801B,  /**< Destination number/address out of service */
-       TAPI_NETTEXT_UNSPECIFIED_SUBSCRIBER = 0x801C,     /**< Unspecified subscriber */
-       TAPI_NETTEXT_FACILITY_REJECTED = 0x801D,          /**< Facility rejected */
-       TAPI_NETTEXT_UNKNOWN_SUBSCRIBER = 0x801E,         /**< Unknown subscriber */
-       TAPI_NETTEXT_NETWORK_OUTOFORDER = 0x8026,         /**< Network out of order */
-       TAPI_NETTEXT_TEMPORARY_FAILURE = 0x8029,          /**< Temporary failure */
-       TAPI_NETTEXT_CONGESTION = 0x802A,                 /**< Congestion occurred */
-       TAPI_NETTEXT_RESOURCES_UNAVAILABLE = 0x802F,      /**< Resource unavailable */
-       TAPI_NETTEXT_FACILITY_NOT_SUBSCRIBED = 0x8032,    /**< Facility not subscribed by the user */
-       TAPI_NETTEXT_FACILITY_NOT_IMPLEMENTED = 0x8045,   /**< Facility not implemented */
-       TAPI_NETTEXT_INVALID_REF_VALUE = 0x8051,          /**< Invalid reference value */
-       TAPI_NETTEXT_INVALID_MSG = 0x805F,                /**< Invalid message */
-       TAPI_NETTEXT_INVALID_MANDATORY_INFO = 0x8060,     /**< Invalid Mandatory information */
-       TAPI_NETTEXT_MESSAGE_TYPE_NOT_IMPLEMENTED = 0x8061,/**< Message type not implemented */
-       TAPI_NETTEXT_MESSAGE_NOT_COMPAT_PROTOCOL = 0x8062, /**< Message not compact protocol */
-       TAPI_NETTEXT_IE_NOT_IMPLEMENTED = 0x8063,          /**< Information element not implemented */
-       TAPI_NETTEXT_PROTOCOL_ERROR = 0x806F,              /**< Protocol error */
-       TAPI_NETTEXT_INTERWORKING = 0x807F,              /**< Networking error */
-       TAPI_NETTEXT_ME_FULL = 0x8080,                     /**< SMS ME FULL */
-       TAPI_NETTEXT_SIM_FULL = 0x8081,                     /**< SMS SIM FULL */
-       TAPI_NETTEXT_TIMEOUT                                            /**< Timeout error */
-}TelSmsResponse_t;
+typedef enum {
+       TAPI_NETTEXT_SENDSMS_SUCCESS = 0x00,    /**< Message sent successfully */
+       TAPI_NETTEXT_ROUTING_NOT_AVAILABLE,     /**< Message routing not available */
+       TAPI_NETTEXT_INVALID_PARAMETER,         /**< Invalid parameter present in TPDU */
+       TAPI_NETTEXT_DEVICE_FAILURE,            /**< Device failure */
+       TAPI_NETTEXT_SERVICE_RESERVED,          /**< Reserved Service */
+       TAPI_NETTEXT_INVALID_LOCATION,          /**< Invalid location */
+       TAPI_NETTEXT_NO_SIM,                    /**< No SIM error */
+       TAPI_NETTEXT_SIM_NOT_READY,             /**< SIM not ready error */
+       TAPI_NETTEXT_NO_NETWORK_RESP,           /**< No response from network */
+       TAPI_NETTEXT_DEST_ADDRESS_FDN_RESTRICTED,       /**< Destination address restricted */
+       TAPI_NETTEXT_SCADDRESS_FDN_RESTRICTED,  /**< Service center address restricted */
+       TAPI_NETTEXT_RESEND_ALREADY_DONE,       /**< Resend an already done operation */
+       TAPI_NETTEXT_SCADDRESS_NOT_AVAILABLE,   /**< SCA address not available */
+       TAPI_NETTEXT_UNASSIGNED_NUMBER = 0x8001,/**< Unassigned number */
+       TAPI_NETTEXT_OPERATOR_DETERMINED_BARRING = 0x8008,      /**< Operator determined barring */
+       TAPI_NETTEXT_CALL_BARRED = 0x800A,                      /**< Call barred */
+       TAPI_NETTEXT_MESSAGE_TRANSFER_REJECTED = 0x8015,        /**< Message transfer rejected */
+       TAPI_NETTEXT_MEMORY_CAPACITY_EXCEEDED = 0x8016, /**< Memory capacity exceeded/memory full */
+       TAPI_NETTEXT_DESTINAITION_OUTOFSERVICE = 0x801B,        /**< Destination number/address out of service */
+       TAPI_NETTEXT_UNSPECIFIED_SUBSCRIBER = 0x801C,   /**< Unspecified subscriber */
+       TAPI_NETTEXT_FACILITY_REJECTED = 0x801D,        /**< Facility rejected */
+       TAPI_NETTEXT_UNKNOWN_SUBSCRIBER = 0x801E,       /**< Unknown subscriber */
+       TAPI_NETTEXT_NETWORK_OUTOFORDER = 0x8026,       /**< Network out of order */
+       TAPI_NETTEXT_TEMPORARY_FAILURE = 0x8029,        /**< Temporary failure */
+       TAPI_NETTEXT_CONGESTION = 0x802A,               /**< Congestion occurred */
+       TAPI_NETTEXT_RESOURCES_UNAVAILABLE = 0x802F,    /**< Resource unavailable */
+       TAPI_NETTEXT_FACILITY_NOT_SUBSCRIBED = 0x8032,  /**< Facility not subscribed by the user */
+       TAPI_NETTEXT_FACILITY_NOT_IMPLEMENTED = 0x8045, /**< Facility not implemented */
+       TAPI_NETTEXT_INVALID_REF_VALUE = 0x8051,        /**< Invalid reference value */
+       TAPI_NETTEXT_INVALID_MSG = 0x805F,              /**< Invalid message */
+       TAPI_NETTEXT_INVALID_MANDATORY_INFO = 0x8060,   /**< Invalid Mandatory information */
+       TAPI_NETTEXT_MESSAGE_TYPE_NOT_IMPLEMENTED = 0x8061,     /**< Message type not implemented */
+       TAPI_NETTEXT_MESSAGE_NOT_COMPAT_PROTOCOL = 0x8062,      /**< Message not compact protocol */
+       TAPI_NETTEXT_IE_NOT_IMPLEMENTED = 0x8063,       /**< Information element not implemented */
+       TAPI_NETTEXT_PROTOCOL_ERROR = 0x806F,   /**< Protocol error */
+       TAPI_NETTEXT_INTERWORKING = 0x807F,     /**< Networking error */
+       TAPI_NETTEXT_ME_FULL = 0x8080,          /**< SMS ME FULL */
+       TAPI_NETTEXT_SIM_FULL = 0x8081,         /**< SMS SIM FULL */
+       TAPI_NETTEXT_TIMEOUT                    /**< Timeout error */
+} TelSmsResponse_t;
 
 /**
  * @brief Enumeration for different cause types that come in the
  * sent status acknowledgement/notification after sending a message to the network.
  * @since_tizen 2.3
  */
-typedef enum
-{
-
-  TAPI_NETTEXT_SUCCESS,                     /**< SMS operation successful */
-  TAPI_NETTEXT_INVALID_PARAMETER_FORMAT,    /**< Invalid format for some parameters passed in Data package information(TPDU) */
-  TAPI_NETTEXT_PHONE_FAILURE,               /**< SMS operation failed due to Modem failure */
-  TAPI_NETTEXT_SIM_BUSY,                    /**< SMS SIM operation cannot be performed as the SIM is busy with some other operation */
-  TAPI_NETTEXT_SIM_FAILURE,                 /**< SMS SIM operation cannot be performed due to SIM failure */
-  TAPI_NETTEXT_UNKNOWN,                     /**< Unknown error */
-  TAPI_NETTEXT_MEMORY_FAILURE,              /**< Error while accessing memory or allocating memory for SMS operation */
-  TAPI_NETTEXT_OPERATION_NOT_SUPPORTED      /**< Operation not allowed/supported */
-}  TelSmsCause_t;
+typedef enum {
+       TAPI_NETTEXT_SUCCESS,                   /**< SMS operation successful */
+       TAPI_NETTEXT_INVALID_PARAMETER_FORMAT,  /**< Invalid format for some parameters passed in Data package information(TPDU) */
+       TAPI_NETTEXT_PHONE_FAILURE,             /**< SMS operation failed due to Modem failure */
+       TAPI_NETTEXT_SIM_BUSY,                  /**< SMS SIM operation cannot be performed as the SIM is busy with some other operation */
+       TAPI_NETTEXT_SIM_FAILURE,               /**< SMS SIM operation cannot be performed due to SIM failure */
+       TAPI_NETTEXT_UNKNOWN,                   /**< Unknown error */
+       TAPI_NETTEXT_MEMORY_FAILURE,            /**< Error while accessing memory or allocating memory for SMS operation */
+       TAPI_NETTEXT_OPERATION_NOT_SUPPORTED    /**< Operation not allowed/supported */
+} TelSmsCause_t;
 
 /**
  * @brief Enumeration for response values.
  * @since_tizen 2.3
  */
-typedef enum
-{
-       TAPI_NETTEXT_CBSETCONFIG_RSP,     /**< Cell broadcast config response */
-       TAPI_NETTEXT_SETPREFERREDBEARER_RSP,     /**< Set preferred bearer response */
-       TAPI_NETTEXT_SETPARAMETERS_RSP,     /**< Set parameter response */
-       TAPI_NETTEXT_SETMEMORYSTATUS_RSP,     /**< Set memory status response */
-       TAPI_NETTEXT_SETMESSAGESTATUS_RSP,     /**< Set message status response */
-       TAPI_NETTEXT_SETDEVICESTATUS_RSP,    /**< Set device status response */
-       TAPI_NETTEXT_SETSCADDR_RSP,     /**< Set SCA address response */
-       TAPI_NETTEXT_SET_RSP_MAX     /**< Maximum limit */
-}TelSmsSetResponse;
+typedef enum {
+       TAPI_NETTEXT_CBSETCONFIG_RSP, /**< Cell broadcast config response */
+       TAPI_NETTEXT_SETPREFERREDBEARER_RSP, /**< Set preferred bearer response */
+       TAPI_NETTEXT_SETPARAMETERS_RSP, /**< Set parameter response */
+       TAPI_NETTEXT_SETMEMORYSTATUS_RSP, /**< Set memory status response */
+       TAPI_NETTEXT_SETMESSAGESTATUS_RSP, /**< Set message status response */
+       TAPI_NETTEXT_SETDEVICESTATUS_RSP, /**< Set device status response */
+       TAPI_NETTEXT_SETSCADDR_RSP, /**< Set SCA address response */
+       TAPI_NETTEXT_SET_RSP_MAX /**< Maximum limit */
+} TelSmsSetResponse;
 
 /**
  * @brief Enumeration for the type of Network
  * @since_tizen 2.3
  */
-typedef enum  {
-       TAPI_NETTEXT_NETTYPE_3GPP = 0x01,                                               /**< 3gpp type */
-       TAPI_NETTEXT_NETTYPE_3GPP2 = 0x02,                                      /**< 3gpp2 type (CDMA) */
+typedef enum {
+       TAPI_NETTEXT_NETTYPE_3GPP = 0x01,       /**< 3gpp type */
+       TAPI_NETTEXT_NETTYPE_3GPP2 = 0x02,      /**< 3gpp2 type (CDMA) */
 } TelSmsNetType_t;
 
 /**
  * @brief Enumeration for the sms ready status type.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SMS_DEVICE_READY
  */
 typedef enum {
-       TAPI_NETTEXT_READY_STATUS_NONE = 0x00,
-       TAPI_NETTEXT_READY_STATUS_3GPP = 0x01,
-       TAPI_NETTEXT_READY_STATUS_3GPP2 = 0x02,
-       TAPI_NETTEXT_READY_STATUS_3GPP_AND_3GPP2 = 0x03,
-}TelSmsReadyStatus_t;
+       TAPI_NETTEXT_READY_STATUS_NONE = 0x00, /**< Non Ready Status */
+       TAPI_NETTEXT_READY_STATUS_3GPP = 0x01, /**< SMS 3GPP Ready */
+       TAPI_NETTEXT_READY_STATUS_3GPP2 = 0x02, /**< SMS 3GPP2 Ready */
+       TAPI_NETTEXT_READY_STATUS_3GPP_AND_3GPP2 = 0x03, /**< SMS 3GPP and 3GPP2 Ready */
+} TelSmsReadyStatus_t;
 
 /**
  * @brief The structure type for different parameters of the CB configuration.
  * @since_tizen 2.3
  */
 typedef struct {
- unsigned short FromMsgId; /**< Starting point of the range of the CBS message ID */
- unsigned short ToMsgId; /**< Ending point of the range of the CBS message ID */
- unsigned char Selected; /**< 0x00 . Not selected. 0x01 . Selected */
      unsigned short FromMsgId; /**< Starting point of the range of the CBS message ID */
      unsigned short ToMsgId; /**< Ending point of the range of the CBS message ID */
      unsigned char Selected; /**< 0x00 . Not selected. 0x01 . Selected */
 } TelSmsCbMsgInfo3gpp_t;
 
+/**
+ * @brief The structure type for 3GPP2 CB message.
+ * @since_tizen 2.3
+ */
 typedef struct {
- unsigned short CBCategory; /**< CB Service category */
- unsigned short CBLanguage; /**< Language indicator value
-                                                               . 0x00 . LANGUAGE_UNKNOWN . Unknown or Unspecified
-                                                               . 0x01 . LANGUAGE_ENGLISH . English
-                                                               . 0x02 . LANGUAGE_FRENCH . French
-                                                               . 0x03 . LANGUAGE_SPANISH . Spanish
-                                                               . 0x04 . LANGUAGE_JAPANESE . Japanese
-                                                               . 0x05 . LANGUAGE_KOREAN . Korean
-                                                               . 0x06 . LANGUAGE_CHINESE . Chinese
-                                                               . 0x07 . LANGUAGE_HEBREW . Hebrew */
- unsigned char Selected; /**< 0x00 . Not selected. 0x01 . Selected */
      unsigned short CBCategory; /**< CB Service category */
      unsigned short CBLanguage; /**< Language indicator value
+                               . 0x00 . LANGUAGE_UNKNOWN . Unknown or Unspecified
+                               . 0x01 . LANGUAGE_ENGLISH . English
+                               . 0x02 . LANGUAGE_FRENCH . French
+                               . 0x03 . LANGUAGE_SPANISH . Spanish
+                               . 0x04 . LANGUAGE_JAPANESE . Japanese
+                               . 0x05 . LANGUAGE_KOREAN . Korean
+                               . 0x06 . LANGUAGE_CHINESE . Chinese
+                               . 0x07 . LANGUAGE_HEBREW . Hebrew */
      unsigned char Selected; /**< 0x00 . Not selected. 0x01 . Selected */
 } TelSmsCbMsgInfo3gpp2_t;
 
+/**
+ * @brief The union type for CB message information.
+ * @since_tizen 2.3
+ */
 typedef union {
        TelSmsCbMsgInfo3gpp_t Net3gpp; /**< 3GPP Broadcast Configuration Information */
        TelSmsCbMsgInfo3gpp2_t Net3gpp2; /**< 3GPP2 Broadcast Configuration Information, CDMA */
 } TelSmsCbMsgInfo_t;
 
+/**
+ * @brief The structure type for CB configuration.
+ * @since_tizen 2.3
+ * @see tel_get_sms_cb_config()
+ */
 typedef struct {
-       int Net3gppType;  /**< Type of 3GPP, 0x01 . 3gpp. 0x02 . 3gpp2(CDMA) */
+       int Net3gppType; /**< Type of 3GPP, 0x01 . 3gpp. 0x02 . 3gpp2(CDMA) */
        int CBEnabled; /**< CB service state. If @a CBEnabled is @c true then the cell broadcast service will be enabled and the underlying modem will enable the CB Channel to receive CB messages. Otherwise the CB service will be disabled and the underlying modem will deactivate the CB channel. (enabled/disabled) */
        unsigned char MsgIdMaxCount; /**< CB Channel List Max Count For Response */
        int MsgIdRangeCount; /**< Range of CB message ID count */
@@ -313,6 +322,7 @@ typedef struct {
  * @brief The structure type for properties of a dialing number.
  * @details Those properties are: type of the number, numbering plan indicator, length, and the actual number.
  * @since_tizen 2.3
+ * @see tel_get_sms_sca()
  */
 typedef struct {
        unsigned int DialNumLen; /**< Length of the address. If the Service center address is not set, then this will be zero */
@@ -324,9 +334,9 @@ typedef struct {
 /**
  * @brief The structure type for different fields involved in setting the parameters of a particular SMS in EFsmsp.
  * @since_tizen 2.3
+ * @see tel_get_sms_parameters()
  */
 typedef struct {
-
        unsigned char RecordIndex; /**< Index */
        unsigned char RecordLen; /**< SMS Parameter Record length */
        unsigned long AlphaIdLen; /**< Alpha ID length */
@@ -356,6 +366,7 @@ typedef struct {
 /**
  * @brief The structure type for data related to SimIndex, MessageStatus, and SMS Data Stored.
  * @since_tizen 2.3
+ * @see tel_read_sms_in_sim()
  */
 typedef struct {
        int SimIndex; /**< Index where SMS is stored */
@@ -366,6 +377,7 @@ typedef struct {
 /**
  * @brief The structure type for different parameters that are related to the message count in a particular memory (Phone/SIM).
  * @since_tizen 2.3
+ * @see tel_get_sms_count()
  */
 typedef struct {
        unsigned int TotalCount; /**< Total count of messages stored in the SIM */
@@ -394,32 +406,46 @@ typedef struct {
        char szMsgData[TAPI_NETTEXT_ETWS_SIZE_MAX + 1]; /**< Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1] */
 } TelSmsEtwsMsg_t;
 
+/**
+ * @brief The structure type for incoming SMS message notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_SMS_INCOM_MSG
+ */
 struct tel_noti_sms_incomming_msg {
-        char Sca[TAPI_SIM_SMSP_ADDRESS_LEN];   /**< TBD */
-        int MsgLength; /**< TBD */
-        char szData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1]; /**< TBD */
-       TelSmsNetType_t format;
+       char Sca[TAPI_SIM_SMSP_ADDRESS_LEN];    /**< SCA */
+       int MsgLength;  /**< Message Length */
+       char szData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1];  /**< Data */
+       TelSmsNetType_t format; /**< SMS format */
 };
 
+/**
+ * @brief The structure type for incoming CB message notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_SMS_CB_INCOM_MSG
+ */
 struct tel_noti_sms_incomming_cb_msg {
        TelSmsCbMsgType_t CbMsgType; /**< Cell Broadcast message type */
-        short Length; /**< Size of array @a szMsgData (which is the actual TPDU message) */
-        char szMsgData[TAPI_NETTEXT_CB_SIZE_MAX + 1]; /**< Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1] */
+       short Length; /**< Size of array @a szMsgData (which is the actual TPDU message) */
+       char szMsgData[TAPI_NETTEXT_CB_SIZE_MAX + 1]; /**< Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1] */
 };
 
+/**
+ * @brief The structure type for incoming ETWS message notification data.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_SMS_ETWS_INCOM_MSG
+ */
 struct tel_noti_sms_incomming_etws_msg {
        TelSmsEtwsMsgType_t EtwsMsgType; /**< ETWS message type */
-        short Length; /**< Size of array @a szMsgData (which is the actual TPDU message) */
-        char szMsgData[TAPI_NETTEXT_ETWS_SIZE_MAX + 1]; /**< ETWS message data[Refer 3GPP TS 23.041 9.4.1] */
+       short Length; /**< Size of array @a szMsgData (which is the actual TPDU message) */
+       char szMsgData[TAPI_NETTEXT_ETWS_SIZE_MAX + 1]; /**< ETWS message data[Refer 3GPP TS 23.041 9.4.1] */
 };
 
-
 #ifdef __cplusplus
 }
 #endif
 
-#endif  // _TEL_NETTEXT_H_
+#endif /* _TEL_NETTEXT_H_ */
 
 /**
  * @}
-*/
+ */
index e393d0bd71a68979ba5eba3b3731ffa14d0832c7..146739441be13f8f3ad96c5fe80a36ac7ef0709b 100644 (file)
@@ -39,35 +39,67 @@ extern "C"
  * @brief Definition for the maximum length of the barring password.
  * @since_tizen 2.3
  */
-#define TAPI_SS_GSM_BARR_PW_LEN_MAX                            4
+#define TAPI_SS_GSM_BARR_PW_LEN_MAX    4
 
 /**
  * @brief Definition for the maximum length of the dial digit.
  * @since_tizen 2.3
  */
-#define TAPI_CALL_DIALDIGIT_LEN_MAX                            82
+#define TAPI_CALL_DIALDIGIT_LEN_MAX    82
 
 /**
  * @brief Definition for the maximum size of user-to-user data.
  * @since_tizen 2.3
  */
-#define TAPI_SS_USSD_DATA_SIZE_MAX                             208
+#define TAPI_SS_USSD_DATA_SIZE_MAX     208
 
 /**
  * @brief Definition for the maximum size of the SS record.
  * @since_tizen 2.3
  */
-#define TAPI_SS_RECORD_NUM_MAX                                 5
+#define TAPI_SS_RECORD_NUM_MAX 5
 
-/* Supplementary Svc */
-#define TAPI_SS_ADDRESS_LEN_MAX                                        40
-#define TAPI_SS_CCBS_SIZE_MAX                                  5
-#define TAPI_SS_TELECOMM_SERVCE_SIZE_MAX               13
-#define TAPI_SS_PHONE_NUM_LEN_MAX                              33
-#define TAPI_SS_MMISTRING_LEN_MAX                              33
-#define TAPI_SS_PWD_LEN_MAX                                            5
-#define TAPI_MAX_RELEASE_COMPLETE_DATA_LEN             260
-#define TAPI_MAX_ULONG                                                 0xffffffff
+/**
+ * @brief Definition for the maximum length of address.
+ * @since_tizen 2.3
+ */
+#define TAPI_SS_ADDRESS_LEN_MAX        40
+
+/**
+ * @brief Definition for the maximum size of CCBS.
+ * @since_tizen 2.3
+ */
+#define TAPI_SS_CCBS_SIZE_MAX  5
+
+/**
+ * @brief Definition for the maximum size of telecom service.
+ * @since_tizen 2.3
+ */
+#define TAPI_SS_TELECOMM_SERVCE_SIZE_MAX       13
+
+/**
+ * @brief Definition for the maximum length of phone number.
+ * @since_tizen 2.3
+ */
+#define TAPI_SS_PHONE_NUM_LEN_MAX      33
+
+/**
+ * @brief Definition for the maximum length of MMI string.
+ * @since_tizen 2.3
+ */
+#define TAPI_SS_MMISTRING_LEN_MAX      33
+
+/**
+ * @brief Definition for the maximum length of password.
+ * @since_tizen 2.3
+ */
+#define TAPI_SS_PWD_LEN_MAX    5
+
+/**
+ * @brief Definition for the maximum length of release complete data.
+ * @since_tizen 2.3
+ */
+#define TAPI_MAX_RELEASE_COMPLETE_DATA_LEN     260
 
 /**
  * @brief Enumeration for the call forwarding condition.
@@ -83,6 +115,10 @@ typedef enum {
        TAPI_SS_CF_WHEN_MAX         /**< 0x07 : Max */
 } TelSsForwardWhen_t;
 
+/**
+ * @brief Enumeration for the call forwarding TON.
+ * @since_tizen 2.3
+ */
 typedef enum {
        TAPI_SS_CF_TON_UNKNOWN = 0, /**< Unknown */
        TAPI_SS_CF_TON_INTERNATIONAL = 1, /**< International number */
@@ -94,6 +130,10 @@ typedef enum {
        TAPI_SS_CF_TON_RESERVED_FOR_EXT = 7 /**< Reserved for extension */
 } TelSsForwardTypeOfNum_t;
 
+/**
+ * @brief Enumeration for the call forwarding TON.
+ * @since_tizen 2.3
+ */
 typedef enum {
        TAPI_SS_CF_NPI_UNKNOWN = 0, /**< Unknown */
        TAPI_SS_CF_NPI_ISDN_TEL = 1, /**< ISDN/Telephone numbering plan */
@@ -116,15 +156,15 @@ typedef enum {
        TAPI_SS_CB_TYPE_BAOC = 0x01,         /**< 0x01 : Barring All Outgoing Calls */
        TAPI_SS_CB_TYPE_BOIC,                /**< 0x02 : Barring Outgoing International Calls */
        TAPI_SS_CB_TYPE_BOIC_NOT_HC,         /**< 0x03 : Barring Outgoing International Calls
-                                                                             except to Home Country */
+                                                               except to Home Country */
        TAPI_SS_CB_TYPE_BAIC,                /**< 0x04 : Barring All Incoming Calls */
        TAPI_SS_CB_TYPE_BIC_ROAM,            /**< 0x05 : Barring Incoming Calls when roaming
-                                                                                 outside the Home Country */
+                                                               outside the Home Country */
        TAPI_SS_CB_TYPE_AB,                  /**< 0x06 : All Barring Services */
        TAPI_SS_CB_TYPE_AOB,                 /**< 0x07 : All Outgoing Barring Services */
        TAPI_SS_CB_TYPE_AIB,                 /**< 0x08 : All Incoming Barring Services */
        TAPI_SS_CB_TYPE_BIC_NOT_SIM,         /**< 0x09 : Barring Incoming Calls which is
-                                                                             not stored in the SIM memory */
+                                                               not stored in the SIM memory */
        TAPI_SS_CB_TYPE_MAX
 } TelSsBarringType_t;
 
@@ -176,24 +216,24 @@ typedef enum {
  */
 typedef enum {
        /* TELESERVICE */
-       TAPI_SS_CLASS_ALL_TELE=0x10,             /**< 0x10 : All Teleservices */
-       TAPI_SS_CLASS_VOICE=0x11,                /**< 0x11 : Voice ( telephony ) */
-       TAPI_SS_CLASS_ALL_DATA_TELE=0x12,        /**< 0x12 : All Data Teleservices */
-       TAPI_SS_CLASS_FAX=0x13,                  /**< 0x13 : Fax Service */
-       TAPI_SS_CLASS_SMS=0x16,                  /**< 0x16 : SMS service */
-       TAPI_SS_CLASS_VGCS=0x17,                 /**< 0x17 : Voice Group Call Service */
-       TAPI_SS_CLASS_VBS=0x18,                  /**< 0x18 : Voice Broadcast */
-       TAPI_SS_CLASS_ALL_TELE_EXPT_SMS=0x19,    /**< 0x19 : All teleservices except SMS */
+       TAPI_SS_CLASS_ALL_TELE = 0x10,           /**< 0x10 : All Teleservices */
+       TAPI_SS_CLASS_VOICE = 0x11,              /**< 0x11 : Voice ( telephony ) */
+       TAPI_SS_CLASS_ALL_DATA_TELE = 0x12,      /**< 0x12 : All Data Teleservices */
+       TAPI_SS_CLASS_FAX = 0x13,                /**< 0x13 : Fax Service */
+       TAPI_SS_CLASS_SMS = 0x16,                /**< 0x16 : SMS service */
+       TAPI_SS_CLASS_VGCS = 0x17,               /**< 0x17 : Voice Group Call Service */
+       TAPI_SS_CLASS_VBS = 0x18,                /**< 0x18 : Voice Broadcast */
+       TAPI_SS_CLASS_ALL_TELE_EXPT_SMS = 0x19,  /**< 0x19 : All teleservices except SMS */
 
        /* BEARER SERVICE */
-       TAPI_SS_CLASS_ALL_BEARER=0x20,           /**< 0X20 : All Bearer services */
-       TAPI_SS_CLASS_ALL_ASYNC=0x21,            /**< 0x21 : All Async services */
-       TAPI_SS_CLASS_ALL_SYNC=0x22,             /**< 0x22 : All Sync services */
-       TAPI_SS_CLASS_ALL_CS_SYNC=0x24,          /**< 0x24 : All Circuit switched sync */
-       TAPI_SS_CLASS_ALL_CS_ASYNC=0x25,         /**< 0x25 : All Circuit switched async */
-       TAPI_SS_CLASS_ALL_DEDI_PS=0x26,          /**< 0x26 : All Dedicated packet Access */
-       TAPI_SS_CLASS_ALL_DEDI_PAD=0x27,         /**< 0x27 : All Dedicated PAD Access */
-       TAPI_SS_CLASS_ALL_DATA_CDA=0x28,                 /**< 0x28 : All Data CDA */
+       TAPI_SS_CLASS_ALL_BEARER = 0x20,         /**< 0X20 : All Bearer services */
+       TAPI_SS_CLASS_ALL_ASYNC = 0x21,          /**< 0x21 : All Async services */
+       TAPI_SS_CLASS_ALL_SYNC = 0x22,           /**< 0x22 : All Sync services */
+       TAPI_SS_CLASS_ALL_CS_SYNC = 0x24,        /**< 0x24 : All Circuit switched sync */
+       TAPI_SS_CLASS_ALL_CS_ASYNC = 0x25,       /**< 0x25 : All Circuit switched async */
+       TAPI_SS_CLASS_ALL_DEDI_PS = 0x26,        /**< 0x26 : All Dedicated packet Access */
+       TAPI_SS_CLASS_ALL_DEDI_PAD = 0x27,       /**< 0x27 : All Dedicated PAD Access */
+       TAPI_SS_CLASS_ALL_DATA_CDA = 0x28,       /**< 0x28 : All Data CDA */
 
        /* PLMN SPECIFIC TELESERVICE */
        TAPI_SS_CLASS_PLMN_TELE_ALL = 0x50,      /**< 0x50 : PLMN specific teleservices */
@@ -232,10 +272,10 @@ typedef enum {
        TAPI_SS_CLASS_PLMN_BEAR_F = 0x85,        /**< 0x85 : PLMN specific bearer service 15 */
 
        /* CPHS - AUXILIARY SERVICE */
-       TAPI_SS_CLASS_AUX_VOICE = 0x89,                  /**< 0x89 : Auxiliary Voice ( Auxiliary telephony ) */
+       TAPI_SS_CLASS_AUX_VOICE = 0x89,          /**< 0x89 : Auxiliary Voice ( Auxiliary telephony ) */
 
-       TAPI_SS_CLASS_ALL_GPRS_BEARER=0x99,      /**< 0x99 : All GPRS bearer services */
-       TAPI_SS_CLASS_ALL_TELE_BEARER=0xFF,      /**< 0xFF : All tele and bearer services */
+       TAPI_SS_CLASS_ALL_GPRS_BEARER = 0x99,    /**< 0x99 : All GPRS bearer services */
+       TAPI_SS_CLASS_ALL_TELE_BEARER = 0xFF,    /**< 0xFF : All tele and bearer services */
 } TelSsClass_t;
 
 /**
@@ -245,7 +285,7 @@ typedef enum {
 typedef enum {
        TAPI_SS_CF_MODE_DISABLE_EV, /**< Deactivate call forwarding */
        TAPI_SS_CF_MODE_ENABLE_EV, /**< Activate call forwarding */
-       TAPI_SS_CF_MODE_REGISTRATION_EV, /**< Register call forwarding  */
+       TAPI_SS_CF_MODE_REGISTRATION_EV, /**< Register call forwarding */
        TAPI_SS_CF_MODE_ERASURE_EV, /**< Deregister call forwarding */
 } TelSsForwardMode_t;
 
@@ -268,52 +308,52 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_SS_SUCCESS=0x0, /**<  SS operation is successful */
+       TAPI_SS_SUCCESS = 0x0, /**< SS operation is successful */
 
-       TAPI_SS_UNKNOWNSUBSCRIBER= 0x01, /**< SS error indicating unknown/illegal subscriber */
-       TAPI_SS_ILLEGALSUBSCRIBER= 0x09, /**< This error is returned when illegality of the access has been @n
+       TAPI_SS_UNKNOWNSUBSCRIBER = 0x01, /**< SS error indicating unknown/illegal subscriber */
+       TAPI_SS_ILLEGALSUBSCRIBER = 0x09, /**< This error is returned when illegality of the access has been @n
         established by use of an authentication procedure */
 
-       TAPI_SS_BEARERSERVICENOTPROVISIONED= 0x0a, /**< The network returns this error when it is requested to @n
+       TAPI_SS_BEARERSERVICENOTPROVISIONED = 0x0a, /**< The network returns this error when it is requested to @n
         perform an operation on a supplementary service */
-       TAPI_SS_TELESERVICENOTPROVISIONED= 0x0b, /**< The network returns this error when it is requested to perform @n
+       TAPI_SS_TELESERVICENOTPROVISIONED = 0x0b, /**< The network returns this error when it is requested to perform @n
         an operation on a supplementary service */
-       TAPI_SS_ILLEGALEQUIPMENT= 0x0c, /**< This error is returned when the IMEI check procedure has shown that @n
+       TAPI_SS_ILLEGALEQUIPMENT = 0x0c, /**< This error is returned when the IMEI check procedure has shown that @n
         the IMEI is blacklisted or it is not whitelisted */
-       TAPI_SS_CALLBARRED= 0x0d, /**< This error is returned by the network to the MS when call independent subscriber control procedures are barred by the operator */
-       TAPI_SS_ILLEGALSSOPERATION=0x10, /**< This error is returned by the network when it is requested to perform an illegal operation @n
+       TAPI_SS_CALLBARRED = 0x0d, /**< This error is returned by the network to the MS when call independent subscriber control procedures are barred by the operator */
+       TAPI_SS_ILLEGALSSOPERATION = 0x10, /**< This error is returned by the network when it is requested to perform an illegal operation @n
         which is defined as not applicable for the relevant supplementary service */
-       TAPI_SS_ERRORSTATUS= 0x11, /**< This error is returned by the network when it is requested to perform an operation @n
+       TAPI_SS_ERRORSTATUS = 0x11, /**< This error is returned by the network when it is requested to perform an operation @n
         which is not compatible with the current status of the relevant supplementary service */
-       TAPI_SS_NOTAVAILABLE= 0x12, /**< SS not available in the network */
-       TAPI_SS_SUBSCRIPTIONVIOLATION= 0x13, /**< SS service subscription violation */
-       TAPI_SS_INCOMPATIBILITY= 0x14, /**< This error is returned by the network when it is requested for a supplementary service operation that is incompatible with the @n
+       TAPI_SS_NOTAVAILABLE = 0x12, /**< SS not available in the network */
+       TAPI_SS_SUBSCRIPTIONVIOLATION = 0x13, /**< SS service subscription violation */
+       TAPI_SS_INCOMPATIBILITY = 0x14, /**< This error is returned by the network when it is requested for a supplementary service operation that is incompatible with the @n
         status of another supplementary service or with the teleservice or bearer service for which the operation is requested */
-       TAPI_SS_FACILITYNOTSUPPORTED= 0x15, /**< SS service facility not supported */
-       TAPI_SS_ABSENTSUBSCRIBER= 0x1b, /**< This error is returned when the subscriber has activated the detach service or the system detects the absence condition */
+       TAPI_SS_FACILITYNOTSUPPORTED = 0x15, /**< SS service facility not supported */
+       TAPI_SS_ABSENTSUBSCRIBER = 0x1b, /**< This error is returned when the subscriber has activated the detach service or the system detects the absence condition */
 
-       TAPI_SS_SYSTEMFAILURE= 0x22, /**< This error is returned by the network, when it cannot perform an operation because of a failure in the network */
-       TAPI_SS_DATAMISSING= 0x23, /**< This error is returned by the network when an optional parameter is missing in an invoke component @n
+       TAPI_SS_SYSTEMFAILURE = 0x22, /**< This error is returned by the network, when it cannot perform an operation because of a failure in the network */
+       TAPI_SS_DATAMISSING = 0x23, /**< This error is returned by the network when an optional parameter is missing in an invoke component @n
         or an inner data structure, while it is required by the context of the request */
-       TAPI_SS_UNEXPECTEDDATAVALUE= 0x24, /**< SS error indicating an unexpected data value on the network side *//**< SS operation barred */
-       TAPI_SS_PWREGISTRATIONFAILURE= 0x25, /**< SS error indicating a change password failure */
-       TAPI_SS_NEGATIVEPWCHECK= 0x26, /**< SS error indicating a negative password check */
-       TAPI_SS_NUMBEROFPWATTEMPTSVIOLATION= 0x2b, /**< SS error indicating violation in barring password attempts */
+       TAPI_SS_UNEXPECTEDDATAVALUE = 0x24, /**< SS error indicating an unexpected data value on the network side *//**< SS operation barred */
+       TAPI_SS_PWREGISTRATIONFAILURE = 0x25, /**< SS error indicating a change password failure */
+       TAPI_SS_NEGATIVEPWCHECK = 0x26, /**< SS error indicating a negative password check */
+       TAPI_SS_NUMBEROFPWATTEMPTSVIOLATION = 0x2b, /**< SS error indicating violation in barring password attempts */
 
-       TAPI_SS_UNKNOWNALPHABET= 0x47, /**< SS error indicating unknown SS data coding of an alphabet */
-       TAPI_SS_USSDBUSY= 0x48, /**< SS error indicating USSD Busy(Already SS / USSD is ongoing) */
+       TAPI_SS_UNKNOWNALPHABET = 0x47, /**< SS error indicating unknown SS data coding of an alphabet */
+       TAPI_SS_USSDBUSY = 0x48, /**< SS error indicating USSD Busy(Already SS / USSD is ongoing) */
 
        TAPI_SS_FIXED_DIALING_NUMBER_ONLY = 0x5F, /**< SS error indicating Dialing number is not FDN */
 
-       TAPI_SS_REJECTEDBYUSER= 0x79, /**< SS operation rejected by the user */
-       TAPI_SS_REJECTEDBYNETWORK=0x7a, /**< SS operation rejected by the network */
-       TAPI_SS_DEFLECTIONTOSERVEDSUBSCRIBER= 0x7b, /**< This error is returned if a diversion to the served @n
+       TAPI_SS_REJECTEDBYUSER = 0x79, /**< SS operation rejected by the user */
+       TAPI_SS_REJECTEDBYNETWORK = 0x7a, /**< SS operation rejected by the network */
+       TAPI_SS_DEFLECTIONTOSERVEDSUBSCRIBER = 0x7b, /**< This error is returned if a diversion to the served @n
         subscriber's number is requested */
-       TAPI_SS_SPECIALSERVICECODE= 0x7c, /**< This error is returned if a diversion to a special service code is requested */
-       TAPI_SS_INVALIDDEFLECTEDTONUMBER= 0x7d, /**< SS error indicating invalid deflected to a number */
-       TAPI_SS_MAXNOMPTYEXCEEDED= 0x7e, /**< SS error indicating Maximum MPTY is reached */
-       TAPI_SS_RESOURCESNOTAVAILABLE= 0x7f, /**< SS error indicating resources not available in the network */
-       TAPI_SS_REJECTEDBYCALLCONTROL= 0x80, /**< SS error indicating resources not available in the network */
+       TAPI_SS_SPECIALSERVICECODE = 0x7c, /**< This error is returned if a diversion to a special service code is requested */
+       TAPI_SS_INVALIDDEFLECTEDTONUMBER = 0x7d, /**< SS error indicating invalid deflected to a number */
+       TAPI_SS_MAXNOMPTYEXCEEDED = 0x7e, /**< SS error indicating Maximum MPTY is reached */
+       TAPI_SS_RESOURCESNOTAVAILABLE = 0x7f, /**< SS error indicating resources not available in the network */
+       TAPI_SS_REJECTEDBYCALLCONTROL = 0x80, /**< SS error indicating resources not available in the network */
 
        TAPI_SS_TIMEREXPIRE, /**< SS operation timer expired on the network */
        TAPI_SS_NET_NOT_ALLOWED_EMERGENCY_CALLS_ONLY, /**< SS operation is not allowed by the network */
@@ -339,7 +379,7 @@ typedef enum {
  * @since_tizen 2.3
  */
 typedef enum {
-       TAPI_CALLING_LINE_IDENTITY_PRESENTATION= 0x01, /**< Identify the party calling this phone */
+       TAPI_CALLING_LINE_IDENTITY_PRESENTATION = 0x01, /**< Identify the party calling this phone */
        TAPI_CALLING_LINE_IDENTITY_RESTRICTION, /**< Hide the identity of this phone when calling others */
        TAPI_CONNECTED_LINE_IDENTITY_PRESENTATION, /**< Identify the party to whom the calling party (this phone) is connected */ /* 3GPP(GSM/UMTS/LTE) Specific */
        TAPI_CONNECTED_LINE_IDENTITY_RESTRICTION, /**< Restrict yourself from being identified by incoming calls, such as forwarded calls */ /* 3GPP(GSM/UMTS/LTE) Specific */
@@ -373,38 +413,43 @@ typedef enum {
        TAPI_SS_CLI_CNAP = 0x06, /**< Calling Name Presentation */ /* 3GPP(GSM/UMTS/LTE) Specific */
 } TelSsCliType_t;
 
+/**
+ * @brief Enumeration for SS info type.
+ * @since_tizen 2.3
+ */
 typedef enum {
-       TAPI_SS_TYPE_BARRING = 0x00,    /**< TBD */
-       TAPI_SS_TYPE_FORWARDING,        /**< TBD */
-       TAPI_SS_TYPE_WAITING,   /**< TBD */
-       TAPI_SS_TYPE_CLI,       /**< TBD */
-       TAPI_SS_TYPE_SEND_USSD, /**< TBD */
-       TAPI_SS_TYPE_MAX        /**< TBD */
-}TelSsInfoType_t;
+       TAPI_SS_TYPE_BARRING = 0x00,    /**< Barring */
+       TAPI_SS_TYPE_FORWARDING,        /**< Forwarding */
+       TAPI_SS_TYPE_WAITING,   /**< Waiting */
+       TAPI_SS_TYPE_CLI,       /**< CLI */
+       TAPI_SS_TYPE_SEND_USSD, /**< Send Ussd */
+       TAPI_SS_TYPE_MAX        /**< Max value */
+} TelSsInfoType_t;
 
 /**
  * @brief The structure type for the parameters related to forward info.
  * @since_tizen 2.3
  */
 typedef struct {
-       TelSsClass_t Class;     /**< TBD */
+       TelSsClass_t Class;     /**< SS Class */
        TelSsForwardMode_t Mode; /**< Forward Mode */
        TelSsForwardWhen_t Condition; /**< Forward Condition */
-       TelSsNoReplyTime_t NoReplyConditionTimer; /**< No reply wait time 5-30 secs in intervals of 5 */ /* 3GPP(GSM/UMTS/LTE) Specific */
-       TelSsForwardTypeOfNum_t Ton;    /**< TBD */
-       TelSsForwardNumberingPlanIdentity_t Npi;        /**< TBD */
+       TelSsNoReplyTime_t NoReplyConditionTimer; /**< No reply wait time 5-30 secs in intervals of 5(3GPP(GSM/UMTS/LTE) Specific) */
+       TelSsForwardTypeOfNum_t Ton;    /**< TON */
+       TelSsForwardNumberingPlanIdentity_t Npi;        /**< NPI */
        unsigned char szPhoneNumber[TAPI_CALL_DIALDIGIT_LEN_MAX]; /**< Phone Number */
 } TelSsForwardInfo_t;
 
 /**
  * @brief The structure type defining values for USSD request type. Applicable to 3GPP(GSM/UMTS/LTE) only.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SS_USSD
  */
 typedef struct {
-       TelSsUssdType_t Type;   /**< TBD */
-       unsigned char  Dcs;     /**< TBD */
-       int Length; /**< USSD  String Length */
-       char szString[TAPI_SS_USSD_DATA_SIZE_MAX]; /**< USSD  String */
+       TelSsUssdType_t Type;   /**< USSD Type */
+       unsigned char Dcs;      /**< DCS */
+       int Length; /**< USSD String Length */
+       char szString[TAPI_SS_USSD_DATA_SIZE_MAX]; /**< USSD String */
 } TelSsUssdMsgInfo_t;
 
 /**
@@ -415,7 +460,7 @@ typedef struct {
        TelSsClass_t Class; /**< Call type */
        TelSsBarringMode_t Mode; /**< Barring mode */
        TelSsBarringType_t Type; /**< Barring type */
-       char szPassword[TAPI_SS_GSM_BARR_PW_LEN_MAX]; /**< Password */ /* 3GPP(GSM/UMTS/LTE) Specific */
+       char szPassword[TAPI_SS_GSM_BARR_PW_LEN_MAX]; /**< Password (3GPP(GSM/UMTS/LTE) Specific) */
 } TelSsBarringInfo_t;
 
 /**
@@ -430,93 +475,123 @@ typedef struct {
 /**
  * @brief The structure type for SUPS information message notification type.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SS_INFO
  */
 typedef struct {
        TelSsCause_t Cause; /**< Cause */
        TelSsInfoType_t SsType; /**< SUPS Information */
 } TelSsInfo_t;
 
-
 /**
  * @brief The structure type for release complete message notification type.
  * @since_tizen 2.3
+ * @see #TAPI_NOTI_SS_RELEASE_COMPLETE
  */
 typedef struct {
        unsigned char RelCompMsgLen; /**< Specifies the Release complete msg length */
-       unsigned char szRelCompMsg[TAPI_MAX_RELEASE_COMPLETE_DATA_LEN]; /**<  Specifies the Release complete msg */
+       unsigned char szRelCompMsg[TAPI_MAX_RELEASE_COMPLETE_DATA_LEN]; /**< Specifies the Release complete msg */
 } TelSsRelCompMsgInfo_t;
 
 /**
  * @brief The structure type defining values for SS call barring record. Applicable to 3GPP(GSM/UMTS/LTE) only.
  * @since_tizen 2.3
+ * @see tel_set_ss_barring()
+ * @see tel_get_ss_barring_status()
  */
 typedef struct {
-       int record_num; /**< TBD */
+       int record_num; /**< Record Number */
        struct {
-               TelSsClass_t Class;     /**< TBD */
+               TelSsClass_t Class;     /**< SS Class */
                TelSsStatus_t Status; /**< SS status */
                TelSsBarringType_t Flavour; /**< Call barring types providing various barring conditions on which calls are barred */
        } record[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the Maximum of #TAPI_SS_RECORD_NUM_MAX records */
 } TelSsBarringResp_t;
 
+/**
+ * @brief The structure type defining values for SS call barring notification. Applicable to 3GPP(GSM/UMTS/LTE) only.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_SS_BARRING_STATUS
+ */
 typedef TelSsBarringResp_t TelSsBarringNoti_t;
 
 /**
  * @brief The structure type defining values for SS call forwarding record. Applicable to 3GPP(GSM/UMTS/LTE) only.
  * @since_tizen 2.3
+ * @see tel_set_ss_forward()
+ * @see tel_get_ss_forward_status()
  */
 typedef struct {
-       int record_num; /**< TBD */
+       int record_num; /**< Record Number */
        struct {
-               TelSsClass_t Class;     /**< TBD */
+               TelSsClass_t Class;     /**< SS Class */
                TelSsStatus_t Status; /**< Call forwarding SS status */
                TelSsForwardWhen_t ForwardCondition; /**< Call forward types providing various conditions when a call can be forwarded */
                int bCallForwardingNumberPresent; /**< Flag that indicates whether call forwarding number is present */
-               TelSsNoReplyTime_t NoReplyWaitTime;     /**< TBD */
-               TelSsForwardTypeOfNum_t Ton;    /**< TBD */
-               TelSsForwardNumberingPlanIdentity_t Npi;        /**< TBD */
+               TelSsNoReplyTime_t NoReplyWaitTime;     /**< No-Reply Time */
+               TelSsForwardTypeOfNum_t Ton;    /**< TON */
+               TelSsForwardNumberingPlanIdentity_t Npi;        /**< NPI */
                unsigned char szCallForwardingNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1]; /**< Forwarded number [Null Terminated string] */
        } record[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the maximum of #TAPI_SS_RECORD_NUM_MAX records */
 } TelSsForwardResp_t;
 
+/**
+ * @brief The structure type defining values for SS call forwarding notification. Applicable to 3GPP(GSM/UMTS/LTE) only.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_SS_FORWARD_STATUS
+ */
 typedef TelSsForwardResp_t TelSsForwardNoti_t;
 
 /**
  * @brief The structure type defining values for SS call waiting record. Applicable to 3GPP(GSM/UMTS/LTE) only.
  * @since_tizen 2.3
+ * @see tel_set_ss_waiting()
+ * @see tel_get_ss_waiting_status()
  */
 typedef struct {
-       int record_num; /**< TBD */
+       int record_num; /**< Record Number */
        struct {
-               TelSsClass_t Class;     /**< TBD */
+               TelSsClass_t Class;     /**< SS Class */
                TelSsStatus_t Status; /**< SS status */
        } record[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the maximum of #TAPI_SS_RECORD_NUM_MAX records */
 } TelSsWaitingResp_t;
 
+/**
+ * @brief The structure type defining values for SS call waiting notification. Applicable to 3GPP(GSM/UMTS/LTE) only.
+ * @since_tizen 2.3
+ * @see #TAPI_NOTI_SS_WAITING_STATUS
+ */
 typedef TelSsWaitingResp_t TelSsWaitingNoti_t;
 
 /**
  * @brief The structure type defining values for calling line identity service. Applicable to 3GPP(GSM/UMTS/LTE) only.
  * @since_tizen 2.3
+ * @see tel_get_ss_cli_status()
  */
 typedef struct {
        TelSsLineIdentificationType_t Type; /**< Various line identification types */
        TelSsCliStatus_t Status; /**< Line identification status from the network */
 } TelSsCliResp_t;
 
-/* Applicable to 3GPP(GSM/UMTS/LTE) only */
+/**
+ * @brief The structure type defining USSD response data. Applicable to 3GPP(GSM/UMTS/LTE) only.
+ * @since_tizen 2.3
+ * @see tel_send_ss_ussd_request()
+ */
 typedef struct {
-       TelSsUssdType_t Type;   /**< TBD */
-       TelSsUssdStatus_t Status;       /**< TBD */
-       unsigned char Dcs;      /**< TBD */
+       TelSsUssdType_t Type;   /**< USSD Type */
+       TelSsUssdStatus_t Status;       /**< USSD Status */
+       unsigned char Dcs;      /**< DCS */
        int Length; /**< USSD String Length */
        char szString[TAPI_SS_USSD_DATA_SIZE_MAX]; /**< USSD String */
 } TelSsUssdResp_t;
 
-/* Applicable to 3GPP(GSM/UMTS/LTE) only */
+/**
+ * @brief The structure type defining USSD notification data. Applicable to 3GPP(GSM/UMTS/LTE) only.
+ * @since_tizen 2.3
+ */
 typedef struct {
-       TelSsUssdStatus_t Status;       /**< TBD */
-       unsigned char Dcs;      /**< TBD */
+       TelSsUssdStatus_t Status;       /**< USSD Status */
+       unsigned char Dcs;      /**< DCS */
        int Length; /**< USSD String Length */
        char szString[TAPI_SS_USSD_DATA_SIZE_MAX]; /**< USSD String */
 } TelSsUssdNoti_t;
@@ -525,7 +600,7 @@ typedef struct {
 }
 #endif
 
-#endif // _TEL_SS_H_
+#endif /* _TEL_SS_H_ */
 
 /**
  * @}
index cca2d65f53f5fbcb53db777bdf849469bca570fa..62c976a161778504bfe612e110ffbd3806e71241 100644 (file)
@@ -158,6 +158,47 @@ int tel_get_property_int(TapiHandle *handle, const char *property, int *result);
  */
 int tel_get_property_string(TapiHandle *handle, const char *property, char **result);
 
+/**
+ * @brief Gets the state value if tapi is ready.
+ *
+ * @details <b> Sync (or) Async: </b> Synchronous API.
+ *
+ * @since_tizen 2.4
+ *
+ * @param[out] state The state value in integer format - 0 is False and 1 is True
+ *
+ * @return #TapiResult_t
+ */
+int tel_get_ready_state(int *state);
+
+/**
+ * @brief Registers a state change callback for tapi ready state.
+ *
+ * @details <b> Sync (or) Async: </b> Synchronous API.
+ *
+ * @since_tizen 2.4
+ *
+ * @param[in] callback #tapi_state_cb - The notification callback that will be invoked on the event
+ *
+ * @param[in] user_data The user data passed into callback function.
+ *
+ * @return #TapiResult_t
+ */
+int tel_register_ready_state_cb(tapi_state_cb callback, void *user_data);
+
+/**
+ * @brief Deregisters a state change callback for tapi ready state.
+ *
+ * @details <b> Sync (or) Async: </b> Synchronous API.
+ *
+ * @since_tizen 2.4
+ *
+ * @param[in] callback The #tapi_state_cb callback function to deregister notification.
+ *
+ * @return #TapiResult_t
+ */
+int tel_deregister_ready_state_cb(tapi_state_cb callback);
+
 #ifdef __cplusplus
 }
 #endif
index aff7b1126e4cbd2b5fb0b26688e1e17ab427b653..fb19fa6b3afddfb963b61093b92b453e680b4f79 100644 (file)
@@ -35,172 +35,744 @@ __BEGIN_DECLS
  */
 
 /**
- * @brief (Needs to be updated).
- */
-#define DBUS_TELEPHONY_CALL_INTERFACE                          DBUS_TELEPHONY_SERVICE".Call"
-
-#define TAPI_NOTI_VOICE_CALL_STATUS_IDLE                       DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusIdle"
-#define TAPI_NOTI_VOICE_CALL_STATUS_ACTIVE                     DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusActive"
-#define TAPI_NOTI_VOICE_CALL_STATUS_HELD                       DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusHeld"
-#define TAPI_NOTI_VOICE_CALL_STATUS_DIALING                    DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusDialing"
-#define TAPI_NOTI_VOICE_CALL_STATUS_ALERT                      DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusAlert"
-#define TAPI_NOTI_VOICE_CALL_STATUS_INCOMING           DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusIncoming"
-#define TAPI_NOTI_VOICE_CALL_STATUS_WAITING                    DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusWaiting"
-
-#define TAPI_NOTI_VIDEO_CALL_STATUS_IDLE                       DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusIdle"
-#define TAPI_NOTI_VIDEO_CALL_STATUS_ACTIVE                     DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusActive"
-#define TAPI_NOTI_VIDEO_CALL_STATUS_DIALING                    DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusDialing"
-#define TAPI_NOTI_VIDEO_CALL_STATUS_ALERT                      DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusAlert"
-#define TAPI_NOTI_VIDEO_CALL_STATUS_INCOMING           DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusIncoming"
-
-#define TAPI_NOTI_CALL_INFO_CALL_CONNECTED_LINE                DBUS_TELEPHONY_CALL_INTERFACE":CallConnectedLine"
-#define TAPI_NOTI_CALL_INFO_WAITING                                    DBUS_TELEPHONY_CALL_INTERFACE":Waiting"
-#define TAPI_NOTI_CALL_INFO_CUG                                                DBUS_TELEPHONY_CALL_INTERFACE":Cug"
-#define TAPI_NOTI_CALL_INFO_FORWARDED                          DBUS_TELEPHONY_CALL_INTERFACE":Forwarded"
-#define TAPI_NOTI_CALL_INFO_BARRED_INCOMING                    DBUS_TELEPHONY_CALL_INTERFACE":BarredIncoming"
-#define TAPI_NOTI_CALL_INFO_BARRED_OUTGOING                    DBUS_TELEPHONY_CALL_INTERFACE":BarredOutgoing"
-#define TAPI_NOTI_CALL_INFO_DEFLECTED                          DBUS_TELEPHONY_CALL_INTERFACE":Deflected"
+ * @brief Definition for the Call interface
+ */
+#define DBUS_TELEPHONY_CALL_INTERFACE  DBUS_TELEPHONY_SERVICE".Call"
+
+/**
+ * @brief Definition for voice call idle status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusIdleNoti_t' will be stored
+ */
+#define TAPI_NOTI_VOICE_CALL_STATUS_IDLE       DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusIdle"
+
+/**
+ * @brief Definition for voice call active status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusActiveNoti_t' will be stored
+ */
+#define TAPI_NOTI_VOICE_CALL_STATUS_ACTIVE     DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusActive"
+
+/**
+ * @brief Definition for voice call held status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusHeldNoti_t' will be stored
+ */
+#define TAPI_NOTI_VOICE_CALL_STATUS_HELD       DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusHeld"
+
+/**
+ * @brief Definition for voice call dialing status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusDialingNoti_t' will be stored
+ */
+#define TAPI_NOTI_VOICE_CALL_STATUS_DIALING    DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusDialing"
+
+/**
+ * @brief Definition for voice call alerting status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusAlertNoti_t' will be stored
+ */
+#define TAPI_NOTI_VOICE_CALL_STATUS_ALERT      DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusAlert"
+
+/**
+ * @brief Definition for voice call incoming status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallIncomingCallInfo_t' will be stored
+ */
+#define TAPI_NOTI_VOICE_CALL_STATUS_INCOMING   DBUS_TELEPHONY_CALL_INTERFACE":VoiceCallStatusIncoming"
+
+/**
+ * @brief Definition for video call idle status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusIdleNoti_t' will be stored
+ */
+#define TAPI_NOTI_VIDEO_CALL_STATUS_IDLE       DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusIdle"
+
+/**
+ * @brief Definition for video call active status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusActiveNoti_t' will be stored
+ */
+#define TAPI_NOTI_VIDEO_CALL_STATUS_ACTIVE     DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusActive"
+
+/**
+ * @brief Definition for video call dialing status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusDialingNoti_t' will be stored
+ */
+#define TAPI_NOTI_VIDEO_CALL_STATUS_DIALING    DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusDialing"
+
+/**
+ * @brief Definition for video call alerting status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallStatusAlertNoti_t' will be stored
+ */
+#define TAPI_NOTI_VIDEO_CALL_STATUS_ALERT      DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusAlert"
+
+/**
+ * @brief Definition for video call incoming status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallIncomingCallInfo_t' will be stored
+ */
+#define TAPI_NOTI_VIDEO_CALL_STATUS_INCOMING   DBUS_TELEPHONY_CALL_INTERFACE":VideoCallStatusIncoming"
+
+/**
+ * @brief Definition for outgoing call waiting notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoWaitingNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_WAITING    DBUS_TELEPHONY_CALL_INTERFACE":Waiting"
+
+/**
+ * @brief Definition for outgoing call forwarded notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoForwardedNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_FORWARDED  DBUS_TELEPHONY_CALL_INTERFACE":Forwarded"
+
+/**
+ * @brief Definition for incoming call barred notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoBarredIncomingNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_BARRED_INCOMING    DBUS_TELEPHONY_CALL_INTERFACE":BarredIncoming"
+
+/**
+ * @brief Definition for outgoing call barred notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoBarredOutgoingNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_BARRED_OUTGOING    DBUS_TELEPHONY_CALL_INTERFACE":BarredOutgoing"
+
+/**
+ * @brief Definition for MO call deflected notification
+ * @since_tizen 2.3
+ * @remarks No data stored
+ */
+#define TAPI_NOTI_CALL_INFO_DEFLECTED  DBUS_TELEPHONY_CALL_INTERFACE":Deflected"
+
+/**
+ * @brief Definition for CLIR suppression reject notification
+ * @since_tizen 2.3
+ * @remarks No data stored
+ */
 #define TAPI_NOTI_CALL_INFO_CLIR_SUPPRESSION_REJECT    DBUS_TELEPHONY_CALL_INTERFACE":ClirSuppressionReject"
+
+/**
+ * @brief Definition for unconditional call forward active notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoForwardUnconditionalNoti_t' will be stored
+ */
 #define TAPI_NOTI_CALL_INFO_FORWARD_UNCONDITIONAL      DBUS_TELEPHONY_CALL_INTERFACE":ForwardUnconditional"
+
+/**
+ * @brief Definition for conditional call forward active notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoForwardConditionalNoti_t' will be stored
+ */
 #define TAPI_NOTI_CALL_INFO_FORWARD_CONDITIONAL                DBUS_TELEPHONY_CALL_INTERFACE":ForwardConditional"
-#define TAPI_NOTI_CALL_INFO_CALL_LINE_IDENTITY         DBUS_TELEPHONY_CALL_INTERFACE":CallLineIdentity"
-#define TAPI_NOTI_CALL_INFO_CALL_NAME_INFORMATION      DBUS_TELEPHONY_CALL_INTERFACE":CallNameInformation"
-#define TAPI_NOTI_CALL_INFO_FORWARDED_CALL                     DBUS_TELEPHONY_CALL_INTERFACE":ForwardedCall"
-#define TAPI_NOTI_CALL_INFO_CUG_CALL                           DBUS_TELEPHONY_CALL_INTERFACE":CugCall"
-#define TAPI_NOTI_CALL_INFO_DEFLECTED_CALL                     DBUS_TELEPHONY_CALL_INTERFACE":DeflectedCall"
-#define TAPI_NOTI_CALL_INFO_TRANSFERED_CALL                    DBUS_TELEPHONY_CALL_INTERFACE":TransferedCall"
-#define TAPI_NOTI_CALL_INFO_HELD                                       DBUS_TELEPHONY_CALL_INTERFACE":CallHeld"
-#define TAPI_NOTI_CALL_INFO_ACTIVE                                     DBUS_TELEPHONY_CALL_INTERFACE":CallActive"
-#define TAPI_NOTI_CALL_INFO_JOINED                                     DBUS_TELEPHONY_CALL_INTERFACE":CallJoined"
-#define TAPI_NOTI_CALL_INFO_RELEASED_ON_HOLD           DBUS_TELEPHONY_CALL_INTERFACE":ReleaseOnHold"
-#define TAPI_NOTI_CALL_INFO_TRANSFER_ALERT                     DBUS_TELEPHONY_CALL_INTERFACE":TransferAlert"
-#define TAPI_NOTI_CALL_INFO_TRANSFERED                         DBUS_TELEPHONY_CALL_INTERFACE":Transfered"
-#define TAPI_NOTI_CALL_INFO_CF_CHECK_MESSAGE           DBUS_TELEPHONY_CALL_INTERFACE":CfCheckMessage"
-#define TAPI_NOTI_CALL_INFO_REC                                                DBUS_TELEPHONY_CALL_INTERFACE":CallInfoRec"
-#define TAPI_NOTI_CALL_INFO_FALLBACK                                   DBUS_TELEPHONY_CALL_INTERFACE:":CallFallback"
-#define TAPI_NOTI_CALL_PRIVACY_MODE                                    DBUS_TELEPHONY_CALL_INTERFACE":CallPrivacyMode"
-#define TAPI_NOTI_CALL_OTASP_STATUS                                    DBUS_TELEPHONY_CALL_INTERFACE":CallOtaspStatus"
-#define TAPI_NOTI_CALL_OTAPA_STATUS                                    DBUS_TELEPHONY_CALL_INTERFACE":CallOtapaStatus"
-#define TAPI_NOTI_CALL_SIGNAL_INFO                             DBUS_TELEPHONY_CALL_INTERFACE":CallSignalInfo"
-#define TAPI_NOTI_CALL_MODIFY_REQUEST          DBUS_TELEPHONY_CALL_INTERFACE":CallModifyRequest" /* VoLTE only */
-
-#define TAPI_NOTI_CALL_SOUND_PATH                                      DBUS_TELEPHONY_CALL_INTERFACE":CallSoundPath"
-#define TAPI_NOTI_CALL_SOUND_RINGBACK_TONE                     DBUS_TELEPHONY_CALL_INTERFACE":CallSoundRingbackTone"
-#define TAPI_NOTI_CALL_SOUND_WBAMR                                     DBUS_TELEPHONY_CALL_INTERFACE":CallSoundWbamr"
-#define TAPI_NOTI_CALL_SOUND_EQUALIZATION                      DBUS_TELEPHONY_CALL_INTERFACE":CallSoundEqualiztion"
-#define TAPI_NOTI_CALL_SOUND_NOISE_REDUCTION           DBUS_TELEPHONY_CALL_INTERFACE":CallSoundNoiseReduction"
-#define TAPI_NOTI_CALL_SOUND_CLOCK_STATUS                      DBUS_TELEPHONY_CALL_INTERFACE":CallSoundClockStatus"
-#define TAPI_NOTI_CALL_PREFERRED_VOICE_SUBSCRIPTION            DBUS_TELEPHONY_CALL_INTERFACE":CallPreferredVoiceSubscription"
-
-
-#define DBUS_TELEPHONY_MODEM_INTERFACE                         DBUS_TELEPHONY_SERVICE".Modem"
-#define TAPI_NOTI_MODEM_POWER                                          DBUS_TELEPHONY_MODEM_INTERFACE":Power"
-#define TAPI_PROP_MODEM_POWER                                          DBUS_TELEPHONY_MODEM_INTERFACE":power"
-#define TAPI_PROP_MODEM_DONGLE_STATUS                          DBUS_TELEPHONY_MODEM_INTERFACE":dongle_status" /* Dongle inserted or not */
-#define TAPI_PROP_MODEM_DONGLE_LOGIN                           DBUS_TELEPHONY_MODEM_INTERFACE":dongle_login"  /* Dongle Login success or not */
-
-// SIM
-#define DBUS_TELEPHONY_SIM_INTERFACE                           DBUS_TELEPHONY_SERVICE".Sim"
-#define TAPI_NOTI_SIM_STATUS                                           DBUS_TELEPHONY_SIM_INTERFACE":Status"
-#define TAPI_NOTI_SIM_REFRESHED                                                DBUS_TELEPHONY_SIM_INTERFACE":Refreshed"
-#define TAPI_PROP_SIM_CALL_FORWARD_STATE                       DBUS_TELEPHONY_SIM_INTERFACE":cf_state"
-
-#define DBUS_TELEPHONY_SAP_INTERFACE                           DBUS_TELEPHONY_SERVICE".Sap"
-#define TAPI_NOTI_SAP_STATUS                                           DBUS_TELEPHONY_SAP_INTERFACE":Status"
-#define TAPI_NOTI_SAP_DISCONNECT                                       DBUS_TELEPHONY_SAP_INTERFACE":Disconnect"
-
-#define DBUS_TELEPHONY_SAT_INTERFACE                           DBUS_TELEPHONY_SERVICE".SAT"
-#define TAPI_NOTI_SAT_SETUP_MENU                                       DBUS_TELEPHONY_SAT_INTERFACE":SetupMenu"
-#define TAPI_NOTI_SAT_DISPLAY_TEXT                                     DBUS_TELEPHONY_SAT_INTERFACE":DisplayText"
-#define TAPI_NOTI_SAT_SELECT_ITEM                                      DBUS_TELEPHONY_SAT_INTERFACE":SelectItem"
-#define TAPI_NOTI_SAT_GET_INKEY                                                DBUS_TELEPHONY_SAT_INTERFACE":GetInkey"
-#define TAPI_NOTI_SAT_GET_INPUT                                                DBUS_TELEPHONY_SAT_INTERFACE":GetInput"
-#define TAPI_NOTI_SAT_REFRESH                                          DBUS_TELEPHONY_SAT_INTERFACE":Refresh"
-#define TAPI_NOTI_SAT_SEND_SMS                                         DBUS_TELEPHONY_SAT_INTERFACE":SendSMS"
-#define TAPI_NOTI_SAT_SETUP_EVENT_LIST                         DBUS_TELEPHONY_SAT_INTERFACE":SetupEventList"
-#define TAPI_NOTI_SAT_SEND_DTMF                                                DBUS_TELEPHONY_SAT_INTERFACE":SendDtmf"
-#define TAPI_NOTI_SAT_SESSION_END_EVENT                                DBUS_TELEPHONY_SAT_INTERFACE":EndProactiveSession"
-#define TAPI_NOTI_SAT_CALL_CONTROL_RESULT                      DBUS_TELEPHONY_SAT_INTERFACE":CallControlResult"
-#define TAPI_NOTI_SAT_MO_SM_CONTROL_RESULT                     DBUS_TELEPHONY_SAT_INTERFACE":MoSmControlResult"
-
-#define DBUS_TELEPHONY_PB_INTERFACE                                    DBUS_TELEPHONY_SERVICE".Phonebook"
-#define TAPI_NOTI_PB_STATUS                                                    DBUS_TELEPHONY_PB_INTERFACE":Status"
-#define TAPI_NOTI_PB_CONTACT_CHANGE                            DBUS_TELEPHONY_PB_INTERFACE":ContactChange"
-
-// Network
-#define DBUS_TELEPHONY_NETWORK_INTERFACE                       DBUS_TELEPHONY_SERVICE".Network"
-#define TAPI_NOTI_NETWORK_REGISTRATION_STATUS          DBUS_TELEPHONY_NETWORK_INTERFACE":RegistrationStatus"
-#define TAPI_NOTI_NETWORK_CELLINFO                                     DBUS_TELEPHONY_NETWORK_INTERFACE":CellInfo"
-#define TAPI_NOTI_NETWORK_INFO                                         DBUS_TELEPHONY_NETWORK_INTERFACE":Info"
-#define TAPI_NOTI_NETWORK_CHANGE                                       DBUS_TELEPHONY_NETWORK_INTERFACE":Change"
-#define TAPI_NOTI_NETWORK_TIMEINFO                                     DBUS_TELEPHONY_NETWORK_INTERFACE":TimeInfo"
-#define TAPI_NOTI_NETWORK_IDENTITY                                     DBUS_TELEPHONY_NETWORK_INTERFACE":Identity"
-#define TAPI_NOTI_NETWORK_SIGNALSTRENGTH                       DBUS_TELEPHONY_NETWORK_INTERFACE":SignalStrength"
+
+/**
+ * @brief Definition for incoming call forwarded notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoForwardedCallNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_FORWARDED_CALL     DBUS_TELEPHONY_CALL_INTERFACE":ForwardedCall"
+
+/**
+ * @brief Definition for MT deflected call notification
+ * @since_tizen 2.3
+ * @remarks No data stored
+ */
+#define TAPI_NOTI_CALL_INFO_DEFLECTED_CALL     DBUS_TELEPHONY_CALL_INTERFACE":DeflectedCall"
+
+/**
+ * @brief Definition for MT transfered call notification
+ * @since_tizen 2.3
+ * @remarks No data stored
+ */
+#define TAPI_NOTI_CALL_INFO_TRANSFERED_CALL    DBUS_TELEPHONY_CALL_INTERFACE":TransferedCall"
+
+/**
+ * @brief Definition for call is in held notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoHeldNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_HELD       DBUS_TELEPHONY_CALL_INTERFACE":CallHeld"
+
+/**
+ * @brief Definition for call is in retrieved notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoActiveNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_ACTIVE     DBUS_TELEPHONY_CALL_INTERFACE":CallActive"
+
+/**
+ * @brief Definition for call is in multiparty notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallInfoJoinedNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_JOINED     DBUS_TELEPHONY_CALL_INTERFACE":CallJoined"
+
+/**
+ * @brief Definition for call transfer alerting notification
+ * @since_tizen 2.3
+ * @remarks No data stored
+ */
+#define TAPI_NOTI_CALL_INFO_TRANSFER_ALERT     DBUS_TELEPHONY_CALL_INTERFACE":TransferAlert"
+
+/**
+ * @brief Definition for call forward check message notification
+ * @since_tizen 2.3
+ * @remarks No data stored
+ */
+#define TAPI_NOTI_CALL_INFO_CF_CHECK_MESSAGE   DBUS_TELEPHONY_CALL_INTERFACE":CfCheckMessage"
+
+/**
+ * @brief Definition for new call information notification (CDMA only)
+ * @since_tizen 2.3
+ * @remarks '#TelCallRecordInfoNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_INFO_REC        DBUS_TELEPHONY_CALL_INTERFACE":CallInfoRec"
+
+/**
+ * @brief Definition for call info fallback notification
+ * @since_tizen TBD
+ * @remarks TBD
+ */
+#define TAPI_NOTI_CALL_INFO_FALLBACK   DBUS_TELEPHONY_CALL_INTERFACE:":CallFallback"
+
+/**
+ * @brief Definition for voice privacy mode change notification (CDMA only)
+ * @since_tizen 2.3
+ * @remarks '#TelCallVoicePrivacyNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_PRIVACY_MODE    DBUS_TELEPHONY_CALL_INTERFACE":CallPrivacyMode"
+
+/**
+ * @brief Definition for OTASP(Over The Air Service Provisioning) status notification (CDMA only)
+ * @since_tizen 2.3
+ * @remarks '#TelCallOtaspStatusNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_OTASP_STATUS    DBUS_TELEPHONY_CALL_INTERFACE":CallOtaspStatus"
+
+/**
+ * @brief Definition for OTAPA(Over The Air Parameter Administration) status notification (CDMA only)
+ * @since_tizen 2.3
+ * @remarks '#TelCallOtapaStatusNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_OTAPA_STATUS    DBUS_TELEPHONY_CALL_INTERFACE":CallOtapaStatus"
+
+/**
+ * @brief Definition for call signal information notification (CDMA only)
+ * @since_tizen 2.3
+ * @remarks '#TelCallSignalInfoNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_SIGNAL_INFO     DBUS_TELEPHONY_CALL_INTERFACE":CallSignalInfo"
+
+/**
+ * @brief Definition for call sound patch change notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallSoundPathNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_SOUND_PATH      DBUS_TELEPHONY_CALL_INTERFACE":CallSoundPath"
+
+/**
+ * @brief Definition for call ringback tone sound patch change notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallSoundRingbackToneNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_SOUND_RINGBACK_TONE     DBUS_TELEPHONY_CALL_INTERFACE":CallSoundRingbackTone"
+
+/**
+ * @brief Definition for call sound WB-AMR(Wide Band Adaptive Multi-Rate) status notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallSoundWbamrNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_SOUND_WBAMR     DBUS_TELEPHONY_CALL_INTERFACE":CallSoundWbamr"
+
+/**
+ * @brief Definition for call sound noise redunction notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallSoundNoiseReductionNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_SOUND_NOISE_REDUCTION   DBUS_TELEPHONY_CALL_INTERFACE":CallSoundNoiseReduction"
+
+/**
+ * @brief Definition for call sound clock status notification
+ * @since_tizen 2.3
+ * @remarks 'gboolean' will be stored
+ */
+#define TAPI_NOTI_CALL_SOUND_CLOCK_STATUS      DBUS_TELEPHONY_CALL_INTERFACE":CallSoundClockStatus"
+
+/**
+ * @brief Definition for preferred voice subscription notification
+ * @since_tizen 2.3
+ * @remarks '#TelCallPreferredVoiceSubsNoti_t' will be stored
+ */
+#define TAPI_NOTI_CALL_PREFERRED_VOICE_SUBSCRIPTION    DBUS_TELEPHONY_CALL_INTERFACE":CallPreferredVoiceSubscription"
+
+/**
+ * @brief Definition for the Modem interface
+ */
+#define DBUS_TELEPHONY_MODEM_INTERFACE DBUS_TELEPHONY_SERVICE".Modem"
+
+/**
+ * @brief Definition for modem power notification
+ * @since_tizen 2.3
+ * @remarks '#tapi_power_phone_power_status_t' will be stored
+ */
+#define TAPI_NOTI_MODEM_POWER  DBUS_TELEPHONY_MODEM_INTERFACE":Power"
+
+/**
+ * @brief Definition for modem power property
+ * @since_tizen 2.3
+ * @remarks '#tapi_power_phone_power_status_t' will be stored
+ */
+#define TAPI_PROP_MODEM_POWER  DBUS_TELEPHONY_MODEM_INTERFACE":power"
+
+/**
+ * @brief Definition for dongle status property
+ * @since_tizen 2.4
+ * @remarks 'gboolean' will be stored (Inserted or not)
+ */
+#define TAPI_PROP_MODEM_DONGLE_STATUS  DBUS_TELEPHONY_MODEM_INTERFACE":dongle_status"
+
+/**
+ * @brief Definition for dongle login property
+ * @since_tizen 2.4
+ * @remarks 'gboolean' will be stored (Login success or not)
+ */
+#define TAPI_PROP_MODEM_DONGLE_LOGIN   DBUS_TELEPHONY_MODEM_INTERFACE":dongle_login"
+
+/**
+ * @brief Definition for the Sim interface
+ */
+#define DBUS_TELEPHONY_SIM_INTERFACE   DBUS_TELEPHONY_SERVICE".Sim"
+
+/**
+ * @brief Definition for SIM status notification
+ * @since_tizen 2.3
+ * @remarks '#TelSimCardStatus_t' will be stored
+ */
+#define TAPI_NOTI_SIM_STATUS   DBUS_TELEPHONY_SIM_INTERFACE":Status"
+
+/**
+ * TODO
+ */
+#define TAPI_NOTI_SIM_REFRESHED        DBUS_TELEPHONY_SIM_INTERFACE":Refreshed"
+
+/**
+ * @brief Definition for SIM call forward state property
+ * @since_tizen 2.3
+ * @remarks 'gboolean' will be stored
+ */
+#define TAPI_PROP_SIM_CALL_FORWARD_STATE       DBUS_TELEPHONY_SIM_INTERFACE":cf_state"
+
+/**
+ * @brief Definition for the Sap interface
+ */
+#define DBUS_TELEPHONY_SAP_INTERFACE   DBUS_TELEPHONY_SERVICE".Sap"
+
+/**
+ * @brief Definition for Sap card status notification
+ * @since_tizen 2.3
+ * @remarks '#TelSimSapCardStatus_t' will be stored
+ */
+#define TAPI_NOTI_SAP_STATUS   DBUS_TELEPHONY_SAP_INTERFACE":Status"
+
+/**
+ * @brief Definition for Sap disconnect type notification
+ * @since_tizen 2.3
+ * @remarks '#TelSimSapDissconnectType_t' will be stored
+ */
+#define TAPI_NOTI_SAP_DISCONNECT       DBUS_TELEPHONY_SAP_INTERFACE":Disconnect"
+
+/**
+ * @brief Definition for the SAT interface
+ */
+#define DBUS_TELEPHONY_SAT_INTERFACE   DBUS_TELEPHONY_SERVICE".SAT"
+
+/**
+ * @brief Definition for sat setup menu notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatSetupMenuInfo_t' will be stored
+ */
+#define TAPI_NOTI_SAT_SETUP_MENU       DBUS_TELEPHONY_SAT_INTERFACE":SetupMenu"
+
+/**
+ * @brief Definition for sat display text notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatDisplayTextInd_t' will be stored
+ */
+#define TAPI_NOTI_SAT_DISPLAY_TEXT     DBUS_TELEPHONY_SAT_INTERFACE":DisplayText"
+
+/**
+ * @brief Definition for sat select item notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatSelectItemInd_t' will be stored
+ */
+#define TAPI_NOTI_SAT_SELECT_ITEM      DBUS_TELEPHONY_SAT_INTERFACE":SelectItem"
+
+/**
+ * @brief Definition for sat get inkey notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatGetInkeyInd_t' will be stored
+ */
+#define TAPI_NOTI_SAT_GET_INKEY        DBUS_TELEPHONY_SAT_INTERFACE":GetInkey"
+
+/**
+ * @brief Definition for sat get input notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatGetInputInd_t' will be stored
+ */
+#define TAPI_NOTI_SAT_GET_INPUT        DBUS_TELEPHONY_SAT_INTERFACE":GetInput"
+
+/**
+ * @brief Definition for sat refresh notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatRefreshInd_t' will be stored
+ */
+#define TAPI_NOTI_SAT_REFRESH  DBUS_TELEPHONY_SAT_INTERFACE":Refresh"
+
+/**
+ * @brief Definition for sat send sms notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatSendSmsIndSmsData_t' will be stored
+ */
+#define TAPI_NOTI_SAT_SEND_SMS DBUS_TELEPHONY_SAT_INTERFACE":SendSMS"
+
+/**
+ * @brief Definition for sat setup event list notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatEventListData_t' will be stored
+ */
+#define TAPI_NOTI_SAT_SETUP_EVENT_LIST DBUS_TELEPHONY_SAT_INTERFACE":SetupEventList"
+
+/**
+ * @brief Definition for sat send dtmf notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatSendDtmfIndDtmfData_t' will be stored
+ */
+#define TAPI_NOTI_SAT_SEND_DTMF        DBUS_TELEPHONY_SAT_INTERFACE":SendDtmf"
+
+/**
+ * @brief Definition for sat end proactive session notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatCommandType_t' will be stored
+ */
+#define TAPI_NOTI_SAT_SESSION_END_EVENT        DBUS_TELEPHONY_SAT_INTERFACE":EndProactiveSession"
+
+/**
+ * @brief Definition for sat call control result notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatCallCtrlIndData_t' will be stored
+ */
+#define TAPI_NOTI_SAT_CALL_CONTROL_RESULT      DBUS_TELEPHONY_SAT_INTERFACE":CallControlResult"
+
+/**
+ * @brief Definition for sat mo sms control result notification
+ * @since_tizen 2.3
+ * @remarks '#TelSatMoSmCtrlIndData_t' will be stored
+ */
+#define TAPI_NOTI_SAT_MO_SM_CONTROL_RESULT     DBUS_TELEPHONY_SAT_INTERFACE":MoSmControlResult"
+
+/**
+ * @brief Definition for sat setup call notification
+ * @since_tizen 2.4
+ * @remarks '#TelSatSetupCallIndCallData_t' will be stored
+ */
+#define TAPI_NOTI_SAT_SETUP_CALL       DBUS_TELEPHONY_SAT_INTERFACE":SetupCall"
+
+/**
+ * @brief Definition for the Phonebook interface
+ */
+#define DBUS_TELEPHONY_PB_INTERFACE    DBUS_TELEPHONY_SERVICE".Phonebook"
+
+/**
+ * @brief Definition for phonebook status notification
+ * @since_tizen 2.3
+ * @remarks '#TelSimPbStatus_t' will be stored
+ */
+#define TAPI_NOTI_PB_STATUS    DBUS_TELEPHONY_PB_INTERFACE":Status"
+
+/**
+ * @brief Definition for phonebook change notification
+ * @since_tizen 2.3
+ * @remarks '#TelSimPbContactChangeInfo_t' will be stored
+ */
+#define TAPI_NOTI_PB_CONTACT_CHANGE    DBUS_TELEPHONY_PB_INTERFACE":ContactChange"
+
+/**
+ * @brief Definition for the Network interface
+ */
+#define DBUS_TELEPHONY_NETWORK_INTERFACE       DBUS_TELEPHONY_SERVICE".Network"
+
+/**
+ * @brief Definition for network registration status notification
+ * @since_tizen 2.3
+ * @remarks '#TelNetworkRegistrationStatus_t' will be stored
+ */
+#define TAPI_NOTI_NETWORK_REGISTRATION_STATUS  DBUS_TELEPHONY_NETWORK_INTERFACE":RegistrationStatus"
+
+/**
+ * @brief Definition for network cell information notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_network_cell_info' will be stored
+ */
+#define TAPI_NOTI_NETWORK_CELLINFO     DBUS_TELEPHONY_NETWORK_INTERFACE":CellInfo"
+
+/**
+ * @brief Definition for network change notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_network_change' will be stored
+ */
+#define TAPI_NOTI_NETWORK_CHANGE       DBUS_TELEPHONY_NETWORK_INTERFACE":Change"
+
+/**
+ * @brief Definition for network time information notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_network_time_info' will be stored
+ */
+#define TAPI_NOTI_NETWORK_TIMEINFO     DBUS_TELEPHONY_NETWORK_INTERFACE":TimeInfo"
+
+/**
+ * @brief Definition for network identity notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_network_identity' will be stored
+ */
+#define TAPI_NOTI_NETWORK_IDENTITY     DBUS_TELEPHONY_NETWORK_INTERFACE":Identity"
+
+/**
+ * @brief Definition for network signal strength notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_network_signal_strength' will be stored
+ */
+#define TAPI_NOTI_NETWORK_SIGNALSTRENGTH       DBUS_TELEPHONY_NETWORK_INTERFACE":SignalStrength"
+
+/**
+ * @brief Definition for network emergency callback mode notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_network_emergency_callback_mode' will be stored
+ */
 #define TAPI_NOTI_NETWORK_EMERGENCY_CALLBACK_MODE      DBUS_TELEPHONY_NETWORK_INTERFACE":EmergencyCallbackMode"
-#define TAPI_NOTI_NETWORK_DEFAULT_DATA_SUBSCRIPTION            DBUS_TELEPHONY_NETWORK_INTERFACE":DefaultDataSubscription"
-#define TAPI_NOTI_NETWORK_DEFAULT_SUBSCRIPTION         DBUS_TELEPHONY_NETWORK_INTERFACE":DefaultSubscription"
-#define TAPI_NOTI_NETWORK_PROPERTY_INFO                                DBUS_TELEPHONY_NETWORK_INTERFACE":PropertyInfo"
-#define TAPI_PROP_NETWORK_LAC                                          DBUS_TELEPHONY_NETWORK_INTERFACE":lac"
-#define TAPI_PROP_NETWORK_PLMN                                         DBUS_TELEPHONY_NETWORK_INTERFACE":plmn"
-#define TAPI_PROP_NETWORK_CELLID                                       DBUS_TELEPHONY_NETWORK_INTERFACE":cell_id"
-#define TAPI_PROP_NETWORK_SERVICE_TYPE                         DBUS_TELEPHONY_NETWORK_INTERFACE":service_type"
-#define TAPI_PROP_NETWORK_ACT                                          DBUS_TELEPHONY_NETWORK_INTERFACE":access_technology"
-#define TAPI_PROP_NETWORK_PS_TYPE                                      DBUS_TELEPHONY_NETWORK_INTERFACE":ps_type"
-#define TAPI_PROP_NETWORK_CIRCUIT_STATUS                       DBUS_TELEPHONY_NETWORK_INTERFACE":circuit_status"
-#define TAPI_PROP_NETWORK_PACKET_STATUS                                DBUS_TELEPHONY_NETWORK_INTERFACE":packet_status"
-#define TAPI_PROP_NETWORK_ROAMING_STATUS                       DBUS_TELEPHONY_NETWORK_INTERFACE":roaming_status"
-#define TAPI_PROP_NETWORK_NAME_OPTION                          DBUS_TELEPHONY_NETWORK_INTERFACE":name_option"
-#define TAPI_PROP_NETWORK_NETWORK_NAME                         DBUS_TELEPHONY_NETWORK_INTERFACE":network_name"
-#define TAPI_PROP_NETWORK_SPN_NAME                                     DBUS_TELEPHONY_NETWORK_INTERFACE":spn_name"
-#define TAPI_PROP_NETWORK_SIGNALSTRENGTH_DBM           DBUS_TELEPHONY_NETWORK_INTERFACE":sig_dbm"
-#define TAPI_PROP_NETWORK_SIGNALSTRENGTH_LEVEL         DBUS_TELEPHONY_NETWORK_INTERFACE":sig_level"
+
+/**
+ * @brief Definition for network default data subscription notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_network_default_data_subs' will be stored
+ */
+#define TAPI_NOTI_NETWORK_DEFAULT_DATA_SUBSCRIPTION    DBUS_TELEPHONY_NETWORK_INTERFACE":DefaultDataSubscription"
+
+/**
+ * @brief Definition for network default subscription notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_network_default_subs' will be stored
+ */
+#define TAPI_NOTI_NETWORK_DEFAULT_SUBSCRIPTION DBUS_TELEPHONY_NETWORK_INTERFACE":DefaultSubscription"
+
+/**
+ * @brief Definition for network LAC property (In case of LTE network, it represents Tracking Area Code)
+ * @since_tizen 2.3
+ * @remarks 'unsigned int' will be stored
+ */
+#define TAPI_PROP_NETWORK_LAC  DBUS_TELEPHONY_NETWORK_INTERFACE":lac"
+
+/**
+ * @brief Definition for network PLMN property
+ * @since_tizen 2.3
+ * @remarks 'char *' will be stored
+ */
+#define TAPI_PROP_NETWORK_PLMN DBUS_TELEPHONY_NETWORK_INTERFACE":plmn"
+
+/**
+ * @brief Definition for network cell-id property
+ * @since_tizen 2.3
+ * @remarks 'unsigned int' will be stored
+ */
+#define TAPI_PROP_NETWORK_CELLID       DBUS_TELEPHONY_NETWORK_INTERFACE":cell_id"
+
+/**
+ * @brief Definition for network service type property
+ * @since_tizen 2.3
+ * @remarks '#TelNetworkServiceType_t' will be stored
+ */
+#define TAPI_PROP_NETWORK_SERVICE_TYPE DBUS_TELEPHONY_NETWORK_INTERFACE":service_type"
+
+/**
+ * @brief Definition for network access technology property
+ * @since_tizen 2.3
+ * @remarks '#TelNetworkSystemType_t' will be stored
+ */
+#define TAPI_PROP_NETWORK_ACT  DBUS_TELEPHONY_NETWORK_INTERFACE":access_technology"
+
+/**
+ * @brief Definition for network ps type property
+ * @since_tizen 2.3
+ * @remarks '#TelNetworkPsType_t' will be stored
+ */
+#define TAPI_PROP_NETWORK_PS_TYPE      DBUS_TELEPHONY_NETWORK_INTERFACE":ps_type"
+
+/**
+ * @brief Definition for network circuit status property
+ * @since_tizen 2.3
+ * @remarks '#TelNetworkServiceLevel_t' will be stored
+ */
+#define TAPI_PROP_NETWORK_CIRCUIT_STATUS       DBUS_TELEPHONY_NETWORK_INTERFACE":circuit_status"
+
+/**
+ * @brief Definition for network packet status property
+ * @since_tizen 2.3
+ * @remarks '#TelNetworkServiceLevel_t' will be stored
+ */
+#define TAPI_PROP_NETWORK_PACKET_STATUS        DBUS_TELEPHONY_NETWORK_INTERFACE":packet_status"
+
+/**
+ * @brief Definition for network roaming status property
+ * @since_tizen 2.3
+ * @remarks 'gboolean' will be stored
+ */
+#define TAPI_PROP_NETWORK_ROAMING_STATUS       DBUS_TELEPHONY_NETWORK_INTERFACE":roaming_status"
+
+/**
+ * @brief Definition for network name option property
+ * @since_tizen 2.3
+ * @remarks '#TelNetworkNameDispCondition_t' will be stored
+ */
+#define TAPI_PROP_NETWORK_NAME_OPTION  DBUS_TELEPHONY_NETWORK_INTERFACE":name_option"
+
+/**
+ * @brief Definition for network name property
+ * @since_tizen 2.3
+ * @remarks 'char *' will be stored
+ */
+#define TAPI_PROP_NETWORK_NETWORK_NAME DBUS_TELEPHONY_NETWORK_INTERFACE":network_name"
+
+/**
+ * @brief Definition for SPN name property stored in SIM card
+ * @since_tizen 2.3
+ * @remarks 'char *' will be stored
+ */
+#define TAPI_PROP_NETWORK_SPN_NAME     DBUS_TELEPHONY_NETWORK_INTERFACE":spn_name"
+
+/**
+ * @brief Definition for network signal dbm property
+ * @since_tizen 2.3
+ * @remarks 'int' will be stored
+ */
+#define TAPI_PROP_NETWORK_SIGNALSTRENGTH_DBM   DBUS_TELEPHONY_NETWORK_INTERFACE":sig_dbm"
+
+/**
+ * @brief Definition for network signal level property
+ * @since_tizen 2.3
+ * @remarks 'int' will be stored
+ */
+#define TAPI_PROP_NETWORK_SIGNALSTRENGTH_LEVEL DBUS_TELEPHONY_NETWORK_INTERFACE":sig_level"
+
+/**
+ * @brief Definition for network ims voice support status notification
+ * @since_tizen TBD
+ * @remarks TBD
+ */
 #define TAPI_PROP_NETWORK_IMS_VOICE_SUPPORT_STATUS     DBUS_TELEPHONY_NETWORK_INTERFACE":ims_voice_status"
 
-// SS
-#define DBUS_TELEPHONY_SS_INTERFACE                                    DBUS_TELEPHONY_SERVICE".Ss"
-#define TAPI_NOTI_SS_USSD                                                      DBUS_TELEPHONY_SS_INTERFACE":NotifyUSSD"
-#define TAPI_NOTI_SS_RELEASE_COMPLETE                          DBUS_TELEPHONY_SS_INTERFACE":ReleaseComplete"
-#define TAPI_NOTI_SS_FORWARD_STATUS                                    DBUS_TELEPHONY_SS_INTERFACE":NotifyForwarding"
-#define TAPI_NOTI_SS_BARRING_STATUS                                    DBUS_TELEPHONY_SS_INTERFACE":NotifyBarring"
-#define TAPI_NOTI_SS_WAITING_STATUS                                    DBUS_TELEPHONY_SS_INTERFACE":NotifyWaiting"
-#define TAPI_NOTI_SS_INFO                                                              DBUS_TELEPHONY_SS_INTERFACE":NotifySsInfo"
+/**
+ * @brief Definition for the Ss interface
+ */
+#define DBUS_TELEPHONY_SS_INTERFACE    DBUS_TELEPHONY_SERVICE".Ss"
+
+/**
+ * @brief Definition for ss ussd receive notification
+ * @since_tizen 2.3
+ * @remarks '#TelSsUssdMsgInfo_t' will be stored
+ */
+#define TAPI_NOTI_SS_USSD      DBUS_TELEPHONY_SS_INTERFACE":NotifyUSSD"
+
+/**
+ * @brief Definition for ss release complete notification
+ * @since_tizen 2.3
+ * @remarks '#TelSsRelCompMsgInfo_t' will be stored
+ */
+#define TAPI_NOTI_SS_RELEASE_COMPLETE  DBUS_TELEPHONY_SS_INTERFACE":ReleaseComplete"
+
+/**
+ * @brief Definition for ss call forwarding status notification
+ * @since_tizen 2.3
+ * @remarks '#TelSsForwardNoti_t' will be stored
+ */
+#define TAPI_NOTI_SS_FORWARD_STATUS    DBUS_TELEPHONY_SS_INTERFACE":NotifyForwarding"
+
+/**
+ * @brief Definition for ss call barring status notification
+ * @since_tizen 2.3
+ * @remarks '#TelSsBarringNoti_t' will be stored
+ */
+#define TAPI_NOTI_SS_BARRING_STATUS    DBUS_TELEPHONY_SS_INTERFACE":NotifyBarring"
 
-// SMS
+/**
+ * @brief Definition for ss call waiting status notification
+ * @since_tizen 2.3
+ * @remarks '#TelSsWaitingNoti_t' will be stored
+ */
+#define TAPI_NOTI_SS_WAITING_STATUS    DBUS_TELEPHONY_SS_INTERFACE":NotifyWaiting"
+
+/**
+ * @brief Definition for ss information notification
+ * @since_tizen 2.3
+ * @remarks '#TelSsInfo_t' will be stored
+ */
+#define TAPI_NOTI_SS_INFO      DBUS_TELEPHONY_SS_INTERFACE":NotifySsInfo"
+
+/**
+ * @brief Definition for the sms interface
+ */
 #define DBUS_TELEPHONY_SMS_INTERFACE   DBUS_TELEPHONY_SERVICE".sms"
 
 /**
- * @brief Definition for the unsolicited incoming SMS Event.
+ * @brief Definition for sms incoming message notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_sms_incomming_msg' will be stored
  */
-#define TAPI_NOTI_SMS_INCOM_MSG                        DBUS_TELEPHONY_SMS_INTERFACE":IncommingMsg"
+#define TAPI_NOTI_SMS_INCOM_MSG        DBUS_TELEPHONY_SMS_INTERFACE":IncommingMsg"
 
 /**
- * @brief Definition for the unsolicited incoming cell broadcast message.
+ * @brief Definition for sms cell broadcast message incoming notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_sms_incomming_cb_msg' will be stored
  */
-#define TAPI_NOTI_SMS_CB_INCOM_MSG             DBUS_TELEPHONY_SMS_INTERFACE":IncommingCbMsg"
+#define TAPI_NOTI_SMS_CB_INCOM_MSG     DBUS_TELEPHONY_SMS_INTERFACE":IncommingCbMsg"
 
 /**
- * @brief Definition for the unsolicited incoming cell broadcast message.
+ * @brief Definition for sms ETWS(Earthquake and Tsunami Warning System) message incoming notification
+ * @since_tizen 2.3
+ * @remarks '#tel_noti_sms_incomming_cb_msg' will be stored
  */
 #define TAPI_NOTI_SMS_ETWS_INCOM_MSG   DBUS_TELEPHONY_SMS_INTERFACE":IncommingEtwsMsg"
 
 /**
- * @brief Definition for the unsolicited event indicating SIM memory status.
+ * @brief Definition for sms device memory status notification
+ * @since_tizen 2.3
+ * @remarks '#TelSmsMemStatusType' will be stored
  */
-#define TAPI_NOTI_SMS_MEMORY_STATUS            DBUS_TELEPHONY_SMS_INTERFACE":MemoryStatus"
+#define TAPI_NOTI_SMS_MEMORY_STATUS    DBUS_TELEPHONY_SMS_INTERFACE":MemoryStatus"
 
 /**
- * @brief Definition for the device ready indication.
+ * @brief Definition for sms ready notification
+ * @since_tizen 2.3
+ * @remarks '#TelSmsReadyStatus_t' will be stored
  */
-#define TAPI_NOTI_SMS_DEVICE_READY             DBUS_TELEPHONY_SMS_INTERFACE":SmsReady"
-
-// Gps
-#define DBUS_TELEPHONY_GPS_INTERFACE           DBUS_TELEPHONY_SERVICE".Gps"
-#define TAPI_NOTI_GPS_ASSIST_DATA                      DBUS_TELEPHONY_GPS_INTERFACE":AssistData"
-#define TAPI_NOTI_GPS_RESET_ASSIST_DATA                DBUS_TELEPHONY_GPS_INTERFACE":ResetAssistData"
-#define TAPI_NOTI_SMART_ASSISTANT_AREA_STATUS  DBUS_TELEPHONY_GPS_INTERFACE":AreaStatus"
-#define TAPI_NOTI_SMART_ASSISTANT_SYNC_STATUS  DBUS_TELEPHONY_GPS_INTERFACE":SyncStatus"
+#define TAPI_NOTI_SMS_DEVICE_READY     DBUS_TELEPHONY_SMS_INTERFACE":SmsReady"
 
+/**
+ * @brief Definition for the OEM interface
+ */
 #define DBUS_TELEPHONY_OEM_INTERFACE DBUS_TELEPHONY_SERVICE".OEM"
+
+/**
+ * @brief Definition for oem data notification
+ * @since_tizen 2.4
+ * @remarks '#TelNotiOemData_t' will be stored
+ */
 #define TAPI_NOTI_OEM_DATA DBUS_TELEPHONY_OEM_INTERFACE":OemData"
 
 /**
index 804277fd095efe031a13ae781ce57e6d201f0c29..6fb01729d83381a9de6a2524e87321185e62f955 100644 (file)
@@ -67,6 +67,13 @@ typedef void (*tapi_notification_cb)(TapiHandle *handle, const char *noti_id, vo
  */
 typedef void (*tapi_response_cb)(TapiHandle *handle, int result, void *data, void *user_data);
 
+/**
+ * @brief Called for the TAPI ready state.
+ * @param[in] state The TAPI ready state
+ * @param[in] user_data The user data
+ */
+typedef void (*tapi_state_cb)(int state, void *user_data);
+
 #ifdef __cplusplus
 }
 #endif
index 97e8c3134908aa65aaf95cec6195b148dff5b49f..be0fa76ec9466f124961997dc8a5228d639e1f3a 100644 (file)
@@ -1,5 +1,8 @@
 <manifest>
+       <assign>
+               <filesystem path="/usr/bin/tapitest" exec_label="telephony_framework"/>
+       </assign>
        <request>
                <domain name="_"/>
        </request>
-</manifest>
+</manifest>
\ No newline at end of file
index 2f0046f93e0992a3d7b6a246a206ce12124c8d5f..63d844340ac143b493170e448438bcb1b33cf87c 100644 (file)
@@ -1,17 +1,18 @@
 %define major 0
 %define minor 7
-%define patchlevel 93
+%define patchlevel 94
 
 Name:           libtapi
 Version:        %{major}.%{minor}.%{patchlevel}
 Release:        2
-License:        Apache
+License:        Apache-2.0
 Summary:        Telephony dbus client library
 Group:          System/Libraries
 Source0:        libslp-tapi-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(vconf)
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 
@@ -62,8 +63,8 @@ mkdir -p %{buildroot}%{_datadir}/license
 %manifest libtapi.manifest
 %defattr(644,system,system,-)
 #%doc COPYING
-%{_libdir}/*.so.*
 %attr(755,system,system) %{_bindir}/tapitest
+%{_libdir}/*.so.*
 %{_datadir}/license/libslp-tapi
 
 %files devel
index d33de69e06fa0f6477bf8ecb057a1d3d69224fd7..29e55a5fa4677b5b9650b0e006056eb3277767b4 100644 (file)
@@ -31,40 +31,51 @@ __BEGIN_DECLS
 #define TAPI_DEFAULT_TIMEOUT    (60 * 1000) /* Unlimit: G_MAXINT */
 #define TAPI_UNRESTRICTED_TIMEOUT    (180 * 1000)
 
-#define MAKE_RESP_CB_DATA(data,handle,cb,user_data)  \
+#define TAPI_MAKE_RESP_CB_DATA(data,handle,cb,user_data)  \
        if (!handle) { return TAPI_API_INVALID_INPUT; } \
        data = g_new0(struct tapi_resp_data, 1); \
        data->handle = handle; \
        data->cb_fn = cb; \
        data->user_data = user_data
 
-#define CHECK_ERROR(error) \
-       if (error) { \
-               warn("dbus error = %d (%s)", error->code, error->message); \
+#define TAPI_RESP_CHECK_ERROR(error, evt_cb_data) do { \
+       if (error && (evt_cb_data)) { \
+               warn("dbus error: (%d) (%s)", error->code, error->message); \
                if (error->code == G_IO_ERROR_CANCELLED \
                                && error->domain == G_IO_ERROR) { \
+                       err("Operation CANCELLED"); \
                        /* Do not invoke callback in case of deinit TapiHandle */ \
                } else if (strstr(error->message, "No access rights")) { \
-                       err("Access denied"); \
-                       if (evt_cb_data->cb_fn) \
-                               evt_cb_data->cb_fn(evt_cb_data->handle, TAPI_ERROR_ACCESS_DENIED, NULL, evt_cb_data->user_data); \
+                       err("(%s) Access denied!", (evt_cb_data)->handle->cp_name); \
+                       if ((evt_cb_data)->cb_fn) \
+                               (evt_cb_data)->cb_fn((evt_cb_data)->handle, TAPI_ERROR_ACCESS_DENIED, NULL, (evt_cb_data)->user_data); \
                } else if (strstr(error->message, "Operation not supported")) { \
-                       err("Operation not supported"); \
-                       if (evt_cb_data->cb_fn) \
-                               evt_cb_data->cb_fn(evt_cb_data->handle, TAPI_ERROR_OPERATION_NOT_SUPPORTED, NULL, evt_cb_data->user_data); \
+                       err("(%s) Operation NOT supported!", evt_cb_data->handle->cp_name); \
+                       if ((evt_cb_data)->cb_fn) \
+                               (evt_cb_data)->cb_fn((evt_cb_data)->handle, TAPI_ERROR_OPERATION_NOT_SUPPORTED, NULL, (evt_cb_data)->user_data); \
                } else { \
-                       if (evt_cb_data->cb_fn) \
-                               evt_cb_data->cb_fn(evt_cb_data->handle, TAPI_ERROR_OPERATION_FAILED, NULL, evt_cb_data->user_data); \
+                       err("(%s) Operation Failed!", (evt_cb_data)->handle->cp_name); \
+                       if ((evt_cb_data)->cb_fn) \
+                               (evt_cb_data)->cb_fn((evt_cb_data)->handle, TAPI_ERROR_OPERATION_FAILED, NULL, (evt_cb_data)->user_data); \
                } \
                g_error_free(error); \
                g_free(evt_cb_data); \
                return; \
-       }
-
-#define CALLBACK_CALL(data) \
-       if (evt_cb_data->cb_fn) { \
+       } else { \
+               if (evt_cb_data && (evt_cb_data)->handle) \
+                       dbg("Func Enterance. cp_name[%s]", (evt_cb_data)->handle->cp_name); \
+       } \
+} while (0)
+
+#define TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, data) do { \
+       if (evt_cb_data && (evt_cb_data)->cb_fn) \
+               (evt_cb_data)->cb_fn((evt_cb_data)->handle, result, data, (evt_cb_data)->user_data); \
+} while (0)
+
+#define TAPI_INVOKE_NOTI_CALLBACK(data) do { \
+       if (evt_cb_data->cb_fn) \
                evt_cb_data->cb_fn (handle, noti_id, (data), evt_cb_data->user_data); \
-       }
+} while (0)
 
 struct tapi_handle {
        gpointer dbus_connection;
index 9e27d989707cd8f03240f9b54f99b87fee3343fd..89b0f4764ea113e5778dd773459b4a8b0ba6b88a 100644 (file)
@@ -41,12 +41,11 @@ static void on_response_call_dial(GObject *source_object, GAsyncResult *res, gpo
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -64,12 +63,11 @@ static void on_response_call_answer(GObject *source_object, GAsyncResult *res, g
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &data.id);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -87,12 +85,11 @@ static void on_response_call_end(GObject *source_object, GAsyncResult *res, gpoi
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iii)", &result, &data.id, &data.type);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -110,12 +107,11 @@ static void on_response_call_hold(GObject *source_object, GAsyncResult *res, gpo
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &data.id);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -133,12 +129,11 @@ static void on_response_call_active(GObject *source_object, GAsyncResult *res, g
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &data.id);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -156,12 +151,11 @@ static void on_response_call_swap(GObject *source_object, GAsyncResult *res, gpo
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &data.id);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -179,12 +173,11 @@ static void on_response_call_join(GObject *source_object, GAsyncResult *res, gpo
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &data.id);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -202,12 +195,11 @@ static void on_response_call_split(GObject *source_object, GAsyncResult *res, gp
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &data.id);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -225,12 +217,11 @@ static void on_response_call_transfer(GObject *source_object, GAsyncResult *res,
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &data.id);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -247,12 +238,11 @@ static void on_response_call_dtmf(GObject *source_object, GAsyncResult *res, gpo
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -269,12 +259,11 @@ static void on_response_call_deflect(GObject *source_object, GAsyncResult *res,
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -292,12 +281,11 @@ static void on_response_get_call_privacy_mode(GObject *source_object, GAsyncResu
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &data.mode);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -314,12 +302,11 @@ static void on_response_set_call_privacy_mode(GObject *source_object, GAsyncResu
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -342,7 +329,7 @@ static void on_response_get_call_volume_info(GObject *source_object, GAsyncResul
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(aa{sv}i)", &iter, &result);
 
@@ -364,8 +351,7 @@ static void on_response_get_call_volume_info(GObject *source_object, GAsyncResul
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &resp, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &resp);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -382,12 +368,11 @@ static void on_response_set_call_volume_info(GObject *source_object, GAsyncResul
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -404,12 +389,11 @@ static void on_response_set_call_sound_path(GObject *source_object, GAsyncResult
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -426,12 +410,11 @@ static void on_response_set_call_mute_status(GObject *source_object, GAsyncResul
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -449,12 +432,11 @@ static void on_response_get_call_mute_status(GObject *source_object, GAsyncResul
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iii)", &result, &resp.path, &resp.status);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &resp, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &resp);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -471,12 +453,11 @@ static void on_response_set_preferred_voice_subscription(GObject *source_object,
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -491,7 +472,7 @@ EXPORT_API int tel_dial_call(TapiHandle *handle, const TelCallDial_t *pParams, t
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(pParams, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(iis)", pParams->CallType, pParams->Ecc, pParams->szNumber);
 
@@ -517,7 +498,7 @@ EXPORT_API int tel_answer_call(TapiHandle *handle, unsigned int CallHandle, TelC
        if (AnsType > TAPI_CALL_ANSWER_HOLD_AND_ACCEPT)
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", CallHandle, AnsType);
 
@@ -542,7 +523,7 @@ EXPORT_API int tel_end_call(TapiHandle *handle, unsigned int CallHandle, TelCall
        if (EndType > TAPI_CALL_END_HOLD_ALL)
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", CallHandle, EndType);
 
@@ -564,7 +545,7 @@ EXPORT_API int tel_hold_call(TapiHandle *handle, unsigned int CallHandle, tapi_r
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", CallHandle);
 
@@ -586,7 +567,7 @@ EXPORT_API int tel_active_call(TapiHandle *handle, unsigned int CallHandle, tapi
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", CallHandle);
 
@@ -608,7 +589,7 @@ EXPORT_API int tel_swap_call(TapiHandle *handle, unsigned int CallHandle1, unsig
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", CallHandle1);
 
@@ -630,7 +611,7 @@ EXPORT_API int tel_join_call(TapiHandle *handle, unsigned int CallHandle1, unsig
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", CallHandle1);
 
@@ -652,7 +633,7 @@ EXPORT_API int tel_split_call(TapiHandle *handle, unsigned int CallHandle, tapi_
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", CallHandle);
 
@@ -674,7 +655,7 @@ EXPORT_API int tel_transfer_call(TapiHandle *handle, unsigned int CallHandle, ta
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", CallHandle);
 
@@ -696,7 +677,7 @@ EXPORT_API int tel_start_call_cont_dtmf(TapiHandle *handle, unsigned char dtmf_d
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(y)", dtmf_digit);
 
@@ -717,7 +698,7 @@ EXPORT_API int tel_stop_call_cont_dtmf(TapiHandle *handle, tapi_response_cb call
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        msg("[%s] Stop cont DTMF", handle->cp_name);
 
@@ -738,7 +719,7 @@ EXPORT_API int tel_send_call_burst_dtmf(TapiHandle *handle, const TelCallBurstDt
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(info, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(sii)", info->dtmf_string, info->pulse_width, info->inter_digit_interval);
 
@@ -761,7 +742,7 @@ EXPORT_API int tel_deflect_call(TapiHandle *handle, unsigned int CallHandle, con
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(pInfo, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(is)", CallHandle, pInfo->number);
 
@@ -891,7 +872,7 @@ EXPORT_API int tel_get_call_privacy_mode(TapiHandle *handle, tapi_response_cb ca
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        dbg("[%s] Func Entrance ", handle->cp_name);
 
@@ -911,7 +892,7 @@ EXPORT_API int tel_set_call_privacy_mode(TapiHandle *handle, TelCallPrivacyMode_
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        pParam = g_variant_new("(i)", privacy_mode);
 
@@ -933,7 +914,7 @@ EXPORT_API int tel_get_call_volume_info(TapiHandle *handle, TelSoundDevice_t dev
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", device, type);
 
@@ -956,7 +937,7 @@ EXPORT_API int tel_set_call_volume_info(TapiHandle *handle, TelCallVolumeInfo_t
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(info, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(iii)", info->device, info->type, info->volume);
 
@@ -980,7 +961,7 @@ EXPORT_API int tel_set_call_sound_path(TapiHandle *handle, TelCallSoundPathInfo_
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(info, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ib)", info->path, info->ex_volume);
 
@@ -1002,7 +983,7 @@ EXPORT_API int tel_set_call_mute_status(TapiHandle *handle, TelSoundMuteStatus_t
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", mute, path);
 
@@ -1024,7 +1005,7 @@ EXPORT_API int tel_get_call_mute_status(TapiHandle *handle, tapi_response_cb cal
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        dbg("[%s] Func Entrance ", handle->cp_name);
 
@@ -1046,7 +1027,7 @@ EXPORT_API int tel_set_call_preferred_voice_subscription(TapiHandle *handle, Tel
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", preferred_subscription);
 
index ba6ce94d7545714cdecbd3a24ac67e58eebe5972..580aa5e4064d66dade50cff58ff32e24b01016a2 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <glib.h>
 #include <gio/gio.h>
+#include <vconf.h>
 
 #include "tapi_common.h"
 #include "TapiUtility.h"
 #include "TelSat.h"
 #include "TelSs.h"
 #include "TelCall.h"
+#include "TelOem.h"
 
 #include "common.h"
 #include "tapi_log.h"
 
 TelSatEventDownloadType_t g_event_list[TAPI_SAT_EVENT_LIST_MAX_COUNT] = {-1};
+static GSList *state_callback_list = NULL;
+static gboolean registered_vconf_cb = FALSE;
+G_LOCK_DEFINE_STATIC(state_mutex);
+
+typedef struct {
+       tapi_state_cb callback;
+       void *user_data;
+} TelReadyStateCallback_t;
 
 static void _process_sms_event(const gchar *sig, GVariant *param,
        TapiHandle *handle, char *noti_id, struct tapi_evt_cb *evt_cb_data)
@@ -87,7 +97,7 @@ static void _process_sms_event(const gchar *sig, GVariant *param,
                g_free(decoded_sca);
                g_free(decoded_tpdu);
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else if (!g_strcmp0(sig, "IncommingCbMsg")) {
                struct tel_noti_sms_incomming_cb_msg noti = {0};
                gchar *cb_msg = NULL;
@@ -116,7 +126,7 @@ static void _process_sms_event(const gchar *sig, GVariant *param,
                g_free(cb_msg);
                g_free(decoded_cbmsg);
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else if (!g_strcmp0(sig, "IncommingEtwsMsg")) {
                struct tel_noti_sms_incomming_etws_msg noti;
 
@@ -140,17 +150,17 @@ static void _process_sms_event(const gchar *sig, GVariant *param,
                g_variant_unref(etwsMsg);
                g_variant_unref(inner_gv);
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else if (!g_strcmp0(sig, "MemoryStatus")) {
                int noti = 0;
 
                g_variant_get(param, "(i)", &noti);
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else if (!g_strcmp0(sig, "SmsReady")) {
                gint noti = 0;
 
                g_variant_get(param, "(i)", &noti);
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else {
                dbg("not handled Sms noti[%s]", sig);
        }
@@ -166,27 +176,27 @@ static void _process_call_event(const gchar *sig, GVariant *param,
                int start_time = 0, end_time = 0;
                g_variant_get(param, "(iiii)", &data.id, &data.cause, &start_time, &end_time);
                msg("[ check ] (%s) %s : call_handle(%d), end_cause(0x%x)", handle->cp_name, "Status Idle noti", data.id, data.cause);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "VoiceCallStatusDialing") || !g_strcmp0(sig, "VideoCallStatusDialing")) {
                TelCallStatusDialingNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : call_handle(%d)", handle->cp_name, "Status Dialing noti", data.id);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "VoiceCallStatusAlert") || !g_strcmp0(sig, "VideoCallStatusAlert")) {
                TelCallStatusAlertNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : call_handle(%d)", handle->cp_name, "Status Alert noti", data.id);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "VoiceCallStatusActive") || !g_strcmp0(sig, "VideoCallStatusActive")) {
                TelCallStatusActiveNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : call_handle(%d)", handle->cp_name, "Status Active noti", data.id);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "VoiceCallStatusHeld")) {
                TelCallStatusHeldNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : call_handle(%d)", handle->cp_name, "Status Held noti", data.id);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "VoiceCallStatusIncoming") || !g_strcmp0(sig, "VideoCallStatusIncoming")) {
                TelCallIncomingCallInfo_t data;
                gchar *number = NULL;
@@ -217,72 +227,72 @@ static void _process_call_event(const gchar *sig, GVariant *param,
                msg("[ check ] %s : active_line(%d)", "Status Incoming noti", data.ActiveLine);
                msg("[ check ] %s : call_name(%s)", "Status Incoming noti", data.CallingNameInfo.szNameData);
 
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "Waiting")) {
                TelCallInfoWaitingNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Waiting noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "Forwarded")) {
                TelCallInfoForwardedNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Forwarded noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "ForwardedCall")) {
                TelCallInfoForwardedCallNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                dbg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Forwarded Call noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "BarredIncoming")) {
                TelCallInfoBarredIncomingNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Barred Incoming noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "BarredOutgoing")) {
                TelCallInfoBarredOutgoingNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Barred Outgoing noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "ForwardConditional")) {
                TelCallInfoForwardConditionalNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Forward Conditional noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "ForwardUnconditional")) {
                TelCallInfoForwardUnconditionalNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Forward Unconditional noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "CallActive")) {
                TelCallInfoActiveNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Call Active noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "CallHeld")) {
                TelCallInfoHeldNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Call Held noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "CallJoined")) {
                TelCallInfoJoinedNoti_t data;
                g_variant_get(param, "(i)", &data.id);
                msg("[ check ] (%s) %s : data.id(%d)", handle->cp_name, "Call Info Call Joined noti", data.id);
-               CALLBACK_CALL(&data.id);
+               TAPI_INVOKE_NOTI_CALLBACK(&data.id);
        } else if (!g_strcmp0(sig, "CallPrivacyMode")) {
                TelCallVoicePrivacyNoti_t data;
                g_variant_get(param, "(i)", &data.privacy_mode);
                msg("[ check ] %s (%s): data.privacy_mode(%d) ", "Call Privacy Info noti", handle->cp_name, data.privacy_mode);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "CallOtaspStatus")) {
                TelCallOtaspStatusNoti_t otasp;
                g_variant_get(param, "(i)", &otasp.otasp_status);
                msg("[ check ] %s (%s): otasp_status(%d)", "Call OTASP Status ", handle->cp_name, otasp.otasp_status);
-               CALLBACK_CALL(&otasp);
+               TAPI_INVOKE_NOTI_CALLBACK(&otasp);
        } else if (!g_strcmp0(sig, "CallOtapaStatus")) {
                TelCallOtapaStatusNoti_t otapa;
                g_variant_get(param, "(i)", &otapa.otapa_status);
                msg("[ check ] %s : otapa_status(%d)", "Call OTAPA Status ", otapa.otapa_status);
-               CALLBACK_CALL(&otapa);
+               TAPI_INVOKE_NOTI_CALLBACK(&otapa);
        } else if (!g_strcmp0(sig, "CallSignalInfo")) {
                TelCallSignalInfoNoti_t signal_info;
                unsigned int signal;
@@ -298,7 +308,7 @@ static void _process_call_event(const gchar *sig, GVariant *param,
                        err("Unknown Signal type");
                        return;
                }
-               CALLBACK_CALL(&signal_info);
+               TAPI_INVOKE_NOTI_CALLBACK(&signal_info);
        } else if (!g_strcmp0(sig, "CallInfoRec")) {
                TelCallRecordInfoNoti_t noti;
                gchar *data = NULL;
@@ -315,38 +325,38 @@ static void _process_call_event(const gchar *sig, GVariant *param,
                                noti.info.id, noti.info.type, noti.info.data.number);
                }
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
                g_free(data);
        } else if (!g_strcmp0(sig, "CallSoundPath")) {
                TelCallSoundPathNoti_t data;
                g_variant_get(param, "(i)", &data.path);
                msg("[ check ] (%s) %s : path(%d)", handle->cp_name, "Call Sound Path noti", data.path);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "CallSoundRingbackTone")) {
                TelCallSoundRingbackToneNoti_t status;
                g_variant_get(param, "(i)", &status);
                msg("[ check ] (%s) %s : status(%d)", handle->cp_name, "Call Sound Ringbacktone noti", status);
-               CALLBACK_CALL(&status);
+               TAPI_INVOKE_NOTI_CALLBACK(&status);
        } else if (!g_strcmp0(sig, "CallSoundWbamr")) {
                TelCallSoundWbamrNoti_t status;
                g_variant_get(param, "(i)", &status);
                msg("[ check ] (%s) %s : status(%d)", handle->cp_name, "Call Sound Wbamr noti", status);
-               CALLBACK_CALL(&status);
+               TAPI_INVOKE_NOTI_CALLBACK(&status);
        } else if (!g_strcmp0(sig, "CallSoundNoiseReduction")) {
                TelCallSoundNoiseReductionNoti_t data;
                g_variant_get(param, "(i)", &data.status);
                msg("[ check ] (%s) %s : status(%d)", handle->cp_name, "Call Sound Noise Reduction noti", data.status);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "CallSoundClockStatus")) {
                gboolean data;
                g_variant_get(param, "(b)", &data);
                msg("[ check ] (%s) %s : status(%d)", handle->cp_name, "Call Sound Clock Status noti", data);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else if (!g_strcmp0(sig, "CallPreferredVoiceSubscription")) {
                TelCallPreferredVoiceSubsNoti_t data;
                g_variant_get(param, "(i)", &data.preferred_subs);
                dbg("[ check ] %s : Voice preferred_subs(%d)", "Call Preferred Voice Subscription noti", data.preferred_subs);
-               CALLBACK_CALL(&data);
+               TAPI_INVOKE_NOTI_CALLBACK(&data);
        } else {
                dbg("not handled Call noti[%s]", sig);
        }
@@ -364,37 +374,14 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                gint command_id, item_cnt;
                gboolean b_present, b_helpinfo, b_updated;
                GVariant *items = NULL;
-
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               GVariant *icon_id = NULL;
-               GVariant *icon_list = NULL;
-               int sat_index = 0, icon_index = 0;
-               GVariantIter *iter, *iter2;
-               GVariant *unbox = NULL;
-               /* Used to get icon data */
-               gboolean is_exist;
-               gint icon_quali, icon_identifier, width, height, ics, icon_data_len;
-               gchar *icon_data = NULL;
-               /* Used to get icon list data */
-               GVariant *unbox_list, *unbox_list_info ;
-               GVariant *icon_list_info;
-               gboolean is_list_exist;
-               gint icon_list_quali, list_cnt, icon_list_identifier, list_width, list_height, list_ics, icon_list_data_len;
-               gchar *icon_list_data = NULL;
-#else
                int sat_index = 0;
                GVariant *unbox;
                GVariantIter *iter;
-#endif
+
                memset(&setup_menu, 0, sizeof(TelSatSetupMenuInfo_t));
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               g_variant_get(param, "(ibs@vibb@v@v)", &command_id, &b_present, &title, &items, &item_cnt,
-                                       &b_helpinfo, &b_updated, &icon_id, &icon_list);
-#else
                g_variant_get(param, "(ibs@vibb)", &command_id, &b_present, &title, &items, &item_cnt,
                        &b_helpinfo, &b_updated);
-#endif
 
                setup_menu.commandId = command_id;
                setup_menu.bIsMainMenuPresent = (b_present ? 1 : 0);
@@ -422,60 +409,6 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                setup_menu.bIsSatMainMenuHelpInfo = (b_helpinfo ? 1 : 0);
                setup_menu.bIsUpdatedSatMainMenu = (b_updated ? 1 : 0);
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               if (icon_id) {
-                       unbox = g_variant_get_variant(icon_id);
-                       g_variant_get(unbox, "a(biiiiiis)", &iter);
-
-                       while (g_variant_iter_loop(iter, "(biiiiiis)", &is_exist, &icon_quali, &icon_identifier, &width, &height, &ics, &icon_data_len, &icon_data)) {
-                               if (!is_exist)
-                                       break;
-                               setup_menu.iconId.bIsPresent = is_exist;
-                               setup_menu.iconId.iconQualifier = icon_quali;
-                               setup_menu.iconId.iconIdentifier = icon_identifier;
-                               setup_menu.iconId.iconInfo.width = width;
-                               setup_menu.iconId.iconInfo.height = height;
-                               setup_menu.iconId.iconInfo.ics = ics;
-                               if (icon_data_len > 0) {
-                                       setup_menu.iconId.iconInfo.iconDataLen = icon_data_len;
-                                       memcpy(setup_menu.iconId.iconInfo.iconFile, icon_data, icon_data_len);
-                               }
-                               dbg("icon exist(%d), icon_quali: (%d), icon_id: (%d), width: (%d), height: (%d), ics: (%d), icon_data_len: (%d)", setup_menu.iconId.bIsPresent, setup_menu.iconId.iconQualifier, setup_menu.iconId.iconIdentifier, setup_menu.iconId.iconInfo.width,
-                                       setup_menu.iconId.iconInfo.height, setup_menu.iconId.iconInfo.ics, setup_menu.iconId.iconInfo.iconDataLen);
-                       }
-                       g_variant_iter_free(iter);
-               }
-
-               if (icon_list) {
-                       unbox_list = g_variant_get_variant(icon_list);
-                       g_variant_get(unbox_list, "a(biiv)", &iter);
-
-                       while (g_variant_iter_loop(iter, "(biiv)", &is_list_exist, &icon_list_quali, &list_cnt, &icon_list_info)) {
-                               if (!is_list_exist)
-                                       break;
-                               setup_menu.iconIdList.bIsPresent = is_list_exist;
-                               setup_menu.iconIdList.iconListQualifier = icon_list_quali;
-                               setup_menu.iconIdList.iconCount = list_cnt;
-
-                               unbox_list_info = g_variant_get_variant(icon_list_info);
-                               g_variant_get(unbox_list_info, "a(iiiiis)", &iter2);
-
-                               while (g_variant_iter_loop(iter2, "(iiiiis)", &icon_list_identifier, &list_width, &list_height, &list_ics, &icon_list_data_len, &icon_list_data)) {
-                                       setup_menu.iconIdList.iconIdentifierList[icon_index] = icon_identifier;
-                                       setup_menu.iconIdList.iconInfo[icon_index].width = list_width;
-                                       setup_menu.iconIdList.iconInfo[icon_index].height = list_height;
-                                       setup_menu.iconIdList.iconInfo[icon_index].ics = list_ics;
-                                       if (icon_list_data_len > 0) {
-                                               setup_menu.iconIdList.iconInfo[icon_index].iconDataLen = icon_list_data_len;
-                                               memcpy(setup_menu.iconIdList.iconInfo[icon_index].iconFile, icon_list_data, icon_list_data_len);
-                                       }
-                                       icon_index++;
-                               }
-                               g_variant_iter_free(iter2);
-                       }
-                       g_variant_iter_free(iter);
-               }
-#endif
                dbg("command id (%d)", setup_menu.commandId);
                dbg("menu present (%d)", setup_menu.bIsMainMenuPresent);
                dbg("menu title (%s)", setup_menu.satMainTitle);
@@ -486,30 +419,18 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                dbg("icon exist(%d), icon_quali: (%d), icon_id: (%d), width: (%d), height: (%d), ics: (%d), icon_data_len: (%d)", setup_menu.iconId.bIsPresent, setup_menu.iconId.iconQualifier, setup_menu.iconId.iconIdentifier, setup_menu.iconId.iconInfo.width,
                        setup_menu.iconId.iconInfo.height, setup_menu.iconId.iconInfo.ics, setup_menu.iconId.iconInfo.iconDataLen);
 
-               CALLBACK_CALL(&setup_menu);
+               TAPI_INVOKE_NOTI_CALLBACK(&setup_menu);
        } else if (!g_strcmp0(sig, "DisplayText")) {
                TelSatDisplayTextInd_t display_text;
                gchar *text;
                gint command_id, text_len, duration;
                gboolean high_priority, user_rsp_required, immediately_rsp;
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               GVariant *unbox = NULL;
-               gboolean is_exist;
-               gint icon_quali, icon_identifier, width, height, ics, icon_data_len;
-               gchar *icon_data = NULL;
-               GVariant *icon_id = NULL;
-               GVariantIter *iter;
-#endif
                memset(&display_text, 0, sizeof(TelSatDisplayTextInd_t));
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               g_variant_get(param, "(isiibbb@v)", &command_id, &text, &text_len, &duration,
-                       &high_priority, &user_rsp_required, &immediately_rsp, &icon_id);
-#else
                g_variant_get(param, "(isiibbb)", &command_id, &text, &text_len, &duration,
                        &high_priority, &user_rsp_required, &immediately_rsp);
-#endif
+
                display_text.commandId = command_id;
                memcpy(display_text.text.string, text, TAPI_SAT_DEF_TEXT_STRING_LEN_MAX+1);
                g_free(text);
@@ -519,30 +440,6 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                display_text.bIsUserRespRequired = (user_rsp_required ? 1 : 0);
                display_text.b_immediately_resp = (immediately_rsp ? 1 : 0);
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               if (icon_id) {
-                       unbox = g_variant_get_variant(icon_id);
-                       g_variant_get(unbox, "a(biiiiiis)", &iter);
-
-                       while (g_variant_iter_loop(iter, "(biiiiiis)", &is_exist, &icon_quali, &icon_identifier, &width, &height, &ics, &icon_data_len, &icon_data)) {
-                               if (!is_exist)
-                                       break;
-                               display_text.iconId.bIsPresent = is_exist;
-                               display_text.iconId.iconQualifier = icon_quali;
-                               display_text.iconId.iconIdentifier = icon_identifier;
-                               display_text.iconId.iconInfo.width = width;
-                               display_text.iconId.iconInfo.height = height;
-                               display_text.iconId.iconInfo.ics = ics;
-                               if (icon_data_len > 0) {
-                                       display_text.iconId.iconInfo.iconDataLen = icon_data_len;
-                                       memcpy(display_text.iconId.iconInfo.iconFile, icon_data, icon_data_len);
-                               }
-                               dbg("icon exist(%d), icon_quali: (%d), icon_id: (%d), width: (%d), height: (%d), ics: (%d), icon_data_len: (%d)", display_text.iconId.bIsPresent, display_text.iconId.iconQualifier, display_text.iconId.iconIdentifier, display_text.iconId.iconInfo.width,
-                                       display_text.iconId.iconInfo.height, display_text.iconId.iconInfo.ics, display_text.iconId.iconInfo.iconDataLen);
-                       }
-                       g_variant_iter_free(iter);
-               }
-#endif
                dbg("command id (%d)", display_text.commandId);
                dbg("display text (%s)", display_text.text.string);
                dbg("string len(%d)", display_text.text.stringLen);
@@ -551,7 +448,7 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                dbg("user response required(%d)", display_text.bIsUserRespRequired);
                dbg("immediately response (%d)", display_text.b_immediately_resp);
 
-               CALLBACK_CALL(&display_text);
+               TAPI_INVOKE_NOTI_CALLBACK(&display_text);
        } else if (!g_strcmp0(sig, "SelectItem")) {
                TelSatSelectItemInd_t select_item;
 
@@ -559,35 +456,15 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                gchar *selected_text;
                gint command_id, default_item_id, menu_cnt, text_len = 0;
                GVariant *menu_items;
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               GVariantIter *iter, *iter2;
-               GVariant *unbox = NULL;
-               gboolean is_exist;
-               gint icon_quali, icon_identifier, width, height, ics, icon_data_len;
-               gchar *icon_data = NULL;
-               GVariant *icon_id = NULL;
-               GVariant *icon_list = NULL;
-               int select_item_index = 0, icon_index = 0;
-               /* Used to get icon list data */
-               GVariant *unbox_list, *unbox_list_info ;
-               GVariant *icon_list_info;
-               gboolean is_list_exist;
-               gint icon_list_quali, list_cnt, icon_list_identifier, list_width, list_height, list_ics, icon_list_data_len;
-               gchar *icon_list_data = NULL;
-#else
                int select_item_index = 0;
                GVariant *unbox;
                GVariantIter *iter;
-#endif
+
                memset(&select_item, 0, sizeof(TelSatSelectItemInd_t));
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               g_variant_get(param, "(ibsiii@v@v@v)", &command_id, &help_info, &selected_text,
-                       &text_len, &default_item_id, &menu_cnt, &menu_items, &icon_id, &icon_list);
-#else
                g_variant_get(param, "(ibsiii@v)", &command_id, &help_info, &selected_text,
                        &text_len, &default_item_id, &menu_cnt, &menu_items);
-#endif
+
                select_item.commandId = command_id;
                select_item.bIsHelpInfoAvailable = (help_info ? 1 : 0);
                memcpy(select_item.text.string, selected_text, TAPI_SAT_DEF_TITLE_LEN_MAX+1);
@@ -613,60 +490,6 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                        g_variant_iter_free(iter);
                }
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               if (icon_id) {
-                       unbox = g_variant_get_variant(icon_id);
-                       g_variant_get(unbox, "a(biiiiiis)", &iter);
-
-                       while (g_variant_iter_loop(iter, "(biiiiiis)", &is_exist, &icon_quali, &icon_identifier, &width, &height, &ics, &icon_data_len, &icon_data)) {
-                               if (!is_exist)
-                                       break;
-                               select_item.iconId.bIsPresent = is_exist;
-                               select_item.iconId.iconQualifier = icon_quali;
-                               select_item.iconId.iconIdentifier = icon_identifier;
-                               select_item.iconId.iconInfo.width = width;
-                               select_item.iconId.iconInfo.height = height;
-                               select_item.iconId.iconInfo.ics = ics;
-                               if (icon_data_len > 0) {
-                                       select_item.iconId.iconInfo.iconDataLen = icon_data_len;
-                                       memcpy(select_item.iconId.iconInfo.iconFile, icon_data, icon_data_len);
-                               }
-                               dbg("icon exist(%d), icon_quali: (%d), icon_id: (%d), width: (%d), height: (%d), ics: (%d), icon_data_len: (%d)", select_item.iconId.bIsPresent, select_item.iconId.iconQualifier, select_item.iconId.iconIdentifier, select_item.iconId.iconInfo.width,
-                                               select_item.iconId.iconInfo.height, select_item.iconId.iconInfo.ics, select_item.iconId.iconInfo.iconDataLen);
-                       }
-                       g_variant_iter_free(iter);
-               }
-
-               if (icon_list) {
-                       unbox_list = g_variant_get_variant(icon_list);
-                       g_variant_get(unbox_list, "a(biiv)", &iter);
-
-                       while (g_variant_iter_loop(iter, "(biiv)", &is_list_exist, &icon_list_quali, &list_cnt, &icon_list_info)) {
-                               if (!is_list_exist)
-                                       break;
-                               select_item.iconIdList.bIsPresent = is_list_exist;
-                               select_item.iconIdList.iconListQualifier = icon_list_quali;
-                               select_item.iconIdList.iconCount = list_cnt;
-
-                               unbox_list_info = g_variant_get_variant(icon_list_info);
-                               g_variant_get(unbox_list_info, "a(iiiiis)", &iter2);
-
-                               while (g_variant_iter_loop(iter2, "(iiiiis)", &icon_list_identifier, &list_width, &list_height, &list_ics, &icon_list_data_len, &icon_list_data)) {
-                                       select_item.iconIdList.iconIdentifierList[icon_index] = icon_identifier;
-                                       select_item.iconIdList.iconInfo[icon_index].width = list_width;
-                                       select_item.iconIdList.iconInfo[icon_index].height = list_height;
-                                       select_item.iconIdList.iconInfo[icon_index].ics = list_ics;
-                                       if (icon_list_data_len > 0) {
-                                               select_item.iconIdList.iconInfo[icon_index].iconDataLen = icon_list_data_len;
-                                               memcpy(select_item.iconIdList.iconInfo[icon_index].iconFile, icon_list_data, icon_list_data_len);
-                                       }
-                                       icon_index++;
-                               }
-                               g_variant_iter_free(iter2);
-                       }
-                       g_variant_iter_free(iter);
-               }
-#endif
                dbg("command id (%d)", select_item.commandId);
                dbg("help info(%d)", select_item.bIsHelpInfoAvailable);
                dbg("selected item string(%s)", select_item.text.string);
@@ -674,7 +497,7 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                dbg("default item index(%d)", select_item.defaultItemIndex);
                dbg("item count(%d)", select_item.menuItemCount);
 
-               CALLBACK_CALL(&select_item);
+               TAPI_INVOKE_NOTI_CALLBACK(&select_item);
        } else if (!g_strcmp0(sig, "GetInkey")) {
                TelSatGetInkeyInd_t get_inkey;
 
@@ -682,23 +505,12 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                gint text_len, duration;
                gboolean b_numeric, b_help_info;
                gchar *text = NULL;
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               GVariant *unbox = NULL;
-               gboolean is_exist;
-               gint icon_quali, icon_identifier, width, height, ics, icon_data_len;
-               gchar *icon_data = NULL;
-               GVariant *icon_id = NULL;
-               GVariantIter *iter;
-#endif
+
                memset(&get_inkey, 0, sizeof(TelSatGetInkeyInd_t));
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               g_variant_get(param, "(iiibbsii@v)", &command_id, &key_type, &input_character_mode,
-                       &b_numeric, &b_help_info, &text, &text_len, &duration, &icon_id);
-#else
                g_variant_get(param, "(iiibbsii)", &command_id, &key_type, &input_character_mode,
                        &b_numeric, &b_help_info, &text, &text_len, &duration);
-#endif
+
                get_inkey.commandId = command_id;
                get_inkey.keyType = key_type;
                get_inkey.inputCharMode = input_character_mode;
@@ -709,30 +521,6 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                get_inkey.text.stringLen = text_len;
                get_inkey.duration = duration;
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               if (icon_id) {
-                       unbox = g_variant_get_variant(icon_id);
-                       g_variant_get(unbox, "a(biiiiiis)", &iter);
-
-                       while (g_variant_iter_loop(iter, "(biiiiiis)", &is_exist, &icon_quali, &icon_identifier, &width, &height, &ics, &icon_data_len, &icon_data)) {
-                               if (!is_exist)
-                                       break;
-                               get_inkey.iconId.bIsPresent = is_exist;
-                               get_inkey.iconId.iconQualifier = icon_quali;
-                               get_inkey.iconId.iconIdentifier = icon_identifier;
-                               get_inkey.iconId.iconInfo.width = width;
-                               get_inkey.iconId.iconInfo.height = height;
-                               get_inkey.iconId.iconInfo.ics = ics;
-                               if (icon_data_len > 0) {
-                                       get_inkey.iconId.iconInfo.iconDataLen = icon_data_len;
-                                       memcpy(get_inkey.iconId.iconInfo.iconFile, icon_data, icon_data_len);
-                               }
-                               dbg("icon exist(%d), icon_quali: (%d), icon_id: (%d), width: (%d), height: (%d), ics: (%d), icon_data_len: (%d)", get_inkey.iconId.bIsPresent, get_inkey.iconId.iconQualifier, get_inkey.iconId.iconIdentifier, get_inkey.iconId.iconInfo.width,
-                                       get_inkey.iconId.iconInfo.height, get_inkey.iconId.iconInfo.ics, get_inkey.iconId.iconInfo.iconDataLen);
-                       }
-                       g_variant_iter_free(iter);
-               }
-#endif
                dbg("command id(%d)", get_inkey.commandId);
                dbg("key type(%d)", get_inkey.keyType);
                dbg("input character mode(%d)", get_inkey.inputCharMode);
@@ -742,7 +530,7 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                dbg("text length", get_inkey.text.stringLen);
                dbg("duration", get_inkey.duration);
 
-               CALLBACK_CALL(&get_inkey);
+               TAPI_INVOKE_NOTI_CALLBACK(&get_inkey);
        } else if (!g_strcmp0(sig, "GetInput")) {
                TelSatGetInputInd_t get_input;
 
@@ -750,23 +538,12 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                gint text_len, def_text_len, rsp_len_min, rsp_len_max;
                gboolean b_numeric, b_help_info, b_echo_input;
                gchar *text = NULL, *def_text = NULL;
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               GVariant *unbox = NULL;
-               gboolean is_exist;
-               gint icon_quali, icon_identifier, width, height, ics, icon_data_len;
-               gchar *icon_data = NULL;
-               GVariant *icon_id = NULL;
-               GVariantIter *iter;
-#endif
+
                memset(&get_input, 0, sizeof(TelSatGetInputInd_t));
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               g_variant_get(param, "(iibbbsiiisi@v)", &command_id, &input_character_mode, &b_numeric, &b_help_info, &b_echo_input,
-                       &text, &text_len, &rsp_len_max, &rsp_len_min, &def_text, &def_text_len, &icon_id);
-#else
                g_variant_get(param, "(iibbbsiiisi)", &command_id, &input_character_mode, &b_numeric, &b_help_info, &b_echo_input,
                        &text, &text_len, &rsp_len_max, &rsp_len_min, &def_text, &def_text_len);
-#endif
+
                get_input.commandId = command_id;
                get_input.inputCharMode = input_character_mode;
                get_input.bIsNumeric = (b_numeric ? 1 : 0);
@@ -781,30 +558,6 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                g_free(def_text);
                get_input.defaultText.stringLen = def_text_len;
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-               if (icon_id) {
-                       unbox = g_variant_get_variant(icon_id);
-                       g_variant_get(unbox, "a(biiiiiis)", &iter);
-
-                       while (g_variant_iter_loop(iter, "(biiiiiis)", &is_exist, &icon_quali, &icon_identifier, &width, &height, &ics, &icon_data_len, &icon_data)) {
-                               if (!is_exist)
-                                       break;
-                               get_input.iconId.bIsPresent = is_exist;
-                               get_input.iconId.iconQualifier = icon_quali;
-                               get_input.iconId.iconIdentifier = icon_identifier;
-                               get_input.iconId.iconInfo.width = width;
-                               get_input.iconId.iconInfo.height = height;
-                               get_input.iconId.iconInfo.ics = ics;
-                               if (icon_data_len > 0) {
-                                       get_input.iconId.iconInfo.iconDataLen = icon_data_len;
-                                       memcpy(get_input.iconId.iconInfo.iconFile, icon_data, icon_data_len);
-                               }
-                               dbg("icon exist(%d), icon_quali: (%d), icon_id: (%d), width: (%d), height: (%d), ics: (%d), icon_data_len: (%d)", get_input.iconId.bIsPresent, get_input.iconId.iconQualifier, get_input.iconId.iconIdentifier, get_input.iconId.iconInfo.width,
-                                       get_input.iconId.iconInfo.height, get_input.iconId.iconInfo.ics, get_input.iconId.iconInfo.iconDataLen);
-                       }
-                       g_variant_iter_free(iter);
-               }
-#endif
                dbg("command id(%d)", get_input.commandId);
                dbg("input character mode(%d)", get_input.inputCharMode);
                dbg("numeric(%d)", get_input.bIsNumeric);
@@ -817,7 +570,7 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                dbg("default text(%s)", get_input.defaultText.string);
                dbg("default text length(%d)", get_input.defaultText.stringLen);
 
-               CALLBACK_CALL(&get_input);
+               TAPI_INVOKE_NOTI_CALLBACK(&get_input);
        } else if (!g_strcmp0(sig, "SendSMS")) {
                TelSatSendSmsIndSmsData_t send_sms;
 
@@ -873,7 +626,7 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                dbg("tpdu type (%d)", send_sms.smsTpdu.tpduType);
                dbg("tpdu length (%d)", send_sms.smsTpdu.dataLen);
 
-               CALLBACK_CALL(&send_sms);
+               TAPI_INVOKE_NOTI_CALLBACK(&send_sms);
        } else if (!g_strcmp0(sig, "SetupEventList")) {
                int g_index = 0;
                gint event_cnt;
@@ -916,7 +669,7 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
 
                dbg("event list cnt(%d)", event_cnt);
 
-               CALLBACK_CALL(&event_list);
+               TAPI_INVOKE_NOTI_CALLBACK(&event_list);
        } else if (!g_strcmp0(sig, "Refresh")) {
                TelSatRefreshInd_t refresh_info;
 
@@ -957,7 +710,7 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
 
                dbg("refresh event/file cnt(%d)", refresh_info.fileCount);
 
-               CALLBACK_CALL(&refresh_info);
+               TAPI_INVOKE_NOTI_CALLBACK(&refresh_info);
        } else if (!g_strcmp0(sig, "SendDtmf")) {
                TelSatSendDtmfIndDtmfData_t send_dtmf;
 
@@ -981,13 +734,13 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                dbg("dtmf event command id(%d)", send_dtmf.commandId);
                dbg("dtmf event dtmf(%s)", send_dtmf.dtmfString.string);
 
-               CALLBACK_CALL(&send_dtmf);
+               TAPI_INVOKE_NOTI_CALLBACK(&send_dtmf);
        } else if (!g_strcmp0(sig, "EndProactiveSession")) {
                int command_type = 0;
 
                g_variant_get(param, "(i)", &command_type);
                dbg("end session evt : command type(%d)", command_type);
-               CALLBACK_CALL(&command_type);
+               TAPI_INVOKE_NOTI_CALLBACK(&command_type);
        } else if (!g_strcmp0(sig, "CallControlResult")) {
                TelSatCallCtrlIndData_t call_ctrl_result_ind;
                gint call_ctrl_result = 0, disp_len = 0;
@@ -1037,7 +790,7 @@ static void _process_sat_event(const gchar *sig, GVariant *param,
                        goto EXIT;
                }
 
-               CALLBACK_CALL(&call_ctrl_result_ind);
+               TAPI_INVOKE_NOTI_CALLBACK(&call_ctrl_result_ind);
 
 EXIT:
                g_free(call_num);
@@ -1081,7 +834,33 @@ EXIT:
                g_free(rp_dst_call_num);
                g_free(tp_dst_call_num);
 
-               CALLBACK_CALL(&mo_sm_ctrl_result_ind);
+               TAPI_INVOKE_NOTI_CALLBACK(&mo_sm_ctrl_result_ind);
+       } else if (!g_strcmp0(sig, "SetupCall")) {
+               TelSatSetupCallIndCallData_t setup_call_data;
+               gint command_type = 0, confirm_text_len = 0;
+               gint text_len = 0, call_type = 0, duration = 0;
+               gchar *confirm_text = NULL, *text = NULL, *call_number = NULL;
+
+               dbg("setupcall event");
+               memset(&setup_call_data, 0x00, sizeof(TelSatSetupCallIndCallData_t));
+
+               g_variant_get(param, "(isisiisi)", &command_type, &confirm_text,
+                       &confirm_text_len, &text, &text_len, &call_type, &call_number, &duration);
+
+
+               setup_call_data.commandId = command_type;
+               setup_call_data.calltype = call_type;
+               memcpy(&setup_call_data.dispText.string, text, strlen(text));
+               setup_call_data.dispText.stringLen = text_len;
+               memcpy(&setup_call_data.callNumber.string, call_number, strlen(call_number));
+               setup_call_data.callNumber.stringLen = strlen(call_number); /* Number length */
+               setup_call_data.duration = duration;
+
+               g_free(confirm_text);
+               g_free(text);
+               g_free(call_number);
+
+               TAPI_INVOKE_NOTI_CALLBACK(&setup_call_data);
        } else {
                dbg("not handled Sat noti[%s]", sig);
        }
@@ -1095,11 +874,11 @@ static void _process_sim_event(const gchar *sig, GVariant *param,
        if (!g_strcmp0(sig, "Status")) {
                int status = 0;
                g_variant_get(param, "(i)", &status);
-               CALLBACK_CALL(&status);
+               TAPI_INVOKE_NOTI_CALLBACK(&status);
        } else if (!g_strcmp0(sig, "Refreshed")) {
                int type = 0;
                g_variant_get(param, "(i)", &type);
-               CALLBACK_CALL(&type);
+               TAPI_INVOKE_NOTI_CALLBACK(&type);
        } else {
                dbg("not handled SIM noti[%s]", sig);
        }
@@ -1123,7 +902,7 @@ static void _process_pb_event(const gchar *sig, GVariant *param,
 
                msg("(%s) init[%d] fdn[%d] adn[%d] sdn[%d] usim[%d] aas[%d] gas[%d]",
                        handle->cp_name, status.init_completed, status.pb_list.b_fdn, status.pb_list.b_adn, status.pb_list.b_sdn, status.pb_list.b_3g, status.pb_list.b_aas, status.pb_list.b_gas);
-               CALLBACK_CALL(&status);
+               TAPI_INVOKE_NOTI_CALLBACK(&status);
        } else if (!g_strcmp0(sig, "ContactChange")) {
                TelSimPbContactChangeInfo_t ContactChange;
                g_variant_get(param, "(iqi)",
@@ -1133,7 +912,7 @@ static void _process_pb_event(const gchar *sig, GVariant *param,
 
                msg("(%s) type[%d] index[%d] operation[%d]",
                        handle->cp_name, ContactChange.pb_type, ContactChange.index, ContactChange.operation);
-               CALLBACK_CALL(&ContactChange);
+               TAPI_INVOKE_NOTI_CALLBACK(&ContactChange);
        } else {
                dbg("not handled Phonebook noti[%s]", sig);
        }
@@ -1147,11 +926,11 @@ static void _process_sap_event(const gchar *sig, GVariant *param,
        if (!g_strcmp0(sig, "Status")) {
                int noti = 0;
                g_variant_get(param, "(i)", &noti);
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else if (!g_strcmp0(sig, "Disconnect")) {
                int disconnect = 0;
                g_variant_get(param, "(i)", &disconnect);
-               CALLBACK_CALL(&disconnect);
+               TAPI_INVOKE_NOTI_CALLBACK(&disconnect);
        } else {
                dbg("not handled SAP noti[%s]", sig);
        }
@@ -1167,7 +946,7 @@ static void _process_modem_event(const gchar *sig, GVariant *param,
 
                g_variant_get(param, "(i)", &noti);
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else {
                dbg("not handled Modem noti[%s]", sig);
        }
@@ -1198,14 +977,14 @@ static void _process_ss_event(const gchar *sig, GVariant *param,
                        g_free(str);
                }
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else if (!g_strcmp0(sig, "NotifySsInfo")) {
                TelSsInfo_t noti;
                memset(&noti, 0, sizeof(TelSsInfo_t));
 
                g_variant_get(param, "(ii)", &noti.Cause, &noti.SsType);
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else if (!g_strcmp0(sig, "ReleaseComplete")) {
                TelSsRelCompMsgInfo_t noti;
                GVariant *msg = 0;
@@ -1237,7 +1016,7 @@ static void _process_ss_event(const gchar *sig, GVariant *param,
                        g_variant_unref(inner_gv);
                }
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
        } else if (!g_strcmp0(sig, "NotifyForwarding")) {
                TelSsForwardNoti_t noti;
                memset(&noti, 0, sizeof(TelSsForwardNoti_t));
@@ -1274,7 +1053,7 @@ static void _process_ss_event(const gchar *sig, GVariant *param,
                }
                g_variant_iter_free(iter);
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
 
        } else if (!g_strcmp0(sig, "NotifyWaiting")) {
 
@@ -1301,7 +1080,7 @@ static void _process_ss_event(const gchar *sig, GVariant *param,
                }
                g_variant_iter_free(iter);
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
 
        } else if (!g_strcmp0(sig, "NotifyBarring")) {
                TelSsBarringNoti_t noti;
@@ -1328,7 +1107,7 @@ static void _process_ss_event(const gchar *sig, GVariant *param,
                }
                g_variant_iter_free(iter);
 
-               CALLBACK_CALL(&noti);
+               TAPI_INVOKE_NOTI_CALLBACK(&noti);
 
        } else {
                dbg("not handled SS noti[%s]", sig);
@@ -1337,43 +1116,28 @@ static void _process_ss_event(const gchar *sig, GVariant *param,
        return;
 }
 
-static void _process_gps_event(const gchar *sig, GVariant *param,
-               TapiHandle *handle, char *noti_id, struct tapi_evt_cb *evt_cb_data)
+static void _process_oem_event(const gchar *sig, GVariant *param,
+       TapiHandle *handle, char *noti_id, struct tapi_evt_cb *evt_cb_data)
 {
-       gboolean b_decode_data = FALSE;
-       guchar *decoded_data = NULL;
-
        TAPI_RETURN_IF_FAIL(evt_cb_data);
 
-       if (!g_strcmp0(sig, "AssistData"))
-               b_decode_data = TRUE;
-       else if (!g_strcmp0(sig, "MeasurePosition"))
-               b_decode_data = TRUE;
-       else if (!g_strcmp0(sig, "ResetAssistData"))
-               /* noting to decode */
-               b_decode_data = FALSE;
-       else if (!g_strcmp0(sig, "FrequencyAiding"))
-               b_decode_data = TRUE;
-       else
-               dbg("not handled Gps noti[%s]", sig);
-
-       /* decoding data */
-       if (b_decode_data) {
+       if (!g_strcmp0(sig, "OemData")) {
+               TelOemNotiData_t oem_data = {0};
                gchar *data = NULL;
-               gsize length;
-               dbg("[%s] decoding start", sig);
+               gsize decoded_data_len = 0;
 
-               g_variant_get(param, "(s)", &data);
-               decoded_data = g_base64_decode((const gchar *)data, &length);
-               if (decoded_data)
-                       CALLBACK_CALL(decoded_data);
+               g_variant_get(param, "(is)", &oem_data.oem_id, &data);
+               oem_data.data = g_base64_decode((const gchar *)data, &decoded_data_len);
+               if (oem_data.data) {
+                       oem_data.data_len = (unsigned int)decoded_data_len;
+                       msg("[%s] id:[%d] len:[%d]", handle->cp_name, oem_data.oem_id, oem_data.data_len);
+                       TAPI_INVOKE_NOTI_CALLBACK(&oem_data);
+
+                       g_free(oem_data.data);
+               }
 
                g_free(data);
-               dbg("length=%d", length);
        }
-
-       if (decoded_data)
-               g_free(decoded_data);
 }
 
 static void on_prop_callback(GDBusConnection *conn, const gchar *name, const gchar *path, const gchar *interface,
@@ -1455,10 +1219,10 @@ static void on_prop_callback(GDBusConnection *conn, const gchar *name, const gch
                {
                        int param_i = 0;
                        if (data[0] == 's') {
-                               CALLBACK_CALL((void *) (data + 2));
+                               TAPI_INVOKE_NOTI_CALLBACK((void *) (data + 2));
                        } else {
                                param_i = atoi(data + 2);
-                               CALLBACK_CALL((void *)&param_i);
+                               TAPI_INVOKE_NOTI_CALLBACK((void *)&param_i);
                        }
                }
                g_variant_unref(value);
@@ -1508,10 +1272,11 @@ static void on_signal_callback(GDBusConnection *conn,
                _process_modem_event(sig, param, handle, noti_id, evt_cb_data);
        else if (!g_strcmp0(interface, DBUS_TELEPHONY_SS_INTERFACE))
                _process_ss_event(sig, param, handle, noti_id, evt_cb_data);
-       else if (!g_strcmp0(interface, DBUS_TELEPHONY_GPS_INTERFACE))
-               _process_gps_event(sig, param, handle, noti_id, evt_cb_data);
        else if (!g_strcmp0(interface, DBUS_TELEPHONY_NETWORK_INTERFACE))
                _process_network_event(sig, param, handle, noti_id, evt_cb_data);
+       else if (!g_strcmp0(interface, DBUS_TELEPHONY_OEM_INTERFACE))
+               _process_oem_event(sig, param, handle, noti_id, evt_cb_data);
+
        g_free(noti_id);
 }
 
@@ -1888,4 +1653,142 @@ EXPORT_API int tel_deregister_noti_event(TapiHandle *handle,
 
        return TAPI_API_SUCCESS;
 }
+
+static gpointer _copy_ready_cb_item(gconstpointer src, gpointer data)
+{
+       TelReadyStateCallback_t *orig_data = (TelReadyStateCallback_t *)src;
+       TelReadyStateCallback_t *cb_data = NULL;
+
+       cb_data = g_try_new0(TelReadyStateCallback_t, 1);
+       if (!cb_data)
+               return NULL;
+
+       cb_data->callback = orig_data->callback;
+       cb_data->user_data = orig_data->user_data;
+
+       return cb_data;
+}
+
+static void on_changed_ready_state(keynode_t *key, void *user_data)
+{
+       int value = 0;
+       int res = 0;
+       GSList *list = NULL;
+       GSList *copied_list_head = NULL;
+
+       res = vconf_get_bool(VCONFKEY_TELEPHONY_READY, &value);
+       if (res == VCONF_ERROR) {
+               err("Failed to get vconf state");
+               return;
+       }
+
+       /* Copy callback list.
+        * As user can deregister callback function
+        * inside of callback function.
+        * That logic leads process to deadlock. (Recursive locking) */
+       G_LOCK(state_mutex);
+       copied_list_head = g_slist_copy_deep(state_callback_list, (GCopyFunc)_copy_ready_cb_item, NULL);
+       G_UNLOCK(state_mutex);
+
+       list = copied_list_head;
+       while (list) {
+               TelReadyStateCallback_t *cb_data = (TelReadyStateCallback_t *)list->data;
+
+               if (cb_data && cb_data->callback)
+                       cb_data->callback(value, cb_data->user_data);
+
+               list = g_slist_next(list);
+       }
+
+       g_slist_free_full(copied_list_head, g_free);
+}
+
+EXPORT_API int tel_register_ready_state_cb(tapi_state_cb callback, void *user_data)
+{
+       gboolean exist = FALSE;
+       GSList *list = NULL;
+
+       TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_INPUT);
+
+       G_LOCK(state_mutex);
+       list = state_callback_list;
+       while (list) {
+               TelReadyStateCallback_t *cb_iter = (TelReadyStateCallback_t *)list->data;
+               if (cb_iter && cb_iter->callback == callback) {
+                       exist = TRUE;
+                       break;
+               }
+               list = g_slist_next(list);
+       }
+
+       if (!exist) {
+               TelReadyStateCallback_t *cb_data = g_try_new0(TelReadyStateCallback_t, 1);
+               if (!cb_data) {
+                       G_UNLOCK(state_mutex);
+                       return TAPI_API_OPERATION_FAILED;
+               }
+               cb_data->callback = callback;
+               cb_data->user_data = user_data;
+
+               state_callback_list = g_slist_append(state_callback_list, cb_data);
+       } else {
+               G_UNLOCK(state_mutex);
+               return TAPI_API_OPERATION_FAILED;
+       }
+       G_UNLOCK(state_mutex);
+
+       if (!registered_vconf_cb) {
+               vconf_notify_key_changed(VCONFKEY_TELEPHONY_READY, on_changed_ready_state, NULL);
+               registered_vconf_cb = TRUE;
+       }
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_deregister_ready_state_cb(tapi_state_cb callback)
+{
+       GSList *list = NULL;
+       guint count = 0;
+
+       TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_INPUT);
+
+       G_LOCK(state_mutex);
+       list = state_callback_list;
+
+       while (list) {
+               TelReadyStateCallback_t *cb_data = (TelReadyStateCallback_t *)list->data;
+
+               if (cb_data && cb_data->callback == callback) {
+                       state_callback_list = g_slist_remove(state_callback_list, cb_data);
+                       g_free(cb_data);
+                       break;
+               }
+               list = g_slist_next(list);
+       }
+       count = g_slist_length(state_callback_list);
+       G_UNLOCK(state_mutex);
+
+       if (count == 0) {
+               vconf_ignore_key_changed(VCONFKEY_TELEPHONY_READY, on_changed_ready_state);
+               registered_vconf_cb = FALSE;
+       }
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_ready_state(int *state)
+{
+       int res = 0;
+       int value = 0;
+
+       TAPI_RET_ERR_NUM_IF_FAIL(state, TAPI_API_INVALID_INPUT);
+
+       res = vconf_get_bool(VCONFKEY_TELEPHONY_READY, &value);
+       if (res == VCONF_ERROR)
+               return TAPI_API_OPERATION_FAILED;
+
+       *state = (value == 0) ? 0 : 1;
+
+       return TAPI_API_SUCCESS;
+}
 /*     EOF     */
index 603fc9893aeb9526ebe22033ee6e7ffa8c40f220..fe4635c2f5d684342449dc3fc2ad3d4a62730a8c 100644 (file)
@@ -43,12 +43,11 @@ static void on_response_default_set(GObject *source_object, GAsyncResult *res, g
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -69,7 +68,7 @@ static void on_response_get_version(GObject *source_object, GAsyncResult *res, g
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
 
        g_variant_get(dbus_result, "(issssss)", &result,
@@ -91,12 +90,7 @@ static void on_response_get_version(GObject *source_object, GAsyncResult *res, g
        g_free(prl);
        g_free(eri);
 
-       if (evt_cb_data->cb_fn) {
-               if (result != 0)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
-               else
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
-       }
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -115,7 +109,7 @@ static void on_response_get_serial_number(GObject *source_object, GAsyncResult *
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(issss)", &result,
                        &sn, &meid, &imei, &imeisv);
@@ -131,12 +125,7 @@ static void on_response_get_serial_number(GObject *source_object, GAsyncResult *
        g_free(imei);
        g_free(imeisv);
 
-       if (evt_cb_data->cb_fn) {
-               if (result != 0)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
-               else
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
-       }
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -154,16 +143,11 @@ static void on_response_get_imei(GObject *source_object, GAsyncResult *res, gpoi
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(is)", &result, &imei);
 
-       if (evt_cb_data->cb_fn) {
-               if (result != 0)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
-               else
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, imei, evt_cb_data->user_data);
-       }
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, imei);
        g_free(imei);
 
        g_free(evt_cb_data);
@@ -185,7 +169,7 @@ static void on_response_get_device_info(GObject *source_object, GAsyncResult *re
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iss)", &result,
                        &vendor_name, &device_name);
@@ -200,8 +184,7 @@ static void on_response_get_device_info(GObject *source_object, GAsyncResult *re
                g_free(device_name);
        }
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -219,12 +202,11 @@ static void on_response_get_flight_mode(GObject *source_object, GAsyncResult *re
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(bi)", &mode, &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &mode, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &mode);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -252,7 +234,7 @@ EXPORT_API int tel_process_power_command(TapiHandle *handle, tapi_power_phone_cm
 
        if (cmd > TAPI_PHONE_POWER_MAX)
                return TAPI_API_INVALID_INPUT;
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", cmd);
 
@@ -293,7 +275,7 @@ EXPORT_API int tel_set_flight_mode(TapiHandle *handle, tapi_power_flight_mode_ty
        else
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(b)", b_mode);
 
@@ -315,7 +297,7 @@ EXPORT_API int tel_get_flight_mode(TapiHandle *handle, tapi_response_cb callback
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                        DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
@@ -335,7 +317,7 @@ EXPORT_API int tel_get_misc_me_version(TapiHandle *handle, tapi_response_cb call
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                        DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
@@ -409,7 +391,7 @@ EXPORT_API int tel_get_misc_me_imei(TapiHandle *handle, tapi_response_cb callbac
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        sdbg("[%s] Func Entrance", handle->cp_name);
 
@@ -464,7 +446,7 @@ EXPORT_API int tel_get_misc_me_sn(TapiHandle *handle, tapi_response_cb callback,
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        sdbg("[%s] Func Entrance", handle->cp_name);
 
@@ -551,7 +533,7 @@ EXPORT_API int tel_get_device_info(TapiHandle *handle, tapi_response_cb callback
 
        dbg("Func Entrance");
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                        DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
index 2742998c3268a04d878b1b10684a773b59671022..38d2be98ec9f6cf9f7bf28657ce72767fdac8bab 100644 (file)
@@ -162,7 +162,7 @@ static void on_signal_registration_status(TapiHandle *handle, GVariant *param,
 
        g_variant_get(param, "(iiib)", &noti.cs, &noti.ps, &noti.type, &noti.is_roaming);
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 static void on_signal_strength(TapiHandle *handle, GVariant *param,
@@ -172,7 +172,7 @@ static void on_signal_strength(TapiHandle *handle, GVariant *param,
 
        g_variant_get(param, "(i)", &noti.dbm);
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 static void on_signal_cell_info(TapiHandle *handle, GVariant *param,
@@ -183,7 +183,7 @@ static void on_signal_cell_info(TapiHandle *handle, GVariant *param,
        memset(&noti, 0, sizeof(struct tel_noti_network_cell_info));
        g_variant_get(param, "(ii)", &noti.lac, &noti.cell_id);
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 static void on_signal_change(TapiHandle *handle, GVariant *param,
@@ -203,7 +203,7 @@ static void on_signal_change(TapiHandle *handle, GVariant *param,
                g_free(plmn);
        }
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 static void on_signal_time_info(TapiHandle *handle, GVariant *param,
@@ -223,7 +223,7 @@ static void on_signal_time_info(TapiHandle *handle, GVariant *param,
                g_free(plmn);
        }
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 static void on_signal_identity(TapiHandle *handle, GVariant *param,
@@ -249,7 +249,7 @@ static void on_signal_identity(TapiHandle *handle, GVariant *param,
                g_free(f_name);
        }
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 static void on_emergency_callback_mode(TapiHandle *handle, GVariant *param,
@@ -261,7 +261,7 @@ static void on_emergency_callback_mode(TapiHandle *handle, GVariant *param,
 
        g_variant_get(param, "(i)", &noti.mode);
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 static void on_signal_default_data_subscription(TapiHandle *handle, GVariant *param,
@@ -273,7 +273,7 @@ static void on_signal_default_data_subscription(TapiHandle *handle, GVariant *pa
 
        g_variant_get(param, "(i)", &noti.default_subs);
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 static void on_signal_default_subscription(TapiHandle *handle, GVariant *param,
@@ -285,7 +285,7 @@ static void on_signal_default_subscription(TapiHandle *handle, GVariant *param,
 
        g_variant_get(param, "(i)", &noti.default_subs);
 
-       CALLBACK_CALL(&noti);
+       TAPI_INVOKE_NOTI_CALLBACK(&noti);
 }
 
 
@@ -439,7 +439,7 @@ static void on_response_search_network(GObject *source_object,
        memset(&list, 0, sizeof(TelNetworkPlmnList_t));
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(aa{sv}i)", &iter, &result);
 
@@ -464,8 +464,7 @@ static void on_response_search_network(GObject *source_object,
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &list, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &list);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -482,12 +481,11 @@ static void on_response_get_network_selection_mode(GObject *source_object,
        int mode = 0;
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &mode, &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &mode, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &mode);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -503,12 +501,11 @@ static void on_response_default_set(GObject *source_object, GAsyncResult *res,
        GVariant *dbus_result;
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -533,7 +530,7 @@ static void on_response_get_network_preferred_plmn(GObject *source_object,
        memset(&list, 0, sizeof(TelNetworkPreferredPlmnList_t));
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(aa{sv}i)", &iter, &result);
 
@@ -565,8 +562,7 @@ static void on_response_get_network_preferred_plmn(GObject *source_object,
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &list, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &list);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -583,12 +579,11 @@ static void on_response_get_network_mode(GObject *source_object,
        int mode = 0;
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &mode, &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &mode, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &mode);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -614,7 +609,7 @@ static void on_response_get_network_serving(GObject *source_object,
        memset(&data, 0, sizeof(TelNetworkServing_t));
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(a{sv}i)", &iter, &result);
 
@@ -643,8 +638,7 @@ static void on_response_get_network_serving(GObject *source_object,
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -670,7 +664,7 @@ static void on_response_get_neighboring_cell_info(GObject *source_object,
        memset(&list, 0, sizeof(TelNetworkNeighboringCellInfo_t));
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(aa{sv}i)", &iter, &result);
 
@@ -736,8 +730,7 @@ static void on_response_get_neighboring_cell_info(GObject *source_object,
        list.umts_list_count = umts_index;
        dbg("act=%d, count(geran:%d, umts:%d)", list.serving.act, geran_index, umts_index);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &list, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &list);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -752,7 +745,7 @@ static void on_response_select_network(GObject *source_object, GAsyncResult *res
        GVariant *dbus_result;
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
        g_variant_get(dbus_result, "(i)", &result);
 
        /* Map result received from libtcore to TapiResult_t */
@@ -774,8 +767,7 @@ static void on_response_select_network(GObject *source_object, GAsyncResult *res
                }
        }
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -792,12 +784,11 @@ static void on_response_get_network_roaming_preference(GObject *source_object,
        TelNetworkPrefNetType_t roam_pref;
 
        dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &roam_pref, &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &roam_pref, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &roam_pref);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -809,7 +800,7 @@ EXPORT_API int tel_search_network(TapiHandle *handle, tapi_response_cb callback,
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL && callback != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        msg("[%s] network_search requested", handle->cp_name);
 
@@ -830,7 +821,7 @@ EXPORT_API int tel_get_network_selection_mode(struct tapi_handle *handle, tapi_r
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL && callback != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                        DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_NETWORK_INTERFACE,
@@ -848,7 +839,7 @@ EXPORT_API int tel_select_network_automatic(struct tapi_handle *handle, tapi_res
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(isi)",
                        0, /* Automatic */
@@ -873,7 +864,7 @@ EXPORT_API int tel_select_network_manual(struct tapi_handle *handle, const char
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL && _check_plmn(plmn), TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(isi)",
                        1, /* Manual */
@@ -908,7 +899,7 @@ EXPORT_API int tel_set_network_preferred_plmn(
 
        dbg("Func Entrance");
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        switch (info->SystemType) {
        case TAPI_NETWORK_SYSTEM_GSM:
@@ -959,7 +950,7 @@ EXPORT_API int tel_get_network_preferred_plmn(TapiHandle *handle, tapi_response_
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL && callback != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                        DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_NETWORK_INTERFACE,
@@ -978,7 +969,7 @@ EXPORT_API int tel_set_network_mode(TapiHandle *handle, int mode, tapi_response_
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL &&
                                                                _check_network_mode(mode), TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)",
                        mode);
@@ -1000,7 +991,7 @@ EXPORT_API int tel_get_network_mode(TapiHandle *handle, tapi_response_cb callbac
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL && callback != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        dbg("[%s] Func Entrance", handle->cp_name);
 
@@ -1019,7 +1010,7 @@ EXPORT_API int tel_cancel_network_manual_search(TapiHandle *handle, tapi_respons
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        msg("[%s] network search cancel requested", handle->cp_name);
 
@@ -1038,7 +1029,7 @@ EXPORT_API int tel_get_network_serving(TapiHandle *handle, tapi_response_cb call
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL && callback != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        dbg("[%s] Func Entrance", handle->cp_name);
 
@@ -1057,7 +1048,7 @@ EXPORT_API int tel_get_network_neighboring_cell_info(TapiHandle *handle, tapi_re
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL && callback != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        dbg("[%s] Func Entrance", handle->cp_name);
 
@@ -1077,7 +1068,7 @@ EXPORT_API int tel_set_network_default_data_subscription(TapiHandle *handle, tap
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        msg("[%s] Func Entrance", handle->cp_name);
 
@@ -1099,7 +1090,7 @@ EXPORT_API int tel_set_network_emergency_callback_mode(TapiHandle *handle, TelNe
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL &&
                                                                _check_emergency_callback_mode(mode), TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", mode);
 
@@ -1122,7 +1113,7 @@ EXPORT_API int tel_set_network_roaming_preference(TapiHandle *handle, TelNetwork
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL &&
                                                                _check_roaming_preference(roam_pref), TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", roam_pref);
 
@@ -1144,7 +1135,7 @@ EXPORT_API int tel_get_network_roaming_preference(TapiHandle *handle, tapi_respo
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle != NULL && callback != NULL, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        dbg("[%s] Func Entrance", handle->cp_name);
 
@@ -1201,7 +1192,7 @@ EXPORT_API int tel_set_network_default_subscription(TapiHandle *handle, tapi_res
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        dbg("[%s] Set 'default' Subscription (for CS)", handle->cp_name);
 
diff --git a/src/tapi_oem.c b/src/tapi_oem.c
new file mode 100644 (file)
index 0000000..8f5c822
--- /dev/null
@@ -0,0 +1,212 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "tapi_common.h"
+#include "TapiUtility.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiOem.h"
+#include "TelOem.h"
+
+#define OEM_DATA_LEN_MAX       (10 * 1024)
+#define OEM_DEFAULT_TIMEOUT    (30 * 1000)
+
+struct oem_resp_data {
+       struct tapi_handle *handle;
+       void* user_data;
+       tapi_response_cb cb_fn;
+       int oem_id;
+};
+
+#define MAKE_OEM_RESP_CB_DATA(data, handle, cb, user_data, oem_id)  do { \
+       if (!handle) \
+               return TAPI_API_INVALID_INPUT; \
+       \
+       data = g_try_malloc0(sizeof(struct oem_resp_data)); \
+       if (data == NULL) \
+               return TAPI_API_SYSTEM_OUT_OF_MEM; \
+       data->handle = handle; \
+       data->cb_fn = cb; \
+       data->user_data = user_data; \
+       data->oem_id = oem_id; \
+} while (0)
+
+static void on_response_oem_data_async(GObject *source_object,
+       GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       struct oem_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       GVariant *dbus_result;
+       TelOemData_t oem_data = {0};
+       gchar *data = NULL;
+       gsize decoded_data_len = 0;
+
+       dbus_result = g_dbus_connection_call_finish(G_DBUS_CONNECTION(source_object), res, &error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
+
+       g_variant_get(dbus_result, "(is)", &oem_data.oem_id, &data);
+
+       oem_data.data = g_base64_decode((const gchar *)data, &decoded_data_len);
+       if (oem_data.data) {
+               result = TAPI_API_SUCCESS;
+               oem_data.data_len = (unsigned int)decoded_data_len;
+
+               dbg("id:[0x%d] len:[%d]", oem_data.oem_id, oem_data.data_len);
+
+               TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &oem_data);
+
+               g_free(oem_data.data);
+       } else {
+               TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
+       }
+
+       g_free(data);
+
+       g_free(evt_cb_data);
+       g_variant_unref(dbus_result);
+}
+
+EXPORT_API int tel_send_oem_data(TapiHandle *handle, int oem_id,
+       void *data, unsigned int data_len)
+{
+       GError *error = NULL;
+       GVariant *rst = NULL;
+       GVariant *inparam = NULL;
+       gint result;
+       gchar *encoded_data = NULL;
+
+       dbg("oem_id(0x%x) data(%p) data len(%d)", oem_id, data, data_len);
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(data, TAPI_API_INVALID_PTR);
+
+       if (data_len > OEM_DATA_LEN_MAX)
+               return TAPI_API_INVALID_INPUT;
+
+       encoded_data = g_base64_encode((const guchar *)data, data_len);
+       inparam = g_variant_new("(is)", oem_id, encoded_data);
+
+       rst = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+               handle->path, DBUS_TELEPHONY_OEM_INTERFACE,
+               "SendOemData", inparam, NULL, G_DBUS_CALL_FLAGS_NONE,
+               TAPI_DEFAULT_TIMEOUT, handle->ca, &error);
+       g_free(encoded_data);
+       if (!rst) {
+               dbg("error to data(%s)", error->message);
+               g_error_free(error);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       g_variant_get(rst, "(i)", &result);
+       if (result) {
+               result = TAPI_API_SUCCESS;
+       } else {
+               dbg("error (%d)", result);
+               result = TAPI_API_OPERATION_FAILED;
+       }
+       g_variant_unref(rst);
+       return result;
+}
+
+EXPORT_API int tel_send_oem_data_sync(TapiHandle *handle, int oem_id,
+       void *data, unsigned int data_len, TelOemData_t *outparam)
+{
+       GError *error = NULL;
+       GVariant *inparam = NULL;
+       gchar *encoded_data = NULL;
+       GVariant *rst = NULL;
+       gchar *pdata = NULL;
+       gsize decoded_data_len = 0;
+
+       dbg("oem_id(0x%x) data(%p) data len(%d)", oem_id, data, data_len);
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(data, TAPI_API_INVALID_PTR);
+
+       if (data_len > OEM_DATA_LEN_MAX)
+               return TAPI_API_INVALID_INPUT;
+
+       encoded_data = g_base64_encode((const guchar *)data, data_len);
+       inparam = g_variant_new("(is)", oem_id, encoded_data);
+
+       rst = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+               handle->path, DBUS_TELEPHONY_OEM_INTERFACE,
+               "SendOemDataWithResponse", inparam, NULL, G_DBUS_CALL_FLAGS_NONE,
+               TAPI_DEFAULT_TIMEOUT, handle->ca, &error);
+       g_free(encoded_data);
+
+       if (!rst) {
+               dbg("error to data(%s)", error->message);
+               g_error_free(error);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       g_variant_get(rst, "(is)", &outparam->oem_id, &pdata);
+
+       outparam->data = g_base64_decode((const gchar *)pdata, &decoded_data_len);
+       if (decoded_data_len) {
+               outparam->data_len = (unsigned int)decoded_data_len;
+               dbg("id:[0x%x] len:[%d]", outparam->oem_id, outparam->data_len);
+       }
+
+       g_free(pdata);
+       g_variant_unref(rst);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_send_oem_data_async(TapiHandle *handle, int oem_id,
+       void *data, unsigned int data_len, tapi_response_cb callback, void *user_data)
+{
+       GVariant *inparam = NULL;
+       gchar *encoded_data = NULL;
+       struct oem_resp_data *evt_cb_data = NULL;
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(data, TAPI_API_INVALID_PTR);
+
+       if (data_len > OEM_DATA_LEN_MAX)
+               return TAPI_API_INVALID_INPUT;
+
+       dbg("oem_id(0x%x) data(%p) data len(%d)", oem_id, data, data_len);
+
+       MAKE_OEM_RESP_CB_DATA(evt_cb_data, handle, callback, user_data, oem_id);
+
+       encoded_data = g_base64_encode((const guchar *)data, data_len);
+       inparam = g_variant_new("(is)", oem_id, encoded_data);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+               handle->path, DBUS_TELEPHONY_OEM_INTERFACE,
+               "SendOemDataWithResponse", inparam, NULL, G_DBUS_CALL_FLAGS_NONE,
+               OEM_DEFAULT_TIMEOUT, handle->ca, on_response_oem_data_async, evt_cb_data);
+
+       g_free(encoded_data);
+
+       return TAPI_API_SUCCESS;
+}
index 9eae10295c8d467966206e9da430e52d81f83fdf..b412e70b2f25de5f3f910488d2d279952f3d1530 100644 (file)
@@ -57,7 +57,7 @@ static void on_response_get_sim_pb_count(GObject *source_object, GAsyncResult *r
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iiii)",
                        &result,
@@ -68,8 +68,7 @@ static void on_response_get_sim_pb_count(GObject *source_object, GAsyncResult *r
        pb_cnt.UsedRecordCount = used;
        pb_cnt.TotalRecordCount = total;
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &pb_cnt, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &pb_cnt);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -91,7 +90,7 @@ static void on_response_get_sim_pb_meta_info(GObject *source_object, GAsyncResul
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iiiiiii)",
                        &result,
@@ -108,8 +107,7 @@ static void on_response_get_sim_pb_meta_info(GObject *source_object, GAsyncResul
        pb_entry.PbTextLenMax = tmax;
        pb_entry.PbUsedCount = used;
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &pb_entry, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &pb_entry);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -134,7 +132,7 @@ static void on_response_get_sim_pb_usim_meta_info(GObject *source_object, GAsync
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iaa{sv})", &result, &iter);
        list.FileTypeCount = g_variant_iter_n_children(iter);
@@ -156,8 +154,7 @@ static void on_response_get_sim_pb_usim_meta_info(GObject *source_object, GAsync
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &list, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &list);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -189,7 +186,7 @@ static void on_response_read_sim_pb_record(GObject *source_object, GAsyncResult
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iiiisisisisisisissssi)",
                        &result,
@@ -243,8 +240,7 @@ static void on_response_read_sim_pb_record(GObject *source_object, GAsyncResult
                                pb_rec.pb_control);
        }
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &pb_rec, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &pb_rec);
 
        g_free(name);
        g_free(number);
@@ -272,12 +268,11 @@ static void on_response_update_sim_pb_record(GObject *source_object, GAsyncResul
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -294,12 +289,11 @@ static void on_response_delete_sim_pb_record(GObject *source_object, GAsyncResul
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -356,7 +350,7 @@ EXPORT_API int tel_get_sim_pb_count(TapiHandle *handle, TelSimPbType_t pb_type,
                        && (pb_type     != TAPI_SIM_PB_3GSIM) && (pb_type != TAPI_SIM_PB_AAS) && (pb_type != TAPI_SIM_PB_GAS))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", pb_type);
 
@@ -383,7 +377,7 @@ EXPORT_API int tel_get_sim_pb_meta_info(TapiHandle *handle, TelSimPbType_t pb_ty
                        && (pb_type     != TAPI_SIM_PB_3GSIM) && (pb_type != TAPI_SIM_PB_AAS) && (pb_type != TAPI_SIM_PB_GAS))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", pb_type);
 
@@ -406,7 +400,7 @@ EXPORT_API int tel_get_sim_pb_usim_meta_info(TapiHandle *handle, tapi_response_c
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                        DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_PB_INTERFACE,
@@ -434,7 +428,7 @@ EXPORT_API int tel_read_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type
                        && (pb_type     != TAPI_SIM_PB_3GSIM) && (pb_type != TAPI_SIM_PB_AAS) && (pb_type != TAPI_SIM_PB_GAS))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", pb_type, pb_index);
 
@@ -467,7 +461,7 @@ EXPORT_API int tel_update_sim_pb_record(TapiHandle *handle, const TelSimPbRecord
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        msg("type[%d], index[%d], next_index[%d]", req_data->phonebook_type, req_data->index, req_data->next_index);
        dbg("name[%s], dcs[%d]", req_data->name, req_data->dcs);
@@ -529,7 +523,7 @@ EXPORT_API int tel_delete_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_ty
                        && (pb_type     != TAPI_SIM_PB_3GSIM) && (pb_type != TAPI_SIM_PB_AAS) && (pb_type != TAPI_SIM_PB_GAS))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", pb_type, pb_index);
 
index ba87cd791f2e1e60b1f6724c8020afdd1d1f9414..399eaae347b7d9106bc4cb4592027cb958805079 100644 (file)
@@ -45,12 +45,11 @@ static void on_response_sap_connect(GObject *source_object, GAsyncResult *res, g
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &max_msg_size);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, (void *)&max_msg_size, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &max_msg_size);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -65,7 +64,7 @@ EXPORT_API int tel_req_sap_connect(TapiHandle *handle, int max_msg_size, tapi_re
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", max_msg_size);
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
@@ -91,12 +90,11 @@ static void on_response_sap_disconnect(GObject *source_object, GAsyncResult *res
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -110,7 +108,7 @@ EXPORT_API int tel_req_sap_disconnect(TapiHandle *handle, tapi_response_cb callb
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
                g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
                        handle->path,
@@ -135,12 +133,11 @@ static void on_response_sap_connection_status(GObject *source_object, GAsyncResu
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -154,7 +151,7 @@ EXPORT_API int tel_req_sap_connection_status(TapiHandle *handle, tapi_response_c
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
                handle->path,
@@ -187,7 +184,7 @@ static void on_response_sap_transfer_atr(GObject *source_object, GAsyncResult *r
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        /*      dbg("dbus_result type_format(%s)", g_variant_get_type_string(dbus_result));*/
        g_variant_get(dbus_result, "(i@v)", &result, &param_gv);
@@ -203,8 +200,7 @@ static void on_response_sap_transfer_atr(GObject *source_object, GAsyncResult *r
        g_variant_unref(inner_gv);
        g_variant_unref(param_gv);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, (void *)&r_atr, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &r_atr);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -218,7 +214,7 @@ EXPORT_API int tel_req_sap_transfer_atr(TapiHandle *handle, tapi_response_cb cal
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
                handle->path,
@@ -251,7 +247,7 @@ static void on_response_sap_transfer_apdu(GObject *source_object, GAsyncResult *
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i@v)", &result, &param_gv);
        inner_gv = g_variant_get_variant(param_gv);
@@ -266,8 +262,7 @@ static void on_response_sap_transfer_apdu(GObject *source_object, GAsyncResult *
        g_variant_unref(inner_gv);
        g_variant_unref(param_gv);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, (void *)&r_apdu, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &r_apdu);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -286,7 +281,7 @@ EXPORT_API int tel_req_sap_transfer_apdu(TapiHandle *handle, TelSapApduData_t *a
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(apdu_data, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_variant_builder_init(&builder, G_VARIANT_TYPE("ay"));
        for (i = 0; i < apdu_data->apdu_len; i++) {
@@ -319,12 +314,11 @@ static void on_response_sap_transport_protocol(GObject *source_object, GAsyncRes
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -340,7 +334,7 @@ EXPORT_API int tel_req_sap_transport_protocol(TapiHandle *handle,
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", protocol);
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
@@ -366,12 +360,11 @@ static void on_response_sap_power_operation(GObject *source_object, GAsyncResult
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -387,7 +380,7 @@ EXPORT_API int tel_req_sap_power_operation(TapiHandle *handle,
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        switch (power_mode) {
        case TAPI_SIM_SAP_POWER_SIM_ON_REQ:
@@ -432,12 +425,11 @@ static void on_response_sap_cardreader_status(GObject *source_object, GAsyncResu
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &reader_status);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, (void *)&reader_status, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &reader_status);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -451,7 +443,7 @@ EXPORT_API int tel_req_sap_cardreader_status(TapiHandle *handle, tapi_response_c
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
                handle->path,
index ba4835d5ff4e40aa4e43c4a6044dd3f97d37e4c2..0115bc210d5a8b78405f1c4cf27e6af70e3754c2 100644 (file)
@@ -253,13 +253,12 @@ static void on_response_menu_selection_envelop(GObject *source_object, GAsyncRes
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &envelop_rsp);
        dbg("menu selection envelop result(%d) envelop response(%d)", result, envelop_rsp);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &envelop_rsp, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &envelop_rsp);
 
        g_variant_unref(dbus_result);
        g_free(evt_cb_data);
@@ -278,13 +277,12 @@ static void on_response_download_event_envelop(GObject *source_object, GAsyncRes
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(ii)", &result, &envelop_rsp);
        dbg("download event envelop result(%d) envelop response(%d)", result, envelop_rsp);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &envelop_rsp, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &envelop_rsp);
 
        g_variant_unref(dbus_result);
        g_free(evt_cb_data);
@@ -314,7 +312,7 @@ EXPORT_API int tel_select_sat_menu(TapiHandle *handle, const TelSatMenuSelection
        TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(pMenuSelect, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        item_id = pMenuSelect->itemIdentifier;
        help_req = ((pMenuSelect->bIsHelpRequested != 0) ? TRUE : FALSE);
@@ -369,7 +367,7 @@ EXPORT_API int tel_download_sat_event(TapiHandle *handle, const TelSatEventDownl
                return TAPI_API_SAT_EVENT_NOT_REQUIRED_BY_USIM;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        event_download_type = pEventData->eventDownloadType;
        src_dev = TAPI_SAT_DEVICE_ID_ME;
@@ -408,25 +406,8 @@ EXPORT_API int tel_get_sat_main_menu_info(TapiHandle *handle, TelSatSetupMenuInf
        gint result, command_id, item_cnt;
        gboolean b_present, b_helpinfo, b_updated;
        GVariant *items = NULL;
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-       GVariant *icon_id = NULL;
-       GVariant *icon_list = NULL;
-       int sat_index = 0, icon_index = 0;
-       /* Used to get icon data */
-       GVariant *unbox;
-       gboolean is_exist;
-       gint icon_quali, icon_identifier, width, height, ics, icon_data_len;
-       gchar *icon_data = NULL;
-       /* Used to get icon list data */
-       GVariant *unbox_list, *unbox_list_info ;
-       GVariantIter *iter, *iter2;
-       GVariant *icon_list_info;
-       gboolean is_list_exist;
-       gint icon_list_quali, list_cnt, icon_list_identifier, list_width, list_height, list_ics, icon_list_data_len;
-       gchar *icon_list_data = NULL;
-#else
        int sat_index = 0;
-#endif
+
        dbg("Func Entrance ");
 
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
@@ -447,13 +428,9 @@ EXPORT_API int tel_get_sat_main_menu_info(TapiHandle *handle, TelSatSetupMenuInf
 
        dbg("menu_info type_format(%s)", g_variant_get_type_string(rst));
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-       g_variant_get(rst, "(iibs@vibb@v@v)", &result, &command_id, &b_present, &title, &items, &item_cnt,
-                       &b_helpinfo, &b_updated, &icon_id, &icon_list);
-#else
        g_variant_get(rst, "(iibs@vibb)", &result, &command_id, &b_present, &title, &items, &item_cnt,
                        &b_helpinfo, &b_updated);
-#endif
+
        g_variant_unref(rst);
 
        pMainMenu->commandId = command_id;
@@ -493,60 +470,6 @@ EXPORT_API int tel_get_sat_main_menu_info(TapiHandle *handle, TelSatSetupMenuInf
        pMainMenu->bIsSatMainMenuHelpInfo = (b_helpinfo ? 1 : 0);
        pMainMenu->bIsUpdatedSatMainMenu = (b_updated ? 1 : 0);
 
-#if defined(TIZEN_SUPPORT_SAT_ICON)
-       if (icon_id) {
-               unbox = g_variant_get_variant(icon_id);
-               g_variant_get(unbox, "a(biiiiiis)", &iter);
-
-               while (g_variant_iter_loop(iter, "(biiiiiis)", &is_exist, &icon_quali, &icon_identifier, &width, &height, &ics, &icon_data_len, &icon_data)) {
-                       if (!is_exist)
-                               break;
-                       pMainMenu->iconId.bIsPresent = is_exist;
-                       pMainMenu->iconId.iconQualifier = icon_quali;
-                       pMainMenu->iconId.iconIdentifier = icon_identifier;
-                       pMainMenu->iconId.iconInfo.width = width;
-                       pMainMenu->iconId.iconInfo.height = height;
-                       pMainMenu->iconId.iconInfo.ics = ics;
-                       if (icon_data_len > 0) {
-                               pMainMenu->iconId.iconInfo.iconDataLen = icon_data_len;
-                               memcpy(pMainMenu->iconId.iconInfo.iconFile, icon_data, icon_data_len);
-                       }
-                       dbg("icon exist(%d), icon_quali: (%d), icon_id: (%d), width: (%d), height: (%d), ics: (%d), icon_data_len: (%d)", pMainMenu->iconId.bIsPresent, pMainMenu->iconId.iconQualifier, pMainMenu->iconId.iconIdentifier, pMainMenu->iconId.iconInfo.width,
-                               pMainMenu->iconId.iconInfo.height, pMainMenu->iconId.iconInfo.ics, pMainMenu->iconId.iconInfo.iconDataLen);
-               }
-               g_variant_iter_free(iter);
-       }
-
-       if (icon_list) {
-               unbox_list = g_variant_get_variant(icon_list);
-               g_variant_get(unbox_list, "a(biiv)", &iter);
-
-               while (g_variant_iter_loop(iter, "(biiv)", &is_list_exist, &icon_list_quali, &list_cnt, &icon_list_info)) {
-                       if (!is_list_exist)
-                               break;
-                       pMainMenu->iconIdList.bIsPresent = is_list_exist;
-                       pMainMenu->iconIdList.iconListQualifier = icon_list_quali;
-                       pMainMenu->iconIdList.iconCount = list_cnt;
-
-                       unbox_list_info = g_variant_get_variant(icon_list_info);
-                       g_variant_get(unbox_list_info, "a(iiiiis)", &iter2);
-
-                       while (g_variant_iter_loop(iter2, "(iiiiis)", &icon_list_identifier, &list_width, &list_height, &list_ics, &icon_list_data_len, &icon_list_data)) {
-                               pMainMenu->iconIdList.iconIdentifierList[icon_index] = icon_identifier;
-                               pMainMenu->iconIdList.iconInfo[icon_index].width = list_width;
-                               pMainMenu->iconIdList.iconInfo[icon_index].height = list_height;
-                               pMainMenu->iconIdList.iconInfo[icon_index].ics = list_ics;
-                               if (icon_list_data_len > 0) {
-                                       pMainMenu->iconIdList.iconInfo[icon_index].iconDataLen = icon_list_data_len;
-                                       memcpy(pMainMenu->iconIdList.iconInfo[icon_index].iconFile, icon_list_data, icon_list_data_len);
-                               }
-                               icon_index++;
-                       }
-                       g_variant_iter_free(iter2);
-               }
-               g_variant_iter_free(iter);
-       }
-#endif
        dbg("result (%d)", result);
        dbg("command id (%d)", pMainMenu->commandId);
        dbg("menu present (%d)", pMainMenu->bIsMainMenuPresent);
index 0f65b2008e3ced0ad448cfa986635b07fef33d77..746a1307c73c7fb51a751158f4570ee37c7e0b0d 100644 (file)
        dbg("Func Enterance. cp_name[%s]", handle->cp_name); \
 }
 
-#define TAPI_SIM_RESP_CB_ENTER(evt_cb_data) { \
-       if (evt_cb_data && evt_cb_data->handle) \
-               dbg("Func Enterance. cp_name[%s]", evt_cb_data->handle->cp_name); \
-}
-
-#define TAPI_SIM_CHECK_TAPI_STATE() { \
+#define TAPI_SIM_CHECK_TAPI_STATE() do { \
        TAPI_SIM_FUNCTION_ENTER(handle); \
        if (_tel_check_tapi_state() != 0) \
                return TAPI_API_SERVICE_NOT_READY; \
-}
+} while (0)
 
-#define TAPI_SIM_CHECK_ERR_MSG(error) { \
+#define TAPI_SIM_CHECK_ERR_MSG(error) do { \
                TapiResult_t ret = TAPI_API_OPERATION_FAILED; \
                if (error) { \
                        ret = __check_err_msg(error->message); \
                        g_error_free(error); \
                } \
                return ret; \
-}
-
-#define TAPI_SIM_CALL_CBFUNC(evtcbdata, result, data) { \
-               if (evtcbdata->cb_fn) { \
-                       evtcbdata->cb_fn(evtcbdata->handle, result, data, evtcbdata->user_data); \
-               } \
-}
-
-#define TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evtcbdata) do { \
-               TapiResult_t ret = TAPI_API_OPERATION_FAILED; \
-               if (error) { \
-                       ret = __check_err_msg(error->message); \
-                       g_error_free(error); \
-               } \
-               TAPI_SIM_CALL_CBFUNC(evtcbdata, ret, NULL); \
-               g_free(evtcbdata); \
-               return; \
 } while (0)
 
-#define SIM_CHECK_ERROR(error, evt_cb_data) \
+#define TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evtcbdata) do { \
+       TapiResult_t ret = TAPI_API_OPERATION_FAILED; \
        if (error) { \
-               warn("(%s) dbus error = %d (%s)", evt_cb_data->handle->cp_name, error->code, error->message); \
-               if (error->code == G_IO_ERROR_CANCELLED \
-                               && error->domain == G_IO_ERROR) { \
-                       /* Do not invoke callback in case of deinit TapiHandle */ \
-                       g_error_free(error); \
-                       g_free(evt_cb_data); \
-                       return; \
-               } else if (strstr(error->message, "No access rights")) { \
-                       err("Access denied"); \
-                       if (evt_cb_data->cb_fn) \
-                               evt_cb_data->cb_fn(evt_cb_data->handle, TAPI_ERROR_ACCESS_DENIED, NULL, evt_cb_data->user_data); \
-                       g_error_free(error); \
-                       g_free(evt_cb_data); \
-                       return; \
-               } else if (strstr(error->message, "Operation not supported")) { \
-                       err("Operation not supported"); \
-                       if (evt_cb_data->cb_fn) \
-                               evt_cb_data->cb_fn(evt_cb_data->handle, TAPI_ERROR_OPERATION_NOT_SUPPORTED, NULL, evt_cb_data->user_data); \
-                       g_error_free(error); \
-                       g_free(evt_cb_data); \
-                       return; \
-               } \
-       }
-
-struct tapi_sim_resp_data {
-       struct tapi_resp_data tapi_resp;
-       TapiHandle *handle;
-};
+               ret = __check_err_msg(error->message); \
+               g_error_free(error); \
+       } \
+       TAPI_INVOKE_RESP_CALLBACK(evtcbdata, ret, NULL); \
+       g_free(evtcbdata); \
+       return; \
+} while (0)
 
 static TapiResult_t __check_err_msg(gchar *err_msg)
 {
@@ -169,12 +127,11 @@ static void on_response_get_sim_iccid(GObject *source_object, GAsyncResult *res,
        TelSimIccIdInfo_t iccid_info;
        gchar *iccid = NULL;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&iccid_info, 0, sizeof(TelSimIccIdInfo_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -188,7 +145,147 @@ static void on_response_get_sim_iccid(GObject *source_object, GAsyncResult *res,
        memcpy(iccid_info.icc_num, iccid, iccid_info.icc_length);
        g_free(iccid);
 
-       TAPI_SIM_CALL_CBFUNC(evt_cb_data, result, &iccid_info);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &iccid_info);
+       g_free(evt_cb_data);
+       g_variant_unref(dbus_result);
+}
+
+static void on_response_get_sim_impi(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimAccessResult_t result;
+       TelSimImpi_t impi_info = {0,};
+
+       conn = G_DBUS_CONNECTION(source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
+
+       if (dbus_result == NULL)
+               TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
+
+       g_variant_get(dbus_result, "(is)", &result, &impi_info.impi);
+
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &impi_info);
+       g_free(impi_info.impi);
+       g_free(evt_cb_data);
+       g_variant_unref(dbus_result);
+}
+
+static void on_response_get_sim_impu(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+       GVariant *value = NULL;
+       TelSimAccessResult_t result;
+       TelSimImpuList_t impu_list = {0,};
+       unsigned int i = 0;
+
+       conn = G_DBUS_CONNECTION(source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
+
+       if (dbus_result == NULL)
+               TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
+
+       g_variant_get(dbus_result, "(iaa{sv})", &result, &iter);
+
+       impu_list.count = g_variant_iter_n_children(iter);
+       impu_list.list = g_malloc0(sizeof(TelSimImpu_t) * impu_list.count);
+
+       while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+               while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+                       if (!g_strcmp0(key, "impu"))
+                               impu_list.list[i].impu = g_strdup(g_variant_get_string(value, NULL));
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       g_variant_iter_free(iter);
+
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &impu_list);
+       for (i = 0; i < impu_list.count; i++)
+               g_free(impu_list.list[i].impu);
+
+       g_free(impu_list.list);
+       g_free(evt_cb_data);
+       g_variant_unref(dbus_result);
+}
+
+static void on_response_get_sim_domain(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimAccessResult_t result;
+       TelSimDomain_t domain_info = {0,};
+
+       conn = G_DBUS_CONNECTION(source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
+
+       if (dbus_result == NULL)
+               TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
+
+       g_variant_get(dbus_result, "(is)", &result, &domain_info.domain);
+
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &domain_info);
+       g_free(domain_info.domain);
+       g_free(evt_cb_data);
+       g_variant_unref(dbus_result);
+}
+
+static void on_response_get_sim_pcscf(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+       GVariant *value = NULL;
+       TelSimAccessResult_t result;
+       TelSimPcscfList_t pcscf_list = {0,};
+       unsigned int i = 0;
+
+       conn = G_DBUS_CONNECTION(source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
+
+       if (dbus_result == NULL)
+               TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
+
+       g_variant_get(dbus_result, "(iaa{sv})", &result, &iter);
+
+       pcscf_list.count = g_variant_iter_n_children(iter);
+       pcscf_list.list = g_malloc0(sizeof(TelSimPcscf_t) * pcscf_list.count);
+
+       while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+               while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+                       if (!g_strcmp0(key, "type"))
+                               pcscf_list.list[i].type = g_variant_get_int32(value);
+                       else if (!g_strcmp0(key, "pcscf"))
+                               pcscf_list.list[i].pcscf = g_strdup(g_variant_get_string(value, NULL));
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       g_variant_iter_free(iter);
+
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &pcscf_list);
+       for (i = 0; i < pcscf_list.count; i++)
+               g_free(pcscf_list.list[i].pcscf);
+
+       g_free(pcscf_list.list);
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
@@ -204,10 +301,9 @@ static void on_response_get_sim_language(GObject *source_object, GAsyncResult *r
        TelSimLanguagePreferenceCode_t lang = TAPI_SIM_LP_LANG_UNSPECIFIED;
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -231,10 +327,9 @@ static void on_response_set_sim_language(GObject *source_object, GAsyncResult *r
        struct tapi_resp_data *evt_cb_data = user_data;
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -265,12 +360,11 @@ static void on_response_get_sim_callforwarding_info(GObject *source_object, GAsy
        TelSimCallForwardingResp_t cf;
        int i = 0;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&cf, 0, sizeof(TelSimCallForwardingResp_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -336,10 +430,9 @@ static void on_response_set_sim_callforwarding_info(GObject *source_object, GAsy
        struct tapi_resp_data *evt_cb_data = user_data;
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -370,12 +463,11 @@ static void on_response_get_sim_messagewaiting_info(GObject *source_object, GAsy
        TelSimMessageWaitingResp_t mw;
        int i = 0;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&mw, 0, sizeof(TelSimMessageWaitingResp_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -441,10 +533,9 @@ static void on_response_set_sim_messagewaiting_info(GObject *source_object, GAsy
        struct tapi_resp_data *evt_cb_data = user_data;
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -475,12 +566,11 @@ static void on_response_get_sim_mailbox_info(GObject *source_object, GAsyncResul
        int i = 0;
        gboolean b_cphs = 0;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&list, 0, sizeof(TelSimMailboxList_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -540,10 +630,9 @@ static void on_response_set_sim_mailbox_info(GObject *source_object, GAsyncResul
        struct tapi_resp_data *evt_cb_data = user_data;
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -568,12 +657,11 @@ static void on_response_get_sim_cphs_info(GObject *source_object, GAsyncResult *
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
        TelSimCphsInfo_t cphs;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&cphs, 0, sizeof(TelSimCphsInfo_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -609,12 +697,11 @@ static void on_response_get_sim_service_table(GObject *source_object, GAsyncResu
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
        TelSimServiceTable_t svct;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&svct, 0, sizeof(TelSimServiceTable_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -684,12 +771,11 @@ static void on_response_get_sim_msisdn(GObject *source_object, GAsyncResult *res
        TelSimMsisdnList_t list;
        int i = 0;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&list, 0, sizeof(TelSimMsisdnList_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -730,7 +816,7 @@ static void on_response_get_sim_msisdn(GObject *source_object, GAsyncResult *res
        for (i = 0; i < list.count; i++)
                dbg("msisdn[%d]-name[%s]number[%s]", i, list.list[i].name, list.list[i].num);
 
-       TAPI_SIM_CALL_CBFUNC(evt_cb_data, result, &list);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &list);
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
@@ -751,12 +837,11 @@ static void on_response_get_sim_oplmnwact(GObject *source_object, GAsyncResult *
        TelSimOplmnwactList_t list;
        int i = 0;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&list, 0, sizeof(TelSimOplmnwactList_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -801,12 +886,11 @@ static void on_response_get_sim_spn(GObject *source_object, GAsyncResult *res,
        gchar *spn = NULL;
        guchar dc = 0;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&spn_info, 0, sizeof(TelSimSpn_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -821,7 +905,7 @@ static void on_response_get_sim_spn(GObject *source_object, GAsyncResult *res,
        }
        g_free(spn);
 
-       TAPI_SIM_CALL_CBFUNC(evt_cb_data, result, &spn_info);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &spn_info);
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
@@ -839,12 +923,11 @@ static void on_response_get_sim_cphs_netname(GObject *source_object, GAsyncResul
        gchar *full_name = NULL;
        gchar *short_name = NULL;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&cphs_net, 0, sizeof(TelSimCphsNetName_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -890,12 +973,11 @@ static void on_response_req_sim_authentication(GObject *source_object, GAsyncRes
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
        TelSimAuthenticationResponse_t auth_resp;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&auth_resp, 0, sizeof(TelSimAuthenticationResponse_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -962,12 +1044,11 @@ static void on_response_verify_sim_pins(GObject *source_object, GAsyncResult *re
        TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
        TelSimSecResult_t sec_rt;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&sec_rt, 0, sizeof(TelSimSecResult_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -992,12 +1073,11 @@ static void on_response_verify_sim_puks(GObject *source_object, GAsyncResult *re
        TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
        TelSimSecResult_t sec_rt;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&sec_rt, 0, sizeof(TelSimSecResult_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -1022,12 +1102,11 @@ static void on_response_change_sim_pins(GObject *source_object, GAsyncResult *re
        TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
        TelSimSecResult_t sec_rt;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&sec_rt, 0, sizeof(TelSimSecResult_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -1052,19 +1131,18 @@ static void on_response_disable_sim_facility(GObject *source_object, GAsyncResul
        TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
        TelSimFacilityResult_t f_rt;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&f_rt, 0, sizeof(TelSimFacilityResult_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iii)", &result, &f_rt.type, &f_rt.retry_count);
 
-       TAPI_SIM_CALL_CBFUNC(evt_cb_data, result, &f_rt);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &f_rt);
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
@@ -1080,19 +1158,18 @@ static void on_response_enable_sim_facility(GObject *source_object, GAsyncResult
        TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
        TelSimFacilityResult_t f_rt;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&f_rt, 0, sizeof(TelSimFacilityResult_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iii)", &result, &f_rt.type, &f_rt.retry_count);
 
-       TAPI_SIM_CALL_CBFUNC(evt_cb_data, result, &f_rt);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &f_rt);
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
@@ -1108,19 +1185,18 @@ static void on_response_get_sim_facility(GObject *source_object, GAsyncResult *r
        TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
        TelSimFacilityInfo_t fi;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&fi, 0, sizeof(TelSimFacilityInfo_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iii)", &result, &fi.type, &fi.f_status);
 
-       TAPI_SIM_CALL_CBFUNC(evt_cb_data, result, &fi);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &fi);
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
@@ -1136,12 +1212,11 @@ static void on_response_get_sim_lock_info(GObject *source_object, GAsyncResult *
        TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
        TelSimLockInfo_t lock;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&lock, 0, sizeof(TelSimLockInfo_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -1173,12 +1248,11 @@ static void on_response_req_sim_apdu(GObject *source_object, GAsyncResult *res,
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
        TelSimApduResp_t r_apdu;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&r_apdu, 0, sizeof(TelSimApduResp_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -1224,12 +1298,11 @@ static void on_response_req_sim_atr(GObject *source_object, GAsyncResult *res,
        TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
        TelSimAtrResp_t r_atr;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        memset(&r_atr, 0, sizeof(TelSimAtrResp_t));
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -1266,10 +1339,9 @@ static void on_response_set_sim_power_state(GObject *source_object, GAsyncResult
        struct tapi_resp_data *evt_cb_data = user_data;
        TelSimPowerSetResult_t result = TAPI_SIM_POWER_SET_SUCCESS;
 
-       TAPI_SIM_RESP_CB_ENTER(evt_cb_data);
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       SIM_CHECK_ERROR(error, evt_cb_data);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        if (!dbus_result)
                TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
@@ -1283,6 +1355,44 @@ static void on_response_set_sim_power_state(GObject *source_object, GAsyncResult
        g_variant_unref(dbus_result);
 }
 
+static void on_response_get_sim_isim_service_table(GObject *source_object,
+               GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       GVariantIter *iter = NULL;
+       GVariant *param_gv = NULL;
+       GVariant *inner_gv = NULL;
+       TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimIST_t ist;
+       guchar value;
+       int i = 0;
+
+       conn = G_DBUS_CONNECTION(source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
+
+       if (!dbus_result)
+               TAPI_SIM_CHECK_ERR_MSG_AND_CALL_NULL_CBFUNC(error, evt_cb_data);
+
+       g_variant_get(dbus_result, "(i@v)", &result, &param_gv);
+       inner_gv = g_variant_get_variant(param_gv);
+
+       g_variant_get(inner_gv, "ay", &iter);
+       while (g_variant_iter_loop(iter, "y", &value)) {
+               ist.service[i] = value;
+               i++;
+       }
+
+       if (evt_cb_data->cb_fn)
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &ist, evt_cb_data->user_data);
+
+       g_free(evt_cb_data);
+       g_variant_unref(dbus_result);
+}
+
 EXPORT_API int tel_get_sim_init_info(TapiHandle *handle,
        TelSimCardStatus_t *sim_status, int *card_changed)
 {
@@ -1442,7 +1552,7 @@ EXPORT_API int tel_get_sim_iccid(TapiHandle *handle, tapi_response_cb callback,
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetICCID", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT, handle->ca,
@@ -1459,7 +1569,7 @@ EXPORT_API int tel_get_sim_language(TapiHandle *handle, tapi_response_cb callbac
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetLanguage", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT,
@@ -1478,7 +1588,7 @@ EXPORT_API int tel_set_sim_language(TapiHandle *handle, TelSimLanguagePreference
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", language);
 
@@ -1498,7 +1608,7 @@ EXPORT_API int tel_get_sim_callforwarding_info(TapiHandle *handle, tapi_response
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetCallForwarding", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
@@ -1519,7 +1629,7 @@ EXPORT_API int tel_set_sim_callforwarding_info(TapiHandle *handle, TelSimCallFor
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_number = calloc(1, strlen((const char *)&req_cf->cf_data_u.cf.cfu_num)+1);
        if (!g_number) {
@@ -1563,7 +1673,7 @@ EXPORT_API int tel_get_sim_messagewaiting_info(TapiHandle *handle, tapi_response
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetMessageWaiting", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
@@ -1583,7 +1693,7 @@ EXPORT_API int tel_set_sim_messagewaiting_info(TapiHandle *handle, TelSimMessage
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        dbg("b_cphs[%d], rec_index[%d], indicator_status[0x%x], voice_count[%d], fax_count[%d], " \
                "email_count[%d], other_count[%d], video_count[%d], b_voice1[%d], b_voice2[%d], b_fax[%d], b_data[%d]",
@@ -1630,7 +1740,7 @@ EXPORT_API int tel_get_sim_mailbox_info(TapiHandle *handle, tapi_response_cb cal
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetMailbox", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT,
@@ -1652,7 +1762,7 @@ EXPORT_API int tel_set_sim_mailbox_info(TapiHandle *handle, TelSimMailBoxNumber_
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_alpha = calloc(1, strlen((const char *)&req_mb->alpha_id)+1);
        if (!g_alpha) {
@@ -1721,7 +1831,7 @@ EXPORT_API int tel_get_sim_cphs_info(TapiHandle *handle, tapi_response_cb callba
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetCPHSInfo", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT, handle->ca,
@@ -1739,7 +1849,7 @@ EXPORT_API int tel_get_sim_service_table(TapiHandle *handle, tapi_response_cb ca
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetServiceTable", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT, handle->ca,
@@ -1756,7 +1866,7 @@ EXPORT_API int tel_get_sim_msisdn(TapiHandle *handle, tapi_response_cb callback,
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetMSISDN", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT, handle->ca,
@@ -1774,7 +1884,7 @@ EXPORT_API int tel_get_sim_oplmnwact(TapiHandle *handle, tapi_response_cb callba
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetOplmnwact", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT,
@@ -1792,7 +1902,7 @@ EXPORT_API int tel_get_sim_spn(TapiHandle *handle, tapi_response_cb callback,
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetSpn", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT,
@@ -1810,7 +1920,7 @@ EXPORT_API int tel_get_sim_cphs_netname(TapiHandle *handle, tapi_response_cb cal
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetCphsNetName", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT,
@@ -1844,7 +1954,7 @@ EXPORT_API int tel_req_sim_authentication(TapiHandle *handle,
                        && authentication_data->autn_length == 0)
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_variant_builder_init(&builder, G_VARIANT_TYPE("ay"));
        for (i = 0; i < authentication_data->rand_length; i++) {
@@ -1871,6 +1981,12 @@ EXPORT_API int tel_req_sim_authentication(TapiHandle *handle,
 
 EXPORT_API int tel_verifiy_sim_pins(TapiHandle *handle, const TelSimSecPw_t *pin_data,
                tapi_response_cb callback, void *user_data)
+{
+       return tel_verify_sim_pins(handle, pin_data, callback, user_data);
+}
+
+EXPORT_API int tel_verify_sim_pins(TapiHandle *handle, const TelSimSecPw_t *pin_data,
+               tapi_response_cb callback, void *user_data)
 {
        struct tapi_resp_data *evt_cb_data = NULL;
        GVariant *param = NULL;
@@ -1890,7 +2006,7 @@ EXPORT_API int tel_verifiy_sim_pins(TapiHandle *handle, const TelSimSecPw_t *pin
        if ((pin_data->pw_len < 4) || (pin_data->pw_len > 8))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        gpw = calloc(1, pin_data->pw_len+1);
        if (!gpw) {
@@ -1939,7 +2055,7 @@ EXPORT_API int tel_verify_sim_puks(TapiHandle *handle, const TelSimSecPw_t *puk_
                        || (new_pin_data->pw_len > 8))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        gpin = calloc(1, new_pin_data->pw_len+1);
        if (!gpin) {
@@ -2000,7 +2116,7 @@ EXPORT_API int tel_change_sim_pins(TapiHandle *handle, const TelSimSecPw_t *old_
        if ((new_pin->pw_len < 4) || (new_pin->pw_len > 8))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        gpin_o = calloc(1, old_pin->pw_len+1);
        if (!gpin_o) {
@@ -2055,7 +2171,7 @@ EXPORT_API int tel_disable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *
        if ((pw->lock_type > TAPI_SIM_LOCK_FD) && (pw->pw_len < 6))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        gpw = calloc(1, pw->pw_len+1);
        if (!gpw) {
@@ -2098,7 +2214,7 @@ EXPORT_API int tel_enable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *p
        if ((pw->lock_type > TAPI_SIM_LOCK_FD) && (pw->pw_len < 6))
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        gpw = calloc(1, pw->pw_len+1);
        if (!gpw) {
@@ -2134,7 +2250,7 @@ EXPORT_API int tel_get_sim_facility(TapiHandle *handle, TelSimLockType_t type,
        if (type < TAPI_SIM_LOCK_PS || type > TAPI_SIM_LOCK_PC)
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", type);
 
@@ -2159,7 +2275,7 @@ EXPORT_API int tel_get_sim_lock_info(TapiHandle *handle, TelSimLockType_t type,
        if (type < TAPI_SIM_LOCK_PS || type > TAPI_SIM_LOCK_PC)
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", type);
 
@@ -2183,7 +2299,7 @@ EXPORT_API int tel_set_sim_power_state(TapiHandle *handle, TelSimPowerState_t st
        if (state >= TAPI_SIM_POWER_UNSPECIFIED)
                return TAPI_API_INVALID_INPUT;
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", state);
 
@@ -2209,7 +2325,7 @@ EXPORT_API int tel_req_sim_apdu(TapiHandle *handle, TelSimApdu_t* apdu_data,
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_variant_builder_init(&builder, G_VARIANT_TYPE("ay"));
        for (i = 0; i < apdu_data->apdu_len; i++)
@@ -2232,7 +2348,7 @@ EXPORT_API int tel_req_sim_atr(TapiHandle *handle, tapi_response_cb callback, vo
 
        TAPI_SIM_CHECK_TAPI_STATE();
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
                        DBUS_TELEPHONY_SIM_INTERFACE, "GetATR", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, TAPI_DEFAULT_TIMEOUT, handle->ca,
@@ -2241,6 +2357,82 @@ EXPORT_API int tel_req_sim_atr(TapiHandle *handle, tapi_response_cb callback, vo
        return TAPI_API_SUCCESS;
 }
 
+EXPORT_API int tel_get_sim_impi(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data;
+
+       dbg("Func Entrance");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+               handle->path, DBUS_TELEPHONY_SIM_INTERFACE,
+               "GetImpi", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
+               TAPI_DEFAULT_TIMEOUT, handle->ca,
+               on_response_get_sim_impi, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_impu(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data;
+
+       dbg("Func Entrance");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+               handle->path, DBUS_TELEPHONY_SIM_INTERFACE,
+               "GetImpu", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
+               TAPI_DEFAULT_TIMEOUT, handle->ca,
+               on_response_get_sim_impu, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_domain(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data;
+
+       dbg("Func Entrance");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+               handle->path, DBUS_TELEPHONY_SIM_INTERFACE,
+               "GetDomain", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
+               TAPI_DEFAULT_TIMEOUT, handle->ca,
+               on_response_get_sim_domain, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_pcscf(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data;
+
+       dbg("Func Entrance");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+               handle->path, DBUS_TELEPHONY_SIM_INTERFACE,
+               "GetPcscf", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
+               TAPI_DEFAULT_TIMEOUT, handle->ca,
+               on_response_get_sim_pcscf, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
 EXPORT_API int tel_get_sim_application_list(TapiHandle *handle, unsigned char *app_list)
 {
        GError *gerr = NULL;
@@ -2265,3 +2457,22 @@ EXPORT_API int tel_get_sim_application_list(TapiHandle *handle, unsigned char *a
        return TAPI_API_SUCCESS;
 }
 
+EXPORT_API int tel_get_sim_isim_service_table(TapiHandle *handle,
+               tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data;
+
+       dbg("Func Entrance");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+               handle->path, DBUS_TELEPHONY_SIM_INTERFACE,
+               "GetIsimServiceTable", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
+               TAPI_DEFAULT_TIMEOUT, handle->ca,
+               on_response_get_sim_isim_service_table, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
index bf8bc93e8c393f9874084331bb20e0d281c357e7..ff43dc813daadf25508d6fa89461cb0f6b12b5ac 100644 (file)
@@ -42,18 +42,15 @@ static void on_response_default(GObject *source_object, GAsyncResult *res, gpoin
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_default type_format(%s)", g_variant_get_type_string(dbus_result));
 
        g_variant_get(dbus_result, "(i)", &result);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -74,7 +71,7 @@ static void on_response_read_msg(GObject *source_object, GAsyncResult *res, gpoi
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_read_msg type_format(%s)", g_variant_get_type_string(dbus_result));
 
@@ -109,12 +106,9 @@ static void on_response_read_msg(GObject *source_object, GAsyncResult *res, gpoi
        g_variant_unref(tpdu);
        g_variant_unref(inner_gv);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &readMsg, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &readMsg);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -130,18 +124,15 @@ static void on_response_write_msg(GObject *source_object, GAsyncResult *res, gpo
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_write_msg type_format(%s)", g_variant_get_type_string(dbus_result));
 
        g_variant_get(dbus_result, "(ii)", &result, &sms_index);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &sms_index, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &sms_index);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -157,18 +148,15 @@ static void on_response_delete_msg(GObject *source_object, GAsyncResult *res, gp
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_delete_msg type_format(%s)", g_variant_get_type_string(dbus_result));
 
        g_variant_get(dbus_result, "(ii)", &result, &del_index);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &del_index, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &del_index);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -187,7 +175,7 @@ static void on_response_get_msg_count(GObject *source_object, GAsyncResult *res,
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_get_msg_count type_format(%s)", g_variant_get_type_string(dbus_result));
 
@@ -206,12 +194,9 @@ static void on_response_get_msg_count(GObject *source_object, GAsyncResult *res,
 
        g_variant_iter_free(iter);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &storedMsgCnt, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &storedMsgCnt);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -233,7 +218,7 @@ static void on_response_get_sca(GObject *source_object, GAsyncResult *res, gpoin
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_get_sca type_format(%s)", g_variant_get_type_string(dbus_result));
 
@@ -254,12 +239,9 @@ static void on_response_get_sca(GObject *source_object, GAsyncResult *res, gpoin
        g_variant_unref(num);
        g_variant_unref(inner_gv);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &scaInfo, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &scaInfo);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -280,7 +262,7 @@ static void on_response_get_cb_config(GObject *source_object, GAsyncResult *res,
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_get_cb_config type_format(%s)", g_variant_get_type_string(dbus_result));
 
@@ -310,12 +292,9 @@ static void on_response_get_cb_config(GObject *source_object, GAsyncResult *res,
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &cbConfig, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &cbConfig);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -336,27 +315,27 @@ static void on_response_get_sms_params(GObject *source_object, GAsyncResult *res
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_get_sms_params type_format(%s)", g_variant_get_type_string(dbus_result));
 
        g_variant_get(dbus_result, "(iiii@viiii@viii@viii)", &result,
-                                                               &paramInfo.RecordIndex,
-                                                               &paramInfo.RecordLen,
-                                                               &paramInfo.AlphaIdLen,
-                                                               &alphaId,
-                                                               &paramInfo.ParamIndicator,
-                                                               &paramInfo.TpDestAddr.DialNumLen,
-                                                               &paramInfo.TpDestAddr.Ton,
-                                                               &paramInfo.TpDestAddr.Npi,
-                                                               &destDialNum,
-                                                               &paramInfo.TpSvcCntrAddr.DialNumLen,
-                                                               &paramInfo.TpSvcCntrAddr.Ton,
-                                                               &paramInfo.TpSvcCntrAddr.Npi,
-                                                               &scaDialNum,
-                                                               &paramInfo.TpProtocolId,
-                                                               &paramInfo.TpDataCodingScheme,
-                                                               &paramInfo.TpValidityPeriod);
+               &paramInfo.RecordIndex,
+               &paramInfo.RecordLen,
+               &paramInfo.AlphaIdLen,
+               &alphaId,
+               &paramInfo.ParamIndicator,
+               &paramInfo.TpDestAddr.DialNumLen,
+               &paramInfo.TpDestAddr.Ton,
+               &paramInfo.TpDestAddr.Npi,
+               &destDialNum,
+               &paramInfo.TpSvcCntrAddr.DialNumLen,
+               &paramInfo.TpSvcCntrAddr.Ton,
+               &paramInfo.TpSvcCntrAddr.Npi,
+               &scaDialNum,
+               &paramInfo.TpProtocolId,
+               &paramInfo.TpDataCodingScheme,
+               &paramInfo.TpValidityPeriod);
 
        inner_gv = g_variant_get_variant(alphaId);
        g_variant_get(inner_gv, "ay", &iter);
@@ -394,12 +373,9 @@ static void on_response_get_sms_params(GObject *source_object, GAsyncResult *res
        g_variant_unref(scaDialNum);
        g_variant_unref(inner_gv);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &paramInfo, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &paramInfo);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -415,19 +391,16 @@ static void on_response_get_sms_param_cnt(GObject *source_object, GAsyncResult *
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        dbg("on_response_get_sms_param_cnt type_format(%s)", g_variant_get_type_string(dbus_result));
 
        g_variant_get(dbus_result, "(ii)", &result,
                        &recordCount);
 
-       if (evt_cb_data) {
-               if (evt_cb_data->cb_fn)
-                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &recordCount, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &recordCount);
 
-               g_free(evt_cb_data);
-       }
+       g_free(evt_cb_data);
        g_variant_unref(dbus_result);
 }
 
@@ -454,7 +427,7 @@ EXPORT_API int tel_send_sms(struct tapi_handle *handle,
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_variant_builder_init(&b, G_VARIANT_TYPE("ay"));
        for (i = 0; i < TAPI_SIM_SMSP_ADDRESS_LEN; i++)
@@ -496,7 +469,7 @@ EXPORT_API int tel_read_sms_in_sim(struct tapi_handle *handle, int read_index, t
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", read_index);
 
@@ -524,7 +497,7 @@ EXPORT_API int tel_write_sms_in_sim(struct tapi_handle *handle, const TelSmsData
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(pWriteData, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
         g_variant_builder_init(&b, G_VARIANT_TYPE("ay"));
        for (i = 0; i < TAPI_SIM_SMSP_ADDRESS_LEN; i++)
@@ -568,7 +541,7 @@ EXPORT_API int tel_delete_sms_in_sim(struct tapi_handle *handle, int del_index,
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", del_index);
 
@@ -590,7 +563,7 @@ EXPORT_API int tel_get_sms_count(struct tapi_handle *handle, tapi_response_cb ca
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
@@ -616,7 +589,7 @@ EXPORT_API int tel_get_sms_sca(struct tapi_handle *handle, int sca_index, tapi_r
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", sca_index);
 
@@ -647,7 +620,7 @@ EXPORT_API int tel_set_sms_sca(struct tapi_handle *handle, const TelSmsAddressIn
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
         g_variant_builder_init(&b, G_VARIANT_TYPE("ay"));
        for (i = 0; i < TAPI_SIM_SMSP_ADDRESS_LEN + 1; i++)
@@ -679,7 +652,7 @@ EXPORT_API int tel_get_sms_cb_config(struct tapi_handle *handle, tapi_response_c
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
@@ -710,7 +683,7 @@ EXPORT_API int tel_set_sms_cb_config(struct tapi_handle *handle, const TelSmsCbC
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_variant_builder_init(&b, G_VARIANT_TYPE("aa{sv}"));
 
@@ -762,7 +735,7 @@ EXPORT_API int tel_set_sms_memory_status(struct tapi_handle *handle, int memoryS
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", memoryStatus);
 
@@ -791,7 +764,7 @@ EXPORT_API int tel_send_sms_deliver_report(struct tapi_handle *handle,
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(pDataPackage, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        encoded_sca = g_base64_encode((const guchar*)(pDataPackage->Sca), TAPI_SIM_SMSP_ADDRESS_LEN);
        if (NULL == encoded_sca) {
@@ -840,7 +813,7 @@ EXPORT_API int tel_set_sms_message_status(struct tapi_handle *handle, int set_in
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", set_index, msgStatus);
 
@@ -868,7 +841,7 @@ EXPORT_API int tel_get_sms_parameters(struct tapi_handle *handle, int get_index,
                return TAPI_API_INVALID_INPUT;
        }
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", get_index);
 
@@ -896,7 +869,7 @@ EXPORT_API int tel_set_sms_parameters(struct tapi_handle *handle, const TelSmsPa
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(pSmsSetParameters, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
         g_variant_builder_init(&b, G_VARIANT_TYPE("ay"));
        for (i = 0; i < TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX + 1; i++)
@@ -951,7 +924,7 @@ EXPORT_API int tel_get_sms_parameter_count(struct tapi_handle *handle, tapi_resp
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        g_dbus_connection_call(handle->dbus_connection,
                DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
index 6c9c4184abdd66c61560696ad1ed0b2a574713f5..7c8c7553d29491109661a9c36dfa72a6df4fa854 100644 (file)
@@ -48,7 +48,7 @@ static void on_response_get_ss_barring_status(GObject *source_object, GAsyncResu
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(aa{sv}i)", &iter, &result);
 
@@ -71,8 +71,7 @@ static void on_response_get_ss_barring_status(GObject *source_object, GAsyncResu
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &resp, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &resp);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -89,12 +88,11 @@ static void on_response_change_ss_barring_password(GObject *source_object, GAsyn
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)",  &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, NULL, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, NULL);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -118,7 +116,7 @@ static void on_response_get_ss_forward_status(GObject *source_object, GAsyncResu
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(aa{sv}i)", &iter, &result);
 
@@ -152,8 +150,7 @@ static void on_response_get_ss_forward_status(GObject *source_object, GAsyncResu
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &resp, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &resp);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -177,7 +174,7 @@ static void on_response_get_ss_waiting_status(GObject *source_object, GAsyncResu
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(aa{sv}i)", &iter, &result);
 
@@ -198,8 +195,7 @@ static void on_response_get_ss_waiting_status(GObject *source_object, GAsyncResu
        }
        g_variant_iter_free(iter);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &resp, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &resp);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -217,12 +213,11 @@ static void on_response_set_ss_cli_status(GObject *source_object, GAsyncResult *
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(i)",  &result);
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &data);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -242,13 +237,12 @@ static void on_response_get_ss_cli_status(GObject *source_object, GAsyncResult *
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iii)",  &result, &resp.Type, &resp.Status);
-
        msg("Type(%d), Status(%d)", resp.Type, resp.Status);
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &resp, evt_cb_data->user_data);
+
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &resp);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -269,7 +263,7 @@ static void on_response_send_ss_ussd_request(GObject *source_object, GAsyncResul
 
        conn = G_DBUS_CONNECTION(source_object);
        dbus_result = g_dbus_connection_call_finish(conn, res, &error);
-       CHECK_ERROR(error);
+       TAPI_RESP_CHECK_ERROR(error, evt_cb_data);
 
        g_variant_get(dbus_result, "(iiiiis)",  &result, &resp.Type, &resp.Status, &resp.Dcs, &resp.Length, &tmp_str);
 
@@ -278,8 +272,7 @@ static void on_response_send_ss_ussd_request(GObject *source_object, GAsyncResul
                g_free(tmp_str);
        }
 
-       if (evt_cb_data->cb_fn)
-               evt_cb_data->cb_fn(evt_cb_data->handle, result, &resp, evt_cb_data->user_data);
+       TAPI_INVOKE_RESP_CALLBACK(evt_cb_data, result, &resp);
 
        g_free(evt_cb_data);
        g_variant_unref(dbus_result);
@@ -296,7 +289,7 @@ EXPORT_API int tel_set_ss_barring(TapiHandle *handle, TelSsBarringInfo_t *info,
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(info, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(iis)", info->Class, info->Type, info->szPassword);
 
@@ -329,7 +322,7 @@ EXPORT_API int tel_get_ss_barring_status(TapiHandle *handle, TelSsClass_t class,
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", class, type);
 
@@ -369,7 +362,7 @@ EXPORT_API int tel_change_ss_barring_password(TapiHandle *handle,
        TAPI_RET_ERR_NUM_IF_FAIL(new_password, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(new_password_again, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(sss)", old_password, new_password, new_password_again);
 
@@ -402,7 +395,7 @@ EXPORT_API int tel_set_ss_forward(TapiHandle *handle, const TelSsForwardInfo_t *
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(info, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(iiiiis)", info->Class, info->Condition,
                        info->NoReplyConditionTimer, info->Ton, info->Npi, info->szPhoneNumber);
@@ -466,7 +459,7 @@ EXPORT_API int tel_get_ss_forward_status(TapiHandle *handle, TelSsClass_t class,
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", class, condition);
 
@@ -499,7 +492,7 @@ EXPORT_API int tel_set_ss_waiting(TapiHandle *handle, const TelSsWaitingInfo_t *
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(info, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", info->Class);
 
@@ -540,7 +533,7 @@ EXPORT_API int tel_get_ss_waiting_status(TapiHandle *handle, const TelSsClass_t
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", class);
 
@@ -572,7 +565,7 @@ EXPORT_API int tel_set_ss_cli_status(TapiHandle *handle, TelSsCliType_t type, Te
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(ii)", type, status);
 
@@ -604,7 +597,7 @@ EXPORT_API int tel_get_ss_cli_status(TapiHandle *handle, TelSsCliType_t type, ta
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(callback, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(i)", type);
 
@@ -635,7 +628,7 @@ EXPORT_API int tel_send_ss_ussd_request(TapiHandle *handle, const TelSsUssdMsgIn
        TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
        TAPI_RET_ERR_NUM_IF_FAIL(info, TAPI_API_INVALID_PTR);
 
-       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
 
        param = g_variant_new("(iiis)", info->Type, info->Dcs, info->Length, info->szString);
        msg("ussd type:[%d] length:[%d]", info->Type, info->Length);
index 3ae087d1eeb4f008ec74b6a2d0c8733f2f2dadf5..203daa34c565bb7d754d022ad791f7678e3fa35e 100644 (file)
@@ -14,6 +14,7 @@ SET(tapitest
        modem.c
        ss.c
        call.c
+       oem.c
 )
 
 ##Address-Space Layout Randomization
index eb7e7de5a9914118698a6661840d6de53806ed6c..5e709e650876ff69c5a4b2ef76b2dbcc9ffd497d 100644 (file)
@@ -53,9 +53,44 @@ static char data_extra_volume_status[MENU_DATA_SIZE + 1] = "0";
 static char data_call_privacy_mode[MENU_DATA_SIZE + 1] = "0";
 static char data_preferred_voice_subscription[MENU_DATA_SIZE + 1] = "0";
 
+static const char *__get_call_state_string(TelCallStates_t state)
+{
+       switch (state) {
+       case TAPI_CALL_STATE_IDLE:
+               return "Idle";
+       case TAPI_CALL_STATE_ACTIVE:
+               return "Active";
+       case TAPI_CALL_STATE_HELD:
+               return "Held";
+       case TAPI_CALL_STATE_DIALING:
+               return "Dialing";
+       case TAPI_CALL_STATE_ALERT:
+               return "Alert";
+       case TAPI_CALL_STATE_INCOMING:
+               return "Incoming";
+       case TAPI_CALL_STATE_WAITING:
+               return "Waiting";
+       default:
+               return "Unknown";
+       }
+}
+
+static void call_status_callback(TelCallStatus_t *status, void *user_data)
+{
+       msg("call_status_callback");
+       msg(" - id = %d", status->CallHandle);
+       msg(" - direction = %d", status->bMoCall);
+       msg(" - number = %s", status->pNumber);
+       msg(" - type = %d", status->CallType);
+       msg(" - state = %d[%s]", status->CallState, __get_call_state_string(status->CallState));
+       msg(" - multiparty = %d", status->bConferenceState);
+
+}
+
 static void on_noti_call_status_idle(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
 {
        TelCallStatusIdleNoti_t *noti_data = (TelCallStatusIdleNoti_t *)data;
+       int result;
 
        msg("");
        msgb("event(%s) receive !!", TAPI_NOTI_VOICE_CALL_STATUS_IDLE);
@@ -65,11 +100,15 @@ static void on_noti_call_status_idle(TapiHandle *handle, const char *noti_id, vo
 
        msg(" - id = %d", noti_data->id);
        msg(" - cause = 0x%x", noti_data->cause);
+       result = tel_get_call_status_all(handle, call_status_callback, NULL);
+       if (result != TAPI_API_SUCCESS)
+               msg("failed. (result = %d)", result);
 }
 
 static void on_noti_call_status_active(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
 {
        TelCallStatusActiveNoti_t *noti_data = (TelCallStatusActiveNoti_t *)data;
+       int result;
 
        msg("");
        msgb("event(%s) receive !!", TAPI_NOTI_VOICE_CALL_STATUS_ACTIVE);
@@ -78,11 +117,15 @@ static void on_noti_call_status_active(TapiHandle *handle, const char *noti_id,
                return;
 
        msg(" - id = %d", noti_data->id);
+       result = tel_get_call_status_all(handle, call_status_callback, NULL);
+       if (result != TAPI_API_SUCCESS)
+               msg("failed. (result = %d)", result);
 }
 
 static void on_noti_call_status_held(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
 {
        TelCallStatusHeldNoti_t *noti_data = (TelCallStatusHeldNoti_t *)data;
+       int result;
 
        msg("");
        msgb("event(%s) receive !!", TAPI_NOTI_VOICE_CALL_STATUS_HELD);
@@ -91,6 +134,9 @@ static void on_noti_call_status_held(TapiHandle *handle, const char *noti_id, vo
                return;
 
        msg(" - id = %d", noti_data->id);
+       result = tel_get_call_status_all(handle, call_status_callback, NULL);
+       if (result != TAPI_API_SUCCESS)
+               msg("failed. (result = %d)", result);
 }
 
 static void on_noti_call_status_dialing(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
@@ -121,7 +167,7 @@ static void on_noti_call_status_alert(TapiHandle *handle, const char *noti_id, v
 
 static void on_noti_call_status_incoming(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
 {
-       TelCallStatusIncomingNoti_t *noti_data = (TelCallStatusIncomingNoti_t *)data;
+       TelCallIncomingCallInfo_t *noti_data = (TelCallIncomingCallInfo_t *)data;
 
        msg("");
        msgb("event(%s) receive !!", TAPI_NOTI_VOICE_CALL_STATUS_INCOMING);
@@ -129,7 +175,13 @@ static void on_noti_call_status_incoming(TapiHandle *handle, const char *noti_id
        if (!noti_data)
                return;
 
-       msg(" - id = %d", noti_data->id);
+       msg(" - Handle = %d", noti_data->CallHandle);
+       msg(" - Number = %s", noti_data->szCallingPartyNumber);
+       msg(" - CLI Mode = %d", noti_data->CliMode);
+       msg(" - CLI Cause = %d", noti_data->CliCause);
+       msg(" - Name = %s", noti_data->CallingNameInfo.szNameData);
+       msg(" - Forwarded Call = %d", noti_data->fwded);
+       msg(" - Active Line = %d", noti_data->ActiveLine);
 }
 
 static void on_noti_call_sound_ringback_tone(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
@@ -630,19 +682,6 @@ static int run_call_send_burst_dtmf(MManager *mm, struct menu_data *menu)
        return result;
 }
 
-
-static void call_status_callback(TelCallStatus_t *status, void *user_data)
-{
-
-       msg(" - id = %d", status->CallHandle);
-       msg(" - direction = %d", status->bMoCall);
-       msg(" - number = %s", status->pNumber);
-       msg(" - type = %d", status->CallType);
-       msg(" - state = %d", status->CallState);
-       msg(" - multiparty = %d", status->bConferenceState);
-
-}
-
 static int run_call_get_status(MManager *mm, struct menu_data *menu)
 {
        TapiHandle *handle = menu_manager_ref_user_data(mm);
@@ -664,7 +703,7 @@ static int run_call_get_status(MManager *mm, struct menu_data *menu)
        msg(" - direction = %d", info.bMoCall);
        msg(" - number = %s", info.pNumber);
        msg(" - type = %d", info.CallType);
-       msg(" - state = %d", info.CallState);
+       msg(" - state = %d[%s]", info.CallState, __get_call_state_string(info.CallState));
        msg(" - multiparty = %d", info.bConferenceState);
 
        return result;
index 3792aaeac96b37560394bbace168d83fe9c5c0de..56a75fe41ca6599236cbc2b0d9c41b2f7247667f 100644 (file)
@@ -38,6 +38,7 @@
 #include "modem.h"
 #include "call.h"
 #include "ss.h"
+#include "oem.h"
 
 #define SIM_SEL_MENU_KEY_COUNT 2
 
@@ -49,6 +50,7 @@ extern struct menu_data menu_sim[];
 extern struct menu_data menu_phonebook[];
 extern struct menu_data menu_ss[];
 extern struct menu_data menu_call[];
+extern struct menu_data menu_oem[];
 
 TapiHandle *handle = NULL;
 char **cp_list = NULL;
@@ -165,6 +167,30 @@ static int convert_string(MManager *mm, struct menu_data *menu)
        return 0;
 }
 
+static int get_ready_state(MManager *mm, struct menu_data *menu)
+{
+       int value = 0;
+       int ret;
+
+       msg("call tel_get_ready_state()");
+
+       ret = tel_get_ready_state(&value);
+       if (ret != TAPI_API_SUCCESS)
+               msg("failed. (return = %d)", ret);
+
+       msg(" - result = %s", (value) ? "TRUE" : "FALSE");
+
+       return 0;
+}
+
+static void on_ready_state(int state, void *user_data)
+{
+       msg("");
+       msgb("ready state receive !!");
+
+       msg("state = %s", (state) ? "TRUE" : "FALSE");
+}
+
 static struct menu_data menu_common[] = {
        { "1", "tel_get_modem_info", NULL, get_modem_info, NULL},
        { "2", "tel_init", NULL, init, NULL},
@@ -176,6 +202,7 @@ static struct menu_data menu_common[] = {
        { "6", "tcore_util_convert_string_to_utf8", NULL, convert_string, NULL},
        { "6d", " - dcs", NULL, NULL, data_convert_dcs},
        { "6s", " - string", NULL, NULL, data_convert_string},
+       { "7", "tel_get_ready_state", NULL, get_ready_state, NULL},
        { NULL, NULL, },
 };
 
@@ -189,6 +216,7 @@ static struct menu_data menu_main[] = {
        { "7", "SS", menu_ss, NULL, NULL},
        { "8", "SAT", menu_sat, NULL, NULL},
        { "9", "Call", menu_call, NULL, NULL},
+       { "a", "Oem", menu_oem, NULL, NULL},
        { NULL, NULL, },
 };
 
@@ -227,6 +255,9 @@ static int __select_handle_register_event(MManager *mm, struct menu_data *menu)
        register_sms_event(handle);
        register_call_event(handle);
        register_ss_event(handle);
+       register_oem_event(handle);
+
+       tel_register_ready_state_cb(on_ready_state, NULL);
 
        return RET_SUCCESS;
 }
index fd4ba653b91f6b1cc0c718c2be60db89cd584a0e..3f7a8089de31df3e1fd00aa239e87d5c1c6014df 100644 (file)
@@ -53,7 +53,7 @@ static void on_prop_dongle_status(TapiHandle *handle, const char *noti_id, void
        int *status = data;
 
        msg("");
-       msg("property(%s) receive !!", TAPI_PROP_MODEM_DONGLE_STATUS);
+       msgp("property(%s) receive !!", TAPI_PROP_MODEM_DONGLE_STATUS);
 
        if (!status)
                return;
@@ -65,7 +65,7 @@ static void on_prop_dongle_login(TapiHandle *handle, const char *noti_id, void *
        int *status = data;
 
        msg("");
-       msg("property(%s) receive !!", TAPI_PROP_MODEM_DONGLE_LOGIN);
+       msgp("property(%s) receive !!", TAPI_PROP_MODEM_DONGLE_LOGIN);
 
        if (!status)
                return;
diff --git a/test_src/oem.c b/test_src/oem.c
new file mode 100644 (file)
index 0000000..367ed7e
--- /dev/null
@@ -0,0 +1,554 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/time.h>
+#include <unistd.h>
+#include <glib.h>
+
+#include <tapi_common.h>
+#include <TelOem.h>
+#include <ITapiOem.h>
+
+#include <TapiUtility.h>
+
+#include "menu.h"
+#include "oem.h"
+
+#define RAW_DATA_MAX_LEN 512
+
+/* Type definition for Common Header */
+typedef struct {
+    short len;
+    char msg_seq;
+    char ack_seq;
+    char main_cmd;
+    char sub_cmd;
+    char cmd_type;
+       unsigned char raw_data[RAW_DATA_MAX_LEN];
+}__attribute__ ((packed)) ipc_type;
+
+typedef struct {
+       char magic;
+       int calltime;
+} __attribute__ ((packed)) call_time_access_t;
+
+static char data_oem_send_data_option[MENU_DATA_SIZE + 1] = "1";
+static char data_oem_send_data_sync_option[MENU_DATA_SIZE + 1] = "1";
+static char data_oem_send_data_async_option[MENU_DATA_SIZE + 1] = "1";
+static char data_oem_thermal_max[MENU_DATA_SIZE + 1] = "40";
+static char data_oem_thermal_min[MENU_DATA_SIZE + 1] = "30";
+static char data_at_command[MENU_DATA_SIZE + 1] = "AT+CMUT=1";
+static char data_oem_external_cmd_send_option[MENU_DATA_SIZE + 1] = "1";
+static char data_access_call_time_option[MENU_DATA_SIZE + 1] = "1";
+static char data_oem_ims_data[MENU_DATA_SIZE + 1] = "1";
+
+static void on_noti_oemdata(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
+{
+       TelOemData_t *pdata = data;
+       ipc_type *noti = NULL;
+
+       if(!pdata) {
+               msg("Invalid Data");
+               return;
+       }
+
+       msg("id:[0x%x] data_len:[%d] [%s]", pdata->oem_id, pdata->data_len, noti_id);
+       noti = (ipc_type *)pdata->data;
+       if(!noti) {
+               msg("Invalid Data");
+               return;
+       }
+
+       menu_print_dump(noti->len, noti);
+}
+
+static void on_response_oemdata(TapiHandle *handle, int result, void *data, void *user_data)
+{
+       TelOemData_t *info = data;
+
+       msg ("");
+       msgb ("on_response_oemdata() response receive");
+       msg (" - result = 0x%x", result);
+
+       if (!info) {
+               msg (" - failed");
+               return;
+       }
+
+       msg (" - oem_id = 0x%x", info->oem_id);
+       msg (" - data_len = %d", info->data_len);
+       menu_print_dump(info->data_len, info->data);
+}
+
+static void on_response_oem_send_external_command(TapiHandle *handle, int result, void *data, void *user_data)
+{
+       TelOemData_t *info = data;
+
+       msgb ("on_response_oem_send_external_command() response receive");
+       msg ("result = 0x%x", result);
+
+       if (!info) {
+               msg (" - failed");
+               return;
+       }
+
+       msg (" - oem_id = 0x%x", info->oem_id);
+       msg (" - data_len = %d", info->data_len);
+       msg (" - data = %s", info->data);
+}
+
+static void on_response_access_call_time(TapiHandle *handle, int result, void *data, void *user_data)
+{
+       TelOemData_t *info = data;
+       call_time_access_t *response = NULL;
+       msgb ("on_response_access_call_time() response receive");
+       msg ("result = 0x%x", result);
+
+       if (!info) {
+               msg (" - failed");
+               return;
+       }
+
+       msg (" - oem_id = 0x%x", info->oem_id);
+       msg (" - data_len = %d", info->data_len);
+
+       response = (call_time_access_t *)info->data;
+       if (!response) {
+               msg ("Wrong response data");
+       } else {
+               msg (" - result = %d", response->magic);
+               msg (" - call time = %d", response->calltime);
+       }
+
+}
+
+static int run_oem_send_data(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       ipc_type data;
+       int result;
+       int operation;
+       int oem_id = 0;
+       operation = atoi(data_oem_send_data_option);
+       msg("call run_oem_send_data() operation:%d ", operation);
+
+       data.msg_seq = 0xFF;
+       data.ack_seq = 0;
+       if (operation == 1) {
+               data.main_cmd = 0x0b;
+               data.sub_cmd = 0x01;
+               data.cmd_type = 0x03;
+               data.raw_data[0] = 0x04;
+               data.raw_data[1] = 0x00;
+               data.raw_data[2] = 0x10;
+               data.len = 0x0A;
+
+               oem_id = 0x1001;
+       } else {
+               data.main_cmd = 0x0b;
+               data.sub_cmd = 0x02;
+               data.cmd_type = 0x03;
+               data.raw_data[0] = 0x04;
+               data.len = 0x08;
+
+               oem_id = 0x1001;
+       }
+       menu_print_dump(data.len, &data);
+
+       result = tel_send_oem_data(handle, oem_id, &data, data.len);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+       return 0;
+}
+
+static int run_oem_send_data_sync(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       TelOemData_t info = {0};
+       ipc_type data;
+       int oem_id = 0;
+       int result;
+
+       msg("call run_oem_send_data() ");
+
+       /* Header - 7 bytes */
+       data.len = 7;
+       data.msg_seq = 0xFF;
+       data.ack_seq = 0x00;
+       data.main_cmd = 0x0A;
+       data.sub_cmd = 0x2F;
+       data.cmd_type = 0x02;
+
+       oem_id = 0x1009;
+       menu_print_dump(data.len, &data);
+
+       result = tel_send_oem_data_sync(handle, oem_id, &data, data.len, &info);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+
+       msg (" - oem_id = 0x%x", info.oem_id);
+       msg (" - data_len = %d", info.data_len);
+       menu_print_dump(info.data_len, info.data);
+       msg("");
+       if (info.data_len) {
+               g_free(info.data);
+       }
+       return 0;
+}
+
+static int run_oem_send_data_async(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       ipc_type data;
+       int oem_id = 0;
+       int result;
+
+       msg("call run_oem_send_data() ");
+
+       /* Header - 7 bytes */
+       data.len = 7;
+       data.msg_seq = 0xFF;
+       data.ack_seq = 0x00;
+       data.main_cmd = 0x0A;
+       data.sub_cmd = 0x2F;
+       data.cmd_type = 0x02;
+
+       oem_id = 0x1009;
+       menu_print_dump(data.len, &data);
+
+       result = tel_send_oem_data_async(handle, oem_id, &data, data.len, on_response_oemdata, NULL);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+       return 0;
+}
+
+static int run_oem_get_thermal_data(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       ipc_type data;
+       int oem_id = 0;
+       int result;
+
+       msg("call run_oem_send_data() ");
+
+       /* Header - 7 bytes */
+       data.len = 10;
+       data.msg_seq = 0xFF;
+       data.ack_seq = 0x00;
+       data.main_cmd = 0x0A;
+       data.sub_cmd = 0x2E;
+       data.cmd_type = 0x02;
+
+       data.raw_data[0] = 0x00;
+       data.raw_data[1] = 0x00;
+       data.raw_data[2] = 0x00;
+
+       oem_id = 0x1009;
+       menu_print_dump(data.len, &data);
+
+       result = tel_send_oem_data(handle, oem_id, &data, data.len);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+       return 0;
+}
+
+static int run_oem_set_thermal_noti(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       ipc_type data;
+       int oem_id = 0;
+       int result;
+       int min_temp, max_temp;
+
+       max_temp = atoi(data_oem_thermal_max);
+       min_temp = atoi(data_oem_thermal_min);
+
+       msg("call run_oem_send_data() min[%d],max[%d] ", min_temp, max_temp);
+
+       /* Header - 7 bytes */
+       data.len = 10;
+       data.msg_seq = 0xFF;
+       data.ack_seq = 0x00;
+       data.main_cmd = 0x0A;
+       data.sub_cmd = 0x2E;
+       data.cmd_type = 0x03;
+
+       /* payload - 3 byte */
+       data.raw_data[0] = 0x00;
+       data.raw_data[1] = (unsigned char)max_temp;
+       data.raw_data[2] = (unsigned char)min_temp;
+
+       oem_id = 0x1009;
+       menu_print_dump(data.len, &data);
+
+       result = tel_send_oem_data(handle, oem_id, &data, data.len);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+       return 0;
+}
+
+static int run_oem_send_external_command_data(TapiHandle *handle)
+{
+       int oem_id = 0x2000;
+       int result;
+
+       result = tel_send_oem_data(handle, oem_id, data_at_command, strlen(data_at_command));
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+       return 0;
+}
+
+static int run_oem_send_external_command_sync(TapiHandle *handle)
+{
+       int oem_id = 0x2000;
+       TelOemData_t info = {0};
+       int result;
+
+       result = tel_send_oem_data_sync(handle, oem_id, data_at_command, strlen(data_at_command), &info);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+
+       msg ("oem_id = 0x%x", info.oem_id);
+       msg ("data_len = %d", info.data_len);
+       msg ("data = %s", info.data);
+
+       if (info.data_len) {
+               g_free(info.data);
+       }
+
+       return 0;
+}
+
+static int run_oem_send_external_command_async(TapiHandle *handle)
+{
+       int oem_id = 0x2000;
+       int result;
+
+       result = tel_send_oem_data_async(handle, oem_id, data_at_command, strlen(data_at_command), on_response_oem_send_external_command, NULL);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+       return 0;
+}
+
+static int run_oem_send_external_command(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       int option = atoi(data_oem_external_cmd_send_option);
+
+       switch (option) {
+               case 1:
+                       run_oem_send_external_command_data(handle);
+                       break;
+               case 2:
+                       run_oem_send_external_command_sync(handle);
+                       break;
+               case 3:
+                       run_oem_send_external_command_async(handle);
+                       break;
+               default:
+                       msg("wrong option: calling run_oem_send_external_command_data");
+                       run_oem_send_external_command_data(handle);
+       }
+
+       return 0;
+}
+
+static int run_oem_access_call_time(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       int option = atoi(data_access_call_time_option);
+       int oem_id = 0x1008;
+       int result;
+       call_time_access_t req_data = {0};
+
+       switch (option) {
+               case 1: {       /* Get */
+                       req_data.magic = 0;
+                       break;
+               }
+               case 2: {
+                       req_data.magic = 1;
+                       req_data.calltime = 1405389618;
+                       break;
+               }
+               default:
+                       msg("wrong option: calling run_oem_send_external_command_data");
+                       return 0;
+       }
+       msg("magic=%d, time=%d", req_data.magic, req_data.calltime);
+
+       result = tel_send_oem_data_async(handle, oem_id, &req_data, sizeof(call_time_access_t), on_response_access_call_time, NULL);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+
+       return 0;
+}
+
+static int run_oem_ims_command(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       TelOemData_t info = {0};
+       ipc_type data;
+       int oem_id = 0;
+       int result;
+
+       msg("call run_oem_ims_command() ");
+
+       /* Header - 7 bytes */
+       data.len = 8;
+       data.msg_seq = 0xFF;
+       data.ack_seq = 0x00;
+       data.main_cmd = 0x16;
+       data.sub_cmd = 0x05;
+       data.cmd_type = 0x02;
+
+       /* payload - 1 byte */
+       data.raw_data[0] = 0x01;
+
+       oem_id = 0x100A;
+       menu_print_dump(data.len, &data);
+
+       result = tel_send_oem_data_sync(handle, oem_id, &data, data.len, &info);
+
+       if (result != TAPI_API_SUCCESS) {
+               msg("failed. (result = %d)", result);
+       } else {
+               msg("success. (result = %d)", result);
+       }
+
+       msg (" - oem_id = 0x%x", info.oem_id);
+       msg (" - data_len = %d", info.data_len);
+       menu_print_dump(info.data_len, info.data);
+       msg("");
+       if (info.data_len) {
+               g_free(info.data);
+       }
+       return 0;
+}
+
+static struct menu_data menu_oem_send_data[] = {
+       { "1", "option", NULL, NULL, data_oem_send_data_option},
+       { "2", "run", NULL, run_oem_send_data, NULL},
+       { NULL, NULL, },
+};
+
+static struct menu_data menu_oem_send_data_sync[] = {
+       { "1", "option", NULL, NULL, data_oem_send_data_sync_option},
+       { "2", "run", NULL, run_oem_send_data_sync, NULL},
+       { NULL, NULL, },
+};
+
+static struct menu_data menu_oem_send_data_async[] = {
+       { "1", "option", NULL, NULL, data_oem_send_data_async_option},
+       { "2", "run", NULL, run_oem_send_data_async, NULL},
+       { NULL, NULL, },
+};
+
+static struct menu_data menu_oem_thermal_get[] = {
+       { "1", "run", NULL, run_oem_get_thermal_data, NULL},
+       { NULL, NULL, },
+};
+
+static struct menu_data menu_oem_thermal_set_noti[] = {
+       { "1", "MAX threshold (Default:40)", NULL, NULL, data_oem_thermal_max},
+       { "2", "MIN threshold (Default:30)", NULL, NULL, data_oem_thermal_min},
+       { "3", "run", NULL, run_oem_set_thermal_noti, NULL},
+       { NULL, NULL, },
+};
+
+static struct menu_data menu_oem_send_external_command[] = {
+       { "1", "option: 1->send data 2->send sync 3->send async", NULL, NULL, data_oem_external_cmd_send_option},
+       { "2", "Enter AT command(default: AT+CMUT=1)", NULL, NULL, data_at_command},
+       { "3", "run", NULL, run_oem_send_external_command, NULL},
+       { NULL, NULL, },
+};
+
+static struct menu_data menu_oem_call_time_access[] = {
+       { "1", "option: 1->Get 2->Set", NULL, NULL, data_access_call_time_option},
+       { "2", "run", NULL, run_oem_access_call_time, NULL},
+       { NULL, NULL, },
+};
+
+static struct menu_data menu_oem_ims[] = {
+       { "1", "option: 1->Get Option", NULL, NULL, data_oem_ims_data},
+       { "2", "run", NULL, run_oem_ims_command, NULL},
+       { NULL, NULL, },
+};
+
+struct menu_data menu_oem[] = {
+       { "1", "SEND oem data", menu_oem_send_data, NULL, NULL},
+       { "2", "Get CP Thermal data", menu_oem_thermal_get, NULL, NULL},
+       { "3", "Set CP Thermal noti", menu_oem_thermal_set_noti, NULL, NULL},
+       { "4", "SEND oem data sync", menu_oem_send_data_sync, NULL, NULL},
+       { "5", "SEND oem data async", menu_oem_send_data_async, NULL, NULL},
+       { "6", "SEND oem external command", menu_oem_send_external_command, NULL, NULL},
+       { "7", "SEND call time access", menu_oem_call_time_access, NULL, NULL},
+       { "8", "SEND ims command", menu_oem_ims, NULL, NULL},
+       { NULL, NULL, },
+};
+
+void register_oem_event(TapiHandle *handle)
+{
+       int ret;
+
+       ret = tel_register_noti_event(handle, TAPI_NOTI_OEM_DATA, on_noti_oemdata, NULL);
+       if (ret != TAPI_API_SUCCESS) {
+               msg("event register failed(%d)", ret);
+       }
+}
diff --git a/test_src/oem.h b/test_src/oem.h
new file mode 100644 (file)
index 0000000..45585e4
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __OEM_H__
+#define __OEM_H__
+
+
+void register_oem_event(TapiHandle *handle);
+
+#endif /* __OEM_H__ */
index 6c1a78c2de78c9a9faaa42e5090d78004e8520ad..2961a19cc420482197b59a9d12cadd18c1dc3454 100644 (file)
@@ -105,6 +105,27 @@ static void on_noti_select_item(TapiHandle *handle, const char *noti_id, void *d
        }
 }
 
+static void on_noti_setup_call(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
+{
+       TelSatSetupCallIndCallData_t *setup_call = NULL;
+
+       msg("noti id (%s)", noti_id);
+
+       if (!data) {
+               msg("noti data is null");
+               return;
+       }
+
+       setup_call = (TelSatSetupCallIndCallData_t *)data;
+
+       msg("command id (%d)", setup_call->commandId);
+       msg("call type(%d)", setup_call->calltype);
+       msg("dispText (%s)", setup_call->dispText.string);
+       msg("callNumber(%s)", setup_call->callNumber.string);
+       msg("duration (%d)", setup_call->duration);
+}
+
+
 static void on_resp_select_menu(TapiHandle *handle, int result, void *data, void *user_data)
 {
        msg("");
@@ -195,6 +216,10 @@ void register_sat_event(TapiHandle *handle)
        if (ret != TAPI_API_SUCCESS)
                msg("event register failed(%d)", ret);
 
+       ret = tel_register_noti_event(handle, TAPI_NOTI_SAT_SETUP_CALL, on_noti_setup_call, NULL);
+       if (ret != TAPI_API_SUCCESS)
+               msg("event register failed(%d)", ret);
+
        /*      ret = tel_register_noti_event(handle, TAPI_NOTI_SAT_GET_INKEY, on_noti_get_inkey, NULL);
        ret = tel_register_noti_event(handle, TAPI_NOTI_SAT_GET_INPUT, on_noti_get_input, NULL);*/
 }
index 37ac3a338628aaaddaa8e46a6533d1fa9f2d2224..a2e8e72f0efad552defece404d1dc62bb71569ec 100644 (file)
@@ -253,6 +253,112 @@ static int run_sim_get_iccid(MManager *mm, struct menu_data *menu)
        return 0;
 }
 
+static void on_sim_get_impi(TapiHandle *handle, int result, void *data, void *user_data)
+{
+       TelSimAccessResult_t access_rt = result;
+       TelSimImpi_t *impi = data;
+
+       msg("TAPI_SERVICE_SIM_GET_IMPI response received");
+
+       CHECK_ACCESS_RT(access_rt);
+
+       msg("access_rt[%d]", access_rt);
+       msg("impi[%s]", impi->impi);
+}
+
+static int run_sim_get_impi(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       int rt = 0;
+
+       msg("call [%s] tapi service !!!", menu->title);
+
+       rt = tel_get_sim_impi(handle, on_sim_get_impi, NULL);
+       CHECK_RT(rt);
+       return 0;
+}
+
+static void on_sim_get_impu(TapiHandle *handle, int result, void *data, void *user_data)
+{
+       TelSimAccessResult_t access_rt = result;
+       TelSimImpuList_t *impu_list = data;
+       unsigned int i;
+
+       msg("TAPI_SERVICE_SIM_GET_IMPU response received");
+
+       CHECK_ACCESS_RT(access_rt);
+
+       msg("impu_list.count[%d]", impu_list->count);
+
+       for (i = 0; i < impu_list->count; i++)
+               msg("impu_list.list[%d].impu[%s]", i, impu_list->list[i].impu);
+}
+
+static int run_sim_get_impu(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       int rt = 0;
+
+       msg("call [%s] tapi service !!!", menu->title);
+
+       rt = tel_get_sim_impu(handle, on_sim_get_impu, NULL);
+       CHECK_RT(rt);
+       return 0;
+}
+
+static void on_sim_get_domain(TapiHandle *handle, int result, void *data, void *user_data)
+{
+       TelSimAccessResult_t access_rt = result;
+       TelSimDomain_t *domain = data;
+
+       msg("TAPI_SERVICE_SIM_GET_DOMAIN response received");
+
+       CHECK_ACCESS_RT(access_rt);
+
+       msg("access_rt[%d]", access_rt);
+       msg("domain[%s]", domain->domain);
+}
+
+static int run_sim_get_domain(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       int rt = 0;
+
+       msg("call [%s] tapi service !!!", menu->title);
+
+       rt = tel_get_sim_domain(handle, on_sim_get_domain, NULL);
+       CHECK_RT(rt);
+       return 0;
+}
+
+static void on_sim_get_pcscf(TapiHandle *handle, int result, void *data, void *user_data)
+{
+       TelSimAccessResult_t access_rt = result;
+       TelSimPcscfList_t *pcscf_list = data;
+       unsigned int i;
+
+       msg("TAPI_SERVICE_SIM_GET_PCSCF response received");
+
+       CHECK_ACCESS_RT(access_rt);
+
+       msg("pcscf_list.count[%d]", pcscf_list->count);
+
+       for (i = 0; i < pcscf_list->count; i++)
+               msg("pcscf_list.list[%d].pcscf[%s]", i, pcscf_list->list[i].pcscf);
+}
+
+static int run_sim_get_pcscf(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       int rt = 0;
+
+       msg("call [%s] tapi service !!!", menu->title);
+
+       rt = tel_get_sim_pcscf(handle, on_sim_get_pcscf, NULL);
+       CHECK_RT(rt);
+       return 0;
+}
+
 static int run_sim_get_application_list(MManager *mm, struct menu_data *menu)
 {
        TapiHandle *handle = menu_manager_ref_user_data(mm);
@@ -275,6 +381,43 @@ static int run_sim_get_application_list(MManager *mm, struct menu_data *menu)
        return 0;
 }
 
+static void on_sim_get_isim_service_table(TapiHandle *handle, int result, void *data, void *user_data)
+{
+       TelSimAccessResult_t access_rt = result;
+       TelSimIST_t *ist = data;
+       int i, size;
+       char *tmp = NULL;
+
+       msg("TAPI_SERVICE_SIM_GET_ISIM_SERVICE_TABLE response received");
+
+       CHECK_ACCESS_RT(access_rt);
+       size = sizeof(TelSimIST_t);
+       tmp = calloc(1, size);
+       if (tmp == NULL)
+               return;
+       memcpy(tmp, &ist->service, size);
+       for (i = 0; i < size; i++) {
+               if (tmp[i] == 1)
+                       tmp[i] = '1';
+               else
+                       tmp[i] = '0';
+       }
+       msg("ist->service: [%s]", tmp);
+       free(tmp);
+}
+
+static int run_sim_get_isim_service_table(MManager *mm, struct menu_data *menu)
+{
+       TapiHandle *handle = menu_manager_ref_user_data(mm);
+       int rt = 0;
+
+       msg("call [%s] tapi service !!!", menu->title);
+
+       rt = tel_get_sim_isim_service_table(handle, on_sim_get_isim_service_table, NULL);
+       CHECK_RT(rt);
+       return 0;
+}
+
 static void on_sim_get_language(TapiHandle *handle, int result, void *data,
                void *user_data)
 {
@@ -902,7 +1045,7 @@ static int run_sim_verify_pins(MManager *mm, struct menu_data *menu)
        pwt.pw_len = strlen(data_sim_verify_pins_pw);
        pwt.pw = (unsigned char *) data_sim_verify_pins_pw;
 
-       rt = tel_verifiy_sim_pins(handle, &pwt, on_sim_security_op_resp, NULL);
+       rt = tel_verify_sim_pins(handle, &pwt, on_sim_security_op_resp, NULL);
        CHECK_RT(rt);
        return 0;
 }
@@ -1323,11 +1466,36 @@ static struct menu_data menu_sim_change_state[] = {
        {NULL, NULL},
 };
 
+static struct menu_data menu_sim_get_impi[] = {
+       {"1", "run", NULL, run_sim_get_impi, NULL},
+       {NULL, NULL},
+};
+
+static struct menu_data menu_sim_get_impu[] = {
+       {"1", "run", NULL, run_sim_get_impu, NULL},
+       {NULL, NULL},
+};
+
+static struct menu_data menu_sim_get_domain[] = {
+       {"1", "run", NULL, run_sim_get_domain, NULL},
+       {NULL, NULL},
+};
+
+static struct menu_data menu_sim_get_pcscf[] = {
+       {"1", "run", NULL, run_sim_get_pcscf, NULL},
+       {NULL, NULL},
+};
+
 static struct menu_data menu_sim_get_application_list[] = {
        {"1", "run", NULL, run_sim_get_application_list, NULL},
        {NULL, NULL},
 };
 
+static struct menu_data menu_sim_get_isim_service_table[] = {
+       {"1", "run", NULL, run_sim_get_isim_service_table, NULL},
+       {NULL, NULL},
+};
+
 static struct menu_data menu_sim_get_cf[] = {
        {"1", "run", NULL, run_sim_get_cf, NULL},
        {NULL, NULL},
@@ -1523,7 +1691,12 @@ struct menu_data menu_sim_3gpp[] = {
        {"28", "atr info", menu_sim_get_atr, NULL, NULL},
        {"29", "service table", menu_sim_get_service_table, NULL, NULL},
        {"30", "Change State", menu_sim_change_state, NULL, NULL},
-       {"31", "Get application list", menu_sim_get_application_list, NULL, NULL},
+       {"31", "Get IMPI", menu_sim_get_impi, NULL, NULL},
+       {"32", "Get IMPU", menu_sim_get_impu, NULL, NULL},
+       {"33", "Get Domain", menu_sim_get_domain, NULL, NULL},
+       {"34", "Get P-CSCF", menu_sim_get_pcscf, NULL, NULL},
+       {"35", "Get application list", menu_sim_get_application_list, NULL, NULL},
+       {"36", "Get isim service table", menu_sim_get_isim_service_table, NULL, NULL},
        { NULL, NULL, },
 };
 
index fd7a50fd01c8b73dbe6833ee7533786074363ee4..8b10e70c5af86b95bf83edc41e41bbd7b8463b4f 100644 (file)
@@ -1157,6 +1157,7 @@ static void on_resp_read_msg(TapiHandle *handle, int result, void *data,
        }
 
        sim_data = (TelSmsData_t *)data;
+       msg("SIM Index [%d]", sim_data->SimIndex);
 
        if (sim_data->MsgStatus == TAPI_NETTEXT_STATUS_UNREAD)
                msg("Msg Staus : received unread msg");
@@ -1279,6 +1280,14 @@ static void on_resp_set_mem_status(TapiHandle *handle, int result, void *data,
        msg(" - result = 0x%x", result);
 }
 
+static void on_resp_set_msg_status(TapiHandle *handle, int result, void *data,
+               void *user_data)
+{
+       msg("");
+       msgb("tel_set_sms_message_status() response receive");
+       msg(" - result = 0x%x", result);
+}
+
 static void on_resp_get_sms_sca(TapiHandle *handle, int result, void *data,
                void *user_data)
 {
@@ -1446,54 +1455,43 @@ static int SendMessage(MManager *mm, struct menu_data *menu)
 {
        int ret;
        int msg_len = 0;
-       char buf[SMS_ADDRESS_LEN_MAX];
-       char message[512];
-       char diallingNum[SMS_ADDRESS_LEN_MAX];
+       char message[512] = { 0, };
+       char diallingNum[SMS_ADDRESS_LEN_MAX + 1] = { 0, };
        int diallingNum_len = 0;
 
-       memset(buf, 0, sizeof(buf));
-       memset(diallingNum, 0, sizeof(diallingNum));
-       diallingNum_len = 0;
-
-       msg("Enter destination Number: ");
-
-       ret = read(0, buf, sizeof(buf));
+       printf("\n");
+       printf("Enter destination Number:\n>> ");
+       fflush(stdout);
+       ret = read(0, diallingNum, sizeof(diallingNum) - 1);
        if (ret < 0) {
                if (errno == EINTR)
                        perror("read(1)");
                return -1;
-       } else if (ret == 0)
-               return ret;
-
-       buf[SMS_ADDRESS_LEN_MAX - 1] = '\0';
-       diallingNum_len = strlen(diallingNum);
-       memcpy(&diallingNum[diallingNum_len], buf, strlen(buf));
-
-       diallingNum_len = strlen(diallingNum); /* recalculate */
-       msg("dialling num %s and dialling num len is %d", diallingNum,
-                       diallingNum_len);
-       diallingNum[diallingNum_len] = 0;
-       diallingNum_len = diallingNum_len - 1;
-
-       msg("Enter Message: ");
-       memset(message, 0, sizeof(message));
+       } else if (ret == 0) {
+               printf("No destination Number!!\n");
+               return -1;
+       }
+       diallingNum_len = ret - 1;
+       diallingNum[diallingNum_len] = '\0';
 
+       printf("Enter Message\n>> ");
+       fflush(stdout);
        ret = read(0, message, sizeof(message) - 1);
-
-       if (ret <= 0) {
-               msg(" NULL msg can NOT be sent ");
+       if (ret < 0) {
+               if (errno == EINTR)
+                       perror("read(1)");
+               return -1;
+       } else if (ret == 0) {
+               printf("No Message!!\n");
                return -1;
        }
-       message[sizeof(message) - 1] = '\0';
-
-       msg_len = strlen(message);
-       message[--msg_len] = 0;
+       msg_len = ret - 1;
+       message[msg_len] = '\0';
 
-       msg("==========================");
-       msg("To :%s", diallingNum);
-       msg("Message: %sMsg Length:%d", message, msg_len);
-       msg("Dialling number Length : %d", diallingNum_len);
-       msg("==========================\n");
+       printf("===========================\n");
+       printf("To: [%s] (len: %d)\n", diallingNum, diallingNum_len);
+       printf("Message: [%s]\nMsg Length: [%d]\n", message, msg_len);
+       printf("===========================\n\n");
 
        EncodeSmsSubmitTpdu(mm, diallingNum, diallingNum_len, message, msg_len);
        return 1;
@@ -1504,42 +1502,38 @@ static int SendMessageCDMA(MManager *mm, struct menu_data *menu)
 {
        int ret;
        int msg_len = 0;
-       char buf[512] ;
-       char message[512];
+       char message[512] = { 0, };
        char diallingNum[SMS_ADDRESS_LEN_MAX + 1] = { 0, };
        int diallingNum_len = 0;
 
        printf("\n");
        printf("Enter destination Number:\n>> ");
        fflush(stdout);
-
-       memset(buf, 0x0, sizeof(buf));
-       ret = read(0, buf, sizeof(buf));
+       ret = read(0, diallingNum, sizeof(diallingNum) - 1);
        if (ret < 0) {
                if (errno == EINTR)
                        perror("read(1)");
                return -1;
-       } else if (ret == 0)
-               return ret;
-
-
-       buf[strlen(buf)] = '\0';
-       memcpy(diallingNum, buf, strlen(buf)+1);
-       diallingNum_len = strlen(diallingNum);
+       } else if (ret == 0) {
+               printf("No destination Number!!\n");
+               return -1;
+       }
+       diallingNum_len = ret - 1;
+       diallingNum[diallingNum_len] = '\0';
 
-       printf("dialling num [%s], dialling num len [%d]\n", diallingNum, diallingNum_len);
        printf("Enter Message\n>> ");
        fflush(stdout);
-
-       memset(message, 0x0, sizeof(message));
        ret = read(0, message, sizeof(message) - 1);
-       if (ret <= 0) {
-               printf(" NULL msg can NOT be sent \n");
+       if (ret < 0) {
+               if (errno == EINTR)
+                       perror("read(1)");
+               return -1;
+       } else if (ret == 0) {
+               printf("No Message!!\n");
                return -1;
        }
-       message[strlen(message) - 1] = '\0';
-
-       msg_len = strlen(message);
+       msg_len = ret - 1;
+       message[msg_len] = '\0';
 
        printf("===========================\n");
        printf("To: [%s] (len: %d)\n", diallingNum, diallingNum_len);
@@ -1829,6 +1823,8 @@ static int Setting(MManager *mm, struct menu_data *menu)
        int i;
 
        char MemoryStatus[255] = {0, };
+       char msg_status[10] = {0, };
+       char index[10] = {0, };
 
        TelSmsCbConfig_t *pCBConfig;
 
@@ -1994,7 +1990,31 @@ RETRY:
        break;
 
        case 7: { /* Set Stored MsgStaus */
-               msg("Not suppored in this Test App !!!");
+               printf("Enter Message index to bet set:\n>> ");
+               fflush(stdout);
+               ret = read(0, index, sizeof(index) - 1);
+               if (ret < 0) {
+                       if (errno == EINTR)
+                               perror("read(1)");
+                       return -1;
+               } else if (ret == 0) {
+                       printf("No index!!!\n");
+               }
+
+               printf("Enter Message status to bet set (0:Read, 1:Unread, "
+                       "2:Sent, 3:Unsent, 4:Delivered, 5:Delivery Unconfirmed, 6:Message Replaced):\n>> ");
+               fflush(stdout);
+               ret = read(0, msg_status, sizeof(msg_status) - 1);
+               if (ret < 0) {
+                       if (errno == EINTR)
+                               perror("read(1)");
+                       return -1;
+               } else if (ret == 0) {
+                       printf("No msg_status!!!\n");
+               }
+
+               msg("Message status set!!! index[%d] msg_status[%d]", atoi(index), atoi(msg_status));
+               tel_set_sms_message_status(handle, atoi(index), atoi(msg_status), on_resp_set_msg_status, NULL);
        }
        break;
 
@@ -2084,10 +2104,10 @@ static struct menu_data menu_cdma_sms_getting[] = {
 static struct menu_data menu_sms_setting[] = {
                { "1", "Set Service Center Number", NULL, Setting, NULL},
                { "2", "Set Preferred Bearer Type", NULL, Setting, NULL},
-               { "3", "Set CB Enable/Disable", NULL, Setting, NULL},
-               { "4", "Set SMS Parameters", NULL, Setting, NULL},
-               { "5", "Set Memory Status", NULL, Setting, NULL},
-               { "6", "Set Message Status", NULL, Setting, NULL}, { NULL, NULL , }, };
+               { "4", "Set CB Enable/Disable", NULL, Setting, NULL},
+               { "5", "Set SMS Parameters", NULL, Setting, NULL},
+               { "6", "Set Memory Status", NULL, Setting, NULL},
+               { "7", "Set Message Status", NULL, Setting, NULL}, { NULL, NULL , }, };
 
 static struct menu_data menu_cdma_sms_setting[] = {
                { "1", "Set PreferredBearer Type", NULL, CdmaSetting, NULL },
index d565ccb906ce09fff9d697464ad5fbb899b5e3cc..edac4c35941d96237eb9d8e3bb6a36af3d9ae297 100644 (file)
@@ -851,7 +851,7 @@ void __util_hex_dump(const char *pad, int size, const void *data)
                                memset(buf, 0, 255);
                                snprintf(buf, 255, "%s%04X: ", pad, i + 1);
                        } else {
-                               strcat(buf, "  ");
+                               strncat(buf, "  ", strlen("  "));
                        }
                }
        }
index f40ad641b4644ff3408e557f258c10a049ba84a9..38fd0f20edce03e81cbf9cc746f7cec4f8db61f2 100644 (file)
@@ -619,7 +619,7 @@ static void __log_bearer_data(const struct sms_3gpp2_parameter *param)
 
                case SMS_3GPP2_BSUB_ID_PRIVACY_INDICATOR:
                        msg("--(TODO)Bearer Data: Privacy Indicator");
-               break;\r
+               break;
 
                case SMS_3GPP2_BSUB_ID_REPLY_OPTION:
                        msg("--(TODO)Bearer Data: Reply Option");