release tizen_2.0 beta
authorKyeongchul Kim <kyeongchul.kim@samsung.com>
Tue, 21 Aug 2012 13:41:57 +0000 (22:41 +0900)
committerKyeongchul Kim <kyeongchul.kim@samsung.com>
Tue, 21 Aug 2012 13:41:57 +0000 (22:41 +0900)
106 files changed:
CMakeLists.txt
debian/changelog
debian/control
debian/libslp-tapi-0.install.in
debian/libslp-tapi-dev.install.in
include/ITapiCall.h [new file with mode: 0644]
include/ITapiModem.h [new file with mode: 0644]
include/ITapiNetText.h [new file with mode: 0644]
include/ITapiNetwork.h [new file with mode: 0644]
include/ITapiPS.h [new file with mode: 0644]
include/ITapiPhonebook.h [new file with mode: 0644]
include/ITapiSap.h [new file with mode: 0644]
include/ITapiSat.h [new file with mode: 0644]
include/ITapiSim.h [new file with mode: 0644]
include/ITapiSs.h [new file with mode: 0644]
include/TapiUtility.h [new file with mode: 0644]
include/TelCall.h [new file with mode: 0644]
include/TelDefines.h [new file with mode: 0644]
include/TelDisplay.h [new file with mode: 0644]
include/TelErr.h [new file with mode: 0644]
include/TelMisc.h [new file with mode: 0644]
include/TelNetwork.h [new file with mode: 0644]
include/TelPower.h [new file with mode: 0644]
include/TelSat.h [new file with mode: 0644]
include/TelSatEnvelope.h [new file with mode: 0644]
include/TelSatObj.h [new file with mode: 0644]
include/TelSatProactvCmd.h [new file with mode: 0644]
include/TelSim.h [new file with mode: 0644]
include/TelSms.h [new file with mode: 0644]
include/TelSs.h [new file with mode: 0644]
include/common/TapiCommon.h [deleted file]
include/common/TapiEvent.h [deleted file]
include/common/TapiUtility.h [deleted file]
include/common/TelCall.h [deleted file]
include/common/TelData.h [deleted file]
include/common/TelDefines.h [deleted file]
include/common/TelDisplay.h [deleted file]
include/common/TelErr.h [deleted file]
include/common/TelMisc.h [deleted file]
include/common/TelNetText.h [deleted file]
include/common/TelNetwork.h [deleted file]
include/common/TelPower.h [deleted file]
include/common/TelSat.h [deleted file]
include/common/TelSatEnvelope.h [deleted file]
include/common/TelSatObj.h [deleted file]
include/common/TelSatProactvCmd.h [deleted file]
include/common/TelSim.h [deleted file]
include/common/TelSs.h [deleted file]
include/common/TelUtility.h [deleted file]
include/common/tel_cs_conn.h [deleted file]
include/porting/tel_marshaler.h [deleted file]
include/tapi/ITapiCall.h [deleted file]
include/tapi/ITapiCfg.h [deleted file]
include/tapi/ITapiData.h [deleted file]
include/tapi/ITapiGps.h [deleted file]
include/tapi/ITapiMisc.h [deleted file]
include/tapi/ITapiNetText.h [deleted file]
include/tapi/ITapiNetwork.h [deleted file]
include/tapi/ITapiOmadm.h [deleted file]
include/tapi/ITapiPS.h [deleted file]
include/tapi/ITapiPower.h [deleted file]
include/tapi/ITapiProductivity.h [deleted file]
include/tapi/ITapiSat.h [deleted file]
include/tapi/ITapiSim.h [deleted file]
include/tapi/ITapiSound.h [deleted file]
include/tapi/ITapiSs.h [deleted file]
include/tapi/tapi_proxy.h [deleted file]
include/tapi/tapi_proxy_internal.h [deleted file]
include/tapi_common.h [new file with mode: 0644]
include/tapi_event.h [new file with mode: 0644]
include/tapi_sat.h [new file with mode: 0644]
include/tapi_type.h [new file with mode: 0644]
packaging/libslp-tapi.spec
src/common.h [new file with mode: 0644]
src/common_tapi_lib.c [deleted file]
src/common_tapi_lib_internal.c [deleted file]
src/porting/tel_marshaler.c [deleted file]
src/tapi-lib.xml [deleted file]
src/tapi_call.c [new file with mode: 0644]
src/tapi_common.c [new file with mode: 0644]
src/tapi_log.h [new file with mode: 0644]
src/tapi_modem.c [new file with mode: 0644]
src/tapi_network.c [new file with mode: 0644]
src/tapi_phonebook.c [new file with mode: 0644]
src/tapi_proxy_call.c [deleted file]
src/tapi_proxy_cfg.c [deleted file]
src/tapi_proxy_common.c [deleted file]
src/tapi_proxy_data.c [deleted file]
src/tapi_proxy_gprs.c [deleted file]
src/tapi_proxy_gps.c [deleted file]
src/tapi_proxy_misc.c [deleted file]
src/tapi_proxy_nettext.c [deleted file]
src/tapi_proxy_network.c [deleted file]
src/tapi_proxy_omadm.c [deleted file]
src/tapi_proxy_power.c [deleted file]
src/tapi_proxy_productivity.c [deleted file]
src/tapi_proxy_sat.c [deleted file]
src/tapi_proxy_sim.c [deleted file]
src/tapi_proxy_sound.c [deleted file]
src/tapi_proxy_ss.c [deleted file]
src/tapi_sap.c [new file with mode: 0644]
src/tapi_sat.c [new file with mode: 0644]
src/tapi_sim.c [new file with mode: 0644]
src/tapi_sms.c [new file with mode: 0644]
src/tapi_ss.c [new file with mode: 0644]
tapi.pc.in

index 39f73c56d6be4efc7c263afebe8413a531aa50e2..bc640c41eef7ede50812851d2f6354780ecd2cf3 100644 (file)
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
-
 PROJECT(SLP-tapi C)
-SET(VERSION 0.0)
-
 
-### Global setting ###
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(EXEC_PREFIX "\${prefix}")
 SET(LIBDIR "\${prefix}/lib")
 SET(INCLUDEDIR "\${prefix}/include")
 
-MACRO(GET_TARGET_PROPERTY_WITH_DEFAULT _variable _target _property _default_value)
-       GET_TARGET_PROPERTY (${_variable} ${_target} ${_property})
-       IF (${_variable} MATCHES NOTFOUND)
-               SET (${_variable} ${_default_value})
-       ENDIF (${_variable} MATCHES NOTFOUND)
-ENDMACRO (GET_TARGET_PROPERTY_WITH_DEFAULT)
-
-MACRO(CREATE_LIBTOOL_FILE _target _install_DIR)
-       GET_TARGET_PROPERTY(_target_location ${_target} LOCATION)
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_static_lib ${_target} STATIC_LIB "")
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_dependency_libs ${_target} LT_DEPENDENCY_LIBS "")
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_current ${_target} LT_VERSION_CURRENT 0)
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_age ${_target} LT_VERSION_AGE 0)
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_revision ${_target} LT_VERSION_REVISION 0)
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_installed ${_target} LT_INSTALLED yes)
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_shouldnotlink ${_target} LT_SHOULDNOTLINK yes)
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_dlopen ${_target} LT_DLOPEN "")
-       GET_TARGET_PROPERTY_WITH_DEFAULT(_target_dlpreopen ${_target} LT_DLPREOPEN "")
-       GET_FILENAME_COMPONENT(_laname ${_target_location} NAME_WE)
-       GET_FILENAME_COMPONENT(_soname ${_target_location} NAME)
-       SET(_laname2 ${_laname}.la)
-       SET(_laname ${PROJECT_BINARY_DIR}/${_laname}.la)
-       FILE(WRITE ${_laname} "# ${_laname2} - a libtool library file\n")
-       FILE(APPEND ${_laname} "# Generated by CMake ${CMAKE_VERSION} (like GNU libtool)\n")
-       FILE(APPEND ${_laname} "\n# Please DO NOT delete this file!\n# It is necessary for linking the library with libtool.\n\n" )
-       FILE(APPEND ${_laname} "# The name that we can dlopen(3).\n")
-       FILE(APPEND ${_laname} "dlname='${_soname}'\n\n")
-       FILE(APPEND ${_laname} "# Names of this library.\n")
-       FILE(APPEND ${_laname} "library_names='${_soname}.${_target_current}.${_target_age}.${_target_revision} ${_soname}.${_target_current} ${_soname}'\n\n")
-       FILE(APPEND ${_laname} "# The name of the static archive.\n")
-       FILE(APPEND ${_laname} "old_library='${_target_static_lib}'\n\n")
-       FILE(APPEND ${_laname} "# Libraries that this one depends upon.\n")
-       FILE(APPEND ${_laname} "dependency_libs='${_target_dependency_libs}'\n\n")
-       FILE(APPEND ${_laname} "# Names of additional weak libraries provided by this library\n")
-       FILE(APPEND ${_laname} "weak_library_names=\n\n")
-       FILE(APPEND ${_laname} "# Version information for ${_laname2}.\n")
-       FILE(APPEND ${_laname} "current=${_target_current}\n")
-       FILE(APPEND ${_laname} "age=${_target_age}\n")
-       FILE(APPEND ${_laname} "revision=${_target_revision}\n\n")
-       FILE(APPEND ${_laname} "# Is this an already installed library?\n")
-       FILE(APPEND ${_laname} "installed=${_target_installed}\n\n")
-       FILE(APPEND ${_laname} "# Should we warn about portability when linking against -modules?\n")
-       FILE(APPEND ${_laname} "shouldnotlink=${_target_shouldnotlink}\n\n")
-       FILE(APPEND ${_laname} "# Files to dlopen/dlpreopen\n")
-       FILE(APPEND ${_laname} "dlopen='${_target_dlopen}'\n")
-       FILE(APPEND ${_laname} "dlpreopen='${_target_dlpreopen}'\n\n")
-       FILE(APPEND ${_laname} "# Directory that this library needs to be installed in:\n")
-       FILE(APPEND ${_laname} "libdir='${CMAKE_INSTALL_PREFIX}${_install_DIR}'\n")
-       INSTALL( FILES ${_laname} DESTINATION ${CMAKE_INSTALL_PREFIX}${_install_DIR})
-ENDMACRO(CREATE_LIBTOOL_FILE)
-
-
-# Build type : Release
-IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
-       SET(CMAKE_BUILD_TYPE "Release")
-ENDIF()
-MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
-
-
 # Set required packages
 INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED vconf glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 dlog security-server)
+pkg_check_modules(pkgs REQUIRED glib-2.0 gio-2.0 gthread-2.0 dlog security-server)
 
 FOREACH(flag ${pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS}  -Wl,-zdefs -fvisibility=hidden ")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wmissing-declarations -Wredundant-decls -Wcast-align")
+#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
 
-# Compiler flags
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/common
-               ${CMAKE_SOURCE_DIR}/include/tapi
-               ${CMAKE_SOURCE_DIR}/include/porting)
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wl,-zdefs" )
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
-SET(CMAKE_C_FLAGS_RELEASE "-O2")
-
-SET(CMAKE_SKIP_BUILD_RPATH true)
-
-
-# Get uname value to set 'TARGET' definition
-# TODO: Is this needed?
-FIND_PROGRAM(UNAME NAMES uname)
-EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
-IF("${ARCH}" STREQUAL "arm")
-       ADD_DEFINITIONS("-DTARGET")
-       ADD_DEFINITIONS("-D_TELEPHONY_ARM_ONEDRAM")
-       ADD_DEFINITIONS("-D_ARM_TOUCH -DFEATURE_GPS_XTRA")
-       MESSAGE("add -DTARGET")
-ELSE()
-       ADD_DEFINITIONS("-D_SIMUL_TOUCH -DFEATURE_GPS_XTRA")
-ENDIF()
-
-
-ADD_DEFINITIONS("-D_CP_INFINEON_")
-#ADD_DEFINITIONS("-D_CP_QUALCOMM_")
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/src)
 
-ADD_DEFINITIONS("-D_MACHINE_AQUILA_")
+ADD_DEFINITIONS("-DFEATURE_DLOG_DEBUG")
+ADD_DEFINITIONS("-DTAPI_LOG_TAG=\"LIBTAPI\"")
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-
-ADD_DEFINITIONS("-DTELEPHONY_TIMER")
-ADD_DEFINITIONS("-DFEATURE_TELEPHONY_GPS")
-ADD_DEFINITIONS("-D_TAPI_DEBUG_ON_DEBUG_VIEWER_")
-ADD_DEFINITIONS("-DLARGE_ICON")
 ADD_DEFINITIONS(" -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" ")
 
-
-# Linker flags
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
-
+MESSAGE(${CMAKE_C_FLAGS})
+MESSAGE(${CMAKE_EXE_LINKER_FLAGS})
 
 ### Build ###
 SET(SRCS
-               src/tapi_proxy_common.c
-               src/tapi_proxy_network.c
-               src/tapi_proxy_sim.c
-               src/tapi_proxy_ss.c
-               src/tapi_proxy_call.c
-               src/tapi_proxy_nettext.c
-               src/tapi_proxy_sat.c
-               src/common_tapi_lib.c
-               src/tapi_proxy_sound.c
-               src/tapi_proxy_gprs.c
-               src/porting/tel_marshaler.c
-               src/common_tapi_lib_internal.c
-               src/tapi_proxy_cfg.c
-               src/tapi_proxy_productivity.c
-               src/tapi_proxy_power.c
-               src/tapi_proxy_gps.c
-               src/tapi_proxy_omadm.c
-               src/tapi_proxy_misc.c
-               src/tapi_proxy_data.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
    )
 
-ADD_CUSTOM_TARGET(tapi-lib-proxy.h
-               COMMAND dbus-binding-tool --prefix= --mode=glib-client --output=${CMAKE_CURRENT_SOURCE_DIR}/include/tapi/tapi-lib-proxy.h ${CMAKE_CURRENT_SOURCE_DIR}/src/tapi-lib.xml)
-
-#ADD_LIBRARY(SLP-tapi_STATIC STATIC ${SRCS})
-#TARGET_LINK_LIBRARIES(SLP-tapi_STATIC ${pkgs_LDFLAGS})
-#SET_TARGET_PROPERTIES(SLP-tapi_STATIC PROPERTIES VERSION 0.0.0 SOVERSION 0 OUTPUT_NAME SLP-tapi)
-#ADD_DEPENDENCIES(SLP-tapi_STATIC tapi-lib-proxy.h)
-
-ADD_LIBRARY(SLP-tapi_SHARED SHARED ${SRCS})
-TARGET_LINK_LIBRARIES(SLP-tapi_SHARED ${pkgs_LDFLAGS})
-SET_TARGET_PROPERTIES(SLP-tapi_SHARED PROPERTIES VERSION 0.0.0 SOVERSION 0 OUTPUT_NAME SLP-tapi)
-CREATE_LIBTOOL_FILE(SLP-tapi_SHARED /lib)
-
-ADD_DEPENDENCIES(SLP-tapi_SHARED tapi-lib-proxy.h)
+ADD_LIBRARY(SLP-tapi SHARED ${SRCS})
+TARGET_LINK_LIBRARIES(SLP-tapi ${pkgs_LDFLAGS})
+SET_TARGET_PROPERTIES(SLP-tapi PROPERTIES VERSION 0.0.0 SOVERSION 0 OUTPUT_NAME SLP-tapi)
 
 # pkgconfig file
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 CONFIGURE_FILE(tapi.pc.in tapi.pc @ONLY)
 
-
-### Install ###
-#INSTALL(TARGETS SLP-tapi_STATIC SLP-tapi_SHARED DESTINATION lib)
-#INSTALL(TARGETS SLP-tapi_STATIC SLP-tapi_SHARED DESTINATION lib COMPONENT Development)
-#INSTALL(TARGETS SLP-tapi DESTINATION lib COMPONENT RuntimeLibraries)
-INSTALL(TARGETS SLP-tapi_SHARED DESTINATION lib COMPONENT Runtime)
-
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/common DESTINATION include/telephony)
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/tapi DESTINATION include/telephony)
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include/telephony-client)
 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tapi.pc DESTINATION lib/pkgconfig)
+INSTALL(TARGETS SLP-tapi DESTINATION lib COMPONENT Runtime)
 
+#ADD_SUBDIRECTORY(test_src)
index 21c8583d8a9f952bfa0110e40329b85e69a33e67..4a51001defb7b6057089acfb8cc0be26825abff3 100644 (file)
+libslp-tapi (0.5.89) unstable; urgency=low
+
+  * Sync Version with OBS
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.89
+
+ -- Youngman Park <youngman.park@samsung.com>  Fri, 25 May 2012 14:40:21 +0900
+
+libslp-tapi (0.5.88) unstable; urgency=low
+
+  * Sync Header File with Public GIT
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.88
+
+ -- Youngman Park <youngman.park@samsung.com>  Thu, 24 May 2012 22:30:21 +0900
+
+libslp-tapi (0.5.87) unstable; urgency=low
+
+  * add new feature for call, factory & phonebook select function
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.87
+
+ -- Youngman Park <youngman.park@samsung.com>  Mon, 21 May 2012 17:50:21 +0900
+
+libslp-tapi (0.5.86) unstable; urgency=low
+
+  * add sim api - get lock info and update phonebook data
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.86
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Thu, 17 May 2012 17:32:21 +0900
+
+libslp-tapi (0.5.86) unstable; urgency=low
+
+  * add sim api - get lock info and update phonebook data
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.86
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Thu, 17 May 2012 17:32:21 +0900
+
+libslp-tapi (0.5.85) unstable; urgency=low
+
+  * glib include into Sound Header to use gboolean type
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.85
+
+ -- Youngman Park <youngman.park@samsung.com>  Tue, 08 May 2012 14:20:33 +0900
+
+libslp-tapi (0.5.84) unstable; urgency=low
+
+  * Add Call New API ( call custom service )
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.84
+
+ -- Youngman Park <youngman.park@samsung.com>  Mon, 07 May 2012 16:05:33 +0900
+
+libslp-tapi (0.5.83) unstable; urgency=low
+
+  * Fix dbus bug
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.83
+
+ -- DongHoo Park <donghoo.park@samsung.com>  Tue, 10 Apr 2012 15:13:33 +0900
+
+libslp-tapi (0.5.82) unstable; urgency=low
+
+  * version up for code sync with public binary
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.82
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Mon, 02 Apr 2012 12:00:29 +0900
+
 libslp-tapi (0.5.81) unstable; urgency=low
 
   * add defence code in case of api return error
-  * Git: pkgs/l/libslp-tapi
+  * Git: slp/pkgs/l/libslp-tapi
   * Tag: libslp-tapi_0.5.81
 
  -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Wed, 21 Mar 2012 21:52:04 +0900
 
 libslp-tapi (0.5.80) unstable; urgency=low
 
-  * Remove useless comments and update phonebook record data struct 
-  * Git: pkgs/l/libslp-tapi
+  * Update phonebook record struct
+  * Git: slp/pkgs/l/libslp-tapi
   * Tag: libslp-tapi_0.5.80
 
- -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Tue, 20 Mar 2012 15:48:23 +0900
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Mon, 19 Mar 2012 22:54:30 +0900
 
 libslp-tapi (0.5.79) unstable; urgency=low
 
-  * code clean up and update SIM-authentication feature 
-  * Git: pkgs/l/libslp-tapi
+  * disable SAT functionality temporary
+  * Git: slp/pkgs/l/libslp-tapi
   * Tag: libslp-tapi_0.5.79
 
- -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Thu, 16 Feb 2012 20:48:35 +0900
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Mon, 19 Mar 2012 14:52:45 +0900
 
 libslp-tapi (0.5.78) unstable; urgency=low
 
-  * Removed fast dormancy api
-  * Git: pkgs/l/libslp-tapi
+  * code clean up
+  * Git: slp/pkgs/l/libslp-tapi
   * Tag: libslp-tapi_0.5.78
 
- -- Inho Oh <inho48.oh@samsung.com>  Wed, 28 Dec 2011 16:05:18 +0900
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Thu, 16 Feb 2012 21:00:36 +0900
 
 libslp-tapi (0.5.77) unstable; urgency=low
 
-  * code clean up
-  * Git: pkgs/l/libslp-tapi
+  * SIM auth API and Doxygen comments are updated
+  * Git: slp/pkgs/l/libslp-tapi
   * Tag: libslp-tapi_0.5.77
 
- -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Fri, 23 Dec 2011 18:04:11 +0900
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Wed, 01 Feb 2012 16:51:05 +0900
 
 libslp-tapi (0.5.76) unstable; urgency=low
 
   * Factory Omission Avoidance Bug Fix ( Confirm Message Broadcasting Problem )
-  * Git: pkgs/l/libslp-tapi
+  * Git: slp/pkgs/l/libslp-tapi
   * Tag: libslp-tapi_0.5.76
 
  -- Youngman Park <youngman.park@samsung.com>  Fri, 09 Dec 2011 19:19:47 +0900
@@ -49,7 +121,1692 @@ libslp-tapi (0.5.76) unstable; urgency=low
 libslp-tapi (0.5.75) unstable; urgency=low
 
   * TIZEN initial version
-  * Git: pkgs/l/libslp-tapi
+  * Git: slp/pkgs/l/libslp-tapi
   * Tag: libslp-tapi_0.5.75
 
  -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Wed, 07 Dec 2011 20:19:47 +0900
+
+libslp-tapi (0.5.74) unstable; urgency=low
+
+  * Modify Code for Factory Sound Loopback
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.74
+
+ -- Youngman Park <youngman.park@samsung.com>  Wed, 23 Nov 2011 19:41:55 +0900
+
+libslp-tapi (0.5.73) unstable; urgency=low
+
+  * remove duplicated api with capi
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.73
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Tue, 08 Nov 2011 21:12:55 +0900
+
+libslp-tapi (0.5.72) unstable; urgency=low
+
+  * add sync APIs to get vconf values(network, sim)
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.72
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Tue, 08 Nov 2011 09:40:55 +0900
+
+libslp-tapi (0.5.71) unstable; urgency=low
+
+  * add emergency mode feature(MDM requirement)
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.71
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Fri, 04 Nov 2011 16:56:43 +0900
+
+libslp-tapi (0.5.70) unstable; urgency=low
+
+  * clean up TC code
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.70
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Thu, 06 Oct 2011 18:02:49 +0900
+
+libslp-tapi (0.5.69) unstable; urgency=low
+
+  * Merged with tapi-priv
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.69
+
+ -- Inho Oh <inho48.oh@samsung.com>  Thu, 29 Sep 2011 14:53:38 +0900
+
+libslp-tapi (0.5.68) unstable; urgency=low
+
+  * Added msisdn api, extended language enum, fixed TC issue.
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.68
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Wed, 21 Sep 2011 13:52:47 +0900
+
+libslp-tapi (0.5.67) unstable; urgency=low
+
+  * Removed unused API and added new APIs(cf,mw,cphs)
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.67
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Wed, 31 Aug 2011 16:09:35 +0900
+
+libslp-tapi (0.5.66) unstable; urgency=low
+
+  * Fixed boilerplate, AUTHORS and COPYING. SAT-setup menu seq change 
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.66
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Sat, 23 Jul 2011 13:34:56 +0900
+
+libslp-tapi (0.5.65) unstable; urgency=low
+
+  * Add feature for getting ICCID and prevent bug fix
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.65
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Thu, 26 May 2011 20:22:27 +0900
+
+libslp-tapi (0.5.64) unstable; urgency=low
+
+  * Factory code is added & SS CQ is fixed
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.64
+
+ -- Youngman Park <youngman.park@samsung.com>  Wed, 16 Mar 2011 10:53:49 +0900
+
+libslp-tapi (0.5.63) unstable; urgency=low
+
+  * Fixed prevent bugs
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.63
+
+ -- Inho Oh <inho48.oh@samsung.com>  Thu, 17 Feb 2011 13:53:49 +0900
+
+libslp-tapi (0.5.62) unstable; urgency=low
+
+  * TC code clean
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.62
+
+ -- Youngman Park <youngman.park@samsung.com>  Wen, 9 Feb 2011 20:50:12 +0900
+
+libslp-tapi (0.5.61) unstable; urgency=low
+
+  * fix TC & add SAT event
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.61
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Mon, 31 Jan 2011 20:57:12 +0900
+
+libslp-tapi (0.5.60) unstable; urgency=low
+
+  * The parameter in S.S ussd tapi is changed.
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.60
+
+ -- Youngman Park <youngman.park@samsung.com>  Fri, 14 Jan 2011 21:18:21 +0900
+
+libslp-tapi (0.5.59) unstable; urgency=low
+
+  * Dbus output param sync with telephony server
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.59
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Mon, 10 Jan 2011 21:03:21 +0900
+
+libslp-tapi (0.5.58) unstable; urgency=low
+
+  * Added security cookie feature
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.58
+
+ -- Inho Oh <inho48.oh@samsung.com>  Thu, 06 Jan 2011 12:31:04 +0900
+
+libslp-tapi (0.5.57) unstable; urgency=low
+
+  * Add SIM, ME SMS memory full enum
+  * Git: slp/pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.57
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 06 Dec 2010 15:02:03 +0900
+
+libslp-tapi (0.5.56) unstable; urgency=low
+
+  * Fix the wrong event data length bug
+  * Git: slp/pkgs/libslp-tapi
+  * Tag: libslp-tapi_0.5.56
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 24 Nov 2010 18:42:10 +0900
+
+libslp-tapi (0.5.55) unstable; urgency=low
+
+  * package name is changed com.samsung... -> deb.com.samsung...
+  * Git: slp/pkgs/libslp-tapi
+  * Tag: libslp-tapi_0.5.55
+
+ -- Youngman Park <youngman.park@samsung.com>  Mon, 22 Nov 2010 16:31:28 +0900
+
+libslp-tapi (0.5.54) unstable; urgency=low
+
+  * Add TAPI_EVENT_SS_USSD_RSP_CNF and re-define TAPI_CS_SS_USSDRSP
+  * Git: slp/pkgs/libslp-tapi
+  * Tag: libslp-tapi_0.5.54
+
+ -- Sunghyuk Leee <sunghyuk.lee@samsung.com>  Fri, 12 Nov 2010 18:28:28 +0900
+
+libslp-tapi (0.5.53) unstable; urgency=low
+
+  * add image file
+  * Git: slp/pkgs/libslp-tapi
+  * Tag: libslp-tapi_0.5.53
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Mon, 08 Nov 2010 14:32:31 +0900
+
+libslp-tapi (0.5.52) unstable; urgency=low
+
+  * add la file
+  * Git: slp/pkgs/libslp-tapi
+  * Tag: libslp-tapi_0.5.52
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Wed, 03 Nov 2010 19:16:31 +0900
+
+libslp-tapi (0.5.51) unstable; urgency=low
+
+  * version update
+  * Git: slp/pkgs/libslp-tapi
+  * Tag: libslp-tapi_0.5.51
+
+ -- Youngman Park <youngman.park@samsung.com>  Tue, 02 Nov 2010 20:00:35 +0900
+
+libslp-tapi (0.5.50) unstable; urgency=low
+
+  * Removed libSLP-tapi.la
+  * Git: slp/pkgs/libslp-tapi
+  * Tag: libslp-tapi_0.5.50
+
+ -- Inho Oh <inho48.oh@samsung.com>  Tue, 02 Nov 2010 15:30:35 +0900
+
+libslp-tapi (0.5.49) unstable; urgency=low
+
+  * separated source repository
+  * Git: slp/pkgs/libslp-tapi
+  * Tag: libslp-tapi_0.5.49
+
+ -- Inho Oh <inho48.oh@samsung.com>  Tue, 2 Nov 2010 11:09:15 +0900
+
+telephony-fwk (0.5.48) unstable; urgency=low
+
+  * Update PG and sim,gprs code
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.48
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Sun, 31 Oct 2010 16:50:12 +0900
+
+telephony-fwk (0.5.47) unstable; urgency=low
+
+  * GPS TIS work
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.47
+
+ -- Youngman Park <youngman.park@samsung.com>  Tue, 19 Oct 2010 19:43:44 +0900
+
+telephony-fwk (0.5.46) unstable; urgency=low
+
+  * Launch voicecall ui with AUL upon SAT SETUP CALL IND
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.46
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 18 Oct 2010 20:54:44 +0900
+
+telephony-fwk (0.5.45) unstable; urgency=low
+
+  * Fixed GPRS requestid mismatch problem
+  * Removed wrong binary file (TC file)
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.45
+
+ -- Inho Oh <inho48.oh@samsung.com>  Mon, 18 Oct 2010 20:03:18 +0900
+
+telephony-fwk (0.5.44) unstable; urgency=low
+
+  * Telephony SAT sends the SAT USSD message by itself
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.44
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 18 Oct 2010 18:28:17 +0900
+
+telephony-fwk (0.5.43) unstable; urgency=low
+
+  * wrong code is fixed in debian/rules
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.43
+
+ -- Youngman Park <youngman.park@samsung.com>  Tue, 12 Oct 2010 20:10:33 +0900
+
+telephony-fwk (0.5.42) unstable; urgency=low
+
+  * debian/rule script is changed for hib
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.42
+
+ -- Youngman Park <youngman.park@samsung.com>  Tue, 12 Oct 2010 19:43:33 +0900
+
+telephony-fwk (0.5.41) unstable; urgency=low
+
+  * Add Device Node for DFT Rev0.9
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.41
+
+ -- Youngman Park <youngman.park@samsung.com>  Tue, 12 Oct 2010 11:10:33 +0900
+
+telephony-fwk (0.5.40) unstable; urgency=low
+
+  * HIB path is changed
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.40
+
+ -- Youngman Park <youngman.park@samsung.com>  Mon, 11 Oct 2010 13:33:33 +0900
+
+telephony-fwk (0.5.39) unstable; urgency=low
+
+  * Do not launch CISS upon SAT event  
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.39
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 11 Oct 2010 10:33:33 +0900
+
+telephony-fwk (0.5.38) unstable; urgency=low
+
+  * Add nvdata file create code
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.38
+
+ -- Youngman Park <youngman.park@samsung.com>  Fri, 01 Oct 2010 21:58:01 +0900
+
+telephony-fwk (0.5.37) unstable; urgency=low
+
+  * Inform flightmode state to kernel
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.37
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 01 Oct 2010 21:07:40 +0900
+
+telephony-fwk (0.5.36) unstable; urgency=low
+
+  * telephony PG is added
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.36
+
+ -- Youngman Park <youngman.park@samsung.com>  Fri, 01 Oct 2010 19:40:01 +0900
+
+telephony-fwk (0.5.35) unstable; urgency=low
+
+  * Add code to creat NV Data file (oem_init)
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.35
+
+ -- Youngman Park <youngman.park@samsung.com>  Fri, 01 Oct 2010 14:56:01 +0900
+
+telephony-fwk (0.5.34) unstable; urgency=low
+
+  * Stop launching CISS-MMI upon USSD CNF
+  * Remove binary files which were gernerated by TET-WARE
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.34
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 01 Oct 2010 14:20:01 +0900
+
+telephony-fwk (0.5.33) unstable; urgency=low
+
+  * Change a dependat svn package name
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.33
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 30 Sep 2010 19:16:19 +0900
+
+telephony-fwk (0.5.32) unstable; urgency=low
+
+  * Modify the Misc IPC header file 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.32
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 27 Sep 2010 15:53:15 +0900
+
+telephony-fwk (0.5.31) unstable; urgency=low
+
+  * Remove GPL licensed codes 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.31
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 27 Sep 2010 10:09:37 +0900
+
+telephony-fwk (0.5.30) unstable; urgency=low
+
+  * Add tet_scen and tslist.txt for SE team 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.30
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 27 Sep 2010 09:54:42 +0900
+
+telephony-fwk (0.5.29) unstable; urgency=low
+
+  * Update the telephony test cases
+  * Fix some tapi proxy errors
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.29
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 20 Sep 2010 18:38:11 +0900
+
+telephony-fwk (0.5.28) unstable; urgency=low
+
+  * Add Uploader 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.28
+
+ -- Youngman Park <youngman.park@samsung.com>  Fri, 17 Sep 2010 11:38:12 +0900
+
+telephony-fwk (0.5.27) unstable; urgency=low
+
+  * Modify Time value for Power OFF ( 30Sec -> 10Sec)
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.27
+
+ -- Youngman Park <youngman.park@samsung.com>  Thu, 16 Sep 2010 21:52:42 +0900
+
+telephony-fwk (0.5.26) unstable; urgency=low
+
+  * Fix the SIM Tapi returning value garray index mismatch
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.26
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 16 Sep 2010 13:16:12 +0900
+
+telephony-fwk (0.5.25) unstable; urgency=low
+
+  * Add AUL interface for incoming call event
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.25
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 15 Sep 2010 09:14:27 +0900
+
+telephony-fwk (0.5.24) unstable; urgency=low
+
+  * Make the test apps compilable and upload test cases
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.24
+
+ -- Sunghyuk <sunghyuk.lee@samsung.com>  Mon, 13 Sep 2010 15:16:36 +0900
+
+telephony-fwk (0.5.23) unstable; urgency=low
+
+  * repackaging for EFL upgrade
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.23
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Fri, 10 Sep 2010 21:58:32 +0900
+
+telephony-fwk (0.5.22) unstable; urgency=low
+
+  * Fix the pdp deactivating signal
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.22
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 09 Sep 2010 22:34:32 +0900
+
+telephony-fwk (0.5.21) unstable; urgency=low
+
+  * Deny the pdp request if the dpd status is wrong
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.21
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 09 Sep 2010 15:05:01 +0900
+
+telephony-fwk (0.5.20) unstable; urgency=low
+
+  * Fix typo of pdp deactivating path
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.20
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 09 Sep 2010 13:47:12 +0900
+
+telephony-fwk (0.5.19) unstable; urgency=low
+
+  * remove system power off command
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.19
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Wed, 08 Sep 2010 14:12:43 +0900
+
+telephony-fwk (0.5.18) unstable; urgency=low
+
+  * bug fix
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.18
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Mon, 06 Sep 2010 10:59:43 +0900
+
+telephony-fwk (0.5.17) unstable; urgency=low
+
+  * add Tunnel API and fix bug in gprs suspend/resume
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.17
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Fri, 03 Sep 2010 21:24:43 +0900
+
+telephony-fwk (0.5.16) unstable; urgency=low
+
+  * Exclude TelUtility_ext.h from dev installation
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.16
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 03 Sep 2010 09:52:43 +0900
+
+telephony-fwk (0.5.15) unstable; urgency=low
+
+  * Rename the SAT server function 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.15
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 01 Sep 2010 16:31:00 +0900
+
+telephony-fwk (0.5.14) unstable; urgency=low
+
+  * Revise TapiCommon.h doxygen comments
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.14
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Tue, 31 Aug 2010 10:56:26 +0900
+
+telephony-fwk (0.5.13) unstable; urgency=low
+
+  * Revise TAPI doxygen 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.13
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 30 Aug 2010 21:27:03 +0900
+
+telephony-fwk (0.5.12) unstable; urgency=low
+
+  * Fix dlog string error in oem_init 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.12
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 27 Aug 2010 17:41:04 +0900
+
+telephony-fwk (0.5.11) unstable; urgency=low
+
+  * Kernel boots the CP instead of Telephony Server
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.11
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 26 Aug 2010 13:01:12 +0900
+
+telephony-fwk (0.5.10) unstable; urgency=low
+
+  * Add images and PG doxygen
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.10
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Thu, 26 Aug 2010 11:10:28 +0900
+
+telephony-fwk (0.5.9) unstable; urgency=low
+
+  * add sleep during modem bootin 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.9
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Wed, 25 Aug 2010 11:58:10 +0900
+
+elephony-fwk (0.5.8) unstable; urgency=low
+
+  * Change the swap confirmation to fix timeout issue at call swap 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.8
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Tue, 24 Aug 2010 19:35:10 +0900
+
+telephony-fwk (0.5.7) unstable; urgency=low
+
+  * Publish SAT event with Dbus
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.7
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 20 Aug 2010 21:58:36 +0900
+
+telephony-fwk (0.5.6) unstable; urgency=low
+
+  * Fix CiSS AUL key string 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.6
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 20 Aug 2010 14:47:21 +0900
+
+telephony-fwk (0.5.5) unstable; urgency=low
+
+  * Fix timing issue with nitz_updater on booting time 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.5
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 18 Aug 2010 17:13:09 +0900
+
+telephony-fwk (0.5.4) unstable; urgency=low
+
+  * Fix a bug regarding response upon SAT envelope commands
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.4
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 13 Aug 2010 22:26:59 +0900
+
+telephony-fwk (0.5.3) unstable; urgency=low
+
+  * Fix the memory corruption issue at OEM request list operation
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.3
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 11 Aug 2010 10:52:02 +0900
+
+telephony-fwk (0.5.2) unstable; urgency=low
+
+  * Disable event downloading feature temporarily
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.2
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 09 Aug 2010 11:06:44 +0900
+
+telephony-fwk (0.5.1) unstable; urgency=low
+
+  * Log to dlog
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.1
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 09 Aug 2010 09:16:57 +0900
+
+telephony-fwk (0.5.0) unstable; urgency=low
+
+  * Apply phonet socket interface
+  * Change OEM callback scheme
+  * Imporve GPRS OEM interface
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.5.0
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 06 Aug 2010 17:04:27 +0900
+
+telephony-fwk (0.4.22) unstable; urgency=low
+
+  * Disable the modem boot option
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.22
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 06 Aug 2010 09:27:34 +0900
+
+telephony-fwk (0.4.21) unstable; urgency=low
+
+  * Config git user setting
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.21
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 05 Aug 2010 21:09:25 +0900
+
+telephony-fwk (0.4.20) unstable; urgency=low
+
+  * Apply new AUL api 
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.20
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 05 Aug 2010 20:01:08 +0900
+
+telephony-fwk (0.4.19) unstable; urgency=low
+
+  * bug fix in factory
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.19
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Thu, 29 Jul 2010 16:51:04 +0900
+
+telephony-fwk (0.4.18) unstable; urgency=low
+
+  * Add g_type_init
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.18
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Wed, 28 Jul 2010 20:33:04 +0900
+
+telephony-fwk (0.4.17) unstable; urgency=low
+
+  * Move the TelPower.h and TelDisplay.h to internal common header folder
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.17
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 21 Jul 2010 13:47:04 +0900
+
+telephony-fwk (0.4.16) unstable; urgency=low
+
+  * Modify doxygen tag of misc, event_internal
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.16
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Tue, 20 Jul 2010 19:16:15 +0900
+
+telephony-fwk (0.4.15) unstable; urgency=low
+
+  * Modify doxygen tag of display, power headers
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.15
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Tue, 20 Jul 2010 19:05:09 +0900
+
+telephony-fwk (0.4.14) unstable; urgency=low
+
+  * Fix the VT event mismatch issue
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.14
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Tue, 20 Jul 2010 16:09:26 +0900
+
+telephony-fwk (0.4.13) unstable; urgency=low
+
+  * Fix some doxygen warnings and missing symbol issues
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.13
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 19 Jul 2010 18:04:41 +0900
+
+telephony-fwk (0.4.12) unstable; urgency=low
+
+  * Fix the event string for ts_delivery_initcomplete_event
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.12
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 19 Jul 2010 08:44:16 +0900
+
+telephony-fwk (0.4.11) unstable; urgency=low
+
+  * Add the debug package rule
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.11
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 16 Jul 2010 11:50:31 +0900
+
+telephony-fwk (0.4.10) unstable; urgency=low
+
+  * Correct some doxygen typo and missing symbol problem
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.10
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 15 Jul 2010 20:49:34 +0900
+
+telephony-fwk (0.4.9) unstable; urgency=low
+
+  * Fix the internal function which determine whether the request is
+    synchronous or not
+  * Git: slp/pkgs/telephony-fwk
+  * Tag: telephony-fwk_0.4.9
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 15 Jul 2010 11:57:01 +0900
+
+telephony-fwk (0.4.8) unstable; urgency=low
+
+  * Add io channel watch to g_main_loop for User actvity event 
+  * Remove g_source which g_io_channel_watch has added
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.8
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Sat, 10 Jul 2010 15:06:49 +0900
+
+telephony-fwk (0.4.7) unstable; urgency=low
+
+  * Hide unwanted functions from being visible in the library
+  * Generate the debug packages
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.7
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 09 Jul 2010 20:57:23 +0900
+
+telephony-fwk (0.4.6) unstable; urgency=low
+
+  * Serarate telephony server main loop and rfs loop
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.6
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 09 Jul 2010 11:54:48 +0900
+
+telephony-fwk (0.4.5) unstable; urgency=low
+
+  * Separate internal server features from the telephony server
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.5
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 08 Jul 2010 17:26:15 +0900
+
+telephony-fwk (0.4.4) unstable; urgency=low
+
+  * Update the boiler plate
+  * Remove 'LIMO' from some definitions
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.4
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 07 Jul 2010 10:11:58 +0900
+
+telephony-fwk (0.4.3) unstable; urgency=low
+
+  * Fix SAT bug which was caused by garray index mismatch of the userdata
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.3
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Tue, 06 Jul 2010 21:10:57 +0900
+
+telephony-fwk (0.4.2) unstable; urgency=low
+
+  * Change to Single Thread
+  * Fix a bug on the simulator
+  * Add doxygen flag which exclude the private package from the document
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.2
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 05 Jul 2010 13:37:36 +0900
+
+telephony-fwk (0.4.1) unstable; urgency=low
+
+  * Fix the event string mismatch bug for power, svcmode, display
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.1
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 01 Jul 2010 20:35:13 +0900
+
+telephony-fwk (0.4.0) unstable; urgency=low
+
+  * Change the telephony event definition
+  * Point-to-point event delivery
+  * Add a user data parameter at the tel_register_event API
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.4.0
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 01 Jul 2010 14:03:57 +0900
+
+telephony-fwk (0.3.17) unstable; urgency=low
+
+  * request id modification 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.17
+
+ -- SungEun Lee <selee@samsung.com>  Fri, 25 Jun 2010 14:01:25 +0900
+
+telephony-fwk (0.3.16) unstable; urgency=low
+
+  * dlog modification
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.16
+
+ -- SungEun Lee <selee@samsung.com>  Thu, 17 Jun 2010 11:01:25 +0900
+
+telephony-fwk (0.3.15) unstable; urgency=low
+
+  * dlog modification
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.15
+
+ -- SungEun Lee <selee@samsung.com>  Wed, 16 Jun 2010 09:27:25 +0900
+
+telephony-fwk (0.3.14) unstable; urgency=low
+
+  * version up for EFL upgrade
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.14
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Fri, 11 Jun 2010 11:14:25 +0900
+
+telephony-fwk (0.3.13) unstable; urgency=low
+
+  * noti modification for vt
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.13
+
+ -- SungEun Lee <selee@samsung.com>  Wend, 08 Jun 2010 23:15:01 +0900
+
+telephony-fwk (0.3.12) unstable; urgency=low
+
+  * noti modification
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.12
+
+ -- SungEun Lee <selee@samsung.com>  Wend, 08 Jun 2010 17:25:01 +0900
+
+telephony-fwk (0.3.11) unstable; urgency=low
+
+  * gprs modification for dormant
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.11
+
+ -- SungEun Lee <selee@samsung.com>  Mon, 07 Jun 2010 17:25:01 +0900
+
+telephony-fwk (0.3.10) unstable; urgency=low
+
+  * Support the AUL for SAT and CiSS
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.10
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 07 Jun 2010 10:53:01 +0900
+
+telephony-fwk (0.3.9) unstable; urgency=low
+   
+  * resolve build break due to utilcore dependency
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.9
+ -- Hyeongbae Park <jupio.park@samsung.com>  Fri, 04 Jun 2010 15:55:28 +0900
+
+telephony-fwk (0.3.8) unstable; urgency=low
+   
+  * fixed rsim access operation 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.8
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Thu, 03 Jun 2010 22:01:28 +0900
+
+telephony-fwk (0.3.7) unstable; urgency=low
+   
+  * the old API is removed 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.7
+ -- selee <selee@samsung.com>  Thu, 03 Jun 2010 13:50:01 +0900
+
+telephony-fwk (0.3.6) unstable; urgency=low
+
+  * bug fix in sms read message and change bs, vt launch ways 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.6
+
+ -- hyeongbae park <jupio.park@samsung.com>  Tue, 1 Jun 2010 17:00:34 +0900
+
+telephony-fwk (0.3.5) unstable; urgency=low
+
+  * rollback previous work(aul)
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.5
+
+ -- sungeun lee <selee@samsung.com>  Sun, 30 May 2010 16:30:34 +0900
+
+telephony-fwk (0.3.4) unstable; urgency=low
+
+  * change vt launching method from fork to aul
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.4
+
+ -- sungeun lee <selee@samsung.com>  Sun, 30 May 2010 15:12:34 +0900
+
+telephony-fwk (0.3.3) unstable; urgency=low
+
+  * Fix pin check procedure for getting valid retry count
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.3
+
+ -- kyeongchul kim <kyeongchul.kim@samsung.com>  Sun, 30 May 2010 13:37:34 +0900
+
+telephony-fwk (0.3.2) unstable; urgency=low
+
+  * Fix debug print statement in tel_get_sim_init_info
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.2
+
+ -- kyeongchul kim <kyeongchul.kim@samsung.com>  Sat, 29 May 2010 17:30:12 +0900
+
+telephony-fwk (0.3.1) unstable; urgency=low
+
+  * Fix the typo, tel_prcoess_power_command
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.1
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Sat, 29 May 2010 13:58:59 +0900
+
+telephony-fwk (0.3.0) unstable; urgency=low
+
+  * Telephony API Enhancement
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.3.0
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Sat, 29 May 2010 13:28:50 +0900
+
+telephony-fwk (0.2.27) unstable; urgency=low
+
+  * Disable dbus auto-activation according to the DAC policy 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.27
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 28 May 2010 16:23:04 +0900
+
+telephony-fwk (0.2.26) unstable; urgency=low
+
+  * Change the package maintainer 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.26
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 24 May 2010 09:37:01 +0900
+
+telephony-fwk (0.2.25) unstable; urgency=low
+   * Change boot script for hibernation capturing
+   * Git: slp2.0/slp2.0-pkgs/telephony-0
+   * Tag: telephony-fwk_0.2.25
+ -- Hyeongbae Park <jupio.park@samsung.com>  Mon, 17 May 2010 11:29:15 +0900
+
+telephony-fwk (0.2.24) unstable; urgency=low
+   * Change the file permission and owner according to the new security
+   * Git: slp2.0/slp2.0-pkgs/telephony-0
+   * Tag: telephony-fwk_0.2.24
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 14 May 2010 14:31:15
+telephony-fwk (0.2.23) unstable; urgency=low
+   * [Build] Remove Dependency Problem of util-core
+   * Git: slp2.0/slp2.0-pkgs/telephony-0
+   * Tag: telephony-fwk_0.2.23
+ -- Youngman Park <youngman.park@samsung.com>  Wen, 12 May 2010 13:00:56
+
+telephony-fwk (0.2.22) unstable; urgency=low
+   * [MISC] Fix the OEM callback fucntion upon the version info response
+   * Git: slp2.0/slp2.0-pkgs/telephony-0
+   * Tag: telephony-fwk_0.2.22
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Tue, 04 May 2010 16:59:56
+telephony-fwk (0.2.21) unstable; urgency=low
+   * fix the idle text function's parameter data type to support long text
+     string
+   * Git: slp2.0/slp2.0-pkgs/telephony-0
+   * Tag: telephony-fwk_0.2.21
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 26 Apr 2010 19:54:35
+
+telephony-fwk (0.2.20) unstable; urgency=low
+
+  * Add option for fastboot 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.20
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Mon, 26 Apr 2010 17:39:54 +0900
+
+telephony-fwk (0.2.19) unstable; urgency=low
+
+  * Support the long SAT text 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.19
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 23 Apr 2010 20:11:54 +0900
+
+telephony-fwk (0.2.18) unstable; urgency=low
+
+  * Fix a bug (Add the event string of SimReadFileRaw)
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.18
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Fri, 23 Apr 2010 11:59:58 +0900
+
+telephony-fwk (0.2.17) unstable; urgency=low
+
+  * Adjust timeout value for SMS API related to SIM
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.17
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Thu, 22 Apr 2010 22:08:57 +0900
+
+telephony-fwk (0.2.16) unstable; urgency=low
+
+  * Fix a raw RSIM bug
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.16
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 21 Apr 2010 20:34:57 +0900
+
+telephony-fwk (0.2.15) unstable; urgency=low
+
+  * Change condition check routine for getting security state
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.15
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Tue, 20 Apr 2010 22:41:12 +0900
+
+telephony-fwk (0.2.14) unstable; urgency=low
+
+  * Add postinst for security
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.14
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 19 Apr 2010 17:59:26 +0900
+
+telephony-fwk (0.2.13) unstable; urgency=low
+
+  * Fix the SAT command queuing problem
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Mon, 19 Apr 2010 17:35:47 +0900
+
+telephony-fwk (0.2.12) unstable; urgency=low
+
+  * change internal gconf key to vconf value 
+  * Git: slp2.0/slp2.0-pkgs/telephony-0
+  * Tag: telephony-fwk_0.2.12
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Fri, 16 Apr 2010 23:17:30 +0900
+
+telephony-fwk (0.2.11) unstable; urgency=low
+
+  * Change SIM Ecc Value
+
+ -- Youngman Park <youngman.park@samsung.com>  Fri, 09 Apr 2010 15:44:44 +0900
+
+telephony-fwk (0.2.10) unstable; urgency=low
+
+  * add audio loobpack and rc.d
+
+ -- Hyeongbae Park <jupio.park@samsung.com>  Thu, 08 Apr 2010 19:10:53 +0900
+
+telephony-fwk (0.2.9) unstable; urgency=low
+
+  * Fix a bug to print out all debug message upon publishing dbus events
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 08 Apr 2010 16:45:53 +0900
+
+telephony-fwk (0.2.8) unstable; urgency=low
+
+  * File format chagne DOS -> UNIX
+
+ -- youngman park <youngman.park@samsung.com>  Tue, 8 Apr 2010 13:31:14 +0900
+
+telephony-fwk (0.2.7) unstable; urgency=low
+
+  * Add ecc category for emergency call
+
+ -- youngman park <youngman.park@samsung.com>  Mon, 5 Apr 2010 21:12:14 +0900
+
+telephony-fwk (0.2.6) unstable; urgency=low
+
+  * Adjust ramdump for test mode
+
+ -- hyeongbae park <jupio.park@samsung.com>  Tue, 1 Apr 2010 11:20:54 +0900
+
+telephony-fwk (0.2.5) unstable; urgency=low
+
+  * Add timeprint to check main() timing issue
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 31 Mar 2010 18:03:54 +0900
+
+telephony-fwk (0.2.4) unstable; urgency=low
+
+  * Apply network band value re-arrangement from modem
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Wed, 31 Mar 2010 17:30:38 +0900
+
+
+telephony-fwk (0.2.4) unstable; urgency=low
+
+  * Apply network band value re-arrangement from modem
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Wed, 31 Mar 2010 17:30:38 +0900
+
+telephony-fwk (0.2.3) unstable; urgency=low
+
+  * re-arrange telephony headers
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Tue, 30 Mar 2010 19:31:19 +0900
+
+telephony-fwk (0.2.2) unstable; urgency=low
+
+  * Add Emergency Call Event
+
+ -- Youngman Park <youngman.park@samsung.com>  Fri, 26 Mar 2010 16:44:22 +0900
+
+telephony-fwk (0.2.1) unstable; urgency=low
+
+  * Bug Fix E911 Call
+
+ -- Youngman Park <youngman.park@samsung.com>  Thu, 25 Mar 2010 21:25:22 +0900
+
+telephony-fwk (0.2.0) unstable; urgency=low
+
+  * Reupload dpkg upon request from SCM (toolchain upgrade)
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Thu, 25 Mar 2010 13:58:42 +0900
+
+telephony-fwk (0.1.63) unstable; urgency=low
+
+  * [SAT] Seperate the autoactivating sat event from normal event
+
+ -- Sunghyuk Lee <sunghyuk.lee@samsung.com>  Wed, 24 Mar 2010 17:09:22 +0900
+
+telephony-fwk (0.1.62) unstable; urgency=low
+
+  * Fix E911 Call Bug
+
+ -- youngman.park <youngman.park@samsung.com>  Wed, 24 Mar 2010 10:19:34 +0900
+
+telephony-fwk (0.1.61) unstable; urgency=low
+
+  * Fix DFT KeySend Bug
+
+ -- youngman.park <youngman.park@samsung.com>  Tues, 23 Mar 2010 19:17:14 +0900
+
+telephony-fwk (0.1.60) unstable; urgency=low
+
+  * Change debug level from  LEVEL_EMERG to LEVEL_DEBUG
+
+ -- sungeun.lee <selee@samsung.com>  Tues, 23 Mar 2010 09:20:41 +0900
+
+telephony-fwk (0.1.59) unstable; urgency=low
+
+  * Fix bug : bIsMainMenuPresent flag issue
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Mon, 22 Mar 2010 21:51:41 +0900
+
+telephony-fwk (0.1.58) unstable; urgency=low
+
+  * Change KeyCode Data in Factory DFT
+
+ -- youngman.park <youngman.park@samsung.com>  Mon, 22 Mar 2010 17:37:33 +0900
+
+telephony-fwk (0.1.57) unstable; urgency=low
+
+  * Bug Fix for Factory DFT 
+
+ -- youngman.park <youngman.park@samsung.com>  Thu, 19 Mar 2010 23:23:11 +0900
+
+telephony-fwk (0.1.56) unstable; urgency=low
+
+  * add clock ipc at sound module
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Thu, 17 Mar 2010 20:23:31 +0900
+
+telephony-fwk (0.1.55) unstable; urgency=low
+
+  * [SAT] Fix a bug. Stop to activate satui upon
+    Telephony.Sat.EventDownloadCnf event
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Tue, 16 Mar 2010 16:17:19 +0900
+
+telephony-fwk (0.1.54) unstable; urgency=low
+
+  * [SAT] Fix a bug. It has made the satui activated abnormally
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Tue, 16 Mar 2010 15:11:31 +0900
+
+telephony-fwk (0.1.53) unstable; urgency=low
+
+  * change CP RAMDUMP size from 36M to 37M due to Onedram partition
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Mon, 15 Mar 2010 16:40:33 +0900
+
+telephony-fwk (0.1.52) unstable; urgency=low
+
+  * [SAT] Support USER_ACTIVITY event downloading feature
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Fri, 12 Mar 2010 22:25:33 +0900
+
+telephony-fwk (0.1.51) unstable; urgency=low
+
+  * replace sync into close in RFS
+    Fix C++ guard and empty parameter problem upon SDK request
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Fri, 12 Mar 2010 16:05:44 +0900
+
+telephony-fwk (0.1.50) unstable; urgency=low
+
+  * remove phone off and increase timeout for PSI CRC checking
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Thu, 11 Mar 2010 23:20:44 +0900
+
+telephony-fwk (0.1.49) unstable; urgency=low
+
+  * comment dlog_init and dlog_deinit for child process
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Wed, 10 Mar 2010 19:50:44 +0900
+
+telephony-fwk (0.1.48) unstable; urgency=low
+
+  * Remove sleep(1) from TelServerSatProactiveSelectItemInd
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Wed, 10 Mar 2010 16:04:44 +0900
+
+telephony-fwk (0.1.47) unstable; urgency=low
+
+  * Do not activate the sat-ui automatically upon TAPI_EVENT_SAT_PROVIDE_LOCAL_INFO_IND event
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Wed, 10 Mar 2010 10:42:44 +0900
+
+telephony-fwk (0.1.46) unstable; urgency=low
+
+  * change psi download sequnce and adjust modem partition from raw to mtd/ubi
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Mon, 08 Mar 2010 17:05:00 +0900
+
+telephony-fwk (0.1.45) unstable; urgency=low
+
+  * [SAT] Define BROWSER_DBUS_CONN_NAME to launch browser automatically upon SAT event
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Fri, 05 Mar 2010 10:32:00 +0900
+
+telephony-fwk (0.1.44) unstable; urgency=low
+
+  * Define CISS_DBUS_CONN_NAME to launch ciss automatically upon SAT events
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Tue, 02 Mar 2010 19:27:09 +0900
+
+telephony-fwk (0.1.43) unstable; urgency=low
+
+  * [SAT] Fix bugs to send dbus signals to other modules normally
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Fri, 26 Feb 2010 10:11:30 +0900
+
+telephony-fwk (0.1.42) unstable; urgency=low
+
+  * Add new RFS & common boot
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Thu, 25 Feb 2010 21:00:01 +0900
+
+telephony-fwk (0.1.41) unstable; urgency=low
+
+  * ADD FACTORT DFT CODE (KEY, TOUCH)
+
+ -- youngman.park <youngman.park@samsung.com>  Thu, 25 Feb 2010 17:00:01 +0900
+
+telephony-fwk (0.1.40) unstable; urgency=low
+
+  * ADD FACTORT DFT HEADER
+
+ -- youngman.park <youngman.park@samsung.com>  Tue, 23 Feb 2010 23:10:04 +0900
+
+telephony-fwk (0.1.39) unstable; urgency=low
+
+  * FIX GPRS SIGSEGV ERROR by Wrong IPC Message (IPC_GPRS_CALL_STATUS)
+
+ -- youngman.park <youngman.park@samsung.com>  Tue, 23 Feb 2010 23:00:10 +0900
+
+telephony-fwk (0.1.38) unstable; urgency=low
+
+  * FIX GPRS PORT LIST ERROR
+
+ -- youngman.park <youngman.park@samsung.com>  Tue, 23 Feb 2010 22:55:12 +0900
+
+telephony-fwk (0.1.37) unstable; urgency=low
+
+  * modify tapi_misc_timezone_setinfo()'s doxygen tag
+
+ -- sungeun.lee <selee@samsung.com>  Tue, 23 Feb 2010 13:21:30 +0900
+
+telephony-fwk (0.1.36) unstable; urgency=low
+
+  * change CS/PS vconf init value OFF to UNKNOWN, add plmn handling code in
+    NITZ noti case
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Mon, 22 Feb 2010 15:32:19 +0900
+
+telephony-fwk (0.1.35) unstable; urgency=low
+
+  * Add vconf key, VCONFKEY_TELEPHONY_SAT_STATE on request from VoiceCall app
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Sat, 20 Feb 2010 11:35:30 +0900
+
+telephony-fwk (0.1.34) unstable; urgency=low
+
+  * [SAT] Support large icons and color icons (with -DLARGE_ICON option)
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Fri, 19 Feb 2010 17:33:57 +0900
+
+telephony-fwk (0.1.33) unstable; urgency=low
+
+  * add noti publish code when card type is changed on boot time
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Thu, 18 Feb 2010 16:53:46 +0900
+
+telephony-fwk (0.1.32) unstable; urgency=low
+
+  * Modify factory module for MM
+ -- youngman.park <youngman.park@samsung.com>  Wed, 10 Feb 2010 11:18:23 +0900
+
+telephony-fwk (0.1.31) unstable; urgency=low
+
+  * re-arrange internal header including,apply network ipc change, separate oem
+    callback function description from OemTapiCommon.h to OemTapiCommon_ext.h
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Wed, 10 Feb 2010 22:17:38 +0900
+
+telephony-fwk (0.1.30) unstable; urgency=low
+
+  * psi size from 15K to 20K
+
+ -- hyoengbae.park <jupio.park@samsung.com>  Wed, 10 Feb 2010 11:50:00 +0900
+
+telephony-fwk (0.1.29) unstable; urgency=low
+
+  * error handling for NV processing
+
+ -- hyoengbae.park <jupio.park@samsung.com>  Tue, 9 Feb 2010 14:07:00 +0900
+
+telephony-fwk (0.1.28) unstable; urgency=low
+
+  * Add ramdump and fatal error
+
+ -- hyoengbae.park <jupio.park@samsung.com>  Tue, 9 Feb 2010 00:10:00 +0900
+
+telephony-fwk (0.1.27) unstable; urgency=low
+
+  * Fix gprs port list Error
+
+ -- youngman.park <youngman.park@samsung.com>  Mon, 8 Feb 2010 21:25:48 +0900
+
+telephony-fwk (0.1.26) unstable; urgency=low
+
+  * Add gprs port list
+
+ -- youngman.park <youngman.park@samsung.com>  Mon, 8 Feb 2010 17:14:48 +0900
+
+telephony-fwk (0.1.25) unstable; urgency=low
+
+  * block RAMDUMP temporarily
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Fri, 5 Feb 2010 12:21:28 +0900
+
+telephony-fwk (0.1.24) unstable; urgency=low
+
+  * bug fix at RAMDUMP and add sim init crash case for SMC lab requirement
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Wed, 3 Feb 2010 23:07:28 +0900
+
+telephony-fwk (0.1.23) unstable; urgency=low
+
+  * change modem device from mtd3 to mtd6
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Tue, 2 Feb 2010 21:31:28 +0900
+
+telephony-fwk (0.1.22) unstable; urgency=low
+
+  * add SIM exception handling code and fixed Doxygen tag(COMMON part)
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Tue, 2 Feb 2010 20:56:28 +0900
+
+telephony-fwk (0.1.21) unstable; urgency=low
+
+  * changed pb last index recognization(0x00 to 0xFFFF), PLMN handling code for
+    Infineon(6 digit to 5 digit)
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Mon, 1 Feb 2010 20:11:29 +0900
+
+telephony-fwk (0.1.20) unstable; urgency=low
+
+  * fixed Doxygen tag and move TelSatUtil.h to server layer
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Fri, 29 Jan 2010 19:40:41 +0900
+
+telephony-fwk (0.1.19) unstable; urgency=low
+
+  * remove doxygen comment in 'tapi-lib-common.h' and add vconf value(MSISDN)
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Thu, 28 Jan 2010 22:34:27 +0900
+
+telephony-fwk (0.1.18) unstable; urgency=low
+
+  * remove status lib dependency in case of telephony v2.0
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Wed, 27 Jan 2010 22:53:14 +0900
+
+telephony-fwk (0.1.17) unstable; urgency=low
+
+  * change SLP prefix
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Tue, 26 Jan 2010 18:49:09 +0900
+
+telephony-fwk (0.1.16) unstable; urgency=low
+
+  * change Doxygen comment and sim test app
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Sat, 23 Jan 2010 19:30:12 +0900
+
+telephony-fwk (0.1.15) unstable; urgency=low
+
+  * tempraty time updated code deleted
+
+ -- jooseok.park <jooseok.park@samsung.com>  Thu, 21 Jan 2010 21:20:03 +0900
+
+telephony-fwk (0.1.14) unstable; urgency=low
+
+  * Fix 3G PB field length check process and add network init in modem reset
+    func
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Wed, 20 Jan 2010 22:36:02 +0900
+
+telephony-fwk (0.1.13) unstable; urgency=low
+
+  * Bug fix in deleting SMS in the SIM
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Mon, 18 Jan 2010 17:00:00 +0900
+
+telephony-fwk (0.1.12) unstable; urgency=low
+
+  * Change FDN en/disable procedure in OEM layer
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Thu, 14 Jan 2010 21:22:16 +0900
+
+telephony-fwk (0.1.11) unstable; urgency=low
+
+  * add reset, shutdown and sms save handling
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Wed, 14 Jan 2010 13:00:03 +0900
+
+telephony-fwk (0.1.10) unstable; urgency=low
+
+  * video call release all cnf event string added
+
+ -- jooseok.park <jooseok.park@samsung.com>  Wed, 13 Jan 2010 21:21:03 +0900
+
+telephony-fwk (0.1.9) unstable; urgency=low
+
+  * change Flight Mode value in the slp-setting
+
+ -- hyeongbae.park <jupio.park@samsung.com>  The, 12 JAN 2010 23:56:06 +0900
+
+telephony-fwk (0.1.8) unstable; urgency=low
+
+  * change NV offset
+
+ -- hyeongbae.park <jupio.park@samsung.com>  The, 12 JAN 2010 23:55:06 +0900
+
+telephony-fwk (0.1.7) unstable; urgency=low
+
+  * Bug fix in the deleting the sms in the sim
+
+ -- hyeongbae.park <jupio.park@samsung.com>  The, 12 JAN 2010 20:10:06 +0900
+
+telephony-fwk (0.1.6) unstable; urgency=low
+
+  * Add SLP_SETTING_TELEPHONY_SIM_SLOT init process in boot time
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  The, 12 JAN 2010 19:10:06 +0900
+
+telephony-fwk (0.1.5) unstable; urgency=low
+
+  * SIM ipc data packed, fixed SLP-setting return check statement, NV EFS PATH
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Thu, 7 JAN 2010 18:24:10 +0900
+
+telephony-fwk (0.1.4) unstable; urgency=low
+
+  * Enabling dlog messages, adding 2 TAPI for SAT
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Wed, 6 JAN 2010 23:04:10 +0900
+
+telephony-fwk (0.1.3) unstable; urgency=low
+
+  * SIM,NETWORK - Code enhancement,Remove status lib usage,etc
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Tue, 5 JAN 2010 18:02:10 +0900
+
+telephony-fwk (0.1.2) unstable; urgency=low
+
+  * fixed SLP-setting check condition in tapi_common_check_status()
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Mon, 28 Dec 2009 17:12:20 +0900
+
+telephony-fwk (0.1.1) unstable; urgency=low
+
+  * [SAT] Stop checking the alarm boot feature which is no longer available
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Mon, 28 Dec 2009 14:21:46 +0900
+
+telephony-fwk (0.1.0-24) unstable; urgency=low
+
+  * change parameter position of general response
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Thu, 24 Dec 2009 19:22:24 +0900
+
+telephony-fwk (0.1.0-23) unstable; urgency=low
+
+  * support SLP-setting;
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Wed, 23 Dec 2009 14:56:46 +0900
+
+telephony-fwk (0.1.0-22msm6290) unstable; urgency=low
+
+  * support UBI, RFS for qualcomm;
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Tue, 22 Dec 2009 22:27:46 +0900
+
+telephony-fwk (0.1.0-22) unstable; urgency=low
+
+  * support UBI, RFS for infineon modem:
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Tue, 22 Dec 2009 11:34:24 +0900
+
+telephony-fwk (0.1.0-21) unstable; urgency=low
+
+  * change nv,efs directory from /root to /csa
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Sat, 19 Dec 2009 16:02:48 +0900
+
+telephony-fwk (0.1.0-21msm6290) unstable; urgency=low
+
+  * change nv,efs directory from /root to /csa
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Sat, 19 Dec 2009 15:39:53 +0900
+
+telephony-fwk (0.1.0-20) unstable; urgency=low
+
+  * telephony dynamic logging adopted
+
+ -- jooseok.park <jooseok.park@samsung.com>  Fri, 18 Dec 2009 10:04:20 +0900
+
+telephony-fwk (0.1.0-19msm6290) unstable; urgency=low
+
+  * release for msm6290 oem. same bin with 0.1.0-18
+  * i
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Fri, 18 Dec 2009 10:04:00 +0900
+
+telephony-fwk (0.1.0-19) unstable; urgency=low
+
+  * Recovering the broken i386 packages 
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Thu, 17 Dec 2009 12:14:30 +0900
+
+telephony-fwk (0.1.0-18) unstable; urgency=low
+
+  * Dpkg 0.1.0-17 has been failed to be imported. So upload the packages again
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Thu, 17 Dec 2009 12:04:30 +0900
+
+telephony-fwk (0.1.0-17) unstable; urgency=low
+
+  * fixed uncorrect debian package(0.1.0-16-msm6290)
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Wed, 16 Dec 2009 21:30:30 +0900
+telephony-fwk (0.1.0-16) unstable; urgency=low
+
+  * i686 telephony-fwk dpkg release
+
+ -- sunghyuk.lee <sunghyuk.lee@samsung.com>  Tue, 15 Dec 2009 17:11:28 +0900
+
+telephony-fwk (0.1.0-15) unstable; urgency=low
+
+  * gps update
+
+ -- soyoun2.kim <soyoun2.kim@samsung.com>  Mon, 14 Dec 2009 12:45:28 +0900
+
+telephony-fwk (0.1.0-14) unstable; urgency=low
+
+  * Support RFS Filesystem
+
+ -- hyeongbae.park <jupio.park@samsung.com>  Mon, 14 Dec 2009 12:12:03 +0900
+
+telephony-fwk (0.1.0-13) unstable; urgency=low
+
+  * Add Telepony.Servie.Ready Event
+
+ -- youngman.park <youngman.park@samsung.com>  Sat, 12 Dec 2009 15:14:44 +0900
+
+telephony-fwk (0.1.0-12) unstable; urgency=low
+
+  * oem callback and SLP1.0 feature adopted 
+
+ -- jooseok.park <jooseok.park@samsung.com>  Thu, 10 Dec 2009 17:32:15 +0900
+
+telephony-fwk (0.1.0-11) unstable; urgency=low
+
+  * add null check statement in TelOemNwGetNetworkInfo()
+
+ -- kyeongchul.kim <kyeongchul.kim@samsung.com>  Tue, 01 Dec 2009 19:25:02 +0900
+
+telephony-fwk (0.1.0-10) unstable; urgency=low
+
+  * slp2.0 code merge
+
+ -- jooseok.park <jooseok.park@samsung.com>  Mon, 30 Nov 2009 17:53:50 +0900
+
+telephony-fwk (0.1.0-9) unstable; urgency=low
+
+  * Stop to remove NV binary.
+
+ -- wonguk.jeong <wonguk.jeong@samsung.com>  Wed, 25 Nov 2009 17:12:00 +0900
+
+telephony-fwk (0.1.0-8) unstable; urgency=low
+
+  * remove unnecessary files
+
+ -- wonguk.jeong <wonguk.jeong@samsung.com>  Fri, 20 Nov 2009 17:19:20 +0900
+
+telephony-fwk (0.1.0-6) unstable; urgency=low
+
+  * library prefix changed (X1 --> SLP)
+
+ -- wonguk.jeong <wonguk.jeong@samsung.com>  Fri, 20 Nov 2009 16:04:50 +0900
+
+telephony-fwk (0.1.0-5) unstable; urgency=low
+
+  * copyright added, as-needed option enabled
+
+ -- wonguk.jeong <wonguk.jeong@samsung.com>  Fri, 20 Nov 2009 10:38:45 +0900
+
+telephony-fwk (0.1.0-4) unstable; urgency=low
+
+  * remove debug message
+
+ -- wonguk.jeong <wonguk.jeong@samsung.com>  Thu, 19 Nov 2009 15:43:08 +0900
+
+telephony-fwk (0.1.0-3) unstable; urgency=low
+
+  * add arch environment variable
+
+ -- wonguk.jeong <wonguk.jeong@samsung.com>  Thu, 19 Nov 2009 15:30:39 +0900
+
+telephony-fwk (0.1.0-2) unstable; urgency=low
+
+  * add dependencies of telephony-server (temporary)
+
+ -- wonguk.jeong <wonguk.jeong@samsung.com>  Mon, 16 Nov 2009 11:23:43 +0900
+
+telephony-fwk (0.1.0-1) unstable; urgency=low
+
+  * Initial Release. (SLP source + SLP-lite patch)
+
+ -- wonguk.jeong <wonguk.jeong@samsung.com>  Sun, 15 Nov 2009 00:42:02 +0900
index 732f77811ae4afa2b8c0251d56110240a779ee8e..0cdd735f004ed72071e9538d9664f4d17665911b 100644 (file)
@@ -1,19 +1,17 @@
 Source: libslp-tapi
 Section: libs
 Priority: extra
-Maintainer: Danny Jeongseok Seo <s.seo@samsung.com>
-Uploaders: Danny Jeongseok Seo <s.seo@samsung.com>, Gunwang Jeong <ethan.jeong@samsung.com>, HyunJung Park <junge.park@samsung.com>, kyeongchul.kim <kyeongchul.kim@samsung.com>, Sunghyuk Lee <sunghyuk.lee@samsung.com>, Youngman Park <youngman.park@samsung.com>, Inho Oh <inho48.oh@samsung.com>
+Maintainer: Ja-young Gu <jygu@samsung.com>
+Uploaders: Ja-young Gu <jygu@samsung.com>, kyeongchul.kim <kyeongchul.kim@samsung.com>, Youngman Park <youngman.park@samsung.com>, Inho Oh <inho48.oh@samsung.com>, DongHoo Park <donghoo.park@samsung.com>
 Build-Depends: debhelper (>= 5),
-               libglib2.0-dev, libdbus-1-dev, libdbus-glib-1-dev,
-               libslp-setting-dev, dlog-dev, libsecurity-server-client-dev
+               libglib2.0-dev, dlog-dev, libsecurity-server-client-dev
 Standards-Version: 0.0.0
 
 Package: libslp-tapi-dev
 Section: libs
 Architecture: any
 Depends: libslp-tapi-0 (= ${Source-Version}),
-         libglib2.0-dev, libdbus-1-dev, libdbus-glib-1-dev,
-         libslp-setting-dev, dlog-dev, libsecurity-server-client-dev
+         libglib2.0-dev, dlog-dev, libsecurity-server-client-dev
 Description: telephony client API library (Development)
 
 Package: libslp-tapi-0
index 37a7d082ef670eca28a955c117bb3025677e7d18..c3f548640fdabcce3c444bd0b744ec3c435590fa 100644 (file)
@@ -1,2 +1 @@
-@PREFIX@/lib/libSLP-tapi.so.*
-@PREFIX@/lib/libSLP-tapi.so
+@PREFIX@/lib/lib*
index eff7d16a5e6c8d553adae0200efef039a25f6f28..61f30f2b9d66e73cbc49e37dcb5ea6b918b87721 100644 (file)
@@ -1,5 +1,2 @@
-@PREFIX@/include/telephony/tapi/I*
-@PREFIX@/include/telephony/common/T*
-@PREFIX@/lib/libSLP-tapi.la
-#@PREFIX@/lib/libSLP-tapi.a
-@PREFIX@/lib/pkgconfig/tapi.pc
+@PREFIX@/include/telephony-client/*
+@PREFIX@/lib/pkgconfig/tapi-lib.pc
diff --git a/include/ITapiCall.h b/include/ITapiCall.h
new file mode 100644 (file)
index 0000000..3aa6e97
--- /dev/null
@@ -0,0 +1,2195 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (TapiHandle *handle, c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Ja-young Gu <jygu@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (TapiHandle *handle, the "License", tapi_response_cb callback, void *user_data);
+ * 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup TAPI_CALL       CALL
+ * @{
+ *
+ * @file ITapiCall.h
+ *
+ * Call APIs allow an application to accomplish the following services: @n
+ * - Make a mobile originated Emergency call, Voice call, or Video call. @n
+ * - Accept or Reject incoming calls. @n
+ * - Release Calls. @n
+ * - Call dependent supplementary services such as call hold, retrieve, DTMF. @n
+ * - Multi -party call management, setup conference call, split conference call. @n
+ * - Call information such as get call information, get line identification number. @n
+ * - To verify whether a call (TapiHandle *handle, voice / video ) is possible at any given time. @n
+ */
+
+#ifndef _ITAPI_CALL_H_
+#define _ITAPI_CALL_H_
+
+#include <tapi_common.h>
+#include <TelCall.h>
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+ /**
+ * @brief This function originates MO call setup. This is an asynchronous function. The function completes immediately and
+ * call setup proceeds in background.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - If call to tel_exe_call_mo(TapiHandle *handle, ) is successful, call handle and request ID are assigned by Telephony Server
+ *   and returned to client by given Call Handle and Request Id parameters. MO call setup continues in
+ *   background. There are multiple states involved in the call setup procedure. Upon request completion
+ *   successful or not, various event notifications are sent to client along with data associated with event
+ *   (TapiHandle *handle, Successful data or error information) based on the indication or response received at the Telephony Server.
+ * - Setting up Emergency call
+ *   - when #TelCallType_t is voice_call, voice call is setup unless dial_number parameter is an
+ *   emergency number known to telephony FW (TapiHandle *handle, like 112 for all 2G and above, other numbers may operator
+ *   specific or device configuration specific, so Telephony FW will read relevant SIM files and refer to internal
+ *   configuration records). If an emergency number is passed and #TelCallType_t is voice_call, Telephony
+ *   FW shall setup emergency phone call.
+ *   - When #TelCallType_t is emergency call, emergency call is always set up.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] pParams
+ * - #TelCallSetupParams_t contains the CallType(TapiHandle *handle, whether it is a voice call or data call etc) and number.
+ *
+ * @param[out] pCallHandle
+ * - Unique handle for referring the call
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * TAPI_EVENT_CALL_SETUP_CNF is sent to the application when the lower layers get the call originate response.
+ * Asynchronous return status is indicated by #TelCallCause_t and call handle is sent in the event data.
+ * Various asynchronous indications are described in the unsolicited notifications section . [Refer, \ref page8]
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see tel_exe_call_mo tel_answer_call tel_release_call
+ * \image html CallSetup.jpg
+ * \image latex CallSetup.jpg
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status =0;
+ * unsigned int pCallHandle;
+ * int pRequestID=0;
+ * TelCallSetupParams_t pParams;
+ *
+ * char normal[16] = "1234";//Called party number
+ * memset(TapiHandle *handle, &pParams, 0, sizeof(TapiHandle *handle, TelCallSetupParams_t), tapi_response_cb callback, void *user_data);
+ * pParams.CallType = TAPI_CALL_TYPE_VOICE;
+ * strcpy(TapiHandle *handle, pParams.szNumber,normal, tapi_response_cb callback, void *user_data);
+ *
+ * ret_status = tel_exe_call_mo (TapiHandle *handle, &pParams,&pCallHandle,&pRequestID, tapi_response_cb callback, void *user_data); // outgoing call
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+int tel_dial_call(TapiHandle *handle, const TelCallDial_t *pParams, tapi_response_cb callback, void *user_data);
+
+ /**
+ * @brief This function is used to answer the incoming call by accepting or rejecting the call.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - This is the unique handle for referring the call. This call handle is available to Application through incoming call
+ *  (TapiHandle *handle, TAPI_EVENT_CALL_INCOM_IND) event.
+ *
+ * @param[in] AnsType
+ * - Answer type - accept / reject / replace / hold and accept. but, for CDMA, only accept is allowed.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_ANSWER_CNF. Asynchronous return status is
+ *  indicated by #TelCallCause_t and call handle is sent in the event data.
+ * - TAPI_EVENT_CALL_CONNECTED_IND / TAPI_EVENT_CALL_END_IND event will be notified in case of call is accepted/rejected.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ * - Call associated with call handle should be TAPI_CALL_STATE_INCOM state otherwise the API fails and there can be a
+ *   maximum of 1 existing call.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see tel_exe_call_mo tel_release_call
+ *
+ * \image html CallIncoming.jpg
+ * \image latex CallIncoming.jpg
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle;
+ * int pRequestID=0;
+ *
+ * ret_status = tel_answer_call (TapiHandle *handle, pCallHandle,&pRequestID, tapi_response_cb callback, void *user_data); // call answer
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+int tel_answer_call(TapiHandle *handle, unsigned int CallHandle, TelCallAnswerType_t AnsType, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief This function releases the call identified by Call Handle irrespective of call is hold or active state.
+ * It is used when releasing specific active call in multiparty call.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - In case of MPTY Call handle, Call end event is returned for each call in MPTY.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - Unique handle for referring the call.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_RELEASE_CNF and Asynchronous return status
+ *  is indicated by #TelCallCause_t and call handle for the released call is sent in the event data..
+ *
+ * - The event TAPI_EVENT_CALL_END_IND_IND is received as final asynchronous response and the associated data is #TelCallEndInfo_t.
+ *  Asynchronous return status is indicated by #TelCallCause_t.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ * - Call handle should be valid and there should be an existing call in Active/hold state.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see tel_exe_call_mo tel_answer_call tel_release_call_all tel_release_call_all_active
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle;
+ * int pRequestID=0;
+ *
+ * ret_status = tel_release_call(TapiHandle *handle, pCallHandle,&pRequestID, tapi_response_cb callback, void *user_data); // call release
+ * @endcode
+ *
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+int tel_end_call(TapiHandle *handle, unsigned int CallHandle, TelCallEndType_t EndType, tapi_response_cb callback, void *user_data);
+
+
+ /**
+ *
+ * @brief This function puts the given call on hold. The call identified by Call Handle should be in active state.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - Call duration for the call will be calculated from the time call has been connected until call is released,
+ *  i.e. Time duration during the call on hold will also be counted.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - Unique handle for referring the call.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_HOLD_CNF. Asynchronous return status is
+ *  indicated by #TelCallCause_t and call handle is sent in the event data.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ * - The call identified by the Call Handle should be in active state.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle;//HANDLE OF AN ACTIVE CALL
+ * int pRequestID=0;
+ *
+ * ret_status = tel_hold_call(TapiHandle *handle, pCallHandle,&pRequestID, tapi_response_cb callback, void *user_data); // hold call
+ * @endcode
+ *
+ *
+ * @see tel_retrieve_call
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_hold_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief This function retrieves the held call. The call identified by Call Handle must be in held state.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - Call duration for the call will be calculated from the moment call has been connected until call is released.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - Unique handle for referring the call.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_RETRIEVE_CNF. Asynchronous return status is indicated
+ *  by #TelCallCause_t and call handle is sent in the event data.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ * - Call should be in held state in order to retrieve into active state and no active call present.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see tel_retrieve_call
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle;//held call handle
+ * int pRequestID=0;
+ *
+ * ret_status = tel_retrieve_call(TapiHandle *handle, pCallHandle,&pRequestID, tapi_response_cb callback, void *user_data); // retrieve call
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+int tel_active_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief Swap calls. This is only for calls you dialed or answered with Telephony.
+ * Swap is only available for the voice calls.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Notes:
+ * During a call, user can place all active calls and accepts the other held call with this function.
+ * If the terminal is not within a call, it will fail.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle1
+ * - This is active call
+ *
+ * @param[in] CallHandle2
+ * - This is Held call
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * -
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle1;
+ * unsigned int pCallHandle2;
+ * int pRequestID=0;
+ *
+ * ret_status = tel_swap_call(TapiHandle *handle, pCallHandle1, pCallHandle2,&pRequestID, tapi_response_cb callback, void *user_data); // swap call
+ * @endcode
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_swap_call(TapiHandle *handle, unsigned int CallHandle1, unsigned int CallHandle2, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief This function sends one or more DTMF digits during the call.
+ *
+ * @par Notes:
+ * DTMF is abbreviation of Dual-tone-multi-frequency. It is used for telecommunication signaling
+ * over telephone lines in the voice-frequency band between UE and other communications devices.
+ * For example UE send DTMF tone to a server to choose options which the server provides.
+ * If the UE is not within a call, this function will fail with error code. *
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * -There will be a single asynchronous notification for all the DTMF digits sent. If the users of this API need an asynchronous
+ *  response for each DTMF digit then User has to call this API multiple times passing each single DTMF digit in pDtmfString.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] pDtmfString
+ * - A Null terminated DTMF string to be sent from MS.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_SEND_DTMF_CNF. Asynchronous return status
+ *  is indicated by #TelCallCause_t and call handle is sent in the event data.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ * - Active call should be present.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ *
+ * \image html CallDtmf.jpg
+ * \image latex CallDtmf.jpg
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle;
+ * int pRequestID=0;
+ * char DtmfString[10] = {0, };
+ * strcpy(TapiHandle *handle, DtmfString, "123456789", tapi_response_cb callback, void *user_data);//Sample DTMF digits that need to be sent
+ * ret_status= tel_send_call_dtmf(TapiHandle *handle, DtmfString,&pRequestID, tapi_response_cb callback, void *user_data);
+ * @endcode
+ *
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_call_dtmf(TapiHandle *handle, const char *pDtmfString, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief This function joins the given two calls (TapiHandle *handle, one call in active conversation state and other call in held state) into conference.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - Call handle of an active call or held call will be made as MPTY-id, and the other call handle will join in a conference).
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle1
+ * - The unique handle can be either an active call or held call.
+ *
+ * @param[in] CallHandle2
+ * - Unique call handle.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_SETUPCONFERENCE_CNF. Asynchronous return
+ *  status is indicated by #TelCallCause_t and call handle of the MPTY call is sent in the event data.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ * - For a Multiparty call or for joining two calls into conference, there should be one call in active state and another call
+ *  in held state.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see tel_split_call
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle1;
+ * unsigned int pCallHandle2;
+ * int pRequestID=0;
+ *
+ * ret_status= tel_join_call(TapiHandle *handle, pCallHandle1, pCallHandle2,&pRequestID, tapi_response_cb callback, void *user_data); // call join
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ *
+ *
+ */
+ int tel_join_call(TapiHandle *handle, unsigned int CallHandle1, unsigned int CallHandle2, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief This function triggers to splits a private call from multiparty call. This API allows creating a private communication
+ *     with one of remote parties in a multiparty session. TAPI client application has to pass the call handle which needs
+ *     to split from the multiparty call.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - The list of call handles present in the conference call is retrieved using #tel_get_call_conf_list API
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - Handle of call to be made private. Call handle referring to the call that is to be split from the conference
+ *   (TapiHandle *handle, call to be made private).
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_SPLITCONFERENCE_CNF. Asynchronous return status
+ *  is indicated by #TelCallCause_t and call handle for the split call is sent in the event data.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ * - Call should be in multiparty conference call.
+ *
+ * @post
+ * - Split call will be the active call and the conference will be held call.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see tel_join _call
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle;
+ * int pRequestID=0;
+ *
+ * ret_status= tel_split_call(TapiHandle *handle, pCallHandle,&pRequestID, tapi_response_cb callback, void *user_data); // call split
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ *
+ *
+ */
+ int tel_split_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief Get the current calling line identification number.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Notes:
+ * If the USIM card has multiple number, an user can choose which number he use.
+ * For example, a line is for private, the other line is for business.
+ * Using this function, user can get information about which line is currently active.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * NONE
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ * @param [out] ptr_active_line
+ *  current active line id.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see tel_set_call_act_line
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int pRequestID=0;
+ * ret_status= tel_get_call_act_line(TapiHandle *handle, &pRequestID, tapi_response_cb callback, void *user_data); // get call active line
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_get_call_act_line(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief Set the current calling line identification number.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * NONE
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] active_line
+ * - calling line identification
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see tel_get_call_act_line
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * TelCallActiveLine_t g_curLine =TAPI_CALL_ACTIVE_LINE1;
+ * TelCallActiveLine_t active_line ;
+ * int pRequestID=0;
+ *
+ * ret_status = tel_set_call_act_line (TapiHandle *handle, g_curLine,&pRequestID, tapi_response_cb callback, void *user_data); // set call active line
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_set_call_act_line(TapiHandle *handle, TelCallActiveLine_t active_line, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief This function triggers to do an explicit call transfer by connecting the two parties where in one party being
+ *     active (TapiHandle *handle, active state) and another party being held (TapiHandle *handle, held state).
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Notes:
+ * The ECT supplementary service enables the served mobile subscriber (TapiHandle *handle, subscriber A) who has two calls,
+ * each of which can be an incoming or outgoing call, to connect the other parties in the two calls
+ * and release the served mobile subscribers own connection.
+ * Prior to transfer, the connection shall have been established on the call
+ * between subscriber A and subscriber B. On the call between subscriber A and subscriber C,
+ * either the connection shall have been established prior to transfer, or, as a network option,
+ * transfer can occur while subscriber C is being informed of the call
+ * (TapiHandle *handle, i.e. the connection has not yet been established.)
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - Call handle of an active call.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_TRANSFER_CNF. Asynchronous return status is
+ *  indicated by #TelCallCause_t and call handle is sent in the event data. Call handle in event data is active
+ *  call handle which is used in the #tel_exe_call_explicit_transfer request.
+ *
+ * @pre
+ * - In order to call transfer, Served mobile subscriber should have 2 calls in one in active state and another one Call
+ *  in Held state.
+ *
+ * @post
+ * - When the request has been completed successfully, Call end indication will be sent to both the calls (TapiHandle *handle, active and held).
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int pCallHandle;//active call
+ * int pRequestID=0;
+ *
+ * ret_status= tel_exe_call_explicit_transfer (TapiHandle *handle, pCallHandle,&pRequestID, tapi_response_cb callback, void *user_data); // explicit transfer
+ * @endcode
+ *
+ * @remarks
+ * -None
+ *
+ *
+ */
+ int tel_transfer_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data);
+
+
+/**
+ *
+ * @brief This function gets status for the current call identified by Call Handle whenever application wants the call status. Call handle must be valid.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Synchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - Unique handle for referring the call.
+ *
+ * @param [out] pCallStatus
+ *  - Call status information like destination number, call direction (TapiHandle *handle, MO or MT), call type (TapiHandle *handle, voice or data etc), whether
+ *   the call is in conference state or not, present call state etc are returned through this parameter.
+ *
+ * @par Async Response Message:
+ *  - None.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ *
+ *
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int CallHandle;
+ * TelCallStatus_t     callStatus;
+ *
+ * ret_status= tel_get_call_status(TapiHandle *handle, CallHandle,&callStatus, tapi_response_cb callback, void *user_data); // get call status info
+ * @endcode
+ *
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+int tel_get_call_status(TapiHandle *handle, int call_id, TelCallStatus_t *out );
+
+
+int tel_get_call_status_all(TapiHandle *handle, TelCallStatusCallback cb, void *user_data) ;
+
+
+ /**
+ *
+ * @brief This function gets duration of the given call. This is a synchronous function. Duration is accounted from the moment
+ *     the connection is established, i.e. call goes into active state for first time.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Synchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - Unique handle for referring the call.
+ *
+ * @param [out] pDurationInSecs
+ *  - The total call duration in seconds from the call connecting time to the present time is returned through this parameter.
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int CallHandle;
+ * unsigned int duration;
+ *
+ * ret_status= tel_get_call_duration(TapiHandle *handle, CallHandle,&duration, tapi_response_cb callback, void *user_data); // get call duration
+ * @endcode
+ *
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_get_call_duration(TapiHandle *handle, unsigned int CallHandle, unsigned int * pDurationInSecs) ;
+
+ /**
+ *@brief Deflect the incoming call to other subscriber
+ *
+ * If informed about an incoming call this call may be redirected to an another destination by
+ * entering the destination Number. The cleint spcifies the dstiantion number to which the current
+ * incoming call needs to be redirected is specifed via info argument.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - This is incoming call handle
+ *
+ * @param[out] deflect_info
+ * - Destination Number
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * -
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @remarks
+ * - None
+ *
+ * @code
+ * #include <ITapiCall.h>
+ * #include <TelCall.h>
+ *
+ * unsigned int call_handle;
+ * TelCallDeflectDstInfo_t deflect_info;
+ * int req_id;
+ *
+ * tel_deflect_call(TapiHandle *handle, call_handel, &deflect_info, req_id, tapi_response_cb callback, void *user_data); // call deflect
+ *
+ * @endcode
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ */
+ int tel_deflect_call(TapiHandle *handle, unsigned int CallHandle, const TelCallDeflectDstInfo_t *deflect_info, tapi_response_cb callback, void *user_data);
+
+
+ /**
+ *
+ * @brief Activate Call Completion to a Busy Subscriber.
+ *
+ * @par Notes:
+ * When subscriber A encounters a Network Determined User Busy (TapiHandle *handle, NDUB) destination B,
+ * subscriber A can request the CCBS supplementary service (TapiHandle *handle, i.e. activate a CCBS Request against destination B).
+ * The network will then monitor the wanted destination B for becoming idle.
+ * When the wanted destination B becomes idle, then the network will wait a short time
+ * in order to allow destination B to make an outgoing call.
+ * If destination B does not make any outgoing call within this time,
+ * then the network shall automatically recall subscriber A.
+ * When subscriber A accepts the CCBS recall, within a defined time, then the network will automatically
+ * generate a CCBS call to destination B.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] CallHandle
+ * - Handle of the call.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * -
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret;
+ * unsigned int call_handle;
+ * int req_id;
+ *
+ * ret = tel_activate_call_ccbs(TapiHandle *handle, call_handle, &req_id, tapi_response_cb callback, void *user_data); // ccbs activate
+ * @endcode
+ *
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ */
+ int tel_activate_call_ccbs(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data);
+
+
+ /**
+ * @brief This is a synchronous function returns all call handles within the given conference call.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Synchronous API.
+ *
+ * @par Important Notes:
+ * - Call should be a Multi-party conference call in order to return actual no of calls and call handles in the conference calls.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] CallHandle
+ * - Handle of call which is associated with the conference.
+ *
+ * @param [out] pCallList
+ *  - list of call joined in the conference call. In case there is no active conference. The list will be zero and
+ *   number of calls parameter value will also be zero. Maximum number of calls in a conference can be up to 5
+ *   (TapiHandle *handle, Based on 3GPP TS 22.084). Memory allocation for call list is integer array of size 5.
+ *
+ * @param [out] pNoOfCalls
+ *  - Number of the calls present in conference.
+ *
+ * @par Async Response Message:
+ * -None.
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * -None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status ;
+ * unsigned int CallHandle;
+ * unsigned int callList[5];
+ * int noOfCalls;
+ *
+ * ret_status= tel_get_call_conf_list(TapiHandle *handle, CallHandle, callList, &noOfCalls, tapi_response_cb callback, void *user_data); // get conference call list
+ * @endcode
+ *
+ * @see tel_join_call
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+int tel_get_call_conf_list(TapiHandle *handle, unsigned int CallHandle, unsigned int *pCallList, int *pNoOfCalls);
+
+
+ /**
+ *
+ * @brief This function gets voice privacy option mode in phone(TapiHandle *handle, CDMA only).
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] PrivacyType
+ * - Privacy Type.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_GET_PRIVACYMODE_CNF. Asynchronous return status
+ *  is indicated by #TelCallCause_t. #TelCallPrivacyMode_t is included in this event.
+ *
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ *
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * Int ReqId=-1;
+ * int ret_status = -1;
+ * int api_err;
+ * TelCallPrivacyType_t privacyType;
+ * privacyType=TAPI_CALL_PRIVACY_TYPE_MS;
+ * ret_status =tel_get_call_privacy_mode (TapiHandle *handle, privacyType,&req_id, tapi_response_cb callback, void *user_data); // get call privacy_mode
+ * @endcode
+ *
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_get_call_privacy_mode(TapiHandle *handle, TelCallPrivacyType_t PrivacyType, tapi_response_cb callback, void *user_data);
+
+
+ /**
+ *
+ * @brief This function sets voice privacy option mode in phone. It is available only where call exists(TapiHandle *handle, CDMA only).
+ *
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] PrivacyInfo
+ * - voice privacy option mode(TapiHandle *handle, ENHANCED or STANDARD)
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_SET_PRIVACYMODE_CNF. Asynchronous return status
+ *  is indicated by #TelCallCause_t.
+ *
+ *
+ * @pre
+ * - Initialize Dbus connection with #tel_init
+ * - Register caller's application name with #tel_register_app_name
+ * - Register telephony events to listen
+ * - A event loop is running to listen events
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ *
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ReqId=-1;
+ * int ret_status = -1;
+ * int api_err;
+ * TelCallPrivacyMode_t pPrivacyMode_info={0,};
+ * pPrivacyMode_info = TAPI_CALL_PRIVACY_MODE_STANDARD;
+ *
+ * ret_status = tel_set_call_privacy_mode (TapiHandle *handle, pPrivacyMode_info,&reqId, tapi_response_cb callback, void *user_data); // set call privacy mode
+ * @endcode
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_set_call_privacy_mode(TapiHandle *handle, TelCallVoicePrivacyInfo_t PrivacyInfo, tapi_response_cb callback, void *user_data);
+
+
+/**
+ *
+ * @brief This function requests to send a Flash with Information Message(TapiHandle *handle, CDMA only).
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] pDialNumber
+ * - this is the calling number for 3 way call. But in the call waiting, this param should be NULL.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_FLASHINFO_CNF. Asynchronous return status
+ *  is indicated by #TelCallCause_t.
+ *
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status = -1;
+ * int api_err;
+ * char const * const pDialNumber = "9999900000";
+ * ret_status = tel_exe_call_flash_info(TapiHandle *handle, pDialNumber,&reqId, tapi_response_cb callback, void *user_data); // call flash info
+ * @endcode
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_exe_call_flash_info(TapiHandle *handle, const char *pDialNumber, tapi_response_cb callback, void *user_data);
+
+
+/**
+ *
+ * @brief This function requests to exit emergency call mode(TapiHandle *handle, CDMA only).
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_EXIT_EMERGENCYMODE_CNF. Asynchronous return status
+ *  is indicated by #TelCallCause_t.
+ *
+ * @pre
+ * - current state is emergency callback mode.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int req_id;
+ * int ret;
+ *
+ * ret = tel_exit_call_emergency_mode (TapiHandle *handle, &req_id, tapi_response_cb callback, void *user_data); // emergency call
+ *
+ * @endcode
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_exit_call_emergency_mode(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+
+/**
+ *
+ * @brief This function is used for querying the information about a call time and call count.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * Do not use this function. This function is dedicated to the embedded call application only.
+ * Please use its AUL interface instead of this.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param[in] req_mask
+ * - call time request type mask.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ *
+ * @par Async Response Message:
+ * - The event associated with this request is TAPI_EVENT_CALL_GET_CALL_TIME_CNF. Asynchronous return status
+ *  is indicated by #TelCallCause_t.
+ *
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @code
+ * #include <ITapiCall.h>
+ *
+ * int ret_status = -1;
+ * int api_err;
+ * TelCallTimeMaskType_t mask_byte1 = {0,};
+ * TelCallTimeMaskType_t mask_byte2 = {0,};
+ * unsigned short mask_type;
+ * mask_byte1 = TAPI_CALL_TIME_TYPE_TOTAL_CALL_CNT; //masking call type
+ * mask_byte2 = TAPI_CALL_TIME_TYPE_TOTAL_CALL_TIME;
+ *
+ * mask_type = mask_byte1;
+ * mask_type << 8;
+ * mask_type = mask_byte2;
+ *
+ * ret_status = tel_get_call_time(TapiHandle *handle, mask_type,&reqId, tapi_response_cb callback, void *user_data);
+ *
+ * @endcode
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_get_call_time(TapiHandle *handle, unsigned short req_mask, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief This function is to get call volume.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * 
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] device
+ * - sound device
+ *
+ * @param [in] type
+ * - sound type
+ *
+ * @param [in] callback
+ * - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ * - user data for user specification
+ *
+ * @par Async Response Message:
+ * - TelCallGetVolumeInfoResp_t
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+ int tel_get_call_volume_info(TapiHandle *handle, TelSoundDevice_t device, TelSoundType_t type, tapi_response_cb callback, void *user_data );
+
+/**
+ *
+ * @brief This function is to set call volume.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * 
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] path
+ * - call volume information
+ *
+ * @param [in] callback
+ * - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ * - user data for user specification
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+int tel_set_call_volume_info(TapiHandle *handle, TelCallVolumeInfo_t *info, tapi_response_cb callback, void *user_data );
+
+/**
+ *
+ * @brief This function is to set call sound path.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * 
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] path
+ * - call sound path information
+ *
+ * @param [in] callback
+ * - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ * - user data for user specification
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+int tel_set_call_sound_path(TapiHandle *handle, TelCallSoundPathInfo_t *path, tapi_response_cb callback, void *user_data );
+
+/**
+ *
+ * @brief This function is to set call mute state
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * 
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] mute
+ * - Sound Mute Status
+ *
+ * @param [in] callback
+ * - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ * - user data for user specification
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+int tel_set_call_mute_status(TapiHandle *handle, TelSoundMuteStatus_t mute, tapi_response_cb callback, void *user_data );
+
+/**
+ *
+ * @brief This function is to get call mute state
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * 
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ * - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ * - user data for user specification
+ *
+ * @par Async Response Message:
+ * - TelCallGetMuteStatusResp_t
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+int tel_get_call_mute_status(TapiHandle *handle, tapi_response_cb callback, void *user_data );
+
+/**
+ *
+ * @brief This function is to set call sound recording
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] on
+ * - Sound recording on / off
+ *
+ * @param [in] callback
+ * - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ * - user data for user specification
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+int tel_set_call_sound_recording(TapiHandle *handle, TelSoundRecording_t *on, tapi_response_cb callback, void *user_data);
+
+/**
+ *
+ * @brief This function is to set call sound equalization.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] eq
+ * - call sound equalization information
+ *
+ * @param [in] callback
+ * - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ * - user data for user specification
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+int tel_set_call_sound_equalization(TapiHandle *handle, TelCallSoundEqualization_t *eq, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief This function is used for querying the set call sound reduction.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * 
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] noise
+ * - 
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ int tel_set_call_sound_noise_reduction(TapiHandle *handle, TelSoundNoiseReduction_t noise, tapi_response_cb callback, void *user_data);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_CALL_H_ */
+
+ /**
+* @}
+*/
diff --git a/include/ITapiModem.h b/include/ITapiModem.h
new file mode 100644 (file)
index 0000000..3b9a4b6
--- /dev/null
@@ -0,0 +1,499 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @internal
+ * @ingroup            TelephonyAPI
+ * @addtogroup MODEM_TAPI      POWER
+ * @{
+ *
+ * These APIs allow an application to accomplish the following services: @n
+ * - Process power command @n
+ * - Reset the phone power (on / off), @n
+ * - Process airplane mode @n
+ */
+
+#ifndef _ITAPI_MODEM_H_
+#define _ITAPI_MODEM_H_
+
+#include <tapi_common.h>
+#include <TelDefines.h>
+#include <TelPower.h>
+#include <TelMisc.h>
+#include "ITapiPS.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *
+ * @brief  This API is used to turn power off or on the modem.
+ *
+ * @par Sync (or) Async:
+ * This is a Synchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] cmd
+ * - This index value is the power command as #tapi_power_phone_cmd_t.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Otherwise it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ *
+ */
+int tel_process_power_command(TapiHandle *handle, tapi_power_phone_cmd_t cmd, tapi_response_cb callback, void *user_data);
+
+/**
+ *
+ * @brief  This API is used to enter or leave airplane mode
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] mode
+ * - This mode value is the flight flag #tapi_power_flight_mode_type_t.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_MODEM_FLIGHT_MODE_RESP  and the event data is #tapi_power_flight_mode_resp_type_t.
+ * Asynchronous return status is always TAPI_API_SUCCESS.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Otherwise it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ *
+ */
+int tel_set_flight_mode(TapiHandle *handle, tapi_power_flight_mode_type_t mode, tapi_response_cb callback, void *user_data);
+
+
+/**
+ *
+ * @brief  This function is invoked to Get ME version information.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - NA
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ */
+int tel_get_misc_me_version(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ *
+ * @brief This function is to get misc me version
+ *
+ * @par Sync (or) Async:
+ * This is a Synchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @par Async Response Message:
+ * - Na
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type ( TelMiscVersionInformation * ) \n
+ * - Misc Version Information
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ */
+
+
+TelMiscVersionInformation *tel_get_misc_me_version_sync(TapiHandle *handle);
+
+
+/**
+ *
+ * @brief  This function is invoked to Get ME IMEI/ESN/MEID for each phone type.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - NA
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ */
+int tel_get_misc_me_sn(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ *
+ * @brief This function is to get misc me Sereal Number
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Synchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * 
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (char*) \n
+ * - Sereal Number string
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+char *tel_get_misc_me_sn_sync(TapiHandle *handle);
+
+/**
+ *
+ * @brief This function is to get misc me imei
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * - IMEI
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ */
+
+int tel_get_misc_me_imei(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ *
+ * @brief This function is to get misc me imei
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Synchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ * 
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (char*) \n
+ * - IMEI string
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+char *tel_get_misc_me_imei_sync(TapiHandle *handle);
+
+/**
+ *
+ * @brief This function is to check modem power status
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [out] result
+ * - result of checking modem power status.
+ *
+ * @par Async Response Message:
+ * - 
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+int tel_check_modem_power_status(TapiHandle *handle, int *result);
+
+/**
+ *
+ * @brief This function is to control modem dun pin
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (TapiHandle *handle, or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ *  - None.
+ *
+ * @warning
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] pincontrol
+ * - pin control inforamation
+ *
+ * @param [in] callback
+ * - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ * - user data for user specification
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ * - None.
+ *
+ * @post
+ * - None.
+ *
+ * @return Return Type (TapiHandle *handle, int) \n
+ * - 0 - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (TapiHandle *handle, Refer Doxygen doc or #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embedded call application
+ *
+ * @see None.
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+
+int tel_control_modem_dun_pin_ctrl(TapiHandle *handle, tapi_ps_btdun_pincontrol *pincontrol, tapi_response_cb callback, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_MODEM_H_ */
+
+/**
+ * @}
+ */
diff --git a/include/ITapiNetText.h b/include/ITapiNetText.h
new file mode 100644 (file)
index 0000000..059454c
--- /dev/null
@@ -0,0 +1,1360 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  NetText_TAPI    NetText(SMS)
+* @{
+ *
+* @file ITapiNettext.h
+
+     @brief This file serves as a "C" header file defines functions for Tapi Nettext\n
+      It contains a sample set of function prototypes that would be required by applications.
+
+ */
+
+#ifndef _ITAPI_NETTEXT_H_
+#define _ITAPI_NETTEXT_H_
+
+#include <tapi_common.h>
+#include <TelSms.h>
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+ /**
+ * @brief  This API is used to send an SMS message to the network.  This API interface allows transmitting SMS PDU as defined by
+ *             3GPP TS 23.040 (SMS-SUBMIT, SMS-COMMAND) to lower layers. This API allows keeping the dedicated link at lower layers
+ *             by passing information as more messages to send in parameters. This will enable not to release if a dedicated connection is
+ *             used for transmission. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] pDataPackage
+ *   - Contains SMS-SUBMIT TPDU
+ *
+ * @param [in] bMoreMsgToSend
+ *   - will be set to TRUE when there are more than one message to be send or Multiple segmented concatenated
+ *      message to be send, otherwise FALSE. This flag indicates OEM that more messages to send.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ *  SMS sent status is returned in this event TAPI_EVENT_NETTEXT_SENTSTATUS_CNF and the event data associated with this event
+ *  is #TelSmsDatapackageInfo_t that has SMS PDU as defined by 3GPP TS 23.040(SMS-SUBMIT-REPORT). Asynchronous return status is indicated by #TelSmsResponse_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * TelSmsDatapackageInfo_t *pDataPackage;
+ * int ret_status;
+ * int RequestId = 0;
+ *
+ * pDataPackage = (TelSmsDatapackageInfo_t*) malloc(sizeof(TelSmsDatapackageInfo_t));
+ * // fill the structure appropriately
+ * // Sca parameter is optional. If you don't provide Service center address, you should fill "00" in sca array.
+ * //  MsgLength is length of szData//fill the szData in TelSmsDatapackageInfo_t with SMS-SUBMIT or SMS-COMMAND TPDU.
+ * ret_status = tel_send_sms (pDataPackage, 0, &RequestId);
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_send_sms(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage, int bMoreMsgToSend, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This API is used to send an SMS message to the network.  This API interface allows transmitting SMS PDU as defined by
+ *             3GPP2 C.S0015 (SMS-SUBMIT, SMS-ACK, SMS-CANCEL) to lower layers. This API allows keeping the dedicated link at lower layers
+ *             by passing information as more messages to send in parameters. This will enable not to release if a dedicated connection is
+ *             used for transmission. Access to this API is limited to in-house application and  we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] pSmsMsgInfo
+ *   - Contains parameter mask, message type and data.
+ *
+ * @param [in] MoreMsgToSend
+ *   - will be set to TRUE when there are more than one message to be send or Multiple segmented concatenated
+ *      message to be send, otherwise FALSE. This flag indicates OEM that more messages to send.
+ *
+ * @param [out] pRequestId
+ * - Unique identifier for a particular request.
+ * - pRequestId value can be any value from 0 to 255 if the API is returned successfully
+ * - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
+ *
+ *
+ * @par Async Response Message:
+ *  SMS sent status is returned in this event TAPI_EVENT_NETTEXT_SENTSTATUS_EX_CNF and the event data associated with this event
+ *  is #TelSmsIs637CauseCode_t. Asynchronous return status is indicated by #TelSmsResponse_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ * int ret_status = TAPI_API_SUCCESS;
+ * int requestId = 0;
+ * TelSmsMsgInfo_t pMsgInfo={0,};
+ * char* diallingNum;
+ * int dialNumLen;
+ * TelSmsMsgInfo_t *pDataPackage = malloc(sizeof(TelSmsMsgInfo_t));
+ *
+ * memset(pDataPackage, 0, sizeof(TelSmsMsgInfo_t));
+ * pDataPackage->MsgType = TAPI_NETTEXT_MESSAGETYPE_SUBMIT; //fill structure appropriately
+ * pDataPackage->ParamMask |= TAPI_NETTEXT_PARAM_TELESERVICE_MASK;
+ *
+ * ret_status = tel_send_sms_msg(pDataPackage, 0 ,&requestId);
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+//int tel_send_sms_msg(const TelSmsMsgInfo_t *pSmsMsgInfo, int MoreMsgToSend, int *pRequestId);
+
+ /**
+ * @brief  This function reads a message from SIM card storage. SIM index (index used when storing the SMS) number to be passed to in order
+ *             to read particular SMS message. Total number of messages can be retrieved by #TelTapiSmsGetCount function.
+  *            Access to this API is limited to in-house application and  we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] index
+ *  -  Index number of the message to be read
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_NETTEXT_READ_SMS_CNF and the event data is #TelSmsData_t. Asynchronous return status is indicated
+ *  by #TelSmsCause_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ *
+ * ret_status = tel_read_sms_in_sim(0, &RequestId); //index value which is located in SIM
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+ int tel_read_sms_in_sim(TapiHandle *handle, int index, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function writes a message to SIM storage area.
+ *           Access to this API is limited to in-house application and  we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] pWriteData
+ *  - SMS message structure.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ *  TAPI library will send TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF asynchronous event for this request when received from TS.
+ *  The associated data is SIM Index in which the message stored. Asynchronous return status is indicated by #TelSmsCause_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ * TelSmsData_t *pWriteData;
+ * char *msg = "This is an Test SMS";
+ * char *SCA = "821091";
+ *
+ * pWriteData = malloc(sizeof(TelSmsData_t));
+ *
+ * conv_service_center_address(pWriteData->SmsData.Sca, SCA); //convert service center address
+ * conv_msg_into_tpdu(pWriteData->SmsData.szData, pWriteData->SmsData.MsgLength, msg); // convert message into TPDU
+ * pWrite->MsgStatus = TAPI_NETTEXT_STATUS_READ;
+ * pWrite->SimIndex = -1;
+ *
+ * ret_status = tel_write_sms_in_sim (pWriteData, &RequestId);
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_write_sms_in_sim(TapiHandle *handle, const TelSmsData_t *pWriteData, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function deletes a message specified by index (SIM index used when storing the SMS)
+ *           number from the SIM storage area. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] Index
+ *  - Message index to delete.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The asynchronous event associated is TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF and the event data is SIM index from which
+ * the message has been deleted. Asynchronous return status is indicated by #TelSmsCause_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t).\n
+ * @par Prospective Clients:
+ *  External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ *
+ * ret_status = tel_delete_sms_in_sim(1, &RequestId); //index which is located in SIM
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_delete_sms_in_sim(TapiHandle *handle, int index, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function is used to retrieve message count information like Total record count,
+ *  used record count and the indices list for SIM Storage. This is an asynchronous function and
+ *  the response will be sent back by event notification. Access to this API is limited, we recommend you use Message Framework API(MAPI) besides.
+ *  Access to this API is limited to in-house application.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_GET_COUNT_CNF and the event data is #TelSmsStoredMsgCountInfo_t.
+ * Asynchronous return status is indicated by #TelSmsCause_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * - External Apps.\n
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ *
+ * ret_status = tel_get_sms_count (&RequestId); //get sms count in SIM
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_sms_count(TapiHandle *handle, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function is used to set SMS CB Message Identifiers in the appropriate EF-CBMI/EF-CBMIR file in (U)SIM.
+ *             This function also indicates underlying provider to enable or disable CB Channel on which CB messages are received.
+ *             Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI) besides.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] pCBConfig
+ *  - This structure contains parameters to set SMS CB configuration \n
+ *      (i)  Cell broadcast service state. (Enabled/disabled.) \n
+ *      (ii) Cell broadcast message identifier, which denotes whether all cell broadcast message identifiers are selected or only
+ *           some of those.\n
+ *       (iii) The list count of message identifiers to be set.\n
+ *       (iv) The actual list of message identifiers to be set. Each identifier occupies 2 bytes. And the list ranges from 0x00 to 0xff. \n
+ *    These message identifiers denote the source and type of the CB message. Based on the message identifiers set in the SIM,
+ *    the ME receives CB messages with selected message identifiers.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no data associated with this event.
+ * Asynchronous return status is indicated by #TelSmsCause_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.\n
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ * TelSmsCbConfig_t *pCBConfig = NULL;
+ *
+ * pCBConfig = (TelSmsCbConfig_t *)malloc(sizeof(TelSmsCbConfig_t));
+ * pCBConfig->bCBEnabled = 1; //fill structure appropriately
+ * pCBConfig->SelectedId = 0x01;
+ * pCBConfig->MsgIdCount = 0x02;
+ *
+ * pCBConfig->MsgIDs[0] = 0x0c;
+ * pCBConfig->MsgIDs[1] = 0x0c;
+ * pCBConfig->MsgIDs[2] = 0xdf;
+ * pCBConfig->MsgIDs[3] = 0x00;
+ *
+ * ret_status = tel_set_sms_cb_config(pCBConfig, &RequestId);
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_sms_cb_config(TapiHandle *handle, const TelSmsCbConfig_t *pCBConfig, tapi_response_cb callback, void* user_data); 
+
+ /**
+ * @brief  This function is used to retrieve SMS CB configuration options from EFcbmi file in the SIM.
+ *             Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF and the event data is #TelSmsCbConfig_t.
+ * Asynchronous return status is indicated by #TelSmsCause_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * - External Apps.\n
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ *
+ * ret_status = tel_get_sms_cb_config (&RequestId); //result will come with async response
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_sms_cb_config(TapiHandle *handle, tapi_response_cb callback, void* user_data);
+
+
+ /**
+ * @brief This function is used to set SMS preferred bearer on which SMS has to be transmitted.
+ *           Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] BearerType
+ *  - Specifies the bearer type.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no data associated with this event.
+ * Asynchronous return status is indicated by #TelSmsCause_t
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ * TelSmsBearerType_t BearerType = TAPI_NETTEXT_BEARER_PS_ONLY;
+ *
+ * ret_status = tel_set_sms_preferred_bearer(BearerType, &RequestId); //result will come with async response
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_sms_preferred_bearer(TapiHandle *handle, TelSmsBearerType_t BearerType, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function is used to get SMS preferred bearer on which SMS has to be transmitted.
+ *  This is an asynchronous function. Access to this API is limited to in-house application and , we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF and the associated event data is #TelSmsBearerType_t.
+ * Asynchronous return status is indicated by #TelSmsCause_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ *
+ * ret_status = tel_get_sms_preferred_bearer(&RequestId); //result will come with async response
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_sms_preferred_bearer(TapiHandle *handle, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief This function is used to get the SMS parameters for a particular SMS (sent/received)
+ *  based on the SIM index where it is stored. This is an asynchronous function. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] index
+ *  - SIM index where the SMS is stored
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_GET_PARAM_CNF and the event data is #TelSmsParams_t. Asynchronous return status
+ * is indicated by #TelSmsCause_t
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ *
+ * ret_status = tel_get_sms_parameters(1, &RequestId); //result will come with async response
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_sms_parameters(TapiHandle *handle, int index, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function is used to set the short message service header parameters which are
+ *  used in the origination of MO messages. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - This API updates/sets SMS Parameters in EFsmsp file in the SIM storage
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] pSmsSetParameters
+ *  - Contains SMS header Parameter information like service center address, destination address, validity period, protocol identifier,
+ *     data coding scheme.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no data associated with this event. Asynchronous
+ * return status is indicated by #TelSmsCause_t
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ * TelSmsParams_t SmsSetParameters = {0,};
+ *
+ * SmsSetParameters.RecordIndex = 0x01;
+ * SmsSetParameters.RecordLen = 28;
+ * memcpy(SmsSetParameters.TpDestAddr.szDiallingNum, "9986529874", 10);
+ * printf("\ndial no is %s\n", SmsSetParameters.TpDestAddr.szDiallingNum);
+ * SmsSetParameters.TpDestAddr.DialNumLen = 10;
+ * SmsSetParameters.TpDestAddr.Ton = TAPI_SIM_TON_NATIONAL;//national no
+ * SmsSetParameters.TpDestAddr.Npi = TAPI_SIM_NPI_NATIONAL;
+ *
+ * ret_status = tel_set_sms_parameters(SmsSetParameters, &RequestId); //result will come with async response
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_sms_parameters(TapiHandle *handle, const TelSmsParams_t *pSmsSetParameters, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief This function is used to send a delivery report for the received incoming SMS to the network.
+ *          Access to this API is limited to in-house application.
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] pDataPackage
+ *  - Contains SMS Data package..
+ *
+ * @param [in] RPCause
+ *  - Indicates the reason for SMS-DELIVER failure
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF and there is no associated event data. Asynchronous return status
+ * is indicated by #TelSmsResponse_t
+ *
+ * @pre
+ *  - SMS-DELIVER-REPORT message structure should be in TPDU format as specified by 3GPP TS 23.040 SMS TPDU.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = 0;
+ * Int requestId = -1;
+ * TelSmsResponse_t RPCause;
+ * TelSmsDatapackageInfo_t *del_report = NULL;
+ *
+ * del_report = malloc(sizeof(TelSmsDatapackageInfo_t));
+ * memset(del_report, 0, sizeof(TelSmsDatapackageInfo_t));
+ * //Encode Send Delivery Report here
+ * //EncodeSmsDeliveryReportTpdu();
+ *
+ * RPCause = TAPI_NETTEXT_SENDSMS_SUCCESS;
+ * printf("***receive message (Api:SendDeliverreport)****\n");
+ *
+ * ret_status = tel_send_sms_deliver_report(del_report, RPCause, &requestId);
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_send_sms_deliver_report(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage, TelSmsResponse_t RPCause, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function is used to set SMS Service Centre Address information in order to send the SMS.
+ *           Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - This API updates/sets service center address in EFsmsp file in the SIM storage.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] pSCA
+ * - Contains the service centre address informations.
+ *
+ * @param [in] Index
+ * - Contains the record index of the Service center address information in the EF.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no data associated with this event.
+ * Asynchronous return status is indicated by #TelSmsResponse_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t).
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status;
+ * int RequestId = 0;
+ * BYTE        scabuf[512];
+ * char        scaNum[TAPI_NETTEXT_SCADDRESS_LEN_MAX];
+ * BYTE        scaNum_len =0;
+ * TelSmsAddressInfo_t *sc_addr = NULL;
+ * BYTE        packet[500];
+ * int idx = 0;
+ * int i;
+ *
+ * printf("***Setting the SCA(Api:SetSCA)****\n");
+ * sc_addr = (TelSmsAddressInfo_t *)malloc(sizeof(TelSmsAddressInfo_t));
+ * memset(sc_addr, 0, sizeof(sc_addr));
+ * memset(scaNum, 0, sizeof(scaNum));
+ * memset(scabuf, 0, sizeof(scabuf));
+ * sprintf(scaNum, "821091");
+ * scaNum_len = strlen(scaNum);
+ * scaNum_len = strlen(scaNum);
+ * scaNum[scaNum_len] = 0;
+ * scaNum_len = scaNum_len - 1;
+ *
+ * //idx = SmsUtilEncodeAddrField(packet, scaNum, scaNum_len, 0x01, 0x01);
+ * //get idx
+ * sc_addr->DialNumLen = idx ;
+ * memcpy(sc_addr->szDiallingNum, packet, (unsigned int)idx);
+ * ret_status = tel_set_sms_sca(sc_addr, 0, &RequestId); //result will come with async response
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_sms_sca(TapiHandle *handle, const TelSmsAddressInfo_t *pSCA, int index, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function is used to get current SMS Service Centre Address information.
+ *           Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] Index
+ * - Contains the record index of the Service center address information in the EF.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETTEXT_GET_SCA_CNF and there is no data associated with this event.
+ * Asynchronous return status is indicated by #TelSmsResponse_t.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ *
+ * ret_status = tel_get_sms_sca(0, &RequestId); //result will come with async response
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_sms_sca(TapiHandle *handle, int index, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief This function is used by the applications to inform modem about  the memory status of PDA (whether FULL or AVAILABLE) so that modem can inform network .
+ *           Access to this API is limited to in-house application.
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] memoryStatus
+ *  - Contains Memory Status
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no associated event data. Asynchronous return status
+ *  is indicated by #TelSmsResponse_t
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ * int MemoryStatus = TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE;
+ *
+ * ret_status = tel_set_sms_memory_status(MemoryStatus, &RequestId); //result will come with async response
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_sms_memory_status(TapiHandle *handle, int memoryStatus, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief  This function is used by the applications to set the message status in the SIM EF.
+ *           Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * 
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] Index
+ *  - Index of the message whose status has to be set.
+ *
+ * @param [in] msgStatus
+ *  - Status of the message to be set.
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no associated event data. Asynchronous return status
+ *  is indicated by #TelSmsResponse_t
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ * int index = 1;
+ * int MemoryStatus = TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE;
+ *
+ * ret_status = tel_set_sms_memory_status(index, MemoryStatus, &RequestId); //result will come with async response
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_sms_message_status(TapiHandle *handle, int index, TelSmsMsgStatus_t msgStatus, tapi_response_cb callback, void* user_data);
+
+ /**
+ * @brief This function is used by the applications to get the count of SMS parameter records stored in SIM EF.
+ *           Access to this API is limited to in-house application.
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * 
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [in] callback
+ *   - To register callback function for result of this function.
+ *
+ * @param [in] user_data
+ *   - user data for user specification
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_NETTEXT_PARAM_COUNT_IND and there is no associated event data. Asynchronous return status
+ *  is indicated by #TelSmsResponse_t
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiNetText.h>
+ *
+ * int ret_status = TAPI_API_SUCCESS;
+ * int RequestId = 0;
+ *
+ * ret_status = tel_get_sms_parameter_count (&RequestId); //result will come with async response
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_sms_parameter_count(TapiHandle *handle, tapi_response_cb callback, void* user_data);
+
+
+/**
+ * @brief This function is used by the applications check the sms ready status (whether ready or not) .
+ *
+ * @par Sync (or) Async:
+ * This is a Synchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * 
+ * @param [in] handle
+ * - handle from tel_init()
+ *
+ * @param [out] pReadyStatus
+ * - Contains Ready Status
+ *
+ * @par Async Response Message:
+ *  None.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ */
+int tel_check_sms_device_status(TapiHandle *handle, int *pReadyStatus);
+
+/**
+ * @brief This function is used by the applications to inform modem about the PDA status(whether PDA is ready to
+ * recieve messages from network or not).
+ *
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in]
+ *  - None
+ *
+ * @param [out]
+ *  - None
+ *
+ * @par Async Response Message:
+ *  None.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ */
+int tel_set_sms_device_status(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_NETTEXT_H_ */
+
+/**
+* @}
+*/
diff --git a/include/ITapiNetwork.h b/include/ITapiNetwork.h
new file mode 100644 (file)
index 0000000..fbdc28f
--- /dev/null
@@ -0,0 +1,933 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup Network_TAPI    NETWORK
+ * @{
+ *
+ * @file ITapiNetwork.h
+
+ @brief This file serves as a "C" header file defines functions for Tapi Network\n
+ It contains a sample set of function prototypes that would be required by applications.
+ */
+
+#ifndef _ITAPI_NETWORK_H_
+#define _ITAPI_NETWORK_H_
+
+#include <tapi_common.h>
+#include <TelErr.h>
+#include <TelDefines.h>
+#include <TelNetwork.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @brief  This function requests the lower layers to select the network automatically
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Important Notes:
+ * - This function passes the
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_SELECT_CNF and there is no data associated with this event. Asynchronous return status
+ * is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestID;
+ *
+ * // AUTOMATIC MODE
+ * ret_status = tel_select_network_automatic(&RequestId);
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_select_network_automatic(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function requests the lower layers to select the network (PLMN) which has been selected by the user from the Network List
+ *           displayed to the User.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Important Notes:
+ * - This function passes the .
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] plmn
+ *
+ * @param [in] act
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_SELECT_CNF and there is no data associated with this event. Asynchronous return status
+ * is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestID;
+ * unsigned int plmn = 0;
+ *
+ * // MANUAL MODE
+ * plmn = 45454;
+ * ret_status = tel_select_network_manual(Plmn, &RequestId);
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_select_network_manual(TapiHandle *handle, const char *plmn, int act, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function sends a request to do manual network selection to search for the available networks and provide the
+ *           Network List to the User/Application.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_SEARCH_CNF and the event data is #TelNetworkPlmnList_t.
+ * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - In the available network list, user can select one of the networks successfully.
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestID;
+ *
+ * // NETWORK SEARCH
+ * ret_status = tel_search_network(&RequestId);
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_search_network(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function requests for the present network selection mode i.e. automatic or manual.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF and the event data is #TelNetworkSelectionMode_t.
+ * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestId;
+ *
+ * // GET THE SELECTION MODE
+ * ret_status = tel_get_network_selection_mode (&RequestId);
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_network_selection_mode(struct tapi_handle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function is called when User/application wants to configure the service domain to only CS or Only PS or Both.
+ * This API triggers the underlying protocol stack to do register with Network for only CS services or only PS services
+ * or both based on the option set using this API.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] ServiceDomain
+ * - Specifies the type of Service domain (Packet switch, circuit switch,etc)
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_SET_SVC_DOMAIN_CNF and there is no event data associated with this event
+ * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestId;
+ *
+ * // SET NETWORK SERVICE DOMAIN
+ * TelNetworkServiceDomain_t ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC;
+ *
+ * ret_status = tel_set_network_service_domain (ServiceDomain, &RequestId);
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_network_service_domain(TapiHandle *handle, TelNetworkServiceDomain_t domain,
+               tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function requests for the present network service domain i.e. CS or PS or both or automatic.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_GET_SVC_DOMAIN_CNF and the event data is #TelNetworkServiceDomain_t.
+ * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestId;
+ *
+ * // GET NETWORK SERVICE DOMAIN
+ * ret_status = tel_get_network_service_domain (&RequestId);
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_network_service_domain(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This function is invoked to set the network band and allows the underlying OEM provider to scan the set band.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in]  mode
+ * - Band preference indicates the band provide to be preferred or select the band.
+ *
+ * @param[in]  band
+ * - This enumeration defines different network Bands that user can choose.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_SETNWBAND_CNF and there is no event data associated with this event and asynchronous
+ * return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestId;
+ *
+ * TelNetworkBandPreferred_t BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
+ * TelNetworkBand_t Band = TAPI_NETWORK_BAND_TYPE_GSM_900_1800;
+ *
+ * // SET NETWORK BAND
+ * ret_status = tel_set_network_band (BandMode, Band, &RequestId);
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_network_band(TapiHandle *handle, TelNetworkBandPreferred_t mode,
+               TelNetworkBand_t band, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function requests for the present network band.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_GETNWBAND_CNF and the event data is #TelNetworkBand_t.
+ * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestId;
+ *
+ * // GET NETWORK BAND
+ * ret_status = tel_get_network_band(&RequestId);
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_network_band(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function is invoked to set the network preferred plmn
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in]  operation
+ * - Operation indicates the operation to be done on preferred plmn .
+ *
+ * @param[in]  info
+ * - This gives the plmn Info.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_SETPREFFPLMN_CNF and there is no event data associated with this event and asynchronous
+ * return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestId;
+ *
+ * TelNetworkPreferredPlmnOp_t Operation = TAPI_NETWORK_PREF_PLMN_ADD;
+ * TelNetworkPreferredPlmnInfo_t PrefPlmnInfo;
+ *
+ * memset(&PrefPlmnInfo, 0, sizeof(TelNetworkPreferredPlmnInfo_t));
+ * PrefPlmnInfo.Index = 0;
+ * PrefPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
+ * unsigned char *plmn = "45454";
+ * memcpy(PrefPlmnInfo.Plmn, plmn, strlen(plmn));
+ *
+ * // SET PREFERRED PLMN
+ * ret_status = tel_set_network_preferred_plmn(Operation, PrefPlmnInfo, &RequestId);
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_network_preferred_plmn(TapiHandle *handle, TelNetworkPreferredPlmnOp_t operation,
+               TelNetworkPreferredPlmnInfo_t *info, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function is invoked to get the preferred plmn list
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_GETPREFFPLMN_CNF and event data associated with this event  is #TelNetworkPreferredPlmnList_t
+ * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include <ITapiNetwork.h>
+ *
+ * int ret_status;
+ * int RequestId;
+ *
+ * // GET NETWORK PREFERRED PLMN
+ * ret_status = tel_get_network_preferred_plmn(&RequestId);
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ *
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_network_preferred_plmn(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This function is called to cancel the triggered manual network search.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF and there is no event data associated with this event
+ * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *  - Manual network search is already triggered.
+ *
+ * @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_cancel_network_manual_search(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function is called to get network serving.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF and there is no event data associated with this event
+ * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *
+ * @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_serving(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function is called to set network mode.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] mode
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF and there is no event data associated with this event
+ * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *
+ * @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_set_network_mode(TapiHandle *handle, int mode, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This function is called to get network mode.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF and there is no event data associated with this event
+ * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
+ *
+ * @pre
+ *
+ * @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_mode(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_NETWORK_H_ */
+
+/**
+ * @}
+ */
diff --git a/include/ITapiPS.h b/include/ITapiPS.h
new file mode 100644 (file)
index 0000000..4edae8c
--- /dev/null
@@ -0,0 +1,764 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup GPRS_TAPI       GPRS
+ * @{
+ *
+ * GPRS APIs allow an application to accomplish the following services: @n
+ * - activate , deactivate PDP service @n
+ *
+ */
+
+#ifndef        _ITAPI_PS_H_
+#define _ITAPI_PS_H_
+
+#include <tapi_common.h>
+#include <TelDefines.h>
+#include <TelErr.h>
+#include <TapiUtility.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/* Defining macros for PSMAN profiles */
+#define TAPI_PDP_ADDR_LEN_MAX          20
+#define TAPI_PDP_APN_LEN_MAX           101
+#define TAPI_PDP_NAME_LEN_MAX          16
+#define TAPI_PDP_MAX_USERNAME_LEN      32
+#define TAPI_PDP_MAX_PASSWORD_LEN      32
+#define TAPI_PDP_MAX_DNS_LEN           16
+#define MAX_PDP_CONTEXTS_ALLOWED       3
+#define MAX_GPRS_PORT_LIST                     200
+
+typedef enum {
+     TAPI_GPRS_DEFINE_PDP_CONTEXT=0x01,                /* 0x01 : Define PDP Context */
+     TAPI_GSM_GPRS_QOS,                                                /* 0x02 : Quality of Service Profile */
+     TAPI_GSM_GPRS_PS,                                         /* 0x03 : PS attach or detach */
+     TAPI_GSM_GPRS_PDP_CONTEXT,                                /* 0x04 : PDP context activate or deactivate */
+     TAPI_GSM_GPRS_ENTER_DATA,                         /* 0x05 : Enter data */
+     TAPI_GSM_GPRS_SHOW_PDP_ADDR,                      /* 0x06 : Show PDP address*/
+     TAPI_GSM_GPRS_MS_CLASS,                                   /* 0x07 : GPRS mobile station class*/
+     TAPI_GSM_GPRS_3G_QUAL_SRVC_PROFILE,               /* 0x08 : 3G Quality of service profile */
+     TAPI_GSM_GPRS_IP_CONFIGURATION,                   /* 0x09 : Multiple PDP context IP configuration */
+     TAPI_GSM_GPRS_DEFINE_SEC_PDP_CONTEXT,             /* 0X0A : AT+CGDSCONT   05.10.07 ky.doo EDIT */
+     TAPI_GSM_GPRS_TFT,                                                        /* 0X0B : AT+CGTFT      05.10.07 ky.doo EDIT */
+     TAPI_GSM_GPRS_HSDPA_STATUS,                               /* 0x0C : HSDPA status */
+     TAPI_GSM_GPRS_CURRENT_SESSION_DATA_COUNTER,/* 0x0D : Current data session tx/rx total bytes */
+     TAPI_GSM_GPRS_DATA_DORMANT,                /* 0x0E : Force to set Dormant */
+     TAPI_GSM_GPRS_DUN_PIN_CTRL ,               /* 0x0F : Dial up Networking Pin Control Message */
+     TAPI_GSM_GPRS_CALL_STATUS,                            /* 0x10 : DS TE2 Data Call result(Multiple PDP) */
+     TAPI_GSM_GPRS_PORT_SEL,                           /* 0x11 : PORT SEL */
+     TAPI_GSM_GPRS_MAX
+} tapi_gprs_type_t;
+
+typedef enum{
+       TAPI_PDP_MODE_ADD = 0x01,                               /*ADD*/
+       TAPI_PDP_MODE_DEL = 0x02                                        /*Delete*/
+} tapi_pdp_mode_type_t;
+
+typedef enum{
+       TAPI_PDP_AUTH_NONE = 0x0,               /* No authentication           */
+       TAPI_PDP_AUTH_PAP  = 0x1,               /* PAP authentication          */
+       TAPI_PDP_AUTH_CHAP = 0x2,               /* CHAP authentication       */
+       TAPI_PDP_AUTH_MAX  = 0xff
+
+} tapi_pdp_auth_type_t;
+
+typedef enum {
+       GPRS_PDP_TYPE_UNKNOWN   = 0x00,
+       GPRS_PDP_TYPE_X25               = 0x01,
+       GPRS_PDP_TYPE_IP                = 0x02,
+       GPRS_PDP_TYPE_IHOSP     = 0x03,
+       GPRS_PDP_TYPE_PPP               = 0x04,
+       GPRS_PDP_TYPE_IPV6              = 0x05,
+} tapi_pdp_type_t;
+
+/* HSDPA Status Variable */
+typedef enum {
+  HSDPA_INACTIVE,
+  HSDPA_ACTIVE
+} tapi_hspda_status_type;
+
+typedef enum {
+       GPRS_SIGNAL_DCD         = 0x01,
+       GPRS_DATA_SIGNAL_DTR    = 0x04,
+       GPRS_DATA_SIGNAL_DSR    = 0x06,
+       GPRS_DATA_SIGNAL_RTS    = 0x07,
+       GPRS_DATA_SIGNAL_CTS    = 0x08,
+       GPRS_DATA_SIGNAL_RI     = 0x09,
+} tapi_ps_btdun_pincontrol_signal;
+
+typedef enum {
+       GPRS_SIGNAL_STATUS_OFF  = 0x00,
+       GPRS_SIGNAL_STATUS_ON   = 0x01,
+} tapi_ps_btdun_pincontrol_status;
+
+typedef enum {
+       TAPI_GPRS_PS_STATUS_DETACH = 0x00,
+       TAPI_GPRS_PS_STATUS_ATTACH = 0x01,
+       TAPI_GPRS_PS_STATUS_MAX
+} tapi_gprs_pdp_status;
+
+typedef enum {
+       TAPI_GPRS_MO_SMS_SVC_CIRCUIT                    = 0x00,
+       TAPI_GPRS_MO_SMS_SVC_GPRS                               = 0x01,
+       TAPI_GPRS_MO_SMS_SVC_CIRCUITPREFERRED   = 0x02,
+       TAPI_GPRS_MO_SMS_SVC_GPRSPREFERRED              = 0x03,
+} tapi_gprs_pdp_mo_sms_service;
+
+typedef enum {
+       TAPI_GPRS_3G_QOS_TYPE_REQUEST                   = 0x01,
+       TAPI_GPRS_3G_QOS_TYPE_MIN_ACCEPT                = 0x02,
+       TAPI_GPRS_3G_QOS_TYPE_NEGOTIATE         = 0x03,
+} tapi_gprs_pdp_3g_qos_type;
+
+typedef enum {
+       TAPI_GPRS_3G_QOS_DELI_ORDER_NO                  = 0x00,
+       TAPI_GPRS_3G_QOS_DELI_ORDER_YES                 = 0x01,
+       TAPI_GPRS_3G_QOS_DELI_ORDER_SUBSCRIBE   = 0x02,
+} tapi_gprs_pdp_3g_qos_deli_order;
+
+typedef enum {
+       DSTATE_OK                       = 0x00,
+       DSTATE_CONNECT,
+       DSTATE_RING,
+       DSTATE_NO_CARRIER,
+       DSTATE_ERROR,
+       DSTATE_NO_DIALTONE,
+       DSTATE_BUSY,
+       DSTATE_NO_ANSWER,
+       DSTATE_RESULT_FDN,
+       DSTATE_MAX,
+} tapi_gprs_data_status;
+
+typedef enum {
+       PDP_ACT_FAILURE_CAUSE_NORMAL                                    = 0x00,                 // 0x00 : Normal Process ( no problem )
+       PDP_ACT_FAILURE_CAUSE_REL_BY_USER                               = 0x01,                 // Call Released by User
+       PDP_ACT_FAILURE_CAUSE_REGULAR_DEACTIVATION              = 0x02,                 // Regular deactivation
+       PDP_ACT_FAILURE_CAUSE_LLC_SNDCP                         = 0x03,                 // LLC SNDCP failure
+       PDP_ACT_FAILURE_CAUSE_INSUFFICIENT_RESOURCE     = 0x04,                 // Insufficient resources
+       PDP_ACT_FAILURE_CAUSE_UNKNOWN_APN                               = 0x05,                 // Missing or unknown apn
+       PDP_ACT_FAILURE_CAUSE_UNKNOWN_PDP_ADDRESS               = 0x06,         // Unknown PDP address or type
+       PDP_ACT_FAILURE_CAUSE_USER_AUTH_FAILED                  = 0x07,         // Unknown PDP address or type
+       PDP_ACT_FAILURE_CAUSE_ACT_REJ_GGSN                              = 0x08,                 // Unknown PDP address or type
+       PDP_ACT_FAILURE_CAUSE_ACT_REJ_UNSPECIFIED               = 0x09,                 // Unknown PDP address or type
+       PDP_ACT_FAILURE_CAUSE_SVC_OPTION_NOT_SUPPORTED  = 0x0A,         // Service option not supported
+       PDP_ACT_FAILURE_CAUSE_SVC_NOT_SUBSCRIBED                = 0x0B,         // Requested service option not subscribed
+       PDP_ACT_FAILURE_CAUSE_SVC_OPT_OUT_ORDER         = 0x0C,                 // Service out of order
+    PDP_ACT_FAILURE_CAUSE_NSAPI_USED                           = 0x0D,         // NSAPI already used
+       PDP_ACT_FAILURE_CAUSE_QOS_NOT_ACCEPTED                  = 0x0E,         // QoS not accepted
+       PDP_ACT_FAILURE_CAUSE_NETWORK_FAILURE                   = 0x0F,         // Network Failure
+    PDP_ACT_FAILURE_CAUSE_REACT_REQUIRED                       = 0x10,         // Reactivation Required
+       PDP_ACT_FAILURE_CAUSE_REATURE_NOT_SUPPORTED             = 0x11,         // Feature not supported
+       PDP_ACT_FAILURE_CAUSE_TFT_FILTER_ERROR                  = 0x12,         // TFT or filter error
+       PDP_ACT_FAILURE_CAUSE_UNKOWN_PDP_CONTEXT                = 0x13,         // Unknown PDP context
+       PDP_ACT_FAILURE_CAUSE_INVALID_MSG                               = 0x14,         // Invalid MSG
+       PDP_ACT_FAILURE_CAUSE_PROTOCOL_ERROR                    = 0x15,         // Protocol error
+       PDP_ACT_FAILURE_CAUSE_MOBILE_FAILURE_ERROR              = 0x16,         // Mobile failure error
+       PDP_ACT_FAILURE_CAUSE_TIMEOUT_ERROR                             = 0x17,         // Timeout error
+       PDP_ACT_FAILURE_CAUSE_UNKNOWN_ERROR                             = 0x18,         // Unknown error
+       PDP_ACT_FAILURE_CAUSE_MAX ,
+} tapi_gprs_ds_status_reason;
+
+typedef enum {
+       INTERNAL_PS_CALL = 0x00,
+       EXTERNAL_PS_CALL = 0x01
+} tapi_gprs_external_status;
+
+typedef enum {
+       PDP_DEVICE_INFO_GET = 0x00,
+       PDP_DEVICE_INFO_SET = 0x01
+} tapi_gprs_device_info;
+
+typedef enum{
+    TAPI_GPRS_PORT_LIST_NOT_USE,    // 0x00
+       TAPI_GPRS_PORT_LIST_WHITE,      // 0x01
+       TAPI_GPRS_PORT_LIST_BLACK,      // 0x02
+} tapi_gprs_port_list_type;
+
+typedef enum {
+       TAPI_PDP_STATE_NONE,             /* 0x00 Default state for a given PDP context*/
+    TAPI_PDP_STATE_ACTIVATING,          /* 0x01 TS will be in this state when there is a START PDP Request until it is  activated by modem - This state PDP is not yet UP*/
+    TAPI_PDP_STATE_ACTIVE,           /* 0x02 After PDP activation is completed by modem and sent to PDA - This state PDP is fully UP*/
+    TAPI_PDP_STATE_MODIFYING,        /* 0x03 This state is reserved for future use - When TS support modifying existing PDP*/
+    TAPI_PDP_STATE_DEACTIVATING,     /* 0x04 TS will be in this state when there is STOP PDP request from App until it is deactivated by modem */
+} tapi_gprs_state;
+
+typedef enum {
+       TAPI_PDP_DATA_DORMANCY_SUCCESS,
+       TAPI_PDP_DATA_DORMANCY_FAILED
+} TelTapiGprsDataDormancy_t;
+
+/* Suspend Reason Type */
+typedef enum {
+  TAPI_PDP_SUSPEND_NO_SVC                      = 0x01,
+  TAPI_PDP_SUSPEND_RAT_CHANGE          = 0x02,
+  TAPI_PDP_SUSPEND_GPRS_HOLD           = 0x03,
+  TAPI_PDP_SUSPEND_FLOW_CONTROL        = 0x04,
+  TAPI_PDP_SUSPEND_GPRS_SUSPEND        = 0x05,
+  TAPI_PDP_SUSPEND_RAU                 = 0x06,
+  TAPI_PDP_SUSPEND_LU                      = 0x07,
+  TAPI_PDP_TRANSFER_STATUS_MAX
+} tapi_gprs_suspend_type;
+
+typedef struct {
+       tapi_gprs_type_t type;
+       tapi_phone_err_t cause;
+} tapi_gprs_error_info_t;
+
+typedef struct {
+       int cont_id;
+       tapi_pdp_err_t err;
+} tapi_ps_pdp_info_t;
+
+typedef struct {
+       int cont_id;
+       tapi_pdp_err_t err;
+} tapi_ps_net_stop_rsp_t;
+
+typedef struct {
+       int cont_id;
+       tapi_pdp_err_t err;
+} tapi_ps_net_activation_rsp_t;
+
+typedef struct {
+       int cont_id;
+       tapi_pdp_err_t err;
+} tapi_ps_net_stop_ind_t;
+
+/*     ps attach response      */
+typedef struct {
+       int     state;
+       int     transfer_status;
+} tapi_ps_attach_response_t;
+
+/*     ps call statistics      */
+typedef struct {
+       unsigned char       cid;        //      call id . for proper bit alignment prefer int than short
+       unsigned long int       rx;     //      total number of bytes received for this cid
+       unsigned long int       tx;             //      total number of bytes transmitted for this cid
+} tapi_ps_call_statistics_t;
+
+typedef struct {
+       tapi_ps_btdun_pincontrol_signal signal;
+       tapi_ps_btdun_pincontrol_status status;
+} tapi_ps_btdun_pincontrol;
+
+/**
+ * This structure defines PDP information.
+ * @see        ps_net_info_t
+ */
+typedef struct {
+   unsigned short      is_primary_cont;                /*Primary or secondary*/
+   int                         primary_cont;                   /*Primary context id, if the is the context is secondary*/
+   char                        apn[TAPI_PDP_APN_LEN_MAX];
+   unsigned char       pdp_address[TAPI_PDP_ADDR_LEN_MAX];
+   unsigned char       username[TAPI_PDP_MAX_USERNAME_LEN ];
+   unsigned char       password[TAPI_PDP_MAX_PASSWORD_LEN ];
+   unsigned char       dns1[TAPI_PDP_MAX_DNS_LEN ];               // @field Context activation DNS1
+   unsigned char       dns2[TAPI_PDP_MAX_DNS_LEN ];               // @field Context activation DNS2
+   tapi_pdp_auth_type_t auth_type;
+   tapi_pdp_type_t             pdp_type;
+} tapi_pdp_info_t;
+
+typedef struct {
+       int cont_id;
+       tapi_pdp_info_t pdp_info;
+} tapi_ps_net_start_req_t;
+
+typedef struct {
+       unsigned short  is_primary_cont;  /*Primary or secondary*/
+       unsigned char           username[TAPI_PDP_MAX_USERNAME_LEN ];
+       unsigned char   password[TAPI_PDP_MAX_PASSWORD_LEN ];
+       unsigned char   dns1[TAPI_PDP_MAX_DNS_LEN ];               // @field Context activation DNS1
+       unsigned char   dns2[TAPI_PDP_MAX_DNS_LEN ];               // @field Context activation DNS2
+    tapi_pdp_auth_type_t auth_type;
+} tapi_pdpdeact_info_t;
+
+typedef struct {
+       int cont_id;
+       tapi_pdpdeact_info_t pdp_info;
+} tapi_ps_net_stop_req_t;
+
+typedef struct {
+       unsigned char field_flag;
+       unsigned char ip_address[4];
+       unsigned char primary_dns[4];
+       unsigned char secondary_dns[4];
+       unsigned char gateway[4];
+       unsigned char subnet_mask[4];
+} tapi_pdp_resp_info_t;
+
+typedef struct {
+       int cont_id;
+       tapi_pdp_err_t err;
+       tapi_pdp_resp_info_t pdp_info;
+       char devname[TAPI_PDP_NAME_LEN_MAX];
+} tapi_ps_net_start_rsp_t;
+
+typedef struct tagSetPDPActDeact {
+       int cid;
+       unsigned char username[TAPI_PDP_MAX_USERNAME_LEN ];     // @field Context activation user name
+       unsigned char passwd[TAPI_PDP_MAX_PASSWORD_LEN ];               // @field Context activation password
+       unsigned char dns1[TAPI_PDP_MAX_DNS_LEN ];                              // @field Context activation DNS1
+       unsigned char dns2[TAPI_PDP_MAX_DNS_LEN ];                              // @field Context activation DNS2
+       tapi_pdp_auth_type_t    auth;
+} tapi_gprs_pdp_act_deact_set;
+
+typedef struct {
+       char cid;
+       tapi_gprs_pdp_status state;
+} tapi_gprs_pdp_status_info;
+
+typedef struct {
+       char num_act;
+       tapi_gprs_pdp_status_info info[3];
+} tapi_gprs_pdp_status_res;
+
+typedef struct {
+       char cid;
+       char address[20];
+} tapi_gprs_pdp_address_res;
+
+typedef struct {
+       unsigned char                           cid;
+       tapi_gprs_data_status           status;
+       tapi_gprs_ds_status_reason      reason;
+       unsigned char                           external;
+} tapi_gprs_pdp_status_reason_info;
+
+typedef struct {
+    tapi_gprs_port_list_type type;
+    unsigned char len;
+    unsigned short list[MAX_GPRS_PORT_LIST];
+} tapi_gprs_port_list;
+
+typedef struct {
+    tapi_gprs_port_list tcp_list;
+    tapi_gprs_port_list udp_list;
+} tapi_gprs_pdp_port_list_setting_info_t;
+
+/**
+ * @brief  This API is used to request to Telephony Server to set PDP context define info, PDP activation.
+ *  Access to this API is limited, we recommend you use Data Network API
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ * @param[in] pNet_start_req_info
+ * - This input has the PDP context define info, PDP activation info #tapi_ps_net_start_req_t
+ *
+ * @param [out] pRequestID
+ *   - Unique identifier for a particular request.
+ *   - request_id value can be any value from 0 to 255 if the API is returned successfully
+ *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
+ *
+ * @par Async Response Message:
+ * -The event associated is TAPI_EVENT_PS_PDP_ACT_RSP  and the event data is #tapi_ps_pdp_info_t.
+ *
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiPS.h>
+ *
+ * int ret_status;
+ * int request_id = 0;
+ * tapi_ps_net_start_req_t start_req;
+ *
+ * start_req.cont_id = CONTEXT_ID; //use proper id regarding upper layer usage
+ * strcpy(start_req.pdp_info.apn, APN_ADDRESS);
+ *
+ * ret_status = tel_activate_gprs_pdp (&start_req, &request_id);
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ */
+/*================================================================================================*/
+int    tel_activate_gprs_pdp(const tapi_ps_net_start_req_t *pNet_start_req_info, int *pRequestID);
+
+/**
+ * @brief  This API is used to request to Telephony Server to deactivate PDP service
+ *  Access to this API is limited, we recommend you use Data Network API
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ * @param[in] net_stop_req_info
+ * - This input has the PDP context define info, PDP activation info #tapi_ps_net_start_req_t
+ *
+ * @param [out] pRequestID
+ *   - Unique identifier for a particular request.
+ *   - request_id value can be any value from 0 to 255 if the API is returned successfully
+ *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
+ *
+ * @par Async Response Message:
+ * -The event associated is TAPI_EVENT_PS_PDP_DEACT_RSP  and the event data is #tapi_ps_pdp_info_t.
+ *
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiPS.h>
+ *
+ * int ret_status;
+ * int request_id = 0;
+ * tapi_ps_net_stop_req_t end_req;
+ *
+ * memset(&end_req, 0, sizeof(tapi_ps_net_stop_req_t));
+ *
+ * end_req.cont_id = CONTEXT_ID;
+ *
+ * ret_status = tel_deactivate_gprs_pdp (&end_req, &request_id); //use context id which is used in activate time
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ */
+/*================================================================================================*/
+int    tel_deactivate_gprs_pdp(const tapi_ps_net_stop_req_t *net_stop_req_info, int *pRequestID);
+
+/**
+ * @brief  This API is used to send modem data channels to dormant state for power saving when there is no data flowing for certain time
+ *         Access to this API is limited, we recommend you use Data Network API
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ * @param [out] pRequestID
+ *   - Unique identifier for a particular request.
+ *   - request_id value can be any value from 0 to 255 if the API is returned successfully
+ *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
+ *
+ * @par Async Response Message:
+ *  -The event associated is TAPI_EVENT_PS_DATA_DORMANT_RESP  and the event data is #TelTapiGprsDataDormancy_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiPS.h>
+ *
+ * int ret_status;
+ * int request_id = 0;
+ *
+ * ret_status = tel_set_gprs_dormant(&request_id); //if user want to dormant state
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ */
+/*================================================================================================*/
+int    tel_set_gprs_dormant(int *pRequestID);
+
+/**
+ * @brief  This API is used to get port list
+ *         Access to this API is limited, we recommend you use Data Network API
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ * @param [out] pRequestID
+ *   - Unique identifier for a particular request.
+ *   - request_id value can be any value from 0 to 255 if the API is returned successfully
+ *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
+ *
+ * @par Async Response Message:
+ *  -The event associated is TAPI_EVENT_PS_PDP_GET_PORTLIST_RSP  and the event data is #tapi_gprs_pdp_port_list_setting_info_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiPS.h>
+ *
+ * int ret_val;
+ * int requestId = 0;
+ *
+ * ret_val = tel_get_gprs_port_list(&requestId); //get port list with async response. current return value means whether request send low layer properly or not
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ */
+/*================================================================================================*/
+int    tel_get_gprs_port_list(int *pRequestID);
+
+/**
+ * @brief  This API is used to set port list
+ *         Access to this API is limited, we recommend you use Data Network API
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ * @param[in] info
+ * - This input has the TCP/UDP port list information info #tapi_gprs_pdp_port_list_setting_info_t
+ *
+ * @param [out] pRequestID
+ *   - Unique identifier for a particular request.
+ *   - request_id value can be any value from 0 to 255 if the API is returned successfully
+ *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
+ *
+ * @par Async Response Message:
+ *  -None
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiPS.h>
+ *
+ * int ret_val;
+ * int requestId = 0;
+ * tapi_gprs_pdp_port_list_setting_info_t test;
+ *
+ * memset(&test, 0, sizeof(tapi_gprs_pdp_port_list_setting_info_t));
+ * test.tcp_list.type = TAPI_GPRS_PORT_LIST_NOT_USE;
+ * test.tcp_list.len = 1;
+ * test.tcp_list.list[0] = 1004;
+ * test.udp_list.type = TAPI_GPRS_PORT_LIST_NOT_USE;
+ * test.udp_list.len = 1;
+ * test.udp_list.list[i] = 1111;
+ *
+ * ret_val = tel_set_gprs_port_list(&test, &requestId); //get operation result with async response. current return value means whether request send low layer properly or not
+ *
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ */
+/*================================================================================================*/
+int    tel_set_gprs_port_list(tapi_gprs_pdp_port_list_setting_info_t *info, int *pRequestID);
+
+
+/**
+ * @brief  This API is used to request BT Dun enable or disable
+ *         Access to this API is limited, we recommend you use Data Network API
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ * @param[in] pincontrol
+ * - This input has the BT Dun pin control information #tapi_ps_btdun_pincontrol
+ *
+ * @param [out] pRequestID
+ *   - Unique identifier for a particular request.
+ *   - request_id value can be any value from 0 to 255 if the API is returned successfully
+ *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
+ *
+ * @par Async Response Message:
+ * -The event associated is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI or TAPI_EVENT_PS_ERROR_IND.
+ * -In success, the event associated is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI  and the event data is #tapi_ps_btdun_pincontrol.
+ *   In fail, the event associated is TAPI_EVENT_PS_ERROR_IND  and the event data is #tapi_gprs_error_info_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @code
+ * #include <ITapiPS.h>
+ *
+ * int ret_status;
+ * int request_id = 0;
+ * tapi_ps_btdun_pincontrol bt_control;
+ *
+ * bt_control.signal = GPRS_SIGNAL_DCD;
+ * bt_control.status = GPRS_SIGNAL_STATUS_OFF;
+ *
+ * ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id); //get control result with async response. current return value means whether request send low layer properly or not
+ * @endcode
+ *
+ * @see
+ *  - None.
+ *
+ * @remarks
+ *  - None.
+ */
+/*================================================================================================*/
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif  //_ITAPI_PS_H_
+
+/**
+   *  @}
+   */
diff --git a/include/ITapiPhonebook.h b/include/ITapiPhonebook.h
new file mode 100644 (file)
index 0000000..935971a
--- /dev/null
@@ -0,0 +1,535 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  PHONEBOOK_TAPI  PHONEBOOK
+* @{
+*
+* @file ITapiPhonebook.h
+
+     @brief This file serves as a "C" header file defines functions for Tapi SIM phonebook Services.\n
+      It contains a sample set of function prototypes that would be required by applications.
+
+*/
+
+#ifndef _ITAPI_PHONEBOOK_H_
+#define _ITAPI_PHONEBOOK_H_
+
+#include <tapi_common.h>
+#include <TelErr.h>
+#include <TelSim.h>
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @brief  This function is used to get current inserted SIM phonebook init status, available phonebook list and first valid index in case of FDN, ADN, 3G phonebook.
+ *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
+ *
+ * @par Sync (or) Async:
+ * This is an synchronous API.
+ *
+ * @par Important Notes:
+ * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
+ * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
+ * pb_list and first_index value are available at init_completed status is '1' only.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [out] init_completed
+ *   - phonebook init status. '0' is not init, '1' is init complete to use.
+ *
+ * @param [out] pb_list
+ *   - available SIM phonebook list. This value is valid in phonebook init complete case.
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int valid_index = 0; // usim or sim adn first valid index
+ * TelSimPbList_t pb_list = {0,};
+ * int pPbInitCompleted = 0; // init or not
+ *
+ * // GET SIM PHONEBOOK INIT INFORMATION
+ * err_code = tel_get_sim_pb_init_info(&pPbInitCompleted, &pb_list, &valid_index);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_pb_init_info(TapiHandle *handle, int *init_completed, TelSimPbList_t *pb_list);
+
+
+/**
+ * @brief  This API is used to get number of used records and total records in specific SIM phonebook type.
+ *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
+ * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] pb_type
+ * -Different storage types to be selected in SIM. #TelSimPbType_t
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF  and the event data is #TelSimPbStorageInfo_t.
+ * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int request_id = 0;
+ * TelSimPbType_t storage_type = 0x00;
+ * storage_type = TAPI_SIM_PB_3GSIM; // usim phonebook
+ * err_code = tel_get_sim_pb_count(storage_type, &request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_pb_count(TapiHandle *handle, TelSimPbType_t pb_type, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This API is used to get max text length and max number length supported by SIM phone book elementary file.
+ *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - The max number length includes the storage space provided by the corresponding EXT file for a given Dialling Number file.
+ * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
+ * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] pb_type
+ * -Different storage types to be selected in SIM. #TelSimPbType_t
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF  and the event data is #TelSimPbEntryInfo_t.
+ * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int request_id = 0;
+ * TelSimPbType_t storage_type = 0x00;
+ * storage_type = TAPI_SIM_PB_3GSIM; // usim phonebook
+ * err_code = tel_get_sim_pb_meta_info(storage_type, &request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_pb_meta_info(TapiHandle *handle, TelSimPbType_t pb_type, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This API is used to get SIM 3G phonebook supported EFs like ANR, SNE, GRP, EMAIL etc and corresponding EFs max text length, number length and size.
+ *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
+ * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - The event associated is TAPI_SIM_EVENT_PB_3G_CAPABILITY_INFO_CNF  and the event data is #TelSimPbCapabilityInfo_t.
+ * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int request_id = 0;
+ * err_code = tel_get_sim_pb_3g_meta_info(&request_id); // you can find result by receiving asynch event response
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_pb_usim_meta_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This API is used to read SIM phone book entry information from given storage type.
+ *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - The index ranges from 1 through to a maximum of 254 for a Linear fixed file and 255 for a cyclic file.
+ * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
+ * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] pb_type
+ * -Different storage types to be selected in SIM. #TelSimPbType_t
+ *
+ * @param[in] index
+ * -Index for accessing the SIM data.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_PB_ACCESS_READ_CNF  and the event data is #TelSimPbRecordData_t.
+ * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int request_id = 0;
+ * unsigned short index = 1;
+ * TelSimPbType_t storage_type = 0x00;
+ * storage_type = TAPI_SIM_PB_3GSIM; // usim phonebook
+ * err_code = tel_read_sim_pb_record(storage_type, index, &request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_read_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type, unsigned short index, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This API is used to add or edit SIM phone book record entry information.
+ *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
+ * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] req_data
+ * -phonebook data which will be updated or added. #TelSimPbRecordData_t
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_PB_UPDATE_CNF  and the event data is #TelSimPbUpdateResp_t.
+ * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int request_id = 0;
+ * unsigned short index = 1;
+ * TelSimPbRecordData_t data;
+ * data.StorageFileType  = TAPI_SIM_PB_3GSIM; // usim phonebook
+ * data.Index  = 1; // index which will be updated
+ * data.NextIndex  = 0;
+ * //data.ContactInfo will be added
+ * err_code = tel_update_sim_pb_record(&data, &request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_update_sim_pb_record(TapiHandle *handle, const TelSimPbRecord_t *req_data, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This API is used to delete a SIM phonebook record.
+ *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - The index ranges from 1 through to a maximum of 254 for a Linear fixed file and 255 for a cyclic file.
+ * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
+ * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] pb_type
+ * -Different storage types to be selected in SIM. #TelSimPbType_t
+ *
+ * @param[in] index
+ * -Index of the record to be deleted.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_PB_DELETE_CNF  and the event data is #TelSimPbUpdateResp_t.
+ * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int request_id = 0;
+ * unsigned short index = 1;
+ * TelSimPbType_t storage_type = 0x00;
+ * storage_type = TAPI_SIM_PB_3GSIM; // usim phonebook
+ * err_code = tel_delete_sim_pb_record(storage_type, index, &request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_delete_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type, unsigned short index, tapi_response_cb callback, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_PHONEBOOK_H_ */
+
+/**
+* @}
+*/
diff --git a/include/ITapiSap.h b/include/ITapiSap.h
new file mode 100644 (file)
index 0000000..c23bd37
--- /dev/null
@@ -0,0 +1,433 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  SAP_TAPI        SAP
+* @{
+*
+* @file ITapiSap.h
+
+     @brief This file serves as a "C" header file defines functions for Tapi SAP Services.\n
+      It contains a sample set of function prototypes that would be required by applications.
+
+*/
+
+#ifndef _ITAPI_SAP_H_
+#define _ITAPI_SAP_H_
+
+#include <tapi_common.h>
+#include <TelErr.h>
+#include <TelSim.h>
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @brief  This API is used to request to connect sap.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] max_msg_size
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sap_connect(TapiHandle *handle, int max_msg_size, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to request sap to disconnect sap.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sap_disconnect(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to request sap connection status.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sap_connection_status(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to request to get atr.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sap_transfer_atr(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to request to transfer apdu.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] apdu_data
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sap_transfer_apdu(TapiHandle *handle, TelSapApduData_t *apdu_data, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to request to transport protocol.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] protocol
+ * - SAP transport protocol type
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sap_transport_protocol(TapiHandle *handle, TelSimSapProtocol_t protocol, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to request to control power_mode.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] power_mode
+ * - enum data for controlling power mode of client
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sap_power_operation(TapiHandle *handle, TelSimSapPowerMode_t power_mode, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to request to get card_reader_status.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sap_cardreader_status(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_SAP_H_ */
+
+/**
+* @}
+*/
diff --git a/include/ITapiSat.h b/include/ITapiSat.h
new file mode 100644 (file)
index 0000000..2c03a30
--- /dev/null
@@ -0,0 +1,411 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  SAT_TAPI        SAT
+* @{
+*
+* @file ITapiSat.h
+
+     @brief This file serves as a "C" header file defines functions for Tapi Sat Services.\n
+      It contains a sample set of function prototypes that would be required by applications.
+
+      Note: Telephony SAT functionality is message relaying from USIM application to SAT related applications.
+ */
+
+#ifndef _ITAPI_SAT_H_
+#define _ITAPI_SAT_H_
+
+#include <tapi_common.h>
+#include <TelSat.h>
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+ /**
+ * @brief Sends the user choice of the main menu options to the USIM.
+ *
+ * @par Notes:
+ * A set of possible menu options is supplied by the USIM
+ * using the proactive command SET UP MENU. Telephony server receives the command
+ * and publishes this information.SAT UI application should list the menu when it initially launched.
+ * If the user subsequently chooses an option, then SAT UI application replies
+ * the command with user's choice using this API.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ * @par Warning:
+ * Do not use this function. This function is dedicated to the SAT UI embedded application only.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] pMenuSelect
+ * - #TelSatMenuSelectionReqInfo_t contains information like which SAT menu item has been selected or whether Help is required.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - The event associated is TAPI_EVENT_SAT_MENU_SELECTION_CNF and the Asynchronous return status is indicated by #TelSatEnvelopeResp_t.
+ *
+ * @pre
+ *  - This function supposed to be called after getting TAPI_EVENT_SAT_SETUP_MENU_IND event from telephony server\n
+ *
+ * @post
+ *  - None
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * SAT-UI
+ *
+ * @see tel_get_sat_main_menu_info
+ *
+ * @code
+ * #include <ITapiSat.h>
+ * int ret_status =0;
+ * int pRequestID=0;
+ * TelSatMenuSelectionReqInfo_t selected_menu;
+ * selected_menu.itemIdentifier = '1'; //selected menu num
+ * selected_menu.bIsHelpRequested = 0;
+ * ret_status = tel_select_sat_menu(&selected_menu, &pRequestId);
+ * @endcode
+ *
+ * @remarks None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_select_sat_menu(TapiHandle *handle, const TelSatMenuSelectionReqInfo_t* pMenuSelect, tapi_response_cb callback, void *user_data);
+
+ /**
+ * @brief  Download SAT events to USIM
+ *
+ * @par Notes:
+ * A set of events for the terminal to monitor can be supplied by the USIM using the proactive command SET UP EVENT
+ * LIST. If the USIM has sent this command, and an event which is part of the list subsequently occurs, the terminal
+ * informs the USIM using this function, relevant for that event.
+ * If USIM commands to monitor a browser termination event, the SAT-UI application has to call this function.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ * @par Warning:
+ * Do not use this function. This function is dedicated to the SAT UI embedded application only.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] pEventData
+ * - #TelSatEventDownloadReqInfo_t contains the necessary parameters like event type and information associated with it.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - The event associated is TAPI_EVENT_SAT_EVENT_DOWNLOAD_CNF and the Asynchronous return status is indicated by #TelSatEnvelopeResp_t.
+ *
+ * @pre
+ *  - A SET UP EVENT LIST proactive command supplies a set of event to monitor.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * SAT-UI
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSat.h>
+ * int ret_status =0;
+ * int pRequestID=0;
+ * TelSatEventDownloadReqInfo_t pEventData;
+ * pEventData.eventDownloadType = TAPI_EVENT_SAT_DW_TYPE_IDLE_SCREEN_AVAILABLE;
+ * pEventData.u.bIdleScreenAvailable = 1; //event occur or not
+ * ret_status = tel_download_sat_event(&pEventData, &pRequestId);
+ * @endcode
+ *
+ * @remarks None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_download_sat_event(TapiHandle *handle, const TelSatEventDownloadReqInfo_t*  pEventData, tapi_response_cb callback, void *user_data);
+
+ /**
+ * @brief  Send the UI display status of the alpha identifier of a specific proactive command to Telephony Server.
+ *
+ * When SAT-UI receives a proactive command, SAT-UI should draw a UI for relevant command.
+ * As it completes , SAT-UI inform USIM with this function. Afterwards, USIM is getting ready to send another commands.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ *
+ * @par Warning:
+ * Do not use this function. This function is dedicated to the SAT UI embedded application only.
+ *
+ * @par Sync (or) Async:
+ * This is a Synchronous API.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] commandId
+ * - Specific proactive command id from the Application
+ *
+ * @param [in] status
+ * - #TelSatUiDisplayStatusType_t contain display status(SUCCESS/FAIL).
+ *
+ * @par Async Response Message:
+ * - None.
+ *
+ * @pre
+ *  - Display request for the alpha identifier of a Proactive Command should be sent by Telephony Server.
+ *
+ * @post
+ *  - If the display status is SUCCESS Telephony Server sends a request to application for Proactive Command Execution.
+ *  - If the display status is FAIL Telephony Server sends Terminal Response for the Proactive Command.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * SAT-UI
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSat.h>
+ * int commandId = 1; //this value should be server given value
+ * ret_status = 0;
+ * ret_status = tel_send_ui_display_status(1, TAPI_SAT_DISPLAY_SUCCESS);
+ * @endcode
+ *
+ * @remarks None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_send_sat_ui_display_status(TapiHandle *handle, int commandId, TelSatUiDisplayStatusType_t status);
+
+ /**
+ * @brief  This function sends the UI User confirmation data for a specific Proactive Command to the Telephony Server.
+ *
+ * In case that the proactive commands need user response, SAT-UI can send it using this function.
+ * The response can be 'OK', 'Cancel', 'Move Back' and 'End Session'. Upon this response, USIM can send
+ * a proactive command subsequently to indicate next UI action.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ *
+ * @par Warning:
+ * Do not use this function. This function is dedicated to the SAT UI embedded application only.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous API.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ *@param [in] pUserConfirmData
+ * -#TelSatUiUserConfirmInfo_t contains Specific user confirmation data.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User Confirmation request for a specific Proactive Command should be sent to application by Telephony Server.
+ *
+ * @post
+ *  - If the User Confirmation is positive Telephony Server sends a request to application for Proactive Command Execution.
+ *  - If the User Confirmation is negative Telephony Server sends Terminal Response for the Proactive Command.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * SAT-UI
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSat.h>
+ * int ret_status =0;
+ * TelSatUiUserConfirmInfo_t cfm_data;
+ * cfm_data.commandId = '1'; //this value should be server given value
+ * cfm_data.commandType = TAPI_SAT_CMD_TYPE_SETUP_CALL;
+ * cfm_data.keyType = TAPI_SAT_USER_CONFIRM_YES;
+ * ret_status = tel_send_sat_ui_user_confirm(&cfm_data);
+ * @endcode
+ *
+ * @remarks None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_send_sat_ui_user_confirm(TapiHandle *handle, TelSatUiUserConfirmInfo_t *pUserConfirmData);
+
+ /**
+ * @brief  This function provides SAT(Sim Application toolkit) Main Menu information for SAT-UI.
+ *
+ * Once the USIM supplies the SET UP MENU proactivae command, telephony server not only publish
+ * TAPI_EVENT_SAT_SETUP_MENU_IND event but also caches the menu information.
+ * The SAT-UI applicatoin can get the menu list using this function.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ *
+ * @par Warning:
+ * Do not use this function. This function is dedicated to the SAT UI embedded application only.
+ *
+ * @par Sync (or) Async:
+ * This is a Synchronous API.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [out] pMainMenu
+ * - #TelSatSetupMenuInfo_t contain all menu related information which are required like menu title, icon, item count, etc.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - When SAT SIM is inserted. we can get meaningful data. without SAT SIM, Null is returned
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * SAT-UI
+ *
+ * @see tel_select_sat_menu
+ *
+ * @code
+ * #include <ITapiSat.h>
+ * int ret_status =0;
+ * TelSatSetupMenuInfo_t menu; //this struct will be pull up with SIM menu info
+ * ret_status = tel_get_sat_main_menu_info(&menu);
+ * @endcode
+ *
+ * @remarks None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_sat_main_menu_info(TapiHandle *handle, TelSatSetupMenuInfo_t *pMainMenu);
+
+ /**
+ * @brief  This API provides the Operation result(s) for the Proactive Command execution by the Application(s) to the Telephony Server.
+ *
+ * The USIM commands the terminal to do some predefined action, such as sending short message,
+ * making a voice call, launching an Internet browser and so on. Those actions are defined by 3GPP TS31.111.
+ * Once a application executes the requested action by USIM, it reports the operation result to USIM using this function.
+ *
+ * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
+ *
+ * @par Warning:
+ * Do not use this function. This function is dedicated to the SAT UI embedded application only.
+ **
+ * @par Sync (or) Async:
+ * This is a Synchronous API.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [out] pAppRetInfo
+ * - #TelSatAppsRetInfo_t contains execution result of a specific proactive command by application.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - Proactive Command execution request should be sent by Telephony Server to SAT related applications.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
+ * - Else it will return failure and error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * Embeded applications which are predefined by 3GPP TS31.111
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSat.h>
+ * int ret_status =0;
+ * TelSatAppsRetInfo_t app_ret;
+ * app_ret.commandType = TAPI_SAT_CMD_TYPE_SETUP_CALL;
+ * app_ret.commandId = 1; //this value should be server given value
+ * app_ret.appsRet.setupCall.resp = TAPI_SAT_R_SUCCESS;
+ * ret_status = tel_send_sat_app_exec_result(&app_ret);
+ * @endcode
+ *
+ * @remarks None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_send_sat_app_exec_result(TapiHandle *handle, TelSatAppsRetInfo_t *pAppRetInfo);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_SAT_H_ */
+
+/**
+ * @}
+ */
diff --git a/include/ITapiSim.h b/include/ITapiSim.h
new file mode 100644 (file)
index 0000000..d419563
--- /dev/null
@@ -0,0 +1,1605 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  SIM_TAPI        SIM
+* @{
+*
+* @file ITapiSim.h
+
+     @brief This file serves as a "C" header file defines functions for Tapi SIM Services.\n
+      It contains a sample set of function prototypes that would be required by applications.
+
+*/
+
+#ifndef _ITAPI_SIM_H_
+#define _ITAPI_SIM_H_
+
+#include <tapi_common.h>
+#include <TelErr.h>
+#include <TelSim.h>
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+* @brief  This API is used to get SIM Card Initialization status and SIM Card Identification.
+* Most of modules which require SIM data should check SIM status before using it definitely.
+ *
+* @par Sync (or) Async:
+* This is a Synchronous API.
+*
+* @par Important Notes:
+* - Card Identification value is available in TAPI_SIM_STATUS_SIM_INIT_COMPLETED case only.
+*
+* @warning
+* - None.
+*
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+* @param [out] sim_status
+* - This parameter returns SIM initialization status from Telephony server boot up time.
+* First, You can find sim existance if returned value are not in TAPI_SIM_STATUS_CARD_NOT_PRESENT and TAPI_SIM_STATUS_CARD_REMOVED.
+*
+* @param [out] card_changed
+* - This parameter returns sim card identification value when sim_status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED.
+* - card_changed value just present whether current inserted SIM card differs with previous SIM or not.
+*
+* @par Async Response Message:
+* - None
+*
+* @pre
+*  - None.
+*
+* @post
+*  - None.
+*
+* @return Return Type (int)
+* - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
+* - Negative integer : it provides an error code (Refer #TapiResult_t)
+*
+* @par Prospective Clients:
+* External Apps.
+*
+* @see None
+*
+* @code
+* #include <ITapiSim.h>
+*
+* int err_code = TAPI_API_SUCCESS;
+* TelSimCardStatus_t status = 0x00;
+* int b_card_changed = 0;
+*
+* // GET SIM INIT INFORMATION
+* err_code = tel_get_sim_init_info(&status, &b_card_changed);
+*
+* @endcode
+*
+* @remarks None
+*
+*/
+/*================================================================================================*/
+int tel_get_sim_init_info(TapiHandle *handle, TelSimCardStatus_t *sim_status, int *card_changed);
+
+/**
+ * @brief  This function is a synchronous API which gets the Card Type whether Card is a SIM or a USIM.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous function.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [out] card_type
+ * This parameter returns the SIM card type information like whether it is GSM SIM card or USIM or it is of unknown type.
+ *
+ *  - TAPI_SIM_CARD_TYPE_UNKNOWN
+ *  - TAPI_SIM_CARD_TYPE_GSM
+ *  - TAPI_SIM_CARD_TYPE_USIM
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * TelSimCardType_t cardInfo; //unkwon, sim(normally gsm), usim(normally umts)
+ * err_code = tel_get_sim_type(&cardInfo);
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_type(TapiHandle *handle, TelSimCardType_t *card_type);
+
+/**
+ * @brief  This function is a synchronous API gets the IMSI information.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous function.
+ *
+ * @par Important Notes:
+ * - IMSI value is the value that security needs.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [out] imsi
+ * This parameter returns the IMSI information. Refer #TelSimImsiInfo_t
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * TelSimImsiInfo_t sim_imsi_info; // mcc, mnc, msisdn
+ * err_code = tel_get_sim_imsi(&sim_imsi_info);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_imsi(TapiHandle *handle, TelSimImsiInfo_t *imsi);
+
+/**
+ * @brief  This function is a synchronous API used to get ECC(SIM) or UECC(USIM) data.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous function.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [out] ecc
+ * - This parameter returns
+ *             the SIM emergency call code information like ecc length, service type etc
+ *             and number of ECC records.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int ecc_rec_count = 0; // count in sim card
+ * int err_code = 0;
+ * TelSimEccData_t ecc_info = {{{0,}}};
+ * err_code = tel_get_sim_ecc(&ecc_info, &ecc_rec_count);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_ecc(TapiHandle *handle, TelSimEccList_t *ecc);
+
+/**
+ * @brief  This function is a synchronous API gets a Unique identification number of the (U)ICC.
+ * ICC means Integrated Circuit Card.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous function.
+ *
+ * @par Important Notes:
+ * - IC Card number value is the value that security needs.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * TelSimIccIdInfo_t icc_data; // this struct consists of number length and number.
+ * err_code = tel_get_sim_iccid(&icc_data);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_iccid(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the language preference(indication) information.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous function.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * TelSimLanguageInfo_t li_info = {0,};
+ * err_code = tel_get_sim_language(&li_info); // you can find language info with li_info variable
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_language(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This API is used to update the language preference information to SIM card.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is a Asynchronous function.
+ *
+ * @par Important Notes:
+ * - This function update SIM Language information directly and can effect device language setting. Use carefully.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] language
+ * This parameter returns the language preference information.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_SET_LANGUAGE_CNF.
+ * Asynchronous return status is indicated by #TelSimAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int request_id = 0;
+ * TelSimLanguagePreferenceCode_t language = 0x00; //init
+ * language = TAPI_SIM_LP_ENGLISH; //language value
+ * err_code = tel_set_sim_language(language, &request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_set_sim_language(TapiHandle *handle, TelSimLanguagePreferenceCode_t language, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM Call forwarding indication related data(EF-CFIS and CPHS case).
+ * this data is required for Call forwarding related functionality in handset.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous function.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None
+ *
+ * @post
+ *  - None
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * TelSimCallForwarding_s cf_data;
+ * TapiResult_t err_code = 0;
+ * err_code = tel_get_sim_callforwarding_info(&cf_data);
+ * if(err_code == TAPI_API_SUCCESS) {
+ *   if(cf_data.b_cphs) { //b_cphs means current SIM is for CPHS or not.
+ *     printf("Current SIM is CPHS");
+ *   } else {
+ *     printf("Current SIM is not CPHS but 3GPP");
+ *   }
+ * } else {
+ *   printf("TAPI API FAIL: Error Code [0x%x]",err_code);
+ * }
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_callforwarding_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM message waiting indication related data(EF-MWIS and CPHS case).
+ * this data is required for Message waiting related functionality in handset.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous function.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None
+ *
+ * @post
+ *  - None
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * TelSimMessageWaiting_s mw_data;
+ * TapiResult_t err_code = 0;
+ * err_code = tel_get_sim_messagewaiting_info(&mw_data);
+ * if(err_code == TAPI_API_SUCCESS) {
+ *   if(mw_data.b_cphs) { //b_cphs means current SIM is for CPHS or not.
+ *     printf("Current SIM is CPHS");
+ *   } else {
+ *     printf("Current SIM is not CPHS but 3GPP");
+ *   }
+ * } else {
+ *   printf("TAPI API FAIL: Error Code [0x%x]",err_code);
+ * }
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_messagewaiting_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM mailbox related data(EF-MBDN, MBDI and CPHS case).
+ * this data is required for Mailbox related functionality in handset.
+ *
+ * @par Sync (or) Async:
+ * This is a synchronous function.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * TelSimMailboxNumbers_s mbox;
+ * TapiResult_t err_code = 0;
+ * err_code = tel_get_sim_mailbox_info(&mbox);
+ * if(err_code == TAPI_API_SUCCESS) {
+ *   if(mbox.b_cphs) { //b_cphs means current SIM is for CPHS or not.
+ *     printf("Current SIM is CPHS");
+ *   } else {
+ *     printf("Current SIM is not CPHS but 3GPP");
+ *   }
+ * } else {
+ *   printf("TAPI API FAIL: Error Code [0x%x]",err_code);
+ * }
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_mailbox_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM CPHS specific data.
+ * this data is required for CPHS related functionality in handset.
+ *
+ * @par Sync (or) Async:
+ * This is an Synchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *
+ * @post
+ *  - None
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * TelSimCphsLocalInfo_t cphs_data;
+ * TapiResult_t err_code = 0;
+ * err_code = tel_get_sim_cphs_info(&cphs_data);
+ * if(err_code == TAPI_API_SUCCESS) {
+ *   if(cphs_data.b_used) { //b_used means current SIM is for CPHS or not.
+ *     printf("Current SIM is CPHS");
+ *   } else {
+ *     printf("Current SIM is not CPHS but 3GPP");
+ *   }
+ * } else {
+ *   printf("TAPI API FAIL: Error Code [0x%x]",err_code);
+ * }
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_cphs_info(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM MSISDN data. Regarding 3GPP specification, Current value is optional.
+ *
+ * @par Sync (or) Async:
+ * This is an Synchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *
+ * @post
+ *  - None
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * TelSimSubscriberInfo_t msisdn;
+ * TapiResult_t err_code = 0;
+ * err_code = tel_get_sim_msisdn(&msisdn);
+ * if(err_code == TAPI_API_SUCCESS)
+ * {
+ *      printf(" ============================================");
+ *      printf("name[%s]",msisdn.name);
+ *      printf("num[%s]",msisdn.num);
+ *      if(msisdn.name == '\0';) //If current SIM does not have, Null string will be returned.
+ *              printf("name is null string");
+ *
+ *      if(msisdn.num == '\0';) //If current SIM does not have, Null string will be returned.
+ *              printf("number is null string");
+ * }
+ * else
+ * {
+ *      printf("TAPI API FAIL: Error Code [0x%x]",err_code);
+ * }
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_msisdn(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM OPLMNWACT(Operator controlled PLMN Selector with Access Technology) data. Regarding 3GPP specification, Current value is optional.
+ *
+ * @par Sync (or) Async:
+ * This is an Synchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *
+ * @post
+ *  - None
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_oplmnwact(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM SPN data. Regarding 3GPP specification, Current value is optional.
+ *
+ * @par Sync (or) Async:
+ * This is an Synchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *
+ * @post
+ *  - None
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_spn(TapiHandle *handle, tapi_response_cb callback,     void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM CPHS NETNAME data.
+ *
+ * @par Sync (or) Async:
+ * This is an Synchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * - None
+ *
+ * @pre
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *
+ * @post
+ *  - None
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_cphs_netname(TapiHandle *handle, tapi_response_cb callback,    void *user_data);
+
+/**
+ * @brief  This API is used to execute the authentication procedure by using SIM.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ * This function supports IMS, 3G and GSM authentication.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * -NONE
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] authentication_data
+ * - This input has the authentication code to be validated by ISIM,3G and GSM application in the SIM card. #TelSimAuthenticationData_t
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * -The event associated is TAPI_SIM_EVENT_AUTHENTICATION_CNF  and the event data is #TelSimAuthenticationResponse_t.
+ * Asynchronous return status is indicated by #TelSimAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code = 0;
+ * int request_id = 0;
+ * TelSimAuthenticationData_t pAuthenticationData;
+ * strcpy((char*)pAuthenticationData.rand_data, "username@operator.com"); //access data
+ * pAuthenticationData.rand_length= strlen("username@operator.com");
+ * strcpy((char*)pAuthenticationData.autn_data,  "+1-212-555-12345"); // auth data
+ * pAuthenticationData.autn_length = strlen("+1-212-555-12345");
+ * err_code = tel_req_sim_authentication(&pAuthenticationData,&request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sim_authentication(TapiHandle *handle, TelSimAuthenticationData_t *authentication_data, tapi_response_cb callback, void *user_data);
+
+
+
+/**
+ * @brief  This function performs PIN1/PIN2/SIM LOCK verification. This function performs PIN verification based on the pin type passed along with pin data.
+ * PIN1 code : The SIM card has its own password is to check access permissions
+ * SIM Lock code : Between Device and the SIM card using a SIM password is only available on certain handsets to be used to authorize.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - Based on Pin status (PIN/PUK/SIM LOCK) is blocked, an unsolicited event TAPI_EVENT_SIM_STATUS_IND is published to Applications on Device boot time.
+ * - if pin status is PUK, you should use #tel_verify_sim_puks instead of this API.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] pin_data
+ * -PIN code, entered by the user. you should make all parameters.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_VERIFY_SEC_CNF  and the event data is #TelSimSecResult_t.
+ * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
+ * If returned status is TAPI_SIM_PIN_OPERATION_SUCCESS, Verification successes.
+ * If returned status is TAPI_SIM_PIN_INCORRECT_PASSWORD, Verification fails and you can check retry count by using event data  #TelSimSecResult_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ * - This API is used when #TelSimCardStatus_t is TAPI_SIM_STATUS_SIM_PIN_REQUIRED or TAPI_SIM_STATUS_SIM_LOCK_REQUIRED on boot time.
+ * - Currently there`s no proper scenario for PIN2 verification by using this API.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ *
+ * int request_id = 0;
+ * err_code = TAPI_API_SUCCESS; // 0
+ * int length = TAPI_SIM_PIN_LENGTH+1;
+ * char init_pin_val[length] ;
+ *
+ * strcpy(init_pin_val, PIN1_NORMAL);
+ *
+ * TelSimSecPw_t pin_data = {0,};
+ *
+ * pin_data.type = TAPI_SIM_PTYPE_PIN1;
+ * pin_data.pw_len = strlen(init_pin_val);
+ *
+ * printf("pw_len[%d]", pin_data.pw_len);
+ *
+ * pin_data.pw = (char*)malloc(length);
+ * memcpy(pin_data.pw,init_pin_val,length);
+ *
+ * err_code = tel_verifiy_sim_pins(&pin_data, &request_id);
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_verifiy_sim_pins(TapiHandle *handle, const TelSimSecPw_t *pin_data, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This function performs unblock PIN1/PIN2 operation based on PUK information passed along with
+ * unblock information entered by the user.
+ * If you get sim card status(TAPI_SIM_STATUS_SIM_PUK_REQUIRED) by using #tel_get_sim_init_info on boot time
+ * or (TAPI_SIM_PIN_STATUS_BLOCKED) by using #tel_get_sim_security_status after normal initialization for specific operation,
+ * you may unblock PIN1/PIN2.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - Based on Pin status (PIN1/PIN2) is blocked, an unsolicited event TAPI_EVENT_SIM_STATUS_IND
+ * is published to Applications on boot time also.
+ *
+ * @warning
+ * - If you fail to unblock PIN til given retry count, Your SIM card be permanent block status.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] puk_data
+ * -Specifies unblocking PIN password #TelSimSecPw_t
+ *
+ * @param[in] new_pin_data
+ * -Specifies PIN password which you want to use after unblocking operation #TelSimSecPw_t
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_VERIFY_PUK_CNF  and the event data is #TelSimSecResult_t.
+ * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
+ * If returned status is TAPI_SIM_PIN_OPERATION_SUCCESS, Verification successes.
+ * If returned status is TAPI_SIM_PUK_INCORRECT_PASSWORD, Verification fails and you can check retry count by using event data  #TelSimSecResult_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *  - 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
+ *  - After Success on unblocking for PIN1 or PIN2, each pin check facility is enabled even if previous facility is disabled.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ *
+ * int request_id = 0;
+ * err_code = TAPI_API_SUCCESS; // 0
+ * int length = TAPI_SIM_PIN_LENGTH+1;
+ *
+ * char init_pin_val[length];
+ * char init_puk_val[length];
+ *
+ * strcpy(init_pin_val, PIN1_NORMAL);
+ * strcpy(init_puk_val, PUK1_NORMAL);
+ *
+ * TelSimSecPw_t puk_data = {0,};
+ * TelSimSecPw_t new_pin_data = {0,};
+ *
+ * puk_data.type = TAPI_SIM_PTYPE_PUK1;   // 0x00
+ * puk_data.pw_len = length;
+ * puk_data.pw_len = strlen(init_puk_val);
+ * printf("pw_len[%d]", puk_data.pw_len);
+ * memcpy(puk_data.pw,init_pin_val,length);
+ *
+ * new_pin_data.type = TAPI_SIM_PTYPE_PIN1;   // 0x00
+ * new_pin_data.pw_len = strlen(init_pin_val);
+ * printf("pw_len[%d]", new_pin_data.pw_len);
+ * new_pin_data.pw = (char*)malloc(length);
+ * memcpy(new_pin_data.pw,init_pin_val,length);
+ *
+ * err_code = tel_verify_sim_puks(&puk_data, &new_pin_data, &request_id);
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+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);
+
+
+/**
+ * @brief  This function changes PIN1/PIN2 code based on the pin type passed along with old pin data and new pin data.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - User should fill up pin type equally both old_pin and new_pin.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] old_pin
+ * -Old pin code, entered by the user. #TelSimSecPw_t
+ *
+ * @param[in] new_pin
+ * -New pin code, entered by the user. #TelSimSecPw_t
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_CHANGE_PINS_CNF  and the event data is #TelSimSecResult_t.
+ * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
+ * If returned status is TAPI_SIM_PIN_OPERATION_SUCCESS, Change operation finish successfully.
+ * If returned status is TAPI_SIM_PIN_INCORRECT_PASSWORD, Change operation fails and you can check retry count by using event data  #TelSimSecResult_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - PIN which user want to change check facility should be enabled.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ *
+ * int request_id = 0;
+ * err_code = TAPI_API_SUCCESS; // 0
+ * int length = TAPI_SIM_PIN_LENGTH+1;
+ * char init_old_pin_val[length] ;
+ * char init_new_pin_val[length];
+ *
+ * memset(&init_old_pin_val, 0 , length);
+ * memset(&init_new_pin_val, 0 , length);
+ *
+ * TelSimSecPw_t old_pin = {0,};
+ * TelSimSecPw_t new_pin = {0,};
+ *
+ * strcpy(init_old_pin_val, PIN1_ORG);
+ *
+ * old_pin.type = TAPI_SIM_PTYPE_PIN1;
+ * old_pin.pw_len = strlen(init_old_pin_val);
+ * printf("pw_len[%d]", old_pin.pw_len);
+ * old_pin.pw = (char*)malloc(length);
+ * memcpy(old_pin.pw,init_old_pin_val,length);
+ *
+ * strcpy(init_new_pin_val, PIN1_NEW);
+ *
+ * new_pin.type = TAPI_SIM_PTYPE_PIN1;
+ * new_pin.pw_len = strlen(init_new_pin_val);
+ * printf("pw_len[%d]", new_pin.pw_len);
+ * new_pin.pw = (char*)malloc(length);
+ * memcpy(new_pin.pw,init_new_pin_val,length);
+ *
+ * err_code = tel_change_sim_pins(&old_pin, &new_pin, &request_id);
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_change_sim_pins(TapiHandle *handle, const TelSimSecPw_t *old_pin, const TelSimSecPw_t *new_pin, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to disable the SIM facility.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] pw
+ *  - a structure which contains facility type and password.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_disable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to enable the SIM facility.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] pw
+ *  - a structure which contains facility type and password.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_enable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This API is used to get the SIM facility.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] type
+ *  - type of security lock type enum values.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_facility(TapiHandle *handle, TelSimLockType_t type, tapi_response_cb callback, void *user_data);
+
+/**
+ * @brief  This API is used to get the SIM LOCK TYPE info.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] type
+ *  - type of security lock type enum values.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par
+ *
+ * @pre
+ *
+ * @post
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ *
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_get_sim_lock_info(TapiHandle *handle, TelSimLockType_t type, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This function provides common interface for accessing SIM data based on USIM generic command in ETSI TS 102 221
+ * and 3GPP TS 31.102 Characteristics of the Universal Subscriber Identity Module (USIM) application.
+ * This API provides only interface to send APDU. User should know well APDU usage.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param[in] apdu_data
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_APDU_CNF  and the event data is #TelSimApduResp_t.
+ * Asynchronous return status is indicated by #TelSimAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code =0;
+ * int request_id = 0;
+ * TelSimApdu_t apdu = {0,};
+ * int tmp_apdu[5] = {0xa,5,6,7,8};
+ * apdu.apdu_len = 5; //user should check
+ * apdu.apdu = apdu;
+ *
+ * // REQUEST SIM ACCESS
+ * err_code = tel_req_sim_apdu((const TelSimRSimReq_t*)&rsim, &request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sim_apdu(TapiHandle *handle, TelSimApdu_t* apdu_data, tapi_response_cb callback, void *user_data);
+
+
+/**
+ * @brief  This function provides common interface to get SIM ATR(Answer To Reset) value.
+ *
+ * This function makes Dbus method call to Telephony Sever and returns immediate value.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered in the corresponding event asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ * The event associated is TAPI_EVENT_SIM_ATR_CNF  and the event data is #TelSimAtrResp_t.
+ * Asynchronous return status is indicated by #TelSimAccessResult_t.
+ *
+ * @pre
+ *  - A dbus connection is established with #tel_init
+ *  - The application name is registered with #tel_register_app_name
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
+ *  - A event loop is running to listen events
+ *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
+ *  - None.
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (int) \n
+ * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
+ * - Negative integer : it provides an error code (Refer #TapiResult_t)
+ *
+ * @par Prospective Clients:
+ * External Apps.
+ *
+ * @see None
+ *
+ * @code
+ * #include <ITapiSim.h>
+ * int err_code =0;
+ * int request_id = 0;
+ *
+ * // REQUEST SIM ATR
+ * err_code = tel_req_sim_atr(&request_id);
+ * @endcode
+ *
+ * @remarks None
+ *
+ */
+/*================================================================================================*/
+int tel_req_sim_atr(TapiHandle *handle, tapi_response_cb callback, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_SIM_H_ */
+
+/**
+* @}
+*/
diff --git a/include/ITapiSs.h b/include/ITapiSs.h
new file mode 100644 (file)
index 0000000..bcd00c6
--- /dev/null
@@ -0,0 +1,1002 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  SS_TAPI         SS(Supplementary services)
+* @{
+*
+* @file ITapiSs.h
+
+     @brief This file serves as a "C" header file defines functions for Tapi Supplementary services\n
+      It contains a sample set of function prototypes that would be required by applications.
+ */
+
+#ifndef _ITAPI_SS_H_
+#define _ITAPI_SS_H_
+
+#include <tapi_common.h>
+#include <TelSs.h>
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+ /**
+ * @brief  This function sends a request to activate/deactivate call barring.
+ *
+ *  This service makes it possible for a mobile subscriber
+ *  to activate barring of certain categories of outgoing or incoming calls according to a barring program which is selected from a set
+ *  of one or more barring programs chosen at provision time and is valid for all outgoing or incoming calls, or just those associated
+ *   with a specific basic service group. Also this API allows deactivating call barring based on categories set.
+ * If the user call this function with wrong password 3 times subsequently, the barring service can be blocked.
+ * If this function is called normally, the asynchronous response comes in a few second from network. The response indicates
+ * the service request has been granted or not.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+  *
+ * @param [in] info
+ *   - Contains the information about call barring
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  An asynchronous notification event is returned as a confirmation
+ *  The event associated is TAPI_EVENT_SS_BARRING_CNF and asynchronous return status is indicated by #TelSsCause_t.
+ *  The event data is #TelSsBarringStatusInfo_t. \n
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * \see tel_get_ss_barring_status, tel_change_ss_barring_password
+ *
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * int ret_status = -1;
+ * TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
+ * int pRequestId=0;
+ * char bar_pwd[5]="0000";
+ *
+ * pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
+ * pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
+ * pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
+ * strcpy(pBarringInfo.szPassword,bar_pwd);
+ * ret_status = tel_set_ss_barring (&pBarringInfo,&pRequestId);
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+ /*================================================================================================*/
+int tel_set_ss_barring(TapiHandle *handle, TelSsBarringInfo_t *info, tapi_response_cb callback, void *user_data);
+
+/**
+ *
+ * @brief  This function gets call barring status.
+ *
+ * The mobile subscriber may determine by subscription of a set of one or more unique barring
+ * programs what kind of outgoing or incoming calls should be barred.
+ * If this function is called normally, the asynchronous response comes in a few second from network.
+ * The response indicates the service status.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] ss_class
+ *   - Specifies the type of call i.e. Voice call, Video Call etc.
+ *
+ * @param [in] type
+ *   - Specifies barring type i.e. Outgoing international, outgoing all, Incoming all etc.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF and asynchronous return status is indicated by #TelSsCause_t.
+ *  The event data is #TelSsBarringStatusInfo_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *
+ * @post
+ *  - None.
+ *
+ * @return Return Type (#TapiResult_t) \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.
+ *
+ * \see tel_set_ss_barring, tel_change_ss_barring_password
+ *
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * int ret_status;
+ * TelSsCallBarType_t BarType =TAPI_CALL_BARRING_ALL_OUTGOING_INTERN_CALL;
+ * TelSsCallType_t CallType = TAPI_CALL_TYPE_VOICE_EV;
+ * int pRequestId=0;
+ *
+ * ret_status = tel_get_ss_barring_status(BarType,CallType,&pRequestId); // get barring status
+ * printf ("The return value is %d\n", ret_status);
+ *
+ * @endcode
+ *
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_ss_barring_status(TapiHandle *handle, TelSsClass_t ss_class, TelSsBarringType_t type, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function allows changing of the barring password in Network.
+ *
+ * User can request network to change his own barring password. If the old password is not same with
+ * what network knows, it will be rejected by network. Also new password should be same with another new password
+ * which is to confirm user input. Otherwise the request must be rejected by Telephony Sever.
+ * If the user call this function with wrong old password 3 times subsequently, the barring service can be blocked.
+ * If this function is called normally, the asynchronous response comes in a few second from network.
+ * The response indicates the service request has been granted or not.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - Based on 3GPP TS 22.030 section 6.5.4 Registration of New Password. Only one Change Barring Password request is allowed
+ *   at a time and TS might return TAPI_API_REQUEST_MAX_IN_PROGRESS if another request is received.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] old_password
+ *   - Old password set for Barring in Network. This is Null terminated string
+ *
+ * @param [in] new_password
+ *   - New password for Barring to be set in Network. This is Null terminated string.
+ *
+ * @param [in] new_password_again
+ *   - New password again. This is Null terminated string.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF and asynchronous return status is indicated by #TelSsCause_t.
+ *  There is no event data with this event.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @see
+ * - None
+ *
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * int ret_status;
+ * int pRequestId=0;
+ *
+ * ret_status = tel_change_ss_barring_password ("0000","0000","0000",&pRequestId); // change barring password
+ *
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_change_ss_barring_password(TapiHandle *handle,
+               const char *old_password,
+               const char *new_password,
+               const char *new_password_again,
+               tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function allows to set (register/erase/activate/deactivate) call forwarding option at the Network.
+ *
+ * This enables to forward the calls to another party. This service permits a called mobile subscriber
+ * to have the network send all incoming calls, or just those associated with a specific Basic service group,
+ * addressed to the called mobile subscriber's directory number and which meet
+ * various call FORWARD condition to another directory number.
+ * The ability of the served mobile subscriber to originate calls is unaffected.
+ * If the service is activated, a call is forwarded only if under this call forward condition.
+ * Application has to call this API in order to explicitly register/erase/activate/deactivate
+ * the call forwarding. Request will be passed irrespective of whether already
+ * another SS call forward is ongoing.
+ *
+ * If this function is called normally, the asynchronous response comes in a few second from network. The response indicates
+ * the service request has been granted or not.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] info
+ *   - Contains the Call forward information like forward mode, forward type, etc.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_FORWARD_CNF and asynchronous return status is indicated by #TelSsCause_t.
+ *  The event data will be #TelSsForwardingStatusInfo_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ *
+ * \image html CallForward.jpg
+ * \image latex CallForward.jpg
+ *
+ * \see tel_get_ss_forward_status
+ *
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * int ret_status =0;
+ * int pRequestId=0;
+ * TelSsForwardInfo_t pForwardInfo;
+ * pForwardInfo.Mode =TAPI_CALL_FORWARD_MODE_ENABLE_EV;
+ * pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
+ * pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
+ * pForwardInfo.NoReplyConditionTimer = 10;
+ * int len;
+ * char cf_number[20]= {"9986529874"};//number to which calles need to be forwarded.
+ *
+ * len = strlen(cf_number);
+ * printf("Length of CF number :%d \n",len);
+ * memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
+ *
+ * ret_status = tel_set_ss_forward (&pForwardInfo,&pRequestId);
+ *
+ * @endcode
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_ss_forward(TapiHandle *handle, const TelSsForwardInfo_t *info, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function provides option to get the call forwarding status of different calls from Network.
+ *
+ * The data request procedure enables the mobile subscriber to obtain information about the data stored in the PLMN.
+ * After having requested this procedure the network shall return the following information:
+ * -   in response to a general data request the served mobile subscriber should be given a list of all Basic service groups
+ *     to which call forwarding unconditional is registered, including information whether or not it is active and operative,
+ *     and the associated forwarded-to numbers
+ * -   in response to a specific request concerning one particular Basic service group,
+ *     the served mobile subscriber should be informed whether or not call forwarding unconditional is registered,
+ *     including information whether or not it is active and operative for that Basic service group.
+ *     If CFU is registered, the associated forwarded-to number shall be given.
+ *
+ * If this function is called normally, the asynchronous response comes in a few second from network.
+ * The response indicates the service status.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] ss_class
+ *   - Specifying the Forward call type i.e. voice call, Video Call, Data Calls etc.
+ *
+ * @param [in] condition
+ *   - Used to specify the forward condition i.e. unconditional, When no reply, when busy, when not reachable etc.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF  and asynchronous return status is indicated by #TelSsCause_t.
+ *  The event data is #TelSsForwardingStatusInfo_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * \see tel_set_ss_forward
+ *
+ * @code
+ * #include<ITapiSS.h>
+ * int  ret_status = 0;
+ * TelSsForwardType_t Type =TAPI_CS_FORWARD_TYPE_VOICE_EV;
+ * TelSsForwardWhen_t  Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
+ * int pRequestId=0;
+ *
+ * ret_status = tel_get_ss_forward_status(Type,Condition,&pRequestId); // get forward status
+ *
+ * @endcode
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_ss_forward_status(TapiHandle *handle, TelSsClass_t ss_class, TelSsForwardWhen_t condition, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function activates/deactivates the call waiting service.
+ * The call waiting service permits a mobile to be notified of an incoming
+ * call (as per basic call procedures) while the traffic channel (BM or LM) is not available for the incoming call and the mobile subscriber
+ * is engaged in an active or held call. Subsequently, the subscriber can accept, reject, or ignore the incoming call.
+ * If this function is called normally, the asynchronous response comes in a few second from network. The response indicates
+ * the service request has been granted or not.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] info
+ *   - Specifies the status of call-waiting service i.e. On (TRUE) or off (FALSE)
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_WAITING_CNF and asynchronous return status is indicated by #TelSsCause_t.
+ *  The event data is #TelSsWaitingStatusInfo_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * \see tel_get_ss_waiting_status
+ *
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * int   ret_status;
+ * TelSsWaitingInfo_t waitInfo;
+ * waitInfo.Mode = TAPI_SS_CW_ACTIVATE;
+ * waitInfo.CallType =TAPI_CALL_TYPE_VOICE_EV;
+ * int RequestID;
+ *
+ * ret_status = tel_set_ss_waiting (&waitInfo,&RequestID); // set call waiting
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_ss_waiting(TapiHandle *handle, const TelSsWaitingInfo_t *info, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function queries the status of call waiting service.
+ *
+ * @par Notes:
+ * The call waiting service permits a mobile to be notified of an incoming call
+ * (as per basic call procedures) while the traffic channel (BM or LM) is not available for the incoming call and the mobile subscriber
+ * is engaged in an active or held call. Subsequently, the subscriber can accept, reject, or ignore the incoming call.
+ * If this function is called normally, the asynchronous response comes in a few second from network.
+ * The response indicates the service status.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] ss_class
+ *   - enum data defines call type
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF and asynchronous return status is indicated by #TelSsCause_t.
+ *  The event data is #TelSsWaitingInfo_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * \see tel_set_ss_waiting
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * int   ret_status;
+ * TelSsCallType_t CallType = TAPI_CALL_TYPE_VOICE_EV;
+ * int RequestID;
+ *
+ * ret_status = tel_get_ss_waiting_status ( CallType,&RequestID); // get call waiting info
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_ss_waiting_status(TapiHandle *handle, const TelSsClass_t ss_class, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function queries the status of calling line identity service.
+ *
+ * @par Notes:
+ * The group of Line Identification Supplementary Services is divided into the following six Supplementary Services:
+ * CLIP - Calling line identification presentation
+ *        This Supplementary Service provides for the ability to indicate the line identity of the calling party to the called party.
+ *        The network shall deliver the calling line identity to the called party at call set-up time,
+ *        regardless of the terminal capability to handle the information.
+ * CLIR - Calling line identification restriction
+ *       the CLIR Supplementary Service is a Supplementary Service offered to the calling party
+ *       to prevent presentation of the calling party's line identity, to the called party.
+ * COLP - Connected line identification presentation
+ *        This Supplementary Service is not a dialing check but an indication to the calling subscriber
+ *        of the connected line identity in a full ISDN/PLMN environment,
+ *        the connected line identity shall include all the information necessary to unambiguously identify the connected party.
+ *        The network shall deliver the connected line identity to the calling party
+ *        regardless of the terminal capability to handle the information.
+ * COLR - Connected line identification restriction
+ *        The COLR Supplementary Service is a Supplementary Service offered
+ *        to the connected party to prevent presentation of the connected line identity, to the calling party.
+ *        In the case where the calling party has an override category.
+ * CDIP - Called line identification presentation
+ * CNAP - Calling name presentation
+ * This function queries the service status with #TelSsCliType_t
+ *
+ * If this function is called normally, the asynchronous response comes in a few second from network.
+ * The response indicates the service status.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ *
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] type
+ *   - enum data defines Cli service type
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_CLI_QUERYSTATUS_CNF and asynchronous return status is indicated by #TelSsCause_t.
+ *  The event data is #TelCliStatusInfo_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *
+ * @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.
+ *
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * int  ret_status = 0;
+ * TelSsCliType_t CliType =TAPI_SS_CLI_CDIP;
+ * int pRequestId;
+ *
+ * ret_status = tel_get_ss_cli_status(CliType,&pRequestId); // get cli info
+ * @endcode
+ *
+ * @see
+ * - None
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_ss_cli_status(TapiHandle *handle, TelSsCliType_t type, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function is used to send a USSD string or User response to the Network.
+ *
+ * The unstructured supplementary service data (USSD) mechanism allows the Mobile Station (MS) user and
+ * a PLMN operator defined application to communicate in a way which is transparent
+ * to the MS and to intermediate network entities.
+ * The mechanism allows development of PLMN specific supplementary services.
+ * USSD string is like *109, *109*72348937857623#.
+ * There are two modes of USSD: MMI-mode and application mode.
+ * MMI-mode USSD is for the transparent transport of MMI strings entered by the user to the network using this function
+ * and for the transparent transport of text strings from the network that are displayed
+ * by the mobile for user information.
+ * Application mode USSD is for the transparent transport of data between the network and the UE.
+ * Application mode USSD is intended to be used by applications in the network and their peer applications in the UE.
+ * The peer application in the UE send response with #tel_send_ss_ussd_response
+ *
+ * If this function is called normally, the asynchronous response comes in a few second from the telephony server.
+ * The response indicates whether the sending request is successfully delivered or not.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is delivered with the async response as below.
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] info
+ *   - Data coding scheme used (GSM 7bit or 8bit default alphabet etc, defined as 3GPP TS 23.038)
+ *   - USSD String data length
+ *   - ANSI string passed by the client
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_USSD_CNF and asynchronous return status is indicated by #TelSsCause_t. The event data
+ *  is #TelSsUssdMsgInfo_t.
+ *
+ * @pre
+ *  - Initialize Dbus connection with #tel_init
+ *  - Register caller's application name with #tel_register_app_name
+ *  - Register telephony events to listen
+ *  - A event loop is running to listen events
+ *  - No SS and USSD Transaction should be ongoing. If there an ongoing transaction, new USSD request will be returned to the Application
+ *   with an error (USSD_BUSY)
+ *
+ * @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.
+ *
+ * \see #tel_send_ss_ussd_response, #tel_send_ss_ussd_cancel
+ *
+ *\image html ussd.jpg
+ *\image latex ussd.jpg
+ *
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * char ussdString[TAPI_SS_USSD_DATA_SIZE_MAX];
+ * int  ret;
+ *
+ * memset(ussdString, 0, TAPI_SS_USSD_DATA_SIZE_MAX);
+ * strcpy(ussdString , "*124#");
+ *
+ * ret = tel_send_ss_ussd_request(ussdString, &request_id); // request ussd
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_send_ss_ussd_request(TapiHandle *handle, const TelSsUssdMsgInfo_t *info, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function is used to Read AOC parameter values on the SIM.
+ *
+ * @par Notes
+ * This supplementary service provides the MS with the information to produce an estimate
+ * of the cost of the service used. Charges are indicated for the call(s) in progress
+ * when mobile originated or for the roaming leg only when mobile terminated.
+ * Any charges for non-call related transactions, and for certain supplementary services,
+ * such as Call Forwarding are not indicated.
+ * The MS will receive at the beginning of each call (and as necessary during the call)
+ * a message, the Charge Advice Information. This message contains the elements which together define
+ * the rate at which the call is to be charged, time dependence,
+ * data dependence and for unit increments - see TS 22.024 [3].
+ * The MS shall still indicate appropriate charges even when roaming, based on Home PLMN units.
+ * Where applicable, the volume charge for Packet data service,
+ * in addition to the normal time dependent and incremental charges, shall be indicated.
+ * To indicate the charge per call the Mobile station shall display the units consumed
+ * so far during the present call(s) and maintain this value until the MS is switched off or a new call set-up is attempted.
+ * Where required to indicate the total accumulated charge, the MS shall be able to display,
+ * and the SIM/USIM shall store in the ACM, the running cumulative unit charge.
+ * This value must be stored securely, and all reasonable steps shall be taken to ensure that
+ * the written value cannot be interrupted, reset or corrupted (except resetting under control of the unblocking key).
+ * This function get the AOC configuration information from PLMN
+ *
+ * If this function is called normally, the asynchronous response comes in a few second from Telephony Server.
+ * The response indicates whether the query is delivered successfully to network or not.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] AocType
+ *   - Specifies which type of Advice of charge information to be read namely Maximum ACM,
+ *     Price per unit currency, Current call meter and Accumulated call meter values.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_AOC_RSP and asynchronous return status is indicated by #TelSsCause_t. The event data
+ *  is #TelCallAocInfo_t.
+ *
+ * @pre
+ *  - Advice of charge depends on the SIM for setting or reading AOC parameters.
+ *  - Setting of AOC needs PIN2 Verification
+ *
+ * @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.
+ *
+ * \see tel_set_ss_aoc_info
+ *
+ *\image html ussd.jpg
+ *\image latex ussd.jpg
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * TelSsAocType_t AocType = TAPI_SS_AOC_TYPE_ACM;
+ * ret_status = tel_get_ss_aoc_info (AocType,&pRequestId); // get AOC info
+ * @endcode
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_get_ss_aoc_info(TapiHandle *handle, TelSsAocType_t AocType, tapi_response_cb callback, void *user_data);
+
+ /**
+ *
+ * @brief  This function is used to Read AOC parameter values on the SIM.
+ *
+ * @par Notes:
+ * Refer #tel_get_ss_aoc_info
+ *
+ * If this function is called normally, the asynchronous response comes in a few second from Telephony Server.
+ * The response indicates whether the query is delivered successfully to network or not.
+ *
+ * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
+ * However it just means that the API request has been transfered to the CP successfully.
+ * The actual operation result is being delivered asynchronously.
+ *
+ * @par Sync (or) Async:
+ * This is an Asynchronous API.
+ *
+ * @par Important Notes:
+ * - None.
+ *
+ * @warning
+ * - None.
+ *
+ *
+ * @param [in] handle
+ * - handle from tel_init().
+ *
+ * @param [in] AocSetInfo
+ *   - Specifies which type of Advice of charge information to be set namely Maximum ACM,
+ *     Price per unit currency, Current call meter and Accumulated call meter values.
+ *
+ * @param [in] callback
+ * - To register callback function for result.
+ *
+ * @param [in] user_data
+ * - user_data for user specification.
+ *
+ * @par Async Response Message:
+ *  The event associated is TAPI_EVENT_SS_SET_AOC_CNF and asynchronous return status is indicated by #TelSsCause_t. The event data
+ *  is #TelSsErrorInfo_t.
+ *
+ * @pre
+ *  - Advice of charge depends on the SIM for setting or reading AOC parameters.
+ *  - Setting of AOC needs PIN2 Verification
+ *
+ * @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.
+ *
+ * \see tel_get_ss_aoc_info
+ *
+ *\image html ussd.jpg
+ *\image latex ussd.jpg
+ * @code
+ * #include<ITapiSS.h>
+ *
+ * TelCallAocInfo_t  *pAocSetInfo;
+ * int request_id=0;
+ * pAocSetInfo = (TelCallAocInfo_t *)calloc(1,sizeof(TelCallAocInfo_t));
+ * pAocSetInfo->AocType = TAPI_SS_AOC_TYPE_RESET;
+ * int ret_status =0;
+ *
+ * ret = tel_set_ss_aoc_info (pAocSetInfo,&request_id); // set aoc info
+ * @endcode
+ *
+ *
+ * @remarks
+ * - None
+ *
+ *
+ */
+/*================================================================================================*/
+int tel_set_ss_aoc_info(TapiHandle *handle, TelCallAocInfo_t *AocSetInfo, tapi_response_cb callback, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ITAPI_SS_H_ */
+
+/**
+* @}
+*/
diff --git a/include/TapiUtility.h b/include/TapiUtility.h
new file mode 100644 (file)
index 0000000..c7227c5
--- /dev/null
@@ -0,0 +1,272 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup COMMON_TAPI     COMMON
+ * @{
+ *
+ * @file TelUtility.h
+
+ @brief This file serves as a "C" header file defines structures for Utility Services. \n
+ It contains a sample set of constants, enums, structs that would be required by applications.
+ */
+
+#ifndef _TEL_UTILITY_H_
+#define _TEL_UTILITY_H_
+
+__BEGIN_DECLS
+
+#define INVALID_REQUEST_ID     -1    /**< Invalid RequestId Value */
+#define DBUS_DEFAULT_PATH      "/org/tizen/telephony"
+
+/**
+ * @enum TapiResult_t
+ * Below enumerations are the return codes of TAPI API's
+ */
+typedef enum {
+       TAPI_API_SUCCESS = 0, /**<No Error occurred */
+       TAPI_API_INVALID_INPUT = -1, /**<input values are not correct in TAPI Library */
+       TAPI_API_INVALID_PTR = -2, /**<invalid pointer */
+       TAPI_API_NOT_SUPPORTED = -3, /**<The feature corresponding to requested API is not supported. This may be due to market/network/vendor reasons such as the feature is not available in the network. */
+       TAPI_API_DEPRICATED = -4, /**<This API is deprecated and will be so in future also */
+       TAPI_API_SYSTEM_OUT_OF_MEM = -5, /**<Out of memory */
+       TAPI_API_SYSTEM_RPC_LINK_DOWN = -6, /**<RPC link down */
+       TAPI_API_SERVICE_NOT_READY = -7, /**<Phone was powered on, but yet to receive the power up completed notification */
+       TAPI_API_SERVER_FAILURE = -8, /**<error occurred in Telephony server  */
+       TAPI_API_OEM_PLUGIN_FAILURE = -9, /**<Plug-in layer failure */
+       TAPI_API_TRANSPORT_LAYER_FAILURE = -10, /**<Transport layer Failure*/
+       TAPI_API_INVALID_DATA_LEN = -11, /**<Invalid data length */
+       TAPI_API_REQUEST_MAX_IN_PROGRESS = -12, /**<Maximum number of API Request for the same service are already in progress */
+       TAPI_API_OFFLINE_MODE_ERROR = -13, /**<OEM Telephony Provider is in Offline mode. */
+       TAPI_EVENT_CLASS_UNKNOWN = -14, /**<Event class specified is not present in Event Class list. - 20*/
+       TAPI_EVENT_UNKNOWN = -15, /**<Event specified is not present in TAPI Unsolicited Event list. */
+       TAPI_REGISTRATION_OP_FAILED = -16, /**<Callback Registration/De-registration failed */
+       TAPI_API_OPERATION_FAILED = -17, /**<API operation failed*/
+       TAPI_API_INVALID_OPERATION = -18, /**<API Invalid Operation */
+
+       TAPI_API_SYSTEM_RPC_LINK_NOT_EST = -100, /**< RPC link down */
+       TAPI_API_API_NOT_SUPPORTED = -101, /**<API not supported */
+       TAPI_API_SERVER_LAYER_FAILURE = -102, /**< Server layer failure*/
+
+       /*      CALL */
+       TAPI_API_INVALID_CALL_ID = -200, /**< Invalid call ID*/
+       TAPI_API_CALL_CTXT_OVERFLOW = -201, /**<Call context overflow */
+       TAPI_API_COULD_NOT_GET_CALL_CTXT = -202, /**< Could not get call  context*/
+       TAPI_API_CTXT_SEARCH_RET_NON_CALL_CTXT = -203, /**< Context search returned non-call context*/
+       TAPI_API_COULD_NOT_DESTROY_CTXT = -204, /**< could not destroy context*/
+       TAPI_API_INVALID_LINE_ID = -205, /**< invalid line ID*/
+       TAPI_API_INVALID_CALL_HANDLE = -206, /**<Invalid call handle  - 35*/
+       TAPI_API_INVALID_CALL_STATE = -207, /**<Invalid call state- Newly added. Need to raise a CR for this */
+       TAPI_API_CALL_PRE_COND_FAILED = -208, /**<Pre condition like MO call can not be established now.*/
+       TAPI_API_CALL_SAME_REQ_PENDING = -209, /**<  Can not accept same request multiple times  */
+
+       /*      POWER   */
+       TAPI_API_MODEM_POWERED_OFF = -300, /**<The Modem is powered off */
+       TAPI_API_MODEM_ALREADY_ON = -301, /**<Modem already on */
+       TAPI_API_MODEM_ALREADY_OFF = -302, /**<Modem already off */
+
+       /* NETTEXT */
+       TAPI_API_NETTEXT_DEVICE_NOT_READY = -400, /**<Nettext device not ready */
+       TAPI_API_NETTEXT_SCADDR_NOT_SET = -401, /**<Nettext SCA address not set */
+       TAPI_API_NETTEXT_INVALID_DATA_LEN = -402, /**<Nettext Invalid data length */
+       TAPI_NETTEXT_SCADDRESS_NOT_SET = -403, /**<Nettext SCA address not set*/
+
+       /* SIM  */
+       TAPI_API_SIM_CARD_ERROR = -500, /**<SIM error/blocked state */
+       TAPI_API_SIM_NOT_FOUND = -501, /**<SIM is not present / removed */
+       TAPI_API_SIM_NOT_INITIALIZED = -502, /**<SIM has not initialized yet (waiting for PIN verification, etc) */
+       TAPI_API_SIM_LOCKED = -503,
+
+       /* SAT  */
+       TAPI_API_SAT_INVALID_COMMAND_ID = -600, /**<Command Number Invalid      */
+       TAPI_API_SAT_COMMAND_TYPE_MISMATCH = -601, /**< Command Type Mismatch   */
+       TAPI_API_SAT_EVENT_NOT_REQUIRED_BY_USIM = -602, /**< Event Not Requested by USIM*/
+
+       /* Network */
+       TAPI_API_NETWORK_INVALID_CTXT = -700, /**< Network invalid context*/
+
+       /*Misc */
+       TAPI_API_MISC_RETURN_NULL = -800, /**< MISC return NULL*/
+       TAPI_API_MISC_VALIDITY_ERROR = -801, /**< MISC validity error*/
+       TAPI_API_MISC_INPUTPARM_ERROR = -802, /**< MISC input parameter error*/
+       TAPI_API_MISC_OUTPARAM_NULL = -803, /**< MISC output parameter null*/
+} TapiResult_t;
+
+/**
+ * This will check the 'scalar_exp' for TRUE, if failed then return 'err_value' from function.
+ */
+#define TAPI_RET_ERR_NUM_IF_FAIL(scalar_exp, err_num) {\
+       if (!(scalar_exp)) \
+       { \
+               err("TAPI_RET_ERR_NUM_IF_FAIL Failed. returning [%d]", err_num);\
+               return err_num; \
+       } \
+}
+
+/**
+ * Returns from the current function if the expression is not true. If the expression evaluates to FALSE,
+ * a critical message is logged and the function returns. This can only be used in functions which do not
+ * return a value.
+ *
+ * expr : the expression to check.
+ */
+#define TAPI_RETURN_IF_FAIL(scalar_exp) {\
+       if (!scalar_exp) \
+       { \
+               err("TAPI_RETURN_IF_FAIL: Failed: Returning from here."); \
+               return; \
+       } \
+}
+
+/**
+ * Returns from the current function, returning the value ret, if the expression is not true.
+ * If the expression evaluates to FALSE, a critical message is logged and ret is returned.
+ */
+#define TAPI_RETURN_VAL_IF_FAIL(scalar_exp, ret) { \
+       if (!scalar_exp) \
+       { \
+               err("TAPI_RETURN_VAL_IF_FAIL: Failed: Returning [%d]", ret); \
+               return ret; \
+       } \
+}
+
+/**
+ * Returns from the current function, returning the value ret, if the expression is not true.
+ * If the expression evaluates to FALSE, a critical message is logged and ret is returned.
+ */
+#define TAPI_RETURN_VAL_IF_SUCCESS(scalar_exp, ret) { \
+       if (scalar_exp) \
+       { \
+               err("TAPI_RETURN_VAL_IF_SUCCESS: Failed Returning [%d]", ret); \
+               return ret; \
+       } \
+}
+
+/**
+ * This assert will log an err on stderr and abort,  if assertion failed,
+ * Use this only if the telephpny sevrer needs to be exited, if asertion fails
+ */
+#define TAPI_ASSERT(scalar_exp)        assert(scalar_exp);
+
+/**
+ * Returns from the current function, returning the value ret, if the exp1 and exp2 are of same value.
+ * If the equal expression evaluates to TRUE, a critical message is logged and ret is returned.
+ */
+#define TAPI_RETURN_VAL_IF_EQUAL(exp1, exp2, ret) {    \
+       if (exp1 == exp2) \
+       { \
+               err("TAPI_RETURN_VAL_IF_EQUAL: FAILED, Returning [%d]", ret); \
+               return ret; \
+       } \
+}
+
+/**
+ * void *calloc(size_t nelements, size_t bytes);
+ * which allocates a region of memory large enough to hold nelements of size bytes each.
+ * The allocated region is initialized to zero.
+ */
+#define TAPI_CALLOC(ptr, no_elements, type)    \
+       ptr = (type *) calloc (no_elements , sizeof (type)); \
+       if (ptr == NULL) { \
+               perror("NULL is returned"); \
+               err("calloc error -NULL, errno is [%d]", errno); \
+               fprintf(stderr,"Calloc ERRNO %d\n", errno); \
+               TAPI_ASSERT(ptr); \
+       }
+
+/**
+ * why ptr = NULL; after free()?.
+ * If the same pointer is passed to free twice,        known as a double free. To avoid this, set pointers to
+ * NULL after passing them to free: free(NULL) is safe (it does nothing).
+ */
+#define TAPI_FREE(ptr) \
+       if (ptr != NULL) { \
+               free(ptr); \
+               ptr = NULL; \
+       } \
+       else { \
+               err("Double Free or NULL"); \
+       }
+
+/**
+ * check for available destination buffer size before copying source buffer data to destination buffer.
+ * Assert if destination buffer size less than source buffer size.
+ */
+#define TAPI_MEMCPY(dest, src, dest_len, src_len) \
+       if (dest_len >= src_len) { \
+               memcpy(dest, src, src_len); \
+       } \
+       else { \
+               err("TAPI_MEMCPY FAILURE - dest_len(%d) < src_len(%d)", dest_len, src_len); \
+               assert(0); \
+       }
+
+/**
+ * Encode a sequence of binary data into its Base-64 stringified representation.
+ *
+ * data : the binary data to encode.
+ * len : the length of data.
+ * Returns : a newly allocated, zero-terminated Base-64 encoded string representing data.
+ * gchar *g_base64_encode (const guchar *data, gsize len);
+ */
+#define TAPI_BASE64_ENCODE(data, len, encoded_data) \
+       encoded_data = g_base64_encode((const guchar *)data, (gsize) len);
+
+/**
+ * Decode a sequence of Base-64 encoded text into binary data
+ *
+ * text : zero-terminated string with base64 text to decode.
+ * out_len : The length of the decoded data is written here.
+ * Returns : a newly allocated buffer containing the binary data that text represents
+ * guchar *g_base64_decode  (const gchar *text, gsize *out_len);
+ */
+#define TAPI_BASE64_DECODE(text, decoded_data, ptr_out_len)    \
+       decoded_data = g_base64_decode((const gchar *)text, (gsize *)ptr_out_len);
+
+/**
+ * Define Macro for calculate the length of SCA in BCD type.
+ */
+#define TAPI_GET_LENGTH_FROM_BCD(nLength, rtn) { \
+       if (nLength <= 0) { \
+               rtn = 0; \
+       } \
+       else if ((nLength) % 2) { \
+               rtn = ((nLength) / 2) + 1; \
+       } \
+       else { \
+               rtn = (nLength) / 2; \
+       } \
+}
+
+
+#define TAPI_VALIDATE_EVENTTYPE(val_min ,val_max, type, ret) { \
+       if (type < val_min || type > val_max ) { \
+               return ret; \
+       } \
+}
+
+__END_DECLS
+
+#endif //_TEL_UTILITY_H_
+/**
+ * @}
+ */
diff --git a/include/TelCall.h b/include/TelCall.h
new file mode 100644 (file)
index 0000000..c1cc611
--- /dev/null
@@ -0,0 +1,1010 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup TAPI_CALL       CALL
+ * @{
+ *
+ * @file TelCall.h
+
+ @brief This file serves as a "C" header file defines structures for Tapi Call Services. \n
+ It contains a sample set of constants, enums, structs that would be required by applications.
+ */
+
+#ifndef _TEL_CALL_H_
+#define _TEL_CALL_H_
+
+#include <TelSs.h>
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define TAPI_CALLING_NAME_SIZE_MAX      80      /**< The maximum length of the string for calling party name.   */
+#define TAPI_CALL_UUS_DATA_LEN_MAX      131     /**< The Maximum length of the user to user singnalling data string.   */
+#define TAPI_CALL_DISPLAY_RECORD_MAX    32      /**< The maximum length of the string for display record in CDMA   */
+#define MAX_TAPI_CALL_COUNT                            6       /**< Maximum number of call can be possible at a time */
+#define MAX_TAPI_CONF_CALL_COUNT               5       /**< Maximum number of Call can be possible in a conference call at a time */
+#define INVALID_CALL_HANDLE                            0               /**< TS_UINT is used for call handle */
+
+/* Call */
+#define        TAPI_CALL_DIALDIGIT_LEN_MAX             82              /**< Maximum Dialling Digit Length  */
+#define        TAPI_CALL_SUBADDRESS_LEN_MAX    40              /**< Maximum Call Subaddress Length */
+#define        TAPI_CALL_NUMBER_LEN_MAX                7               /**< Dialling Num length */
+#define        TAPI_CONTEXT_CALL_SIZE_MAX              6               /**< Maximum Call context */
+#define        TAPI_CALL_DIAL_NUMBER_LEN_MAX   82
+
+#define TAPI_INVALID_CONTEXTHANDLE             (HTapiContext)-1
+#define TAPI_CLIENT_SIZE_MAX                   30
+#define TAPI_CALL_CUSTOM_SERVICE_DATA_MAX              128
+
+/**
+ * @enum TelCallCause_t
+ * This structure defines the values for Call Cause.
+ */
+typedef enum {
+       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 un authorized */
+       TAPI_CAUSE_BEARERMODE_UNAVAIL,          /**< Bearer mode not available */
+       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 happened */
+       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_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_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_REJ_SRVC_NOT_AVL,            /**< Rejection service not available  */
+       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_MODIFY_SAME_BEARER,          /**< Modify same bearer */
+       TAPI_CAUSE_MODIFY_NOT_PERMITTED,        /**< Modification not permitted */
+       TAPI_CAUSE_HOLD_FAIL,                           /**< Call hold fail */                                                  //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_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 already USSD transaction is ongoing. */
+       TAPI_CAUSE_IDLE,                                        /**< Idle */
+       TAPI_CAUSE_NETWORK_SPECIFIC,            /**< Network specific error */
+       TAPI_CAUSE_FADE,                                        /**< voice call was dropped e.g. because of a loss of signal */
+       TAPI_CAUSE_UNKNOWN,                             /**< unknown no details available */
+       TAPI_CAUSE_INCOM_CALL,                          /**< terminated by incoming call */
+       TAPI_CAUSE_ALERT_STOP,                          /**< terminated by alert stop */
+       TAPI_CAUSE_INTERCEPT,                           /**< voice call was dropped by interception */
+       TAPI_CAUSE_REORDER,                             /**< voice call was 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_TYPENOTSUPPORTED,            /**< Type 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_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,       /**< Un acceptable 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 Success */
+       TAPI_CAUSE_SEND_DTMF_FAIL,                      /**< Sending DTMF Failed */
+       TAPI_CAUSE_TIMER_EXPIRED,                       /**< Call Timer Expired */
+} TelCallCause_t;
+
+/**
+ * @enum TelTapiEndCause_t
+ * When a call is ended, this end cause is given with the CALL END notification to the application.  This end cause can be originated
+ * from different elements in the communication path or different modules in the same element.
+ */
+typedef enum {
+       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_OPERATOR_DETERMINED_BARRING,      /**< Operator Determined Barring */
+       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_ALERTING_NO_ANSWER,          /**< User Alerting no Answer */
+       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_INVALID_NUMBER_FORMAT,            /**< Invalid Number Format */
+       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_SWITCHING_EQUIPMENT_CONGESTION,   /**< Switching Equipment Congestion */
+
+       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 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,                  /**< incomming 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_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,/**< Resticted 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_USER_NOT_MEMBER_OF_CUG,                           /**< Not 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_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_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_PROTOCOL_ERROR_UNSPECIFIED,       /**< Protocol error unspecified */
+       TAPI_CC_CAUSE_INTERWORKING_UNSPECIFIED, /**< Interworking unspecified */
+
+       TAPI_CC_CAUSE_END = 128,
+
+       /* Reject causes*/
+       TAPI_REJECT_CAUSE_IMSI_UNKNOWN_IN_HLR,  /**< IMSI unknown in HLR */
+       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_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_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_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_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_MESSAGE_TYPE_NOT_COMP_PRT_ST,         /**< Message type not COMP PRT ST */
+       TAPI_REJECT_CAUSE_IE_NON_EXISTANT,                                              /**< IE not existant */
+       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_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 */
+
+       /* 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 expire */
+       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  */
+
+       /* 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_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 */
+
+       /* 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 of Network 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 cal failure */
+       TAPI_CDMA_END_CAUSE_PHONE_OFFLINE,                              /**< Call Released because of phone offline */
+       TAPI_CDMA_END_CAUSE_PHONE_IS_CDMA_LOCKED,               /**< Call Released because of CDMA locked */
+       TAPI_CDMA_END_CAUSE_FLASH_IS_IN_PROGRESS_ERR,   /**< Call Released because of flash-is-in-progress error */
+       TAPI_CDMA_END_CAUSE_E911_MODE_ERR,                              /**< Call Released because of e911 mode */
+       TAPI_CDMA_END_CAUSE_OTHERS,                                     /**< Call Released by Others */
+       TAPI_CDMA_END_CAUSE_MAX                                         /**< Maximum End Cause limit for cdma */
+} TelTapiEndCause_t;
+
+/**
+ * @enum TelConferenceCallState_t
+ * This enum defines the call conference states
+ */
+typedef enum {
+       TAPI_CALL_CONFERENCE_IDLE,      /**< idle */
+       TAPI_CALL_CONFERENCE_ACTIVE /**< active */
+} TelConferenceCallState_t;
+
+/**
+ * @enum TelCallStates_t
+ * Applications can use these sates or can have their own states.
+ */
+typedef enum {
+       TAPI_CALL_STATE_IDLE,           /**< Call is in idle state - i.e. no call */
+       TAPI_CALL_STATE_ACTIVE,         /**< Call is in connected and conversation state */
+       TAPI_CALL_STATE_HELD,           /**< Call is in held state */
+       TAPI_CALL_STATE_DIALING,        /**< Call is in dialing state */
+       TAPI_CALL_STATE_ALERT,          /**< Call is in alerting state */
+       TAPI_CALL_STATE_INCOMING,       /**< Call is in incoming state */
+       TAPI_CALL_STATE_WAITING,        /**< Call is in answered state, and waiting for connected indication event */
+       TAPI_CALL_STATE_MAX
+} TelCallStates_t;
+
+/**
+ * IN GSM ONLY: call identification number.
+ */
+typedef enum {
+       TAPI_CALL_ACTIVE_LINE1, /**< Line 1 */
+       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;
+
+/**
+ * The Incoming call indication could have be one of the following SS info messages in it.
+ */
+typedef enum {
+       /*      Number details are present in the "char number" of call info struct. if number is not present
+        then "no cli cause" member in  mt_ss_info is set accordingly.  */
+       TAPI_CALL_MT_CLI_PRESENT = 0x31,
+
+       /*      Calling Name Info presnet,      TelCallingNameInfo_t of call info struct contains this info.  */
+       TAPI_CALL_MT_CNA_PRESENT = 0x32,
+
+       /*      Undefined ss indication. Ignore mt_ss_info */
+       TAPI_CALL_MT_SS_UNDEFINED = 0x00,
+
+} TelCallMtSSInfo_t;
+
+/**
+ * @enum TelCallAnswerType_t
+ * Answer type used as in parameter in the answer call API.
+ */
+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 */
+       TAPI_CALL_ANSWER_HOLD_AND_ACCEPT,       /**< Hold the current active call, and accept the wating call */
+} TelCallAnswerType_t;
+
+/**
+ * @enum TelCallEndType_t
+ * End type used as in parameter in the end call API.
+ */
+typedef enum {
+       TAPI_CALL_END = 0,      
+       TAPI_CALL_END_ALL,
+       TAPI_CALL_END_ACTIVE_ALL,
+       TAPI_CALL_END_HOLD_ALL,
+} TelCallEndType_t;
+
+
+
+
+/**
+ * @enum TelCallType_t
+ * Applications needs to use this call type while using the setup call API. Like the requested call is a voice call or video call.
+ */
+typedef enum {
+       TAPI_CALL_TYPE_VOICE,   /**< Voice call type. */// in ipcv4, 0x0100
+       TAPI_CALL_TYPE_DATA,    /**< Data call type - (for modem, fax, packet, etc. calls). */// in ipcv4, 0x0200
+       TAPI_CALL_TYPE_E911     /**< Emergency call type. */// in ipcv4, 0x0700
+} TelCallType_t;
+
+/**
+ * @enum TelCallAlertingPattern_t
+ * This enumeration defines the different alerting patterns available.
+ */
+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;
+
+/**
+ * @enum TelCallActiveState_t
+ * State of the current call.
+ */
+typedef enum {
+       TAPI_CALL_CONNECT_IDLE, /**< Call is in Idle state. */
+       TAPI_CALL_CONNECT_ACTIVE,       /**< Call is in Active state.*/
+       TAPI_CALL_CONNECT_HELD          /**< Call is in Held state. */
+} TelCallActiveState_t;
+
+/**
+ * @enum TelCallCugOptions_t
+ * This enumeration defines the closed user group options
+ */
+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;
+
+/**
+ * @enum TelCallUusProtocolType_t
+ *  This enumeration defines the tapi call uus protocol types
+ */
+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;
+
+/**
+ * @enum TelCallNameMode_t
+ *  This enumeration defines the call name mode
+ */
+typedef enum {
+       TAPI_CALL_NAME_AVAIL = 0,                               /**< This identifier refers to the presentation of the calling party's name identity to the called party. */
+       TAPI_CALL_NAME_RESTRICTED = 1,                  /**< This identifier refers to the restriction of presentation of the name identity of the calling party to the called party. */
+       TAPI_CALL_NAME_UNAVAIL = 2,                     /**< This identifier refers to the unavailability of the calling party's name identity to be offered to the called party. */
+       TAPI_CALL_NAME_AVAIL_RESTRICTED = 3     /**< This identifier refers to the calling party's name identity to be offered to the called party with which presentation restriction is overridden.  */
+} TelCallNameMode_t;
+
+/**
+ * @enum TelCallSSNocliCause_t
+ * This enumeration defines the value for "No Cli cause".
+ */
+typedef enum {
+       TAPI_SS_NO_CLI_CAUSE_UNAVAILABLE = 0x00,                /**< Unavailable */
+       TAPI_SS_NO_CLI_CAUSE_REJECTBY_USER = 0x01,              /**< Rejected by User */
+       TAPI_SS_NO_CLI_CAUSE_INTERACTION_OTHERSERVICES = 0x02, /**<  Other services */
+       TAPI_SS_NO_CLI_CAUSE_COINLINE_PAYPHONE = 0x03,  /**< Coin line phone */
+       TAPI_SS_NO_CLI_CAUSE_MAX                                                /**< maximum usage */
+} TelCallSSNocliCause_t;
+
+/**
+ * Fwded Ind Type used for MO and Mt from SS Noti Info
+ */
+typedef enum {
+       TAPI_CALL_OUTGOING_FWDED = 0x00,        /* Outgoing call forwarded */
+       TAPI_CALL_INCOMMING_FWDED = 0x01,       /* Incoming call forwarded */
+} TelCallForwardType_t;
+
+/**
+ * @enum TelCallPrivacyMode_t
+ * This structure contains the voice privacy option mode(CDMA only).
+ */
+typedef enum {
+       TAPI_CALL_PRIVACY_MODE_STANDARD = 0x00, /**< Standard mode */
+       TAPI_CALL_PRIVACY_MODE_ENHANCED         /**< Enhanced mode */
+} TelCallPrivacyMode_t;
+
+/**
+ * @enum TelCallPrivacyType_t
+ * This structure contains the voice privacy request type(CDMA only).
+ */
+typedef enum {
+       TAPI_CALL_PRIVACY_TYPE_MS = 0x01,       /**< Mobile Station Voice Privacy Mode */
+       TAPI_CALL_PRIVACY_TYPE_BS,                      /**< Base Station Voice Privacy Mode */
+       TAPI_CALL_PRIVACY_TYPE_CURRENT          /**< Current Serving Privacy Mode */
+} TelCallPrivacyType_t;
+
+/**
+ * @enum TelCallEmergecyMode_t
+ * This structure contains the emergency callback mode(CDMA only).
+ */
+typedef enum {
+       TAPI_CALL_EMERGENCY_MODE_EXIT,  /**< Emergency CB Exit mode */
+       TAPI_CALL_EMERGENCY_MODE_ENTER  /**< Emergency CB Enter mode */
+} TelCallEmergecyMode_t;
+
+/**
+ * @enum TelCallOtaType_t
+ * This structure contains the OTA type(CDMA only).
+ */
+typedef enum {
+       TAPI_CALL_OTATYPE_OTASP = 0x01, /**< OTASP : mobile initiated OTA*/
+       TAPI_CALL_OTATYPE_OTAPA,                /**< OTAPA : network initiated OTA */
+} TelCallOtaType_t;
+
+/**
+ * @enum TelCallOtaspStatus_t
+ * This structure contains the OTASP Status(CDMA only).
+ */
+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_FAILURES_EXCESS_SPC,    /**< OTASP : SPC excess failure */
+       TAPI_CALL_OTASP_LOCK_CODE_PW_SET,               /**< OTASP : lock code password set*/
+} TelCallOtaspStatus_t;
+
+/**
+ * @enum TelCallOtapaStatus_t
+ * This structure contains the OTAPA Status(CDMA only).
+ */
+typedef enum {
+       TAPI_CALL_OTAPA_STOP = 0x00,    /**< OTAPA : stop */
+       TAPI_CALL_OTAPA_START,                  /**< OTAPA : start */
+} TelCallOtapaStatus_t;
+
+/**
+ * @enum TelCallTimeMaskType_t
+ * This structure contains call time request mask type.
+ */
+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;
+
+/**
+ * @enum TelCallToneDuration_t
+ * This structure contains dtmf tone length.
+ */
+typedef enum {
+       TAPI_CALL_TONE_DURATION_SHORT = 0x01,
+       TAPI_CALL_TONE_DURATION_LONG
+} TelCallToneDuration_t;
+
+/**
+ * @enum TelCallEmergencyCategory_t
+ * This structure contains emergency category type
+ */
+typedef enum {
+       TAPI_CALL_ECC_DEFAULT = 0x00,
+       TAPI_CALL_ECC_POLICE = 0x01,
+       TAPI_CALL_ECC_AMBULANCE = 0x02,
+       TAPI_CALL_ECC_FIREBRIGADE = 0x04,
+       TAPI_CALL_ECC_MARINEGUARD = 0x08,
+       TAPI_CALL_ECC_MOUNTAINRESCUE = 0x10,
+       TAPI_CALL_ECC_MANUAL_ECALL = 0x20,
+       TAPI_CALL_ECCY_AUTO_ECALL = 0x40
+} TelCallEmergencyCategory_t;
+
+typedef enum {
+       TAPI_CALL_IDENTITY_DEFAULT, /**< Calling line identity will be sent. Based on network setting, Line identity will presented to the called party. */
+       TAPI_CALL_IDENTITY_SHOW,        /**< Display calling line identity */
+       TAPI_CALL_IDENTITY_HIDE /**< Hide the display of Calling line identity */
+} TelCallIdentityMode_t;
+
+
+/**
+ * context type
+ */
+typedef enum {
+       TAPI_CONTEXT_TYPE_NONE = 0x00,
+       TAPI_CONTEXT_TYPE_VOICE_CALL = 0x01,
+       TAPI_CONTEXT_TYPE_DATA_CALL = 0x2,
+       TAPI_CONTEXT_TYPE_VIDEO_CALL = 0x3,
+       TAPI_CONTEXT_TYPE_NETTEXT,
+       TAPI_CONTEXT_TYPE_E911,
+} TapiContextType;
+
+
+/**
+ * Timer State and or Call Timer ID
+ */
+typedef enum {
+       TAPI_CALL_TSTATE_IDLE = 0x00,           /**< No timer running */
+       TAPI_CALL_TSTATE_SETUP_PENDING, /**< Setup Timer */
+       TAPI_CALL_TSTATE_CONNECT_PENDING,       /**< Connected 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;
+
+typedef struct {
+       TS_BOOL bRequestedBySAT;                        /** This flag is to indicate whether the request has been initiated by SAT or not.Possible values are 0 and 1. This flag should be updated only when originating a setup request */
+       TelCallIdentityMode_t IdentityMode; /**< Sets Calling Line Identity mode. If default value  TAPI_IDENTITY_DEFAULT is set, OEM will set the default value. */
+       TelCallEmergencyCategory_t ecc;
+} tel_set_call_satflag_identiymode;
+
+/**
+ * This structure contains information about the redirect destination  information.
+ */
+typedef struct {
+       unsigned char number[TAPI_CALL_DIAL_NUMBER_LEN_MAX + 1]; /**< Redirect destination number */
+} TelCallDeflectDstInfo_t;
+
+/**
+ * This structure defines the calling name information
+ */
+typedef struct {
+       TelCallNameMode_t NameMode;                                     /**< Display mode of the szNameData. */
+       char szNameData[TAPI_CALLING_NAME_SIZE_MAX];    /**< Calling party name string.   */
+} TelCallingNameInfo_t;
+
+/**
+ * This structure contains information about an outgoing call.
+ */
+typedef struct {
+       TelCallType_t CallType;                                         /**< sets type of call (voice, data, video, emergency) */
+       char szNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1]; /**< A string containing the destination phone number. This follows the dial number format.*/
+} TelCallDial_t;
+
+/**
+ * This structure contains information about call status.
+ */
+typedef struct {
+       int CallHandle;
+       int bMoCall;                                                                    /**< Status will be yes for MO Call. If MT call, then FALSE*/
+       char pNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1];  /**< Mobile Number */
+       TelCallType_t CallType;                                         /**< Specifies type of call (voice, data, emergency) */
+       TelCallStates_t CallState;                                              /**< Current Call state */
+       int bConferenceState;                                                   /**< Whether Call is in Conference or not*/
+} TelCallStatus_t;
+
+typedef void (*TelCallStatusCallback)( TelCallStatus_t *out, void *user_data );
+
+
+/**
+ * This structure contains information about call redirection details.
+ */
+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;
+
+/**
+ * This structure contains the incoming call information.
+ */
+typedef struct {
+       unsigned int CallHandle;                                /**< At Foundation API Level, Call handle indicates the Handle of the Call for the Application . At Framework API Level, call handle indicates the Call identifier used for call by the OEM Adaptation Layer Plug-in */
+       TelCallType_t CallType;                         /**< Call type */
+       TelSsLineIdentificationType_t CliPresentationIndicator; /**< Calling Party presentation indicator */
+       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 network, this information will be NULL.*/
+       TelCallRedirectionInfo_t RedirectInfo;  /**< The data for the Call Redirect information. If there is no information from network, this information will be NULL.  */
+       TelCallSSNocliCause_t CliCause;         /**< No of CLI cause */
+       int fwded;                                                              /**< True or false. If Incoming call is a forwarded call, then true else false. */
+       TelCallActiveLine_t ActiveLine;         /**< Current Active Line */
+} TelCallIncomingCallInfo_t;
+
+/**
+ *SS Info message.
+ */
+typedef struct {
+       TelCallMtSSInfo_t type; /* Type of the SS Info presnet. */
+       TelCallSSNocliCause_t no_cli_cause;
+} 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 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;                             /* EndCause */
+} TelTapiCallInfo_t;
+
+/**
+ * This structure contains the connected number information.
+ */
+typedef struct {
+       TelCallSSNocliCause_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 */
+} TelCallConnectedNumberInfo_t;
+
+/**
+ * This structure contains the voice privacy info(CDMA only).
+ */
+typedef struct {
+       TelCallPrivacyType_t PrivacyType; /**< Voice Privacy Request Type */
+       TelCallPrivacyMode_t PrivacyMode; /**< Voice Privacy Mode */
+} TelCallVoicePrivacyInfo_t;
+
+/**
+ * This structure contains the OTA progress indication information(CDMA only).
+ */
+typedef struct {
+       TelCallOtaType_t OtaType;                       /**< OTA type */
+       TelCallOtaspStatus_t OtaspStatus;       /**< OTASP status : if OTA type is  OTASP, it is valid */
+       TelCallOtapaStatus_t OtapaStatus;       /**< OTAPA status : if OTA type is  OTAPA, it is valid */
+} TelCallOtaProgressInfo_t;
+
+/**
+ * This structure contains information about a call time and call count.
+ */
+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 second) */
+       unsigned long OutgoingCallTime; /**< Overall Outgoing Call Time(in second) */
+       unsigned long IncomingCallTime; /**< Overall Incoming Call Time(in second) */
+       unsigned long LastCallTime;     /**< Last Call Time(in second) */
+} TelCallTimeInfo_t;
+
+/**
+ * This structure contains information about display record in CDMA.
+ */
+typedef struct {
+       unsigned char Record[TAPI_CALL_DISPLAY_RECORD_MAX + 1]; /**< display record */
+} TelCallDisplayRecordInfo_t;
+
+// New Struct for New API
+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*/
+} TelSoundVolume_t;
+
+typedef enum {
+       TAPI_SOUND_RECORDING_OFF,
+       TAPI_SOUND_RECORDING_ON,
+
+} TelSoundRecording_t;
+
+typedef enum {
+       TAPI_SOUND_DEVICE_RECEIVER = 0x00,
+       TAPI_SOUND_DEVICE_SPEAKER_PHONE = 0x10,
+       TAPI_SOUND_DEVICE_HFK = 0x20,
+       TAPI_SOUND_DEVICE_HEADSET = 0x30,
+       TAPI_SOUND_DEVICE_BLUETOOTH = 0x40,
+       TAPI_SOUND_DEVICE_EC = 0xA0,
+} TelSoundDevice_t;
+
+typedef enum {
+       TAPI_SOUND_TYPE_VOICE = 0x01,
+       TAPI_SOUND_TYPE_KEYTONE = 0x02,
+       TAPI_SOUND_TYPE_BELL = 0x03,
+       TAPI_SOUND_TYPE_MESSAGE = 0x04,
+       TAPI_SOUND_TYPE_ALARM = 0x05,
+       TAPI_SOUND_TYPE_PDA_MISC = 0x06,
+} TelSoundType_t;
+
+
+typedef struct {
+       TelSoundDevice_t device;
+       TelSoundType_t type;
+       TelSoundVolume_t volume;
+} TelCallVolumeInfo_t;
+
+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,
+       TAPI_SOUND_PATH_MIC1                =0x09,
+       TAPI_SOUND_PATH_MIC2                =0x0A,
+       TAPI_SOUND_PATH_HEADSET_HAC         =0x0B,
+} TelSoundPath_t;
+
+typedef struct {
+       TelSoundPath_t path;
+       enum ExtraVolumeStatus {
+               TAPI_SOUND_EX_VOLUME_OFF,
+               TAPI_SOUND_EX_VOLUME_ON,
+       } ex_volume;
+} TelCallSoundPathInfo_t;
+
+typedef enum {
+       TAPI_SOUND_MUTE_STATUS_OFF,
+       TAPI_SOUND_MUTE_STATUS_ON,
+} TelSoundMuteStatus_t;
+
+typedef enum {
+       TAPI_SOUND_NOISE_REDUCTION_OFF,
+       TAPI_SOUND_NOISE_REDUCTION_ON,
+} TelSoundNoiseReduction_t;
+
+typedef enum {
+       TAPI_SOUND_EQUALIZATION_MODE_OFF,
+       TAPI_SOUND_EQUALIZATION_MODE_ON,
+} TelSoundEqualizationMode_t;
+
+typedef enum {
+       TAPI_SOUND_DIRECTION_LEFT,
+       TAPI_SOUND_DIRECTION_RIGHT,
+} TelSoundDirection_t;
+
+
+#define MAX_SOUND_EQ_PARAMETER_SIZE 13
+typedef struct {
+       TelSoundEqualizationMode_t mode;
+       TelSoundDirection_t direction;
+       char parameter[MAX_SOUND_EQ_PARAMETER_SIZE];
+} TelCallSoundEqualization_t;
+
+
+
+
+typedef struct {
+       unsigned int id;
+} TelCallAnswerCnf_t;
+
+typedef struct {
+       TelCallEndType_t type;
+       unsigned int id;
+} TelCallEndCnf_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallHoldCnf_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallActiveCnf_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallSwapCnf_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallJoinCnf_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallSplitCnf_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallTransferCnf_t;
+
+typedef struct {
+       unsigned int record_num;
+       TelCallVolumeInfo_t record[ 20 ];
+} TelCallGetVolumeInfoResp_t;
+
+typedef struct {
+       TelSoundMuteStatus_t status;
+} TelCallGetMuteStatusResp_t;
+
+
+
+
+
+
+typedef struct {
+       unsigned int id;
+       TelTapiEndCause_t cause; /**< End cause for the call indicates whether the call is released normally or due to other cause*/
+} TelCallStatusIdleNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallStatusActiveNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallStatusHeldNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallStatusDialingNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallStatusAlertNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallStatusIncomingNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallStatusWaitingNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoWaitingNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoForwardedNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoBarredIncomingNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoBarredOutgoingNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoForwardConditionalNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoForwardUnconditionalNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoActiveNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoHeldNoti_t;
+
+typedef struct {
+       unsigned int id;
+} TelCallInfoJoinedNoti_t;
+
+typedef struct {
+       TelSoundPath_t path;
+} TelCallSoundPathNoti_t;
+
+typedef enum {
+       TAPI_CALL_SOUND_RINGBACK_TONE_START,
+       TAPI_CALL_SOUND_RINGBACK_TONE_END,
+} TelCallSoundRingbackToneNoti_t;
+
+typedef enum {
+       TAPI_CALL_SOUND_WBAMR_STATUS_OFF,
+       TAPI_CALL_SOUND_WBAMR_STATUS_ON,
+} TelCallSoundWbamrNoti_t;
+
+typedef struct {
+       TelSoundNoiseReduction_t status;
+} TelCallSoundNoiseReductionNoti_t;
+
+typedef struct {
+       TelSoundEqualizationMode_t mode;
+       TelSoundDirection_t direction;
+} TelCallSoundEqualizationNoti_t;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif  // _TEL_CALL_H_
+/**
+ * @}
+ */
diff --git a/include/TelDefines.h b/include/TelDefines.h
new file mode 100644 (file)
index 0000000..a303c99
--- /dev/null
@@ -0,0 +1,80 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @ingroup            TelephonyAPI
+ * @addtogroup COMMON_TAPI     COMMON
+ * @{
+ *
+ * @file TelDefines.h
+ * @brief  This file  provides #defines required for Telephony server and TAPI Client Library
+ */
+
+#ifndef _TEL_DEFINES_H_
+#define _TEL_DEFINES_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Machine independence */
+typedef long TS_INT32;
+typedef unsigned long TS_UINT32;
+
+typedef int TS_INT;
+typedef unsigned int TS_UINT;
+typedef double TS_DOUBLE;
+
+typedef int TS_BOOL;
+
+/* Programming concept */
+typedef unsigned char TS_BYTE;
+typedef unsigned short TS_WORD;
+typedef unsigned long TS_DWORD;
+typedef unsigned char TS_UINT8;
+typedef char TS_INT8;
+typedef unsigned short TS_UINT16;
+typedef unsigned long TS_ULONG;
+typedef unsigned long long TS_UINT64;
+typedef unsigned short TS_USHORT;
+
+#ifndef TRUE
+#define TRUE           1
+#endif
+
+#ifndef FALSE
+#define FALSE          0
+#endif
+
+#ifndef DEPRECATED
+#define DEPRECATED __attribute__((deprecated))
+#endif
+
+typedef int HObj;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _TEL_DEFINES_H_ */
+
+/**
+ *  @}
+ */
diff --git a/include/TelDisplay.h b/include/TelDisplay.h
new file mode 100644 (file)
index 0000000..82eeda1
--- /dev/null
@@ -0,0 +1,200 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @internal
+ * @ingroup            TelephonyAPI
+ * @addtogroup         DISPLAY_TAPI    DISPLAY
+ * @{
+ *
+ * These APIs allow an application to accomplish the following services: @n
+ * - Get the Display Icon Information. @n
+ */
+
+#ifndef _TEL_DISPLAY_H_
+#define _TEL_DISPLAY_H_
+
+#include <TelDefines.h>
+#include <TelUtility.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define TAPI_MAX_DISP_O2_HOMEZONE_TAG_LEN      13      /** Maximum number of bytes Home Zone Tag name */
+#define TAPI_MAX_DISP_ROAM_INFO_LEN                            49      /* Roaming location information Maximum length is 32 bytes, But, 49 bytes in Modem code*/
+#define TAPI_MAX_DISP_PHONE_FATAL_ERR_MSG_LEN  64      /* Phone fatal error message length */
+
+/**
+ * This defines the RSSI levels.
+ * In GSM, this field represent the radio signal strength in  dBm , but in the CDMA this field represents
+ * the number of the antenna bar as follows
+ */
+typedef enum {
+       TAPI_DISPLAY_RSSI_0 = 0x00,
+       TAPI_DISPLAY_RSSI_1 = 0x01,
+       TAPI_DISPLAY_RSSI_2 = 0x02,
+       TAPI_DISPLAY_RSSI_3 = 0x03,
+       TAPI_DISPLAY_RSSI_4 = 0x04,
+       TAPI_DISPLAY_RSSI_5 = 0x05,
+       TAPI_DISPLAY_RSSI_6 = 0x06
+} tapi_display_rssi_level_t;
+
+/**
+ * This enum defines the strength of the battery in levels
+ */
+typedef enum {
+       TAPI_POWER_PHONE_BATT_LEVEL0 = 0x00, /**< BLANK(Critical Low) */
+       TAPI_POWER_PHONE_BATT_LEVEL1 = 0x01, /**< bar1 */
+       TAPI_POWER_PHONE_BATT_LEVEL2 = 0x02, /**< bar2 */
+       TAPI_POWER_PHONE_BATT_LEVEL3 = 0x03, /**< bar3 */
+       TAPI_POWER_PHONE_BATT_LEVEL4 = 0x04, /**< bar4 */
+       TAPI_POWER_PHONE_BATT_LEVEL5 = 0x05, /**< bar5 */
+       TAPI_POWER_PHONE_BATT_LEVEL_INIT = 0x06 /**< init value */
+} tapi_phone_battery_level_t;
+
+/**
+ * Home Zone UI Icon Indiction Type
+ */
+typedef enum {
+       TAPI_DISPLAY_HMZ_O2_ZONE_INDI_NONE = 0x00, /**< None */
+       TAPI_DISPLAY_HMZ_O2_ZONE_INDI_IND = 0x01, /**< Ind */
+       TAPI_DISPLAY_HMZ_O2_ZONE_INDI_CLEAR = 0x02 /**< Clear */
+} tapi_display_hmz_02_zone_ind_t;
+
+/**
+ * Home Zone Type
+ */
+typedef enum {
+       TAPI_DISPLAY_HMZ_O2_ZONE_TYPE_NONE = 0x00, /**< None */
+       TAPI_DISPLAY_HMZ_O2_ZONE_TYPE_HOME = 0x01, /**< Home Zone */
+       TAPI_DISPLAY_HMZ_O2_ZONE_TYPE_CITY = 0x02 /**< City Zone */
+} tapi_display_hmz_02_zone_type_t;
+
+/**
+ * ZONE_TAG_PRESENT
+ */
+typedef enum {
+       TAPI_DISPLAY_HMZ_O2_ZONE_TAG_NONE = 0x00, /**< None */
+       TAPI_DISPLAY_HMZ_O2_ZONE_TAG_PRESENT = 0x01, /**< Present */
+       TAPI_DISPLAY_HMZ_O2_ZONE_TAG_ABSENT = 0x02 /**< Absent */
+} tapi_display_hmz_02_zone_tag_t;
+
+/**
+ * This enumeration is used to identify what icon info the client is interested in..
+ */
+typedef enum {
+       TAPI_DISPLAY_GET_ICON_RSSI = 0x01, /**< Signal Strength */
+       TAPI_DISPLAY_GET_ICON_BATT = 0x02, /**< Battery Level */
+       TAPI_DISPLAY_GET_ICON_HDR_RSSI = 0x04, /**< HDR(High Data Rate RSSI - CDMA */
+       TAPI_DISPLAY_GET_ICON_ALL = 0xFF /**< All Values Request */
+} tapi_display_get_icon_req_type_t;
+
+/**
+ * roam info Control Indication Type
+ */
+typedef enum {
+       TAPI_DISPLAY_ROAM_INDI_NONE = 0x00, /**< None */
+       TAPI_DISPLAY_ROAM_TEXT_OFF = 0x01, /**< Roam Text Off */
+       TAPI_DISPLAY_ROAM_TEXT_ON = 0x02 /**< Roam Text On */
+} tapi_display_roam_control_ind_t;
+
+/**
+ * roam info data roam guard Indication Type
+ */
+typedef enum {
+       TAPI_DISPLAY_DATA_ROAM_GUARD_NONE = 0x00, /**< None */
+       TAPI_DISPLAY_DATA_ROAM_GUARD_OFF = 0x01, /**< Data Roam Guard Off */
+       TAPI_DISPLAY_DATA_ROAM_GUARD_ON = 0x02 /**< Data Roam Guard On */
+} tapi_display_data_roam_guard_ind_t;
+
+/**
+ * roam info data roam guard Indication Type
+ */
+typedef enum {
+       TAPI_DISPLAY_USER_IND_NORMAL_MODE = 0x01, /**< Normal Mode */
+       TAPI_DISPLAY_USER_IND_INITIAL_PROGRAMMING = 0x02, /**< Initial Programming needed */
+       TAPI_DISPLAY_USER_IND_MAINTENANCE_REQUIRED = 0x03, /**< Maintenance Required */
+       TAPI_DISPLAY_USER_IND_AUTHENTICATION_REQUIRED = 0x04 /**< Authentication Required */
+} tapi_display_user_ind_message_t;
+
+/**
+ * This structure defines the display icon information
+ */
+typedef struct {
+       tapi_display_rssi_level_t rssi; /**< RSSI Levels */
+       tapi_display_rssi_level_t hdrRssi; /**< HDR(High Data Rate) RSSI Levels -CDMA */
+       tapi_phone_battery_level_t batt; /**< Battery Level */
+} tapi_display_icon_info_t;
+
+/**
+ * HomeZone Information Notification Message
+ *
+ * This service specifies the implementation of o2 DE's HomeZone Indication (HZI) service
+ * in 3G or 2G handsets. The HZI service consists of displaying a text and, optionally depending
+ * on the zone, an icon in the handset (UE) when the UE is located within a zone which is defined
+ * individually for each customer. The zone is defined by a set of cells, i. e. for each cell the
+ * indication is either displayed or not. If the display of a MS is too small to display the complete
+ * operator name together with the complete tag, it will be allowed to display the operator
+ * name and the HomeZone/CityZone-tag in the same line ('o2 - de city' or 'o2 - de home').
+ *
+ * Reference O2 Home Zone spec.
+ */
+typedef struct {
+       tapi_display_hmz_02_zone_ind_t ind;
+       tapi_display_hmz_02_zone_type_t type;
+       tapi_display_hmz_02_zone_tag_t tag_presnet;
+
+       /**
+        * The coding is 12-character string coded in the short message alphabet given
+        * In GSM 03.38 with bit 8 set to zero. Default FF. FF indicates no display.
+        * If ZONE_TAG_PRESENT, then this is 13 bytes.
+        * If ZONE_TAG_ABSENT, then this is zero byte.
+        */
+       unsigned char tag_name[TAPI_MAX_DISP_O2_HOMEZONE_TAG_LEN];
+} tapi_display_hmz_o2_ind_t;
+
+/**
+ * Notify the TS of the occurrence of the phone fatal in the phone
+ */
+typedef struct {
+       unsigned char Msg_len;
+       unsigned char Message[TAPI_MAX_DISP_PHONE_FATAL_ERR_MSG_LEN];
+} tapi_display_phone_fatal_info_noti_t;
+
+/**
+ * Notify the TS of the occurrence of the ext roam info in the phone
+ */
+typedef struct {
+       tapi_display_roam_control_ind_t control;
+       tapi_display_data_roam_guard_ind_t data_roam_guard;
+       unsigned char txt_len;
+       unsigned char text[TAPI_MAX_DISP_ROAM_INFO_LEN];
+} tapi_display_ext_roam_info_noti_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _TEL_DISPLAY_H_ */
+
+/**
+ *  @}
+ */
diff --git a/include/TelErr.h b/include/TelErr.h
new file mode 100644 (file)
index 0000000..0b25164
--- /dev/null
@@ -0,0 +1,186 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup                    TelephonyAPI
+ * @addtogroup         COMMON_TAPI     COMMON
+ * @{
+ *     These error codes are used by Applications.
+ */
+
+
+#ifndef _TEL_ERR_H_
+#define _TEL_ERR_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/************************************************************
+**    Errors defined in  "+CME ERROR" ,
+**    - see 3GPP TS 27.007
+**    - ranges are 0x00 ~ 0x7FFF
+************************************************************/
+/**
+       Error codes sent by the modem in response to the above operations.
+*/
+typedef enum
+{
+  /* GENERAL ERRORS */
+  TAPI_OP_GEN_ERR_PHONE_FAILURE        = 0,                                            /* 0 */
+  TAPI_OP_GEN_ERR_NO_CONNECTION_TO_PHONE,                                      /* 1 */
+  TAPI_OP_GEN_ERR_PHONE_ADAPTOR_LINK_RESERVED,                 /* 2 */
+  TAPI_OP_GEN_ERR_OPER_NOT_ALLOWED,                                            /* 3 */
+  TAPI_OP_GEN_ERR_OPER_NOT_SUPPORTED,                                          /* 4 */
+  TAPI_OP_GEN_ERR_PH_SIM_PIN_REQU,                                             /* 5 */
+  TAPI_OP_GEN_ERR_PH_FSIM_PIN_REQU,                                            /* 6 */
+  TAPI_OP_GEN_ERR_PH_FSIM_PUK_REQU,                                            /* 7 */
+  TAPI_OP_GEN_ERR_SIM_NOT_INSERTED     =10,                                    /* 10 */
+  TAPI_OP_GEN_ERR_SIM_PIN_REQU,                                                        /* 11 */
+  TAPI_OP_GEN_ERR_SIM_PUK_REQU,                                                        /* 12 */
+  TAPI_OP_GEN_ERR_SIM_FAILURE,                                                 /* 13 */
+  TAPI_OP_GEN_ERR_SIM_BUSY,                                                            /* 14 */
+  TAPI_OP_GEN_ERR_SIM_WRONG,                                                           /* 15 */
+  TAPI_OP_GEN_ERR_INCORRECT_PW,                                                        /* 16 */
+  TAPI_OP_GEN_ERR_SIM_PIN2_REQU,                                                       /* 17 */
+  TAPI_OP_GEN_ERR_SIM_PUK2_REQU,                                                       /* 18 */
+  TAPI_OP_GEN_ERR_MEM_FULL     = 20,                                                   /* 20 */
+  TAPI_OP_GEN_ERR_INVALID_INDEX,                                                       /* 21 */
+  TAPI_OP_GEN_ERR_NOT_FOUND,                                                           /* 22 */
+  TAPI_OP_GEN_ERR_MEM_FAILURE,                                                 /* 23 */
+  TAPI_OP_GEN_ERR_TEXT_STR_TOO_LONG,                                           /* 24 */
+  TAPI_OP_GEN_ERR_INVALID_CHARACTERS_IN_TEXT_STR,                      /* 25 */
+  TAPI_OP_GEN_ERR_DIAL_STR_TOO_LONG,                                           /* 26 */
+  TAPI_OP_GEN_ERR_INVALID_CHARACTERS_IN_DIAL_STR,                      /* 27 */
+  TAPI_OP_GEN_ERR_NO_NET_SVC   = 30,                                           /* 30 */
+  TAPI_OP_GEN_ERR_NET_TIMEOUT,                                                 /* 31 */
+  TAPI_OP_GEN_ERR_NET_NOT_ALLOWED_EMERGENCY_CALLS_ONLY,        /* 32 */
+  TAPI_OP_GEN_ERR_NET_PERS_PIN_REQU    = 40,                                   /* 40 */
+  TAPI_OP_GEN_ERR_NET_PERS_PUK_REQU,                                           /* 41 */
+  TAPI_OP_GEN_ERR_NET_SUBSET_PERS_PIN_REQU,                            /* 42 */
+  TAPI_OP_GEN_ERR_NET_SUBSET_PERS_PUK_REQU,                            /* 43 */
+  TAPI_OP_GEN_ERR_SVC_PROVIDER_PERS_PIN_REQU,                          /* 44 */
+  TAPI_OP_GEN_ERR_SVC_PROVIDER_PERS_PUK_REQU,                          /* 45 */
+  TAPI_OP_GEN_ERR_CORPORATE_PERS_PIN_REQU,                             /* 46 */
+  TAPI_OP_GEN_ERR_CORPORATE_PERS_PUK_REQU,                             /* 47 */
+  TAPI_OP_GEN_ERR_HIDDEN_KEY_REQU,                                             /* 48 */
+  TAPI_OP_GEN_ERR_UNKNOWN      = 100,                                          /* 100 */
+
+  /* Errors related to a failure to perform an Attach */
+  TAPI_OP_GEN_ERR_ILLEGAL_MS   = 103,                                  /* 103 */
+  TAPI_OP_GEN_ERR_ILLEGAL_ME   = 106,                                  /* 106 */
+  TAPI_OP_GEN_ERR_GPRS_SVC_NOT_ALLOWED,                                        /* 107 */
+  TAPI_OP_GEN_ERR_PLMN_NOT_ALLOWED     = 111,                          /* 111 */
+  TAPI_OP_GEN_ERR_LOCATION_AREA_NOT_ALLOWED,                           /* 112 */
+  TAPI_OP_GEN_ERR_ROAMING_NOT_ALLOWED_IN_THIS_LOCATION_AREA,/* 113 */
+
+  /* Errors related to a failure to Activate a Context */
+  TAPI_OP_GEN_ERR_SVC_OPT_NOT_SUPPORTED        = 132,                  /* 132 */
+  TAPI_OP_GEN_ERR_REQ_SVC_OPT_NOT_SUBSCRIBED,                          /* 133 */
+  TAPI_OP_GEN_ERR_SVC_OPT_TEMPORARILY_OUT_OF_ORDER,            /* 134 */
+  TAPI_OP_GEN_ERR_UNSPECIFIED_GPRS_ERR = 148,                  /* 148 */
+  TAPI_OP_GEN_ERR_PDP_AUTHENTICATION_FAILURE,                          /* 149 */
+  TAPI_OP_GEN_ERR_INVALID_MOBILE_CLASS,                                        /* 150 */
+
+  /* VBS / VGCS and eMLPP -related errors */
+  TAPI_OP_GEN_ERR_VBS_VGCS_NOT_SUPPORTED_BY_THE_NET    = 151,  /* 151 */
+  TAPI_OP_GEN_ERR_NO_SVC_SUBSCRIPTION_ON_SIM,                          /* 152 */
+  TAPI_OP_GEN_ERR_NO_SUBSCRIPTION_FOR_GROUP_ID,                        /* 153 */
+  TAPI_OP_GEN_ERR_GROUP_ID_NOT_ACTIVATED_ON_SIM,                       /* 154 */
+  TAPI_OP_GEN_ERR_NO_MATCHING_NOTI     = 155,                          /* 155 */
+  TAPI_OP_GEN_ERR_VBS_VGCS_CALL_ALREADY_PRESENT,                       /* 156 */
+  TAPI_OP_GEN_ERR_CONGESTION,                                                          /* 157 */
+  TAPI_OP_GEN_ERR_NET_FAILURE,                                                 /* 158 */
+  TAPI_OP_GEN_ERR_UPLINK_BUSY,                                                 /* 159 */
+  TAPI_OP_GEN_ERR_NO_ACCESS_RIGHTS_FOR_SIM_FILE        = 160,  /* 160 */
+  TAPI_OP_GEN_ERR_NO_SUBSCRIPTION_FOR_PRIORITY,                        /* 161 */
+  TAPI_OP_GEN_ERR_OPER_NOT_APPLICABLE_OR_NOT_POSSIBLE, /* 162 */
+
+
+  TAPI_OP_GEN_ERR_NONE = 0x8000,                               /* 0x8000 : No Errors */
+
+  /* General Common Errors : 0x8000 - 0x80FF */
+  TAPI_OP_GEN_ERR_INVALID_IPC,                                                 /* 0x8001 : Invalid IPC_GSM Parameter or Format */
+  TAPI_OP_GEN_ERR_PHONE_OFFLINE,                                                       /* 0x8002 : */
+  TAPI_OP_GEN_ERR_CMD_NOT_ALLOWED,                                             /* 0x8003 : */
+  TAPI_OP_GEN_ERR_PHONE_IS_INUSE,                                                      /* 0x8004 : */
+  TAPI_OP_GEN_ERR_INVALID_STATE        = 0x8005,                                       /* 0x8005 : */
+
+  TAPI_OP_GEN_ERR_NO_BUFFER,                                                           /* 0x8006 :  No internal free buffers */
+  TAPI_OP_GEN_ERR_OPER_REJ,                                                            /* 0x8007 :  Operation Rejected */
+  TAPI_OP_GEN_ERR_INSUFFICIENT_RESOURCE,                                       /* 0x8008 : insufficient resource */
+  TAPI_OP_GEN_ERR_NET_NOT_RESPOND,                                             /* 0x8009 : Network not responding */
+  TAPI_OP_GEN_ERR_SIM_PIN_ENABLE_REQ   = 0x800A,                       /* 0x800A : SIM Pin Enable Required */
+  TAPI_OP_GEN_ERR_SIM_PERM_BLOCKED,                                    /* 0x800B : SIM Permanent Blocked */
+  TAPI_OP_GEN_ERR_SIM_PHONEBOOK_RESTRICTED,                            /*0x800C: SIM Phonebook Restricted*/
+  TAPI_OP_GEM_ERR_FIXED_DIALING_NUMBER_ONLY,                           /*0x800D: Restricted By FDN Mode */
+
+  /* Reserved : 0x800E ~ 0x80FF */
+  TAPI_OP_GEN_ERR_800E_RESERVED_START  = 0x800E,                       /* 0x800E */
+
+  TAPI_OP_GEN_ERR_80FF_RESERVED_END    = 0x80ff,                               /* 0x80FF */
+
+  /* the other errors */
+  TAPI_OP_GEN_ERR_OTHERS                               = 0xFFFE,                                 /* 0xFFFE */
+
+  TAPI_OP_GEN_ERR_MAX                                  = 0xFFFF
+
+}tapi_phone_err_t;
+
+typedef enum {
+       TAPI_PDP_FAILURE_CAUSE_NORMAL                                           = 0x00,           // 0x00 : Normal Process ( no problem )
+       TAPI_PDP_FAILURE_CAUSE_REL_BY_USER                                      = 0x01,           // Call Released by User
+       TAPI_PDP_FAILURE_CAUSE_REGULAR_DEACTIVATION                     = 0x02,           // Regular de-activation
+       TAPI_PDP_FAILURE_CAUSE_LLC_SNDCP                                        = 0x03,           // LLC SNDCP failure
+       TAPI_PDP_FAILURE_CAUSE_INSUFFICIENT_RESOURCE            = 0x04,           // Insufficient resources
+       TAPI_PDP_FAILURE_CAUSE_UNKNOWN_APN                                      = 0x05,           // Missing or unknown APN
+       TAPI_PDP_FAILURE_CAUSE_UNKNOWN_PDP_ADDRESS                      = 0x06,           // Unknown PDP address or type
+       TAPI_PDP_FAILURE_CAUSE_USER_AUTH_FAILED                         = 0x07,           // Unknown PDP address or type
+       TAPI_PDP_FAILURE_CAUSE_ACT_REJ_GGSN                                     = 0x08,           // Unknown PDP address or type
+       TAPI_PDP_FAILURE_CAUSE_ACT_REJ_UNSPECIFIED                      = 0x09,           // Unknown PDP address or type
+       TAPI_PDP_FAILURE_CAUSE_SVC_OPTION_NOT_SUPPORTED         = 0x0A,           // Service option not supported
+       TAPI_PDP_FAILURE_CAUSE_SVC_NOT_SUBSCRIBED                       = 0x0B,           // Requested service option not subscribed
+       TAPI_PDP_FAILURE_CAUSE_SVC_OPT_OUT_ORDER                        = 0x0C,           // Service out of order
+    TAPI_PDP_FAILURE_CAUSE_NSAPI_USED                                  = 0x0D,           // NSAPI already used
+       TAPI_PDP_FAILURE_CAUSE_QOS_NOT_ACCEPTED                         = 0x0E,           // QoS not accepted
+       TAPI_PDP_FAILURE_CAUSE_NETWORK_FAILURE                          = 0x0F,           // Network Failure
+    TAPI_PDP_FAILURE_CAUSE_REACT_REQUIRED                              = 0x10,           // Reactivation Required
+       TAPI_PDP_FAILURE_CAUSE_FEATURE_NOT_SUPPORTED            = 0x11,           // Feature not supported
+       TAPI_PDP_FAILURE_CAUSE_TFT_FILTER_ERROR                         = 0x12,           // TFT or filter error
+       TAPI_PDP_FAILURE_CAUSE_UNKOWN_PDP_CONTEXT                       = 0x13,           // Unknown PDP context
+       TAPI_PDP_FAILURE_CAUSE_INVALID_MSG                                      = 0x14,           // Invalid MSG
+       TAPI_PDP_FAILURE_CAUSE_PROTOCOL_ERROR                           = 0x15,           // Protocol error
+       TAPI_PDP_FAILURE_CAUSE_MOBILE_FAILURE_ERROR                     = 0x16,           // Mobile failure error
+       TAPI_PDP_FAILURE_CAUSE_TIMEOUT_ERROR                            = 0x17,           // Timeout error
+       TAPI_PDP_FAILURE_CAUSE_UNKNOWN_ERROR                            = 0x18,           // Unknown error
+       TAPI_PDP_FAILURE_CAUSE_MAX ,
+} tapi_pdp_err_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _TEL_ERR_H_
+
+/**
+* @}
+*/
diff --git a/include/TelMisc.h b/include/TelMisc.h
new file mode 100644 (file)
index 0000000..8e4a8c4
--- /dev/null
@@ -0,0 +1,349 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @internal
+ * @ingroup            TelephonyAPI
+ * @addtogroup MISC_TAPI       MISC
+ * @{
+ *
+ * @file TelMisc.h
+
+ @brief This file serves as a "C" header file defines structures for Tapi Misc Services. \n
+ It contains a sample set of constants, enums, structs that would be required by applications.
+
+ */
+
+#ifndef _TEL_MISC_H_
+#define _TEL_MISC_H_
+
+#include <sys/time.h>
+#include <TelDefines.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
+
+/**
+ * @enum TelMiscApplicationKey_t
+ * This enumeration defines mmi check key values
+ */
+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,   //
+
+       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
+} TelMiscMMICHECK_t;
+
+/**
+ * @enum TelMiscApplicationKey_t
+ * This enumeration defines application key type
+ */
+typedef enum {
+       KEY_EXT_DIAL_0 = 0,
+       KEY_EXT_DIAL_1,
+       KEY_EXT_DIAL_2,
+       KEY_EXT_DIAL_3,
+       KEY_EXT_DIAL_4,
+       KEY_EXT_DIAL_5,
+       KEY_EXT_DIAL_6,
+       KEY_EXT_DIAL_7,
+       KEY_EXT_DIAL_8,
+       KEY_EXT_DIAL_9,
+       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,
+
+       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
+} TelMiscApplicationKey_t;
+
+/**
+ * @enum TelMiscDiagTouchEventType_t
+ * This enumeration defines the touch event type
+ */
+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;
+
+/**
+ * @enum  TelMiscAlarmMode_t
+ * Enum type for Validity of the Alarm booting
+ */
+typedef enum {
+       TAPI_MISC_ALARMBOOT_INACTIVATE, /**< 0x00: Inactivated */
+       TAPI_MISC_ALARMBOOT_ACTIVATE /**< 0x00: Activated */
+} 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`s 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;
+
+/**
+ * NAM Information MASK fiel
+ */
+typedef enum {
+       TAPI_MISC_NAM_INFO_MASK_TOTAL                   = 0x0001,
+       TAPI_MISC_NAM_INFO_MASK_CURRENT_INDEX   = 0x0002,
+       TAPI_MISC_NAM_INFO_MASK_REQUEST_INDEX   = 0x0004,
+       TAPI_MISC_NAM_INFO_MASK_AUTONAM         = 0x0008,
+       TAPI_MISC_NAM_INFO_MASK_MCC                     = 0x0010,
+       TAPI_MISC_NAM_INFO_MASK_MNC                     = 0x0020,
+       TAPI_MISC_NAM_INFO_MASK_MIN                     = 0x0040,
+       TAPI_MISC_NAM_INFO_MASK_MDN                     = 0x0080,
+       TAPI_MISC_NAM_INFO_MASK_NAM_NAME                = 0x0100,
+       TAPI_MISC_NAM_INFO_MASK_NAM_CHANGE              = 0x0200,
+       TAPI_MISC_NAM_INFO_MASK_NAM_NUM         = 0x0400,
+       TAPI_MISC_NAM_INFO_MASK_ALL                     = 0x8000
+} TelMiscNamInfoMaskType_t;
+
+/**
+ * NAMIndex Field
+ */
+typedef enum {
+       TAPI_MISC_NAM_1 = 0x00,
+       TAPI_MISC_NAM_2,
+       TAPI_MISC_NAM_3,
+       TAPI_MISC_NAM_4,
+       TAPI_MISC_NAM_5
+} TelMiscNamIndex_t;
+
+
+/**
+ * @enum  tapi_misc_nitz_dayofweek_t
+ * Enum type for day of week
+ */
+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;
+
+/**
+ * @enum  tapi_misc_nitz_daylight_t
+ * Enum type for daylight
+ */
+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;
+
+/**
+ * @enum  tapi_misc_nitz_timeinfo_t
+ * Enum type for types of data
+ */
+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;
+
+/**
+ * Mobile Equipment Version Information
+ */
+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 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 */
+       unsigned char szProductCode[TAPI_MISC_PRODUCT_CODE_LEN_MAX]; /**< product code, null termination */
+       unsigned char szModelId[TAPI_MISC_MODEL_ID_LEN_MAX]; /**< model id (only for CDMA), null termination */
+       unsigned char prl_nam_num; /**< number of PRL NAM fields */
+       unsigned char szPrlVersion[TAPI_MISC_PRL_ERI_VER_LEN_MAX * 3];/**< prl version (only for CDMA), null termination */
+       unsigned char eri_nam_num; /**< number of PRL NAM fields */
+       unsigned char szEriVersion[TAPI_MISC_PRL_ERI_VER_LEN_MAX * 3];/**< eri version (only for CDMA), null termination */
+} TelMiscVersionInformation;
+
+/**
+ * Mobile Equipment Serial Number Information
+ */
+typedef struct {
+       TelMiscSNIndexType_t sn_index; /**< serial number index */
+       int sn_len; /**< Length */
+       unsigned char szNumber[TAPI_MISC_ME_SN_LEN_MAX]; /**< Number */
+} TelMiscSNInformation;
+
+/**
+ * Event delivery - event type
+ */
+typedef struct {
+       struct timeval time; /**< Time information */
+       unsigned short type; /**< Type of event */
+       unsigned short code; /**< Code */
+       long value; /**< Value */
+} input_event_t;
+
+/**
+ * Diagnostic Key Code Information
+ */
+typedef struct {
+       unsigned char keycode; /**< Key Code */
+       unsigned char keyhold; /**< Key Hold */
+} TelMiscDiagKeyCodeInfomation;
+
+/**
+ * Struct for alarm info
+ */
+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 week */
+} TelMiscAlarmInfo_t;
+
+/**
+ * Struct for alarm response
+ */
+typedef struct {
+       TelMiscAlarmMode_t validity; /**< validity */
+       TelMiscAlarmInfo_t alarm_info; /**< alarm info */
+} TelMiscAlarmStatus_t;
+
+/**
+ * @struct  TelMiscNamInfo_t
+ * struct type for nam info
+ */
+typedef struct {
+       unsigned short nam_info_mask;
+       unsigned char nam_total; // this field is not used in case of nam set req.
+       unsigned char nam_current_index;
+       unsigned char nam_req_index;
+       unsigned char nam_auto;
+       unsigned char nam_mcc[TAPI_MISC_MCC_LEN_MAX+1];
+       unsigned char nam_mnc[TAPI_MISC_MCC_LEN_MAX+1];
+       unsigned char nam_min[TAPI_MISC_MIN_LEN_MAX+1];
+       unsigned char nam_mdn[TAPI_MISC_MDN_LEN_MAX+1];
+       unsigned char nam_name[TAPI_MISC_NAME_LEN_MAX+1];
+} TelMiscNamInfo_t;
+
+/**
+ * Struct for time info
+ */
+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 week */
+       unsigned long plmn; /**< day of week */
+} tapi_misc_time_zone_info_type;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _TEL_MISC_H_
+/**
+ *  @}
+ */
diff --git a/include/TelNetwork.h b/include/TelNetwork.h
new file mode 100644 (file)
index 0000000..29f6cd1
--- /dev/null
@@ -0,0 +1,472 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+* @open
+* @ingroup     TelephonyAPI
+* @addtogroup  Network_TAPI    Network
+* @{
+*
+* @file TelNetwork.h
+
+     @brief This file serves as a "C" header file and defines structures for Tapi Network Services\n
+      It contains a sample set of constants, enums, structs that would be required by applications.
+ */
+
+#ifndef _TEL_NETWORK_H_
+#define _TEL_NETWORK_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#define TAPI_NETWORK_ORDER_MAX                                 5               /**< Maximum network order */
+#define TAPI_NETWORK_LIST_MAX                                  15              /**< Maximum network list */
+#define TAPI_NETWORK_NAME_LEN_MAX                              40              /**< Maximum network name or PLMN name length*/
+#define TAPI_NETWORK_SPN_LEN_MAX                               20              /**< Maximum network service provider name length */
+#define TAPI_PREFERRED_PLMN_RECORDS_MAX                        150             /**< Maximum record length for preferred plmn list*/
+#define TAPI_NETWORK_DISPLAY_INFO_ELEMENTS             4               /**< Maximum network Display info element length */
+#define TAPI_NETWORK_HOMEZONE_TAG_MAX_LEN              13              /**< Maximum Network  Home zone tag  length */
+#define TAPI_NETWORK_CS_DISP_INDEX                             0               /**< Maximum   Network CS display index length */
+#define TAPI_NETWORK_PS_DISP_INDEX                             1               /**< Maximum  Network PS display index  length */
+#define TAPI_NETWORK_SVC_DISP_INDEX                            2               /**< Maximum  Network SVC display index length */
+#define TAPI_NETWORK_ROAM_DISP_INDEX                   3               /**< Maximum  Network roaming display index length */
+#define TAPI_NETWORK_SUBS_SVC_NUM_MAX                  6               /**< Maximum number of the Subscriber's services */
+#define TAPI_NETWORK_SUBS_NUM_LEN_MAX                  40              /**< Maximum Subscriber Number Length */
+#define TAPI_NETWORK_SUBS_ALPHA_LEN_MAX                        16              /**< Maximum Subscriber Name Length */
+
+/**
+ * @enum TelNetworkSelectionMode_t
+ *  This enumeration defines the network selection modes.
+ */
+typedef enum {
+       TAPI_NETWORK_SELECTIONMODE_AUTOMATIC,                           /**< Network selection is in Automatic selection mode*/
+       TAPI_NETWORK_SELECTIONMODE_MANUAL,                              /**< Network selection is in Manual selection mode */
+       TAPI_NETWORK_SELECTIONMODE_GLOBAL_AUTOMAITIC,   /**<Global Automatic */
+       TAPI_NETWORK_SELECTIONMODE_CDMA                 /**<CDMA selection*/
+} TelNetworkSelectionMode_t;
+
+/**
+ * @enum TelNetworkServiceDomain_t
+ * This enumeration defines the network service domains .
+ */
+typedef enum {
+       TAPI_NETWORK_SERVICE_DOMAIN_COMBINED,           /**< This member sets the Circuit switch   and Packet Switch domain */
+       TAPI_NETWORK_SERVICE_DOMAIN_PS,                         /**< This member sets the Packet Switch service domain */
+       TAPI_NETWORK_SERVICE_DOMAIN_CS,                         /**< This member sets the Circuit Switch service domain */
+       TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC           /**< This member sets the service domain to Circuit Switch and Packet Switch or Circuit Switch or Packet Switch domain */
+} TelNetworkServiceDomain_t;
+
+/**
+ * @enum TelNetworkMode_t
+ * This enumeration defines the network modes.
+ */
+typedef enum {
+       TAPI_NETWORK_MODE_AUTO = 0x00,          /**< This member sets the network mode to GSM */
+       TAPI_NETWORK_MODE_GSM = 0x01,           /**< This member sets the network mode to GSM */
+       TAPI_NETWORK_MODE_WCDMA = 0x02,         /**< This member sets the network mode to WCDMA  */
+       TAPI_NETWORK_MODE_CDMA = 0x04,          /**< This member sets the network mode to CDMA */
+       TAPI_NETWORK_MODE_LTE = 0x08,           /**< This member sets the network mode to LTE */
+} TelNetworkMode_t;
+
+/**
+ * @enum TelNetworkServiceLevel_t
+ * This enumeration defines the status of network service.
+ */
+typedef enum {
+       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 */
+} TelNetworkServiceLevel_t;
+
+/**
+ * @enum TelNetworkServiceLevel_t
+ * This enumeration defines the service types of TAPI.
+ */
+typedef enum {
+       TAPI_NETWORK_SERVICE_TYPE_NO_SVE,               /**< No service  (This enumeration is not applicable for OEM_TAPI_NW_select_network_req API) */
+       TAPI_NETWORK_SERVICE_TYPE_LIMITED,              /**< Limited service available in the camped network  (This enumeration is not applicable for OEM_TAPI_NW_select_network_req API) */
+       TAPI_NETWORK_SERVICE_TYPE_CS,                   /**< CS service available in the camped network */
+       TAPI_NETWORK_SERVICE_TYPE_PS,                   /**< PS service available in the camped network */
+       TAPI_NETWORK_SERVICE_TYPE_COMBINED              /**< Both CS and PS services available in the camped network */
+} TelNetworkServiceType_t;
+
+/**
+ * @enum TelNetworkSystemType_t
+ * This enumeration defines the system types of TAPI.
+ */
+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 */
+       TAPI_NETWORK_SYSTEM_1X_EVDO_REV_A_HYBRID, /**< Available service is 1X and EV-DO revA */
+       TAPI_NETWORK_SYSTEM_EVDV,               /**< Available service is EV-DV */
+} TelNetworkSystemType_t;
+
+/**
+ *  @enum TelNetworkBandPreferred_t
+ * This enumeration defines the operations that can be done on network Band.
+ */
+typedef enum
+{
+       TAPI_NETWORK_BAND_MODE_PREFERRED = 0x01,                 /**<  Preferred band. (If preferred Band is not available, then underlying modem can search on other bands) */
+       TAPI_NETWORK_BAND_MODE_ONLY = 0x02,                              /**<   This allows only particular band. */
+} TelNetworkBandPreferred_t;
+
+/**
+ * @enum TelNetworkBand_t
+ * This enumeration defines different network Bands.
+ */
+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_GSM_850_1900     /**< This member sets the band to GSM 850_1900 */
+} TelNetworkBand_t;
+
+/**
+ * @enum TelNetworkOperationCause_t
+ * This enumeration defines different network operation cause.
+ */
+typedef enum
+{
+       TAPI_NETWORK_NO_ERR = 0x00,                                     /**< There is no error for any network operation.  */
+       TAPI_NETWORK_OPERATION_FAILED,                          /**< There is an error for any network operation.  */
+       TAPI_NETWORK_PHONE_IN_USE_ERR,                          /**< This error will be returned when any network operation is tried while 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 any network option is tried when phone is in offline mode */
+       TAPI_NETWORK_CONFIG_SETTINGS_FAILURE_ERR,       /**< This error is sent when modem is unable to process the config settings information. */
+       TAPI_NETWORK_INTERNAL_FAILURE_ERR,                      /**< This error to indicate internal failure */
+       TAPI_NETWORK_MEMORY_FULL_ERR                            /**< This error is caused by memory full */
+} TelNetworkOperationCause_t;
+
+
+/**
+ * @enum TelNetworkPreferredPlmnOp_t
+ * This enumeration defines the operation that can be done on preferred PLMN.
+ */
+typedef enum
+{
+       TAPI_NETWORK_PREF_PLMN_ADD=0x01,                        /**< Addition to  Network Preferred Plmn list*/
+       TAPI_NETWORK_PREF_PLMN_EDIT,                            /**< Edit the network Preferred Plmn list */
+       TAPI_NETWORK_PREF_PLMN_DELETE                           /**< Delete the entry to network Preferred Plmn list*/
+} TelNetworkPreferredPlmnOp_t;
+
+/**
+ * @enum TelNetworkPowerOnAttach_t
+ * This enumeration defines operation that can be done on power on attach.
+ * It is used on CDMA.
+ */
+typedef enum
+{
+       TAPI_NETWORK_SERVING_CARRIER_TEST = 0x00,                       /**< TestBed */
+       TAPI_NETWORK_SERVING_CARRIER_SKT,                                       /**< Korea SKT */
+       TAPI_NETWORK_SERVING_CARRIER_KTF,                                       /**< Korea KTF */
+       TAPI_NETWORK_SERVING_CARRIER_LGT,                                       /**< Korea LGT */
+       TAPI_NETWORK_SERVING_CARRIER_VERIZON = 0x11,            /**< US VERIZON */
+       TAPI_NETWORK_SERVING_CARRIER_SPRINT,                            /**< US SPRINT */
+       TAPI_NETWORK_SERVING_CARRIER_ALLTEL,                            /**< US ALLTEL */
+       TAPI_NETWORK_SERVING_CARRIER_METRO_PCS,                 /**< US METRO_PCS */
+       TAPI_NETWORK_SERVING_CARRIER_CELLULAR,                          /**< US CELLULAR */
+       TAPI_NETWORK_SERVING_CARRIER_CRIKET,                            /**< US CRIKET */
+       TAPI_NETWORK_SERVING_CARRIER_TELUS = 0x21,                      /**< CANADA TELUS */
+       TAPI_NETWORK_SERVING_CARRIER_BMC,                                       /**< CANADA BMC */
+       TAPI_NETWORK_SERVING_CARRIER_BWA,                                       /**< CANADA BWA */
+       TAPI_NETWORK_SERVING_CARRIER_CTC = 0x31,                        /**< CHINA CTC */
+       TAPI_NETWORK_SERVING_CARRIER_UNKNOWN = 0xFF             /**< SERVING NETWORK UNKNOWN */
+} TelNetworkServCarrierType_t;
+
+/**
+ * @enum TelNetworkPlmnType_t
+ * This structure defines Network Plmn type.
+ */
+typedef enum
+{
+       TAPI_UNKNOWN_PLMN=0,                            /**< Network Plmn type Unknown */
+       TAPI_HOME_PLMN ,                                        /**< Network Plmn type Home Plmn */
+       TAPI_AVAILABLE_PLMN,                            /**< Network Plmn Available */
+       TAPI_FORBIDDEN_PLMN,                            /**< Network Plmn Forbidden */
+}TelNetworkPlmnType_t;
+
+/**
+ * @enum TelNetworkHomeZoneCommand_t
+ * This enumeration defines network home zone command.
+ */
+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;
+
+/**
+ * @enum TelNetworkHomeZone_t
+ * This enumeration defines network home zone type.
+ */
+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;
+
+/**
+ * @enum TelNetworkNameDispCondition_t
+ * This enumeration defines network name display condition type.
+ */
+typedef enum
+{
+       TAPI_NETWORK_DISP_INVALID= 0x00,
+       TAPI_NETWORK_DISP_SPN = 0x01,
+       TAPI_NETWORK_DISP_PLMN = 0x02,
+       TAPI_NETWORK_DISP_SPN_PLMN = 0x03,
+}TelNetworkNameDispCondition_t;
+
+/**
+ * @enum TelNetworkPrefNetType_t
+ * This enumeration defines CDMA Preferred Network Type(CDMA only).
+ */
+typedef enum
+{
+    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC = 0x01,               /**< 0x01 : AUTOMATIC */
+    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_A,                    /**<  0x02 : AUTOMATIC A */
+    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_B,                    /**<  0x03 : AUTOMATIC B */
+    TAPI_NETWORK_PREF_NET_TYPE_HOME_ONLY,                      /**<  0x04 : HOME ONLY */
+    TAPI_NETWORK_PREF_NET_TYPE_ROAM_ONLY,                      /**<  0x05 : ROAM ONLY */
+} TelNetworkPrefNetType_t;
+
+/**
+ * @enum TelNetworkPrlPrefOnly_t
+ * This enumeration defines CDMA PRL Preferred Only field stored in the PRL(CDMA only).
+ */
+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 Preferred Only Option */
+} TelNetworkPrlPrefOnly_t;
+
+/**
+ * @enum TelNetworkCDMAHybridMode_t
+ * This enumeration defines CDMA Hybrid Mode State(CDMA only).
+ */
+typedef enum
+{
+    TAPI_NETWORK_CDMA_HYBRID = 0x01,   /**< 0x01 : HYBRID(1X + EVDO) */
+    TAPI_NETWORK_CDMA_1X_ONLY,         /**< 0x02 : 1X ONLY */
+    TAPI_NETWORK_CDMA_EVDO_ONLY,               /**< 0x03 : EVDO ONLY */
+}TelNetworkCDMAHybridMode_t;
+
+
+/**
+ * This structure has information related to cdma system.
+ */
+typedef struct {
+       TelNetworkServCarrierType_t carrier; /**< for CDMA, Optional */
+       unsigned short system_id; /**< for CDMA, Mandatory */
+       unsigned short network_id; /**< for CDMA, Mandatory */
+       unsigned short base_station_id; /**< for CDMA, Mandatory */
+       unsigned short base_station_latitude; /**< for CDMA, Mandatory */
+       unsigned short base_station_longitude; /**< for CDMA, Mandatory */
+       unsigned short registration_zone; /**< for CDMA, Optional */
+       unsigned short pilot_offset; /**< for CDMA, Optional */
+} TelNetworkCDMASysInfo_t;
+
+/**
+ *
+ * This structure defines the preferred plmn information.
+ */
+typedef struct {
+       unsigned char Index; /**< Network Preferred Plmn list index */
+       char Plmn[7]; /**< Network Preferred Plmn */
+       char network_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network Name  */
+       char service_provider_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Service provider name */
+       TelNetworkSystemType_t SystemType; /**< Network system type */
+} TelNetworkPreferredPlmnInfo_t;
+
+/**
+ *
+ * This structure defines the preferred plmn list.
+ */
+typedef struct {
+       unsigned int NumOfPrefPlmns; /**< Number of preferred plmns in the list */
+       TelNetworkPreferredPlmnInfo_t PrefPlmnRecord[TAPI_PREFERRED_PLMN_RECORDS_MAX]; /**< preferred plmns list */
+} TelNetworkPreferredPlmnList_t;
+
+/**
+ *
+ * This structure defines the location area code and cell id.
+ */
+typedef struct {
+       unsigned short LocationAreaCode; /**< Network Location area code */
+       unsigned long CellId; /**< Network Cell Id */
+} TelNetworkLocationCellInfo_t;
+
+/**
+ *
+ * This structure defines the network status .
+ */
+typedef struct {
+       unsigned char svctype; /**< Network svc type  */
+       unsigned char roaming; /**< Network roaming  */
+} TelNetworkStatus_t;
+
+/**
+ *
+ * This structure defines the network Cs,Ps status.
+ */
+typedef struct {
+       unsigned char cstype; /**< Network Cs type  */
+       unsigned char pstype; /**< Network Ps type  */
+} TelNetworkCsPsStatus_t;
+
+/**
+ *   TelNetworkIdentity_t
+ * This structure defines the network identity.
+ */
+typedef struct {
+       char network_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network Name  */
+       char service_provider_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Service provider name */
+       unsigned int plmn_id; /**< PLMN ID */
+       TelNetworkPlmnType_t type_of_plmn; /**< PLMN type */
+       TelNetworkSystemType_t access_technology; /**< Access technology  */
+} TelNetworkIdentity_t;
+
+/**
+ *
+ * This structure defines the network Plmn list.
+ */
+typedef struct {
+       char networks_count; /**< Network Plmn count  */
+       TelNetworkIdentity_t network_list[TAPI_NETWORK_LIST_MAX]; /**< Network list  */
+} TelNetworkPlmnList_t;
+
+/**
+ *
+ * This structure defines the network display info.
+ */
+typedef struct {
+       int DisplayInfo[TAPI_NETWORK_DISPLAY_INFO_ELEMENTS]; /**< Network display info  */
+} TelNetworkDisplayInfo_t;
+
+typedef struct {
+       TelNetworkNameDispCondition_t DispCondition; /*Display condition of SPN & PLMN*/
+       unsigned char Spn[TAPI_NETWORK_SPN_LEN_MAX + 1]; /*Spn value*/
+       unsigned char Plmn[TAPI_NETWORK_NAME_LEN_MAX + 1]; /*PLMN value,  In 2G case if DispPlmn is true and the PLMN value is null then Network module has to display registered PLMN*/
+} TelNetworkSpnPlmnDisplayInfo_t;
+
+/**
+ *  * @struct TelNetworkSpnMccMncInfo_t
+ * This structure defines the network Spn, Mcc and Mnc info.
+ */
+typedef struct {
+       int mcc; /**< Network mcc  */
+       int mnc; /**< Network Mnc  */
+       char bDispCondition; /**<Display condition */
+       char short_network_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network short Name  */
+       char spn_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network spn Name  */
+} TelNetworkSpnMccMncInfo_t;
+
+
+typedef struct {
+       TelNetworkSystemType_t act; /**< Access technology  */
+       char plmn[7];
+       int lac;
+} TelNetworkServing_t;
+
+
+
+/**
+ * NEW NEW NEW
+ */
+struct tel_noti_network_registration_status {
+       int cs;
+       int ps;
+       int type;
+       int is_roaming;
+};
+
+struct tel_noti_network_info {
+       int rssi;
+       int battery;
+};
+
+struct tel_noti_network_cell_info {
+       int lac;
+       int cell_id;
+};
+
+struct tel_noti_network_change {
+       TelNetworkSystemType_t act; /**< Access technology  */
+       char plmn[7];
+       int lac;
+};
+
+struct tel_noti_network_time_info {
+       int year;
+       int month;
+       int day;
+       int hour;
+       int minute;
+       int second;
+       int wday;
+       int gmtoff;
+       int dstoff;
+       int isdst;
+       char plmn[7];
+};
+
+struct  tel_noti_network_identity {
+       char plmn[7];
+       char short_name[17];
+       char full_name[33];
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _TEL_NETWORK_H_
+
+/**
+* @}
+*/
diff --git a/include/TelPower.h b/include/TelPower.h
new file mode 100644 (file)
index 0000000..ffeb191
--- /dev/null
@@ -0,0 +1,96 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @internal
+ * @ingroup            TelephonyAPI
+ * @addtogroup POWER_TAPI      POWER
+ * @{
+ *
+ * These APIs allow an application to accomplish the following services: @n
+ * - Get current phone power status,  @n
+ * - Reset the phone power (on / off), @n
+ * - Get the Display Icon Information. @n
+ */
+
+#ifndef _TEL_POWER_H_
+#define _TEL_POWER_H_
+
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * This defines the phone power reset commands.
+ */
+typedef enum {
+       TAPI_PHONE_POWER_OFF = 0, TAPI_PHONE_POWER_ON, TAPI_PHONE_POWER_RESET,
+} tapi_power_phone_cmd_t;
+
+/**
+ * This defines the phone power status values.
+ */
+typedef enum {
+       TAPI_PHONE_POWER_STATUS_ON = 0, TAPI_PHONE_POWER_STATUS_OFF, TAPI_PHONE_POWER_STATUS_ERROR,
+} tapi_power_phone_power_status_t;
+
+/**
+ * Use to Enter or Leave Flight Mode.
+ *
+ */
+typedef enum {
+       TAPI_POWER_FLIGHT_MODE_ENTER = 0x01, /**< ONLINE OFF */
+       TAPI_POWER_FLIGHT_MODE_LEAVE, /**< ONLINE ON */
+       TAPI_POWER_FLIGHT_MODE_MAX
+} tapi_power_flight_mode_type_t;
+
+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
+} tapi_power_flight_mode_resp_type_t;
+
+/**
+ * This enum defines the phone battery status levels.
+ *
+ * 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
+ */
+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
+
+#endif /* _TEL_POWER_H_ */
+
+/**
+ * @}
+ */
diff --git a/include/TelSat.h b/include/TelSat.h
new file mode 100644 (file)
index 0000000..cd81362
--- /dev/null
@@ -0,0 +1,715 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  SAT_TAPI        SAT
+* @{
+*
+* @file TelSat.h
+
+     @brief This file serves as a "C" header file defines structures for Telephony SAT Services. \n
+      It contains a sample set of constants, enums, structs that would be required by applications.
+
+
+ */
+
+#ifndef _TEL_SAT_H_
+#define _TEL_SAT_H_
+
+#include <TelDefines.h>
+#include <TelCall.h>
+#include <TelSs.h>
+#include <TelSatObj.h>
+#include <TelSatProactvCmd.h>
+#include <TelSatEnvelope.h>
+#include <TelSim.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#define TAPI_SAT_DEF_TITLE_LEN_MAX                     50 /**< max length for Menu Title */
+#define TAPI_SAT_DEF_ITEM_STR_LEN_MAX          50 /**< max length for Menu Item  */
+#define TAPI_SAT_DEF_TEXT_STRING_LEN_MAX       500 /**< max length for Text String  */
+#define TAPI_SAT_DEF_BIT_MASK_CONTACT          0x01 /**< Bit Mask for Contact */
+#define TAPI_SAT_DEF_BIT_MASK_MSG                      0x02 /**< Bit Mask for Msg */
+#define TAPI_SAT_DEF_BIT_MASK_OTHER                    0x04 /**< Bit Mask for Psh */
+#define TAPI_SAT_REFRESH_FILE_LIST                     20 /**< Refresh File List*/
+#define TAPI_SAT_DEF_SS_LEN_MAX             250
+#define TAPI_SAT_DEF_USSD_LEN_MAX           250
+
+//     Telephony UI USER CONFIRM TYPE
+/**
+ * @enum TelSatUiUserConfirmType_t
+ * This enumeration defines the UI User Confirm Type.
+ */
+typedef enum
+{
+       TAPI_SAT_USER_CONFIRM_YES,                                              /**<This Enum Informs That user confirms yes */
+       TAPI_SAT_USER_CONFIRM_NO_OR_CANCEL,                             /**<This enum informs that user confirms no/cancel */
+       TAPI_SAT_USER_CONFIRM_HELP_INFO,                                /**<This enum informs that user wants help information */
+       TAPI_SAT_USER_CONFIRM_END,                                              /**<This enum informs that user confirms end */
+       TAPI_SAT_USER_CONFIRM_TIMEOUT,                                  /**<This enum informs that user did not respond */
+}TelSatUiUserConfirmType_t;
+
+//     Telephony UI INKEY TYPE
+/**
+ * @enum TelSatUiInkeyYesNoCaseType_t
+ * This enumeration defines the UI Inkey Type Yes or No.
+ */
+typedef enum
+{
+       TAPI_SAT_INKEY_CONFIRM_NO                               = 0x00,                 /**<No*/
+       TAPI_SAT_INKEY_CONFIRM_YES                              = 0x01,                 /**<Yes*/
+}TelSatUiInkeyYesNoCaseType_t;
+
+//     Telephony UI DISPLAY STATUS
+/**
+ * @enum TelSatUiDisplayStatusType_t
+ * This enumeration defines the UI Display Status.
+ */
+typedef enum
+{
+       TAPI_SAT_DISPLAY_SUCCESS                                = 0x00,                                 /**<This enum informs  UI display success*/
+       TAPI_SAT_DISPLAY_FAIL                                   = 0x01,                                 /**<This enum informs  UI display failure*/
+}TelSatUiDisplayStatusType_t;
+
+//     TELEPHONY REFRESH APPLICATION TYPE
+/**
+ * @enum TelSatRefreshAppType_t
+ * This enumeration defines the Refresh Application Type.
+ */
+ 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
+/**
+ * @enum TelSatCommandPerformResultType_t
+ * This enumeration defines the Result of Proactive Command execution.
+ */
+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
+/**
+ * @enum TelSatCallCtrlType_t
+ * This enumeration defines Call Control Type.
+ */
+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
+/**
+ * This structure defines the user confirmation data.
+ */
+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
+/**
+ * This structure defines the character data for sat engine data structure.
+ */
+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
+/**
+ * This structure defines the main menu title to check sat menu.
+ */
+typedef struct
+{
+       int                             bIsMainMenuPresent;             /**<flag to check sat main menu existence*/
+       TelSatTextInfo_t        mainMenuTitle;                  /**<main menu title data*/
+}TelSatMainMenuTitleInfo_t;
+
+//     Telephony DISPLAY TEXT DATA
+/**
+ * This structure defines the display text proactive command for sat ui.
+ */
+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 display */
+       int                                                     bIsPriorityHigh;                        /**<indicates whether the text is to be displayed if some other app is using the screen.*/
+       int                                                     bIsUserRespRequired;            /**<indicates whether user response required or Not*/
+       TelSatIconIdentifierInfo_t      iconId;                                         /**< Icon Identifier */
+}TelSatDisplayTextInd_t;
+
+//     Telephony INKEY DATA
+/**
+ * This structure defines the get inkey proactive command data for sat ui.
+ */
+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 screen*/
+       unsigned int                                    duration;                               /**<the duration of display*/
+       TelSatIconIdentifierInfo_t              iconId;                                 /**<Icon Identifier*/
+}TelSatGetInkeyInd_t;
+
+//     Telephony GET INPUT DATA
+/**
+ * This structure defines the get input proactive command data for sat ui.
+ */
+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;   /**<flag for help info request */
+       int                                                     bIsEchoInput;                   /**<indicates whether to show input data on screen or not*/
+       TelSatTextInfo_t                                text;                                   /**<character data to display on 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
+/**
+ * This structure defines the play tone proactive command data for application.
+ */
+typedef struct
+{
+       int                                             commandId;      /**<Proactive Command Number sent by USIM*/
+       TelSatTextInfo_t                        text;           /**<character data to display on screen*/
+       TelSatToneInfo_t                        tone;           /**<tone info   */
+       TelSatDurationInfo_t            duration;       /**<the duration for playing tone*/
+       TelSatIconIdentifierInfo_t      iconId;         /**<Icon Identifier*/
+}TelSatPlayToneInd_t;
+
+//     Telephony UI info
+/**
+ * This structure defines the data for sat ui.
+ */
+typedef struct
+{
+       int                                             commandId;              /**<Proactive Command Number sent by USIM*/
+       int                                             user_confirm;
+       TelSatTextInfo_t                        text;                   /**<character data to display on screen*/
+       TelSatIconIdentifierInfo_t      iconId;                 /**<Icon Identifier*/
+}TelSatSendUiInfo_t;
+
+//     Telephony MENU ITEM DATA FOR SETUP MENU
+/**
+ * This structure defines the menu item info for setup menu.
+ */
+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 user selected*/
+}TelSatMenuInfo_t;
+
+//     Telephony SETUP MENU INFO
+/**
+ * This structure defines the sat main menu info.
+ */
+typedef struct
+{
+       int commandId;  /**<Proactive Command Number sent by USIM*/
+       int     bIsMainMenuPresent;
+       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 help information request */
+       int     bIsUpdatedSatMainMenu;
+       TelSatIconIdentifierInfo_t iconId;      /**<Icon Identifier*/
+       TelSatIconIdentifierListInfo_t iconIdList;      /**<List of Icon Identifiers*/
+}TelSatSetupMenuInfo_t;
+
+//     Telephony SELECT ITEM DATA
+/**
+ * This structure defines the select item proactive command data for sat ui.
+ */
+typedef struct
+{
+       int                                                     commandId;                                                                      /**<Proactive Command Number sent by USIM*/
+       int                                                     bIsHelpInfoAvailable;                                           /**<flag for help information request*/
+       TelSatTextInfo_t                                text;                                                                           /**<menu title text*/
+       char                                                    defaultItemIndex;                                                       /**<selected default item - default value is 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
+/**
+ * This structure defines the setup idle mode text proactive command for idle application.
+ */
+typedef struct
+{
+       int                                             commandId;                      /**<Proactive Command Number sent by USIM*/
+       TelSatTextInfo_t                        text;                           /**<character data to display on screen*/
+       TelSatIconIdentifierInfo_t      iconId;
+} TelSatSetupIdleModeTextInd_t;
+
+//     Telephony REFRESH DATA
+/**
+ * This structure defines the refresh proactive command data for sat ui.
+ */
+typedef struct
+{
+       int                                                     commandId;                      /**<Proactive Command Number sent by USIM*/
+       TelSatCmdQualiRefresh_t         refreshType;            /**<refresh mode*/
+}TelSatRefreshIndUiInfo_t;
+
+//     Telephony REFRESH DATA
+/**
+ * This structure defines the refresh proactive command data for applications which are concerned with files resident on USIM .
+ */
+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
+/**
+ * This structure defines the data objects to indicate to sat ui, the end of execution of a specific proactive command by other application.
+ */
+typedef struct
+{
+       int                                                                     commandId;                      /**<Proactive Command Number sent by USIM*/
+       char                                                                    commandType;            /**< Command Type*/
+       TelSatCommandPerformResultType_t                result;                         /**<result of command execution by application*/
+}TelSatProactiveCmdEndIndInfo_t;
+
+//     Telephony SEND SMS DATA
+/**
+ * This structure defines the send sms proactive command data for sms application.
+ */
+typedef struct
+{
+       int                                     commandId;                              /**<Proactive Command Number sent by USIM*/
+       int                                     bIsPackingRequired;             /**<flag to check if packing required for sms tpdu*/
+       TelSatAddressInfo_t     address;                                /**<destination address*/
+       TelSatSmsTpduInfo_t     smsTpdu;                                /**<SMS TPDU data*/
+} TelSatSendSmsIndSmsData_t;
+
+//     Telephony SEND SS DATA
+/**
+ * This structure defines the send ss proactive command data for ss application.
+ */
+typedef struct
+{
+       int                                     commandId;              /**<Proactive Command Number sent by USIM*/
+       unsigned short          ssStringLen;
+       unsigned char           ssString[TAPI_SAT_DEF_SS_LEN_MAX+1];
+}TelSatSendSsIndSsData_t;
+
+//     Telephony USSD DATA
+/**
+ * This structure defines the send ussd proactive command data for ussd application.
+ */
+typedef struct
+{
+       int                     commandId;              /**<Proactive Command Number sent by USIM*/
+       unsigned char           rawDcs;                 /**<data coding scheme*/
+       unsigned short          ussdStringLen;
+       unsigned char           ussdString[TAPI_SAT_DEF_USSD_LEN_MAX+1];
+}TelSatSendUssdIndUssdData_t;
+
+//     Telephony SEND DTMF DATA
+/**
+ * This structure defines the send dtmf proactive command data for dtmf application.
+ */
+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
+/**
+ * This structure defines the setup call proactive command data for call application.
+ */
+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 call application*/
+}TelSatSetupCallIndCallData_t;
+
+//     Telephony LAUNCH BROWSER DATA
+/**
+ * This structure defines the launch browser proactive command data for browser application.
+ */
+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, etc*/
+}TelSatLaunchBrowserIndBrowserData_t;
+
+//     Telephony PROVIDE LOCAL INFO DATA
+/**
+ * This structure defines the provide local info proactive command data for application.
+ */
+typedef struct
+{
+       int commandId;                                                                          /**<Proactive Command Number sent by USIM*/
+       TelSatCmdQualiProvideLocalInfo_t localInfoType;         /**<Provide Local Information Type*/
+}TelSatProvideLocalInfoInd_t;
+
+//     Telephony LANGUAGE NOTIFICATION DATA
+/**
+ * This structure defines the language notification proactive command data for application.
+ */
+typedef struct
+{
+       int                                                     commandId;                                              /**<Proactive Command Number sent by USIM*/
+       int                                                     bSpecificLanguageNotification;  /**<flag for checking specific language notification. if FALSE, non-specific language notification      */
+       TelSatLanguageInfo_t                    language;                                       /**<language info from USIM application */
+}TelSatLanguageNotiInfoInd_t;
+
+//     Telephony PLAY TONE RETURN INFO
+/**
+ * This structure defines the return result data for Play Tone proactive command.
+ */
+typedef struct
+{
+       TelSatResultType_t      resp;                   /**<result response value*/
+}TelSatSetupMenuRetInfo_t;
+
+//     Telephony REFRESH RETURN INFO
+/**
+ * This structure defines the return result data for refresh proactive command.
+ */
+typedef struct
+{
+       TelSatRefreshAppType_t  appType;                        /**<application type*/
+       TelSatResultType_t              resp;                           /**<result response value*/
+}TelSatRefreshRetInfo_t;
+
+//     Telephony CALL RETURN INFO
+/**
+ * This structure defines the return result data for setup call proactive command.
+ */
+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
+/**
+ * This structure defines the return result data for send ss proactive command.
+ */
+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
+/**
+ * This structure defines the return result data for send ussd proactive command.
+ */
+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
+/**
+ * This structure defines the return result data for send sms proactive command.
+ */
+typedef struct
+{
+       TelSatResultType_t      resp;                   /**<result response value*/
+}TelSatSmsRetInfo_t;
+
+//     Telephony DTMF RETUEN INFO
+/**
+ * This structure defines the return result data for send dtmf proactive command.
+ */
+typedef struct
+{
+       TelSatResultType_t      resp;                   /**<result response value*/
+}TelSatDtmfRetInfo_t;
+
+//     Telephony BROWSER RETURN INFO
+/**
+ * This structure defines the return result data for launch browser proactive command.
+ */
+typedef struct
+{
+       TelSatResultType_t                                      resp;                   /**<result response value*/
+       TelSatLaunchBrowserProblemType_t    browserProblem;     /**<specific browser problem*/
+}TelSatBrowserRetInfo_t;
+
+//     Telephony SETUP IDLE MODE TEXT RETURN INFO
+/**
+ * This structure defines the return result data for setup idle mode text proactive command.
+ */
+typedef struct
+{
+       TelSatResultType_t      resp;                   /**<result response value*/
+}TelSatIdleTextRetInfo_t;
+
+//     Telephony PLAY TONE RETURN INFO
+/**
+ * This structure defines the return result data for Play Tone proactive command.
+ */
+typedef struct
+{
+       TelSatResultType_t      resp;                   /**<result response value*/
+}TelSatPlayToneRetInfo_t;
+
+//     Telephony  PROVIDE LOCAL INFO RETURN INFO
+/**
+ * This structure defines the return result data for setup idle mode text proactive command.
+ */
+typedef struct
+{
+       TelSatResultType_t                                      resp;                   /**<result response value*/
+       int                                                             bOtherInfo;             /**<flag to check whether other information are required or not */
+       TelSatCmdQualiProvideLocalInfo_t        infoType;               /**<local info type - e.g. time zone or language info, etc      */
+       union
+       {
+               TelSatDataTimeZoneInfo_t                timeZoneInfo;   /**<    current time zone info  */
+               TelSatLanguageInfo_t                    languageInfo;   /**<    current ME language setting info        */
+       }u;                                                                                                     /**<    Union*/
+}TelSatProvideLocalRetInfo_t;
+
+//     Telephony LANGUAGE NOTI RETURN INFO
+/**
+ * This structure defines the return result data for setup idle mode text proactive command.
+ */
+typedef struct
+       {
+               TelSatResultType_t               resp;                          /**<result response value*/
+       }TelSatLanguageNotiRetInfo_t;
+
+//     Telephony DISPLAY TEXT RETURN INFO
+/**
+ * This structure defines the return result data for setup idle mode text proactive command.
+ */
+typedef struct
+       {
+               TelSatResultType_t               resp;                          /**<result response value*/
+               TelSatMeProblemType_t    meProblem;                     /**<Me Problem Type */
+       }TelSatDiplayTextRetInfo_t;
+
+//     Telephony APPLICATIONS RETURN DATA
+/**
+ * This structure defines the common return result data for applications proactive command.
+ */
+typedef struct
+{
+       TelSatCommandType_t     commandType;                                            /**<Proactive Command type*/
+       int commandId;                                                                                  /**<Proactive Command Number sent by USIM*/
+       union
+               {
+                       TelSatSetupMenuRetInfo_t        setupMenu;                      /**<result response value for setup menu*/
+                       TelSatRefreshRetInfo_t          refresh;                                /**<result response value for refresh*/
+                       TelSatCallRetInfo_t                     setupCall;                              /**<result response value for setup call*/
+                       TelSatSsRetInfo_t                       sendSs;                                 /**<result response value for send ss*/
+                       TelSatUssdRetInfo_t                     sendUssd;                               /**<result response value for send ussd*/
+                       TelSatSmsRetInfo_t                      sendSms;                                /**<result response value for send sms*/
+                       TelSatDtmfRetInfo_t                     sendDtmf;                               /**<result response value for send dtmf*/
+                       TelSatBrowserRetInfo_t          launchBrowser;                  /**<result response value for launch browser*/
+                       TelSatIdleTextRetInfo_t         setupIdleModeText;              /**<result response value for setup idle mode text*/
+                       TelSatLanguageNotiRetInfo_t     languageNoti;                   /**<result response value for language notification*/
+                       TelSatProvideLocalRetInfo_t provideLocalInfo;           /**<result response value for provide local info*/
+                       TelSatDiplayTextRetInfo_t   displayText;                        /**<result response value for dsiplay text*/
+                       TelSatPlayToneRetInfo_t     playTone;                           /**<result response value for play tone*/
+               }appsRet;                                                                                               /**< common union result value */
+}TelSatAppsRetInfo_t;
+
+//     Telephony CALL CONTROL CONFIRM  DATA FOR CALL
+/**
+ * This structure defines the call control confirm data for call.
+ */
+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
+/**
+ * This structure defines the call control confirm data for ss.
+ */
+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
+/**
+ * This structure defines the call control confirm data for ussd.
+ */
+typedef struct
+{
+       TelSatTextInfo_t                ussdString;                     /**< ussd destination address*/
+} TelSatCallCtrlIndUssdData_t;
+
+//     Telephony READ FILE REQUEST DATA
+/**
+ * This structure defines the common call control confirm data.
+ */
+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*/
+} TelSatCallCtrlIndData_t;
+
+//     Telephony MO SMS CONTROL CONFIRMATION DATA
+/**
+ * This structure defines the mo sms control confirm data.
+ */
+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
+/**
+ * This structure defines the Event List Info.
+ */
+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;
+
+/**
+ * This is the structure to be used by the Application to send envelope/event download data.
+ * This contains the data structures to be used to send any envelope/event download data.
+ */
+typedef struct
+{
+       TelSatEventDownloadType_t                                       eventDownloadType;                              /**<    eventDownload Type      */
+
+       union
+       {
+               int                                                                     bIdleScreenAvailable;                   /**<flag to specify whether Idle Screen is Available or not*/
+               TelSatLanguageSelectionEventReqInfo_t   languageSelectionEventReqInfo;  /**<Selected Language Information*/
+               TelSatBrowserTerminationEventReqInfo_t  browserTerminationEventReqInfo; /**<BrowserTermination Event Information        */
+               TelSatDataAvailableEventReqInfo_t               dataAvailableEventReqInfo;              /**<dataAvailableEventReqInfo   */
+               TelSatChannelStatusEventReqInfo_t               channelStatusEventReqInfo;              /**<channelStatusEventReqInfo   */
+       } u;                                                                                                                                            /**<Union*/
+} TelSatEventDownloadReqInfo_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _TEL_SAT_H_ */
+
+/**
+* @}
+*/
diff --git a/include/TelSatEnvelope.h b/include/TelSatEnvelope.h
new file mode 100644 (file)
index 0000000..0232bff
--- /dev/null
@@ -0,0 +1,225 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  SAT_TAPI        SAT
+* @{
+*
+* @file TelSatEnvelope.h
+
+     @brief This file serves as a "C" header file defines structures for Tapi Sat envelope command Services. \n
+      It contains a sample set of constants, enums, structs that would be required by applications.
+ */
+
+#ifndef _TEL_SAT_ENVELOPE_H_
+#define _TEL_SAT_ENVELOPE_H_
+
+#include <TelSatObj.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @enum TelSatCallType_t
+ * This enum indicates the SAT call type
+ */
+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;
+
+/**
+ * @enum TelSatCallCtrlResultType_t
+ * This enum indicates the result of call control by SIM.
+ */
+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;
+
+/**
+ * @enum TelSatEnvelopeResp_t
+ * This enum indicates the general result of sending an envelope command to USIM.
+ */
+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;
+
+//     8.      MENU SELECTION
+/**
+ * This structure contains the data objects for MENU SELECTION envelope.
+ */
+typedef struct
+{
+       unsigned char           itemIdentifier;         /**<    menu selection item identifier  */
+       int                             bIsHelpRequested;       /**<    flag to check whether help information required or not  */
+} TelSatMenuSelectionReqInfo_t;
+
+//     9.1 CALL CONTROL BY SIM
+/**
+ * This struct contains the data objects for Call Control result data sent by USIM.
+ */
+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 parameter1     */
+       TelSatCapaConfigParamInfo_t             ccp2;                           /**<    capability configuration parameter2     */
+}TelSatVoiceCallCtrlIndInfo_t;
+
+/**
+ * This struct contains SAT ss control result data sent by USIM.
+ */
+typedef struct
+{
+       TelSatSsStringInfo_t                    ssString;                       /**<    ss number       */
+       TelSatSubAddressInfo_t                  subAddress;                     /**<    ss sub address */
+       TelSatBcRepeatIndicatorType_t   bcRepeatIndicator;      /**<    bc repeat indicator     */
+       TelSatCapaConfigParamInfo_t             ccp1;                           /**<    capability configuration parameter1     */
+       TelSatCapaConfigParamInfo_t             ccp2;                           /**<    capability configuration parameter2     */
+}TelSatSsCtrlIndInfo_t;
+
+/**
+ * This struct contains SAT mo SMS control configuration data
+ */
+typedef struct
+{
+       TelSatAddressInfo_t             rpDestAddress;  /**<    sms control rp destination address      */
+       TelSatAddressInfo_t             tpDestAddress;  /**<    sms control tp destination address      */
+} TelSatMoSmsCtrlIndInfo_t;
+
+/**
+ * This struct contains SAT call control configuration data
+ */
+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           */
+} TelSatCallCtrlIndInfo_t;
+
+//     9.2 MO SHORT MESSAGE CONTROL BY SIM RESULT
+/**
+ * This struct contains SAT mo ss control request data
+ */
+ 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
+/**
+ * This struct contains SAT user activity event request data
+ */
+typedef struct
+{
+       TelSatEventListInfo_t                           eventList;                      /**<    event List      */
+       TelSatDeviceIdentitiesInfo_t            deviceIdentities;       /**<    device identities info  */
+
+} TelSatUserActivityEventReqInfo_t;
+
+//     11.6 EVENT DOWNLOAD - IDLE SCREEN AVAILABLE EVENT
+/**
+ * This structure contains the data objects for IDLE SCREEN AVAILABLE event download.
+ */
+typedef struct
+{
+       TelSatEventDownloadType_t       eventData;      /**<    event type      */
+} TelSatIdleScreenAvailableEventReqInfo_t;
+
+//     11.8 EVENT DOWNLOAD - LANGUAGE SELECTION EVENT
+/**
+ * This structure contains the data objects for LANGUAGE SELECTION event download.
+ */
+typedef struct
+{
+       TelSatLanguageType_t     language;              /**<    selected language info  */
+} TelSatLanguageSelectionEventReqInfo_t;
+
+//     11.9 EVENT DOWNLOAD - BROWSER TERMINATION EVENT
+/**
+ * This structure contains the data objects for BROWSER TERMINATION event download.
+ */
+typedef struct
+{
+       TelSatBrowserTerminationCauseType_t             browserTerminationCause;        /**<    browser Termination Cause       */
+} TelSatBrowserTerminationEventReqInfo_t;
+
+//     11.10 EVENT DOWNLOAD - DATA AVAILABLE EVENT
+/**
+ * This struct contains SAT data available event request data
+ */
+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
+/**
+ * This struct contains SAT channel status even request data
+ */
+typedef struct
+{
+       TelSatEventListInfo_t                   eventList;                      /**<    event list      */
+       TelSatDeviceIdentitiesInfo_t    deviceIdentities;       /**<    device identities info  */
+       TelSatChannelStatusInfo_t               channelStatus;          /**<    channel Status  */
+} TelSatChannelStatusEventReqInfo_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _TEL_SAT_ENVELOPE_H_ */
+
+/**
+ * @}
+ */
diff --git a/include/TelSatObj.h b/include/TelSatObj.h
new file mode 100644 (file)
index 0000000..7c75233
--- /dev/null
@@ -0,0 +1,1399 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup         SAT_TAPI        SAT
+ * @{
+ *
+ * @file TelSatObj.h
+
+ @brief This file serves as a "C" header file defines structures for Telephony SAT Services. \n
+ It contains a sample set of constants, enums, structs that would be required by applications.
+ */
+
+#ifndef _TEL_SAT_OBJ_H_
+#define _TEL_SAT_OBJ_H_
+
+#include <TelDefines.h>
+#include <TelSim.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#define EXTENDED_ASCII 1
+
+#define TAPI_SAT_DIALLING_NUMBER_LEN_MAX                               200      /**<   max length of dialing number            */
+#define TAPI_SAT_ALPHA_ID_LEN_MAX                                              255      /**<   max length of  alpha identifier         */
+#define TAPI_SAT_TEXT_STRING_LEN_MAX                                   500      /**<   max length of text string -when the string data is in 7Bit packed format, this length is not enough to support the maximum size so should increase the value to a value > 275 */
+#define TAPI_SAT_SUB_ADDR_LEN_MAX                                              30       /**<   max length of sub address               */
+#define TAPI_SAT_CCP_DATA_LEN_MAX                                              30       /**<   max length of ccp data          */
+#define TAPI_SAT_ITEM_TEXT_LEN_MAX                                             45       /**<   max length of item text                 */
+#define TAPI_SAT_SMS_TPDU_SMS_DATA_LEN_MAX                             175      /**<   max length of sms tpdu data             */
+#define TAPI_SAT_SS_STRING_LEN_MAX                                             160      /**<   max length of ss string         */
+#define TAPI_SAT_USSD_STRING_LEN_MAX                                   255      /**<   max length of ussd string               */
+#define TAPI_SAT_FILE_ID_LIST_MAX_COUNT                                        255      /**<   max count of file id list               */
+#define TAPI_SAT_ITEMS_NEXT_ACTION_INDI_LIST_MAX_COUNT 50       /**<   max count of items next action indication list  */
+#define TAPI_SAT_EVENT_LIST_MAX_COUNT                                  17       /**<   max count of sat event list             */
+#define TAPI_SAT_IMG_INSTANT_RAW_DATA_LEN_MAX                  256      /**<   max length of image instant raw         */
+#define TAPI_SAT_CLUT_DATA_LEN_MAX                                             256      /**<   max length of clut data                 */
+#define TAPI_SAT_IMG_DATA_FILE_PATH_LEN_MAX                            50       /**<   max length of image data file name (Icon, CLUT)         */
+#define TAPI_SAT_ICON_LIST_MAX_COUNT                                   50       /**<   max count of icon list          */
+#define TAPI_SAT_DTMF_STRING_LEN_MAX                                   30       /**<   max length of dtmf string               */
+#define TAPI_SAT_DATE_TIME_AND_TIME_ZONE_LEN                   7        /**<   max length of date time and time zone           */
+#define TAPI_SAT_URL_LEN_MAX                                                   129      /**<   max length of url               */
+#define TAPI_SAT_BEARER_LIST_MAX_COUNT                                 50       /**<   max count of bearer list                */
+#define TAPI_SAT_PROVISIONING_FILE_PATH_LEN_MAX                        50       /**<   max length of provisioning file path    */
+#define TAPI_SAT_BEARER_PARAMS_LEN_MAX                                 10       /**<   max length of bearer parameters                 */
+#define TAPI_SAT_CHANNEL_DATA_STRING_LEN_MAX                   255      /**<   max length of channel data string               */
+#define TAPI_SAT_CHANNEL_STATUS_LEN                                            2        /**<   max length of channel status            */
+#define TAPI_SAT_CHANNEL_ID_LEN                                                        3        /**<   max length of channel id                */
+#define TAPI_SAT_OTHER_ADDR_LEN_MAX                                            30       /**<   max length of other address             */
+#define TAPI_SAT_PORT_NUMBER_LEN                                               2        /**<   max length of port number               */
+#define TAPI_SAT_NET_ACC_NAM_LEN_MAX                                   30       /**<   max length of net acc name              */
+#define TAPI_SAT_AID_LEN_MAX                                                   128      /**<   max length of aid               */
+#define TAPI_SAT_REMOTE_ENTITY_ADDR_LEN_MAX                            50       /**<   max length of remote entity address     */
+#define TAPI_SAT_ITEM_TEXT_ATTRIBUTES_LIST_MAX_COUNT   50       /**<   max count of item text attributes list          */
+#define TAPI_SAT_MCC_CODE_LEN                                                  3        /**<   max length of mcc               */
+#define TAPI_SAT_MNC_CODE_LEN                                                  3        /**<   max length of mnc               */
+#define TAPI_SAT_LAC_CODE_LEN                                                  2        /**<   max length of lac               */
+#define TAPI_SAT_CELL_ID_LEN                                                   2        /**<   max length of cell id   */
+
+/**
+ * @enum TelSatAlphabetFormatType_t
+ * This enum lists the Alphabet Format.
+ */
+typedef enum {
+       TAPI_SAT_ALPHABET_FORMAT_SMS_DEFAULT = 0x00, /**<       ALPHABET FROMAT SMS DEFAULT             */
+       TAPI_SAT_ALPHABET_FORMAT_8BIT_DATA = 0x01, /**< ALPHABET FROMAT 8BIT DATA               */
+       TAPI_SAT_ALPHABET_FORMAT_UCS2 = 0x02, /**<      ALPHABET FROMAT UCS2            */
+       TAPI_SAT_ALPHABET_FORMAT_RESERVED = 0x03 /**<   ALPHABET FROMAT RESERVED                */
+} TelSatAlphabetFormatType_t;
+
+/**
+ * @enum TelSatMsgClassType_t
+ * This enum lists the message class.
+ */
+typedef enum {
+       TAPI_SAT_MSG_CLASS_NONE = 0x00, /**<    none    */
+       TAPI_SAT_MSG_CLASS_0 = 0x01, /**<       class 0                 */
+       TAPI_SAT_MSG_CLASS_1, /**<      class 1 Default meaning:ME-specific             */
+       TAPI_SAT_MSG_CLASS_2, /**<      class 2 SIM specific message            */
+       TAPI_SAT_MSG_CLASS_3, /**<      class 3 Default meaning: TE specific            */
+       TAPI_SAT_MSG_CLASS_RESERVED = 0xFF /**< class reserved          */
+} TelSatMsgClassType_t;
+
+/**
+ * @enum TelSatCommandType_t
+ * This enum lists the type of command and the next action indicator.
+ */
+typedef enum {
+       TAPI_SAT_CMD_TYPE_NONE = 0x00, /**<     command type - None             */
+
+       TAPI_SAT_CMD_TYPE_REFRESH = 0x01, /**<  command type - refresh          */
+       TAPI_SAT_CMD_TYPE_MORE_TIME = 0x02, /**<        command type - more time                */
+       TAPI_SAT_CMD_TYPE_SETUP_EVENT_LIST = 0x05, /**< command type - setup event list                 */
+       TAPI_SAT_CMD_TYPE_SETUP_CALL = 0x10, /**<       command type - setup call               */
+       TAPI_SAT_CMD_TYPE_SEND_SS = 0x11, /**<  command type - send ss          */
+       TAPI_SAT_CMD_TYPE_SEND_USSD = 0x12, /**<        command type - send ussd                */
+       TAPI_SAT_CMD_TYPE_SEND_SMS = 0x13, /**< command type - send sms                 */
+       TAPI_SAT_CMD_TYPE_SEND_DTMF = 0x14, /**<        command type - send dtmf                */
+       TAPI_SAT_CMD_TYPE_LAUNCH_BROWSER = 0x15, /**<   command type - launch browser           */
+       TAPI_SAT_CMD_TYPE_PLAY_TONE = 0x20, /**<        command type - play tone                */
+       TAPI_SAT_CMD_TYPE_DISPLAY_TEXT = 0x21, /**<     command type - display text             */
+       TAPI_SAT_CMD_TYPE_GET_INKEY = 0x22, /**<        command type - get inkey                */
+       TAPI_SAT_CMD_TYPE_GET_INPUT = 0x23, /**<        command type - get input                */
+       TAPI_SAT_CMD_TYPE_SELECT_ITEM = 0x24, /**<      command type - select item              */
+       TAPI_SAT_CMD_TYPE_SETUP_MENU = 0x25, /**<       command type - setup menu               */
+       TAPI_SAT_CMD_TYPE_PROVIDE_LOCAL_INFO = 0x26, /**<       command type - provide local info               */
+       TAPI_SAT_CMD_TYPE_SETUP_IDLE_MODE_TEXT = 0x28, /**<     command type - setup idle mode text             */
+       TAPI_SAT_CMD_TYPE_LANGUAGE_NOTIFICATION = 0x35, /**<    command type - language notification            */
+       TAPI_SAT_CMD_TYPE_OPEN_CHANNEL = 0x40, /**<     command type - open channel -class e            */
+       TAPI_SAT_CMD_TYPE_CLOSE_CHANNEL = 0x41, /**<    command type - close channel - class e          */
+       TAPI_SAT_CMD_TYPE_RECEIVE_DATA = 0x42, /**<     command type - receive data -class e            */
+       TAPI_SAT_CMD_TYPE_SEND_DATA = 0x43, /**<        command type - send data                */
+       TAPI_SAT_CMD_TYPE_GET_CHANNEL_STATUS = 0x44, /**<       command type - get channel status -class e              */
+       TAPI_SAT_CMD_TYPE_END_OF_APP_EXEC = 0xFD, /**<  inform to End the execution of a Proactive Command*/
+       TAPI_SAT_CMD_TYPE_END_PROACTIVE_SESSION = 0xFE, /**<    inform end proactive session            */
+       TAPI_SAT_CMD_TYPE_RESERVED = 0xFF /**<  command type - reserved         */
+} TelSatCommandType_t;
+
+/**
+ * @enum TelSatCmdQualiRefresh_t
+ * This enum lists the Command qualifier values for Refresh command.
+ */
+typedef enum {
+       TAPI_SAT_REFRESH_SIM_INIT_AND_FULL_FCN = 0x00, /**<     command qualifier for REFRESH SIM INIT AND FULL FILE CHANGE_NOTIFICATION                */
+       TAPI_SAT_REFRESH_FCN = 0x01, /**<       command qualifier for REFRESH FILE CHANGE NOTIFICATION          */
+       TAPI_SAT_REFRESH_SIM_INIT_AND_FCN = 0x02, /**<  command qualifier for REFRESH SIM INIT AND FILE CHANGE NOTIFICATION             */
+       TAPI_SAT_REFRESH_SIM_INIT = 0x03, /**<  command qualifier for REFRESH SIM INIT          */
+       TAPI_SAT_REFRESH_SIM_RESET = 0x04, /**< command qualifier for REFRESH SIM RESET         */
+       TAPI_SAT_REFRESH_3G_APPLICATION_RESET = 0x05, /**<      command qualifier for REFRESH 3G APPLICATION RESET              */
+       TAPI_SAT_REFRESH_3G_SESSION_RESET = 0x06, /**<  command qualifier for REFRESH 3G SESSION RESET          */
+       TAPI_SAT_REFRESH_RESERVED = 0xFF /**<   command qualifier for REFRESH RESERVED          */
+} TelSatCmdQualiRefresh_t;
+
+/**
+ * @enum TelSatCmdQualiSetupCall_t
+ * This enum lists the Command qualifier values for setup call command.
+ */
+typedef enum {
+       TAPI_SAT_SETUP_CALL_IF_ANOTHER_CALL_NOT_BUSY = 0x00, /**<       command qualifier for SETUP CALL IF ANOTHER CALL NOT BUSY               */
+       TAPI_SAT_SETUP_CALL_IF_ANOTHER_CALL_NOT_BUSY_WITH_REDIAL = 0x01, /**<   command qualifier for SETUP CALL IF ANOTHER CALL NOT BUSY WITH REDIAL           */
+       TAPI_SAT_SETUP_CALL_PUT_ALL_OTHER_CALLS_ON_HOLD = 0x02, /**<    command qualifier for SETUP CALL PUTTING ALL OTHER CALLS ON HOLD                */
+       TAPI_SAT_SETUP_CALL_PUT_ALL_OTHER_CALLS_ON_HOLD_WITH_REDIAL = 0x03, /**<        command qualifier for SETUP CALL PUTTING ALL OTHER CALLS ON HOLD WITH REDIAL            */
+       TAPI_SAT_SETUP_CALL_DISCONN_ALL_OTHER_CALLS = 0x04, /**<        command qualifier for SETUP CALL DISCONNECTING ALL OTHER CALLS          */
+       TAPI_SAT_SETUP_CALL_DISCONN_ALL_OTHER_CALLS_WITH_REDIAL = 0x05, /**<    command qualifier for SETUP CALL DISCONNECTING ALL OTHER CALLS WITH REDIAL              */
+       TAPI_SAT_SETUP_CALL_RESERVED = 0xFF /**<        command qualifier for SETUP CALL RESERVED               */
+} TelSatCmdQualiSetupCall_t;
+
+/**
+ * @enum TelSatDisplayTextPriorityType_t
+ * This is associated with the command qualifier for display text.
+ */
+typedef enum {
+       TAPI_SAT_MSG_PRIORITY_NORMAL = 0, /**<  MSG PRIORITY NORMAL             */
+       TAPI_SAT_MSG_PRIORITY_HIGH = 1 /**<     MSG PRIORITY HIGH               */
+} TelSatDisplayTextPriorityType_t;
+
+/**
+ * @enum TelSatDisplayTextMsgClearType_t
+ * This is associated with the command qualifier for display text.
+ */
+typedef enum {
+       TAPI_SAT_AUTO_CLEAR_MSG_AFTER_A_DELAY = 0, /**< message clear type -  AUTO CLEAR MSG AFTER A DELAY              */
+       TAPI_SAT_WAIT_FOR_USER_TO_CLEAR_MSG = 1 /**<    message clear type -  WAIT FOR USER TO CLEAR MSG                */
+} TelSatDisplayTextMsgClearType_t;
+
+/**
+ * @enum TelSatInkeyType_t
+ * This is associated with the command qualifier for get inkey.
+ */
+typedef enum {
+       TAPI_SAT_INKEY_TYPE_CHARACTER_SET_ENABLED = 0, /**<     command qualifier for  INKEY TYPE CHARACTER SET ENABLED         */
+       TAPI_SAT_INKEY_TYPE_YES_NO_REQUESTED = 1 /**<   command qualifier for  INKEY TYPE YES NO REQUESTED              */
+} TelSatInkeyType_t;
+
+/**
+ * @enum TelSatUseInputAlphabetType_t
+ * This is associated with the command qualifier for get input.
+ */
+typedef enum {
+       TAPI_SAT_USER_INPUT_ALPHABET_TYPE_SMS_DEFAULT = 1, /**< command qualifier for  ALPHABET TYPE SMS DEFAULT                */
+       TAPI_SAT_USER_INPUT_ALPHABET_TYPE_UCS2 = 2 /**< command qualifier for  ALPHABET TYPE UCS2               */
+} TelSatUseInputAlphabetType_t;
+
+/**
+ * @enum TelSatDisplayVibrateAlertType_t
+ * This is associated with the command qualifier for play tone command.
+ */
+typedef enum {
+       TAPI_SAT_VIBRATE_ALERT_OPTIONAL = 0, /**<       VIBRATE ALERT UPTO THE TERMINAL         */
+       TAPI_SAT_VIBRATE_ALERT_REQUIRED = 1 /**<        VIBRATE, IF AVAILABLE, WITH TONE.               */
+} TelSatDisplayVibrateAlertType_t;
+
+/**
+ * @enum TelSatPresentationType_t
+ * This is associated with the command qualifier for select item command.
+ */
+typedef enum {
+       TAPI_SAT_PRESENTATION_TYPE_NOT_SPECIFIED = 0x00, /**<   command qualifier for PRESENTATION TYPE NOT SPECIFIED */
+       TAPI_SAT_PRESENTATION_TYPE_DATA_VALUE = 0x01, /**<      command qualifier for PRESENTATION TYPE DATA VALUE              */
+       TAPI_SAT_PRESENTATION_TYPE_NAVIGATION_OPTION = 0x02 /**<        command qualifier for PRESENTATION TYPE NAVIGATION OPTION       */
+} TelSatPresentationType_t;
+
+/**
+ * @enum TelSatSelectionPreferenceType_t
+ * This is associated with the command qualifier for select item command.
+ */
+typedef enum {
+       TAPI_SAT_SELECTION_PREFERENCE_NONE_REQUESTED = 0, /**<  command qualifier for SELECTION PREFERENCE NONE REQUESTED               */
+       TAPI_SAT_SELECTION_PREFERENCE_USING_SOFT_KEY = 1 /**<   command qualifier for SELECTION PREFERENCE USING SOFT KEY               */
+} TelSatSelectionPreferenceType_t;
+
+/**
+ * @enum TelSatCmdQualiProvideLocalInfo_t
+ * This enum defines the Command qualifier values for provide local info command.
+ */
+typedef enum {
+       TAPI_SAT_PROVIDE_DATE_TIME_AND_TIME_ZONE = 0x03, /**<   command qualifier for PROVIDE DATE TIME AND TIME ZONE           */
+       TAPI_SAT_PROVIDE_LANGUAGE_SETTING = 0x04, /**<  command qualifier for PROVIDE LANGUAGE SETTING          */
+       TAPI_SAT_PROVIDE_IMEISV = 0x08, TAPI_SAT_PROVIDE_RESERVED = 0xFF /**<   reserved                */
+} TelSatCmdQualiProvideLocalInfo_t;
+
+/**
+ * @enum TelSatCmdQualiLaunchBrowser_t
+ * This enum defines the Command qualifier values for launch browser command.
+ */
+typedef enum {
+       TAPI_SAT_LAUNCH_BROWSER = 0, /**<       command qualifier for  LAUNCH BROWSER           */
+       TAPI_SAT_NOT_USED = 1, /**<     command qualifier for  NOT USED         */
+       TAPI_SAT_USE_EXISTING_BROWSER = 2, /**< command qualifier for  USE EXISTING BROWSER if secure session, do not use it.           */
+       TAPI_SAT_CLOSE_AND_LAUNCH_NEW_BROWSER = 3, /**< command qualifier for CLOSE AND LAUNCH NEW BROWSER              */
+       TAPI_SAT_NOT_USED2 = 4, /**<    command qualifier for  NOT USED2                */
+       TAPI_SAT_LB_RESERVED = 0xFF /**<        reserved        */
+} TelSatCmdQualiLaunchBrowser_t;
+
+/**
+ * @enum TelSatDeviceIdentitiesTagType_t
+ * This enum lists the device identity tag value IDs.
+ */
+typedef enum {
+       TAPI_SAT_DEVICE_ID_KEYPAD = 0x01, /**<  DEVICE ID KEYPAD                */
+       TAPI_SAT_DEVICE_ID_DISPLAY = 0x02, /**< DEVICE ID DISPLAY               */
+       TAPI_SAT_DEVICE_ID_EARPIECE = 0x03, /**<        DEVICE ID EARPIECE              */
+
+       TAPI_SAT_DEVICE_ID_SIM = 0x81, /**<     DEVICE ID SIM           */
+       TAPI_SAT_DEVICE_ID_ME = 0x82, /**<      DEVICE ID ME            */
+       TAPI_SAT_DEVICE_ID_NETWORK = 0x83, /**< DEVICE ID NETWORK               */
+
+       TAPI_SAT_DEVICE_ID_RESERVED = 0XFF /**< reserved        */
+} TelSatDeviceIdentitiesTagType_t;
+
+/**
+ * @enum TelSatTimeUnitType_t
+ * This enum lists the time units for the duration data object.
+ */
+typedef enum {
+       TAPI_SAT_TIME_UNIT_MINUTES = 0x0, /**<  time unit - minutes             */
+       TAPI_SAT_TIME_UNIT_SECONDS = 0x01, /**< time unit - second              */
+       TAPI_SAT_TIME_UNIT_TENTHS_OF_SECONDS = 0x02, /**<       time unit - tenths of seconds           */
+       TAPI_SAT_TIME_UNIT_RESERVED = 0xFF /**< reserved        */
+} TelSatTimeUnitType_t;
+
+/**
+ * @enum TelSatResultType_t
+ * This enum lists the values for the RESULT data object - General Response.
+ */
+typedef enum {
+       TAPI_SAT_R_SUCCESS = 0x0, /**<  command performed successfully */
+       TAPI_SAT_R_SUCCESS_WITH_PARTIAL_COMPREHENSION = 0x01, /**<      command performed with partial comprehension    */
+       TAPI_SAT_R_SUCCESS_WITH_MISSING_INFO = 0x02, /**<       command performed, with missing information     */
+
+       TAPI_SAT_R_REFRESH_PERFORMED_WITH_ADDITIONAL_EFS_READ = 0x03, /**<      REFRESH PERFORMED WITH ADDITIONAL EFS READ              */
+       TAPI_SAT_R_SUCCESS_BUT_REQUESTED_ICON_NOT_DISPLAYED = 0x04, /**<        command performed but REQUESTED ICON NOT DISPLAYED                      */
+       TAPI_SAT_R_SUCCESS_BUT_MODIFIED_BY_CALL_CONTROL_BY_SIM = 0x05, /**<     command performed but MODIFIED BY CALL CONTROL BY SIM           */
+       TAPI_SAT_R_SUCCESS_LIMITED_SERVICE = 0x06, /**< command performed with LIMITED SERVICE          */
+       TAPI_SAT_R_SUCCESS_WITH_MODIFICATION = 0x07, /**<       command performed with MODIFICATION             */
+       TAPI_SAT_R_REFRESH_PRFRMD_BUT_INDICATED_USIM_NOT_ACTIVE = 0x08, /**<    REFRESH PERFORMED BUT INDICATED USIM NOT ACTIVE                 */
+
+       TAPI_SAT_R_PROACTIVE_SESSION_TERMINATED_BY_USER = 0x10, /**<    proactive sim application session terminated by user            */
+       TAPI_SAT_R_BACKWARD_MOVE_BY_USER = 0x11, /**<   backward move in the proactive sim application session request by the user              */
+       TAPI_SAT_R_NO_RESPONSE_FROM_USER = 0x12, /**<   no response from user           */
+
+       TAPI_SAT_R_HELP_INFO_REQUIRED_BY_USER = 0x13, /**<      HELP INFO REQUIRED BY USER              */
+       TAPI_SAT_R_USSD_OR_SS_TRANSACTION_TERMINATED_BY_USER = 0x14, /**<       USSD OR SS TRANSACTION TERMINATED BY USER       */
+
+       TAPI_SAT_R_ME_UNABLE_TO_PROCESS_COMMAND = 0x20, /**<    ME currently unable to process command          */
+       TAPI_SAT_R_NETWORK_UNABLE_TO_PROCESS_COMMAND = 0x21, /**<       Network currently unable to process command             */
+       TAPI_SAT_R_USER_DID_NOT_ACCEPT_CALL_SETUP_REQ = 0x22, /**<      User did not accept call setup request          */
+       TAPI_SAT_R_USER_CLEAR_DOWN_CALL_BEFORE_CONN = 0x23, /**<        User cleared down call before connection or network released            */
+
+       TAPI_SAT_R_INTERACTION_WITH_CC_BY_SIM_IN_TMP_PRBLM = 0x25, /**< INTERACTION WITH CALL CONTROL BY SIM IN TEMPORARY PROBLEM               */
+       TAPI_SAT_R_LAUNCH_BROWSER_GENERIC_ERROR_CODE = 0x26, /**<       LAUNCH BROWSER GENERIC ERROR CODE               */
+
+       TAPI_SAT_R_BEYOND_ME_CAPABILITIES = 0x30, /**<  command beyond ME's capabilities                */
+       TAPI_SAT_R_COMMAND_TYPE_NOT_UNDERSTOOD_BY_ME = 0x31, /**<       command type not understood by ME               */
+       TAPI_SAT_R_COMMAND_DATA_NOT_UNDERSTOOD_BY_ME = 0x32, /**<       command data not understood by ME               */
+       TAPI_SAT_R_COMMAND_NUMBER_NOT_KNOWN_BY_ME = 0x33, /**<  command number not known by ME          */
+       TAPI_SAT_R_SS_RETURN_ERROR = 0x34, /**< SS return error         */
+       TAPI_SAT_R_SMS_RP_ERROR = 0x35, /**<    SMS rp-error            */
+       TAPI_SAT_R_ERROR_REQUIRED_VALUES_ARE_MISSING = 0x36, /**<       Error, required values are missing              */
+
+       TAPI_SAT_R_USSD_RETURN_ERROR = 0x37, /**<       USSD_RETURN_ERROR               */
+       TAPI_SAT_R_INTRCTN_WITH_CC_OR_SMS_CTRL_PRMNT_PRBLM = 0x39, /**< INTERACTION WITH CALL CONTROL OR SMS CONTROL PERMANENT PROBLEM          */
+       TAPI_SAT_R_BEARER_INDEPENDENT_PROTOCOL_ERROR = 0x3A, /**<       BEARER INDEPENDENT PROTOCOL ERROR               */
+       TAPI_SAT_R_FRAMES_ERROR = 0x3C /**<     FRAMES ERROR            */
+} TelSatResultType_t;
+
+/**
+ * @enum TelSatMeProblemType_t
+ * This enum lists the values for the Additional response for the RESULT object and specifies a particular ME PROBLEM.
+ */
+typedef enum {
+       TAPI_SAT_ME_PROBLEM_NO_SPECIFIC_CAUSE = 0x0, /**<       ME problem with NO SPECIFIC CAUSE               */
+       TAPI_SAT_ME_PROBLEM_SCREEN_BUSY = 0x01, /**<    ME problem with SCREEN BUSY             */
+       TAPI_SAT_ME_PROBLEM_ME_BUSY_ON_CALL = 0x02, /**<        ME problem with ME BUSY ON CALL         */
+       TAPI_SAT_ME_PROBLEM_ME_BUSY_ON_SS = 0x03, /**<  ME problem with ME_BUSY ON SS           */
+       TAPI_SAT_ME_PROBLEM_NO_SERVICE = 0x04, /**<     ME problem with NO SERVICE              */
+       TAPI_SAT_ME_PROBLEM_ACCESS_CONTROL_CLASS_BAR = 0x05, /**<       ME problem with ACCESS CONTROL CLASS BAR                */
+       TAPI_SAT_ME_PROBLEM_RADIO_RES_NOT_GRANTED = 0x06, /**<  ME problem with RADIO RES NOT GRANTED           */
+       TAPI_SAT_ME_PROBLEM_NOT_IN_SPEECH_CALL = 0x07, /**<     ME problem with NOT IN SPEECH CALL      */
+       TAPI_SAT_ME_PROBLEM_ME_BUSY_ON_USSD = 0x08, /**<        ME problem with ME BUSY ON USSD         */
+       TAPI_SAT_ME_PROBLEM_ME_BUSY_ON_SEND_DTMF_CMD = 0x09, /**<       ME problem with ME BUSY ON SEND DTMF CMD        */
+       TAPI_SAT_ME_PROBLEM_NO_USIM_ACTIVE = 0x0A, /**< ME problem with NO USIM ACTIVE          */
+       TAPI_SAT_ME_PROBLEM_INVALID = 0xFF /**< ME problem with INVALID                 */
+} TelSatMeProblemType_t;
+
+/**
+ * @enum TelSatNetworkProblemType_t
+ * This enum lists the values for the Additional response for the RESULT object and specifies a particular network PROBLEM.
+ */
+typedef enum {
+       TAPI_SAT_NETWORK_PROBLEM_NO_SPECIFIC_CAUSE = 0x0, /**<  Network problem with no specific cause          */
+       TAPI_SAT_NETWORK_PROBLEM_USER_BUSY = 0x91 /**<  Network problem with USER BUSY          */
+} TelSatNetworkProblemType_t;
+
+/**
+ * @enum TelSatSsProblemType_t
+ * This enum lists the values for the Additional response for the RESULT object related to SEND SS.
+ */
+typedef enum {
+       TAPI_SAT_SS_PROBLEM_NO_SPECIFIC_CAUSE = 0, /**< SS problem with no specific cause               */
+       TAPI_SAT_SS_PROBLEM_FACILITY_NOT_SUPPORTED = 0x15 /**<  SS problem with FACILITY NOT SUPPORTED          */
+} TelSatSsProblemType_t;
+
+/**
+ * @enum TelSatSmsProblemType_t
+ * This enum lists the values for the Additional response for the RESULT object related to SEND SMS.
+ */
+typedef enum {
+       TAPI_SAT_SMS_PROBLEM_NO_SPECIFIC_CAUSE = 0 /**< SMS problem with no specific cause              */
+} TelSatSmsProblemType_t;
+
+/**
+ * @enum TelSatUssdProblemType_t
+ * This enum lists the values for the Additional response for the RESULT object related to SEND USSD STRING.
+ */
+typedef enum {
+       TAPI_SAT_USSD_PROBLEM_NO_SPECIFIC_CAUSE = 0, /**<       USSD problem with no specific cause             */
+       TAPI_SAT_USSD_PROBLEM_UNKNOWN_ALPHABET = 0x47 /**<      USSD problem with UNKNOWN ALPHABET              */
+} TelSatUssdProblemType_t;
+
+/**
+ * @enum TelSatCallCtrlProblemType_t
+ * This enum lists the values for the Additional response for the RESULT object related to CALL CONTROL or MO SMS CONTROL.
+ */
+typedef enum {
+       TAPI_SAT_CC_PROBLEM_NO_SPECIFIC_CAUSE = 0, /**< Call Control problem with no specific cause             */
+       TAPI_SAT_CC_PROBLEM_ACTION_NOT_ALLOWED = 1, /**<        Call Control problem with action not allowed    */
+       TAPI_SAT_CC_PROBLEM_REQUEST_TYPE_HAS_CHANGED = 2 /**<   Call Control problem with request type has changed      */
+} TelSatCallCtrlProblemType_t;
+
+/**
+ * @enum TelSatLaunchBrowserProblemType_t
+ * This enum lists the values for the Additional response for the RESULT object related to LAUNCH BROWSER PROBLEM
+ */
+typedef enum {
+       TAPI_SAT_BROWSER_PROBLEM_NO_SPECIFIC_CAUSE = 0, /**<    Browser problem with no specific cause          */
+       TAPI_SAT_BROWSER_PROBLEM_BEARER_UNAVAILABLE = 1, /**<   Browser problem with bearer unavailable         */
+       TAPI_SAT_BROWSER_PROBLEM_BROWSER_UNAVAILABLE = 2, /**<  Browser problem with browser unavailable                */
+       TAPI_SAT_BROWSER_PRBLM_ME_UNABLE_TO_READ_PROV_DATA = 3 /**<     Browser problem with ME unable to read provisioning data                */
+} TelSatLaunchBrowserProblemType_t;
+
+/**
+ * @enum TelSatBipProblemType_t
+ * This enum lists the values for the Additional response for the RESULT object.
+ *  Permanent Problems  ::: 12.12.11 ADDITIONAL INFORMATION :  BEARER INDEPENDENT PROTOCOL
+ */
+typedef enum {
+       TAPI_SAT_BIP_PROBLEM_NO_SPECIFIC_CAUSE = 0x00, /**<     BIP problem with no specific cause      */
+       TAPI_SAT_BIP_PROBLEM_NO_CHANNEL_AVAILABLE = 0x01, /**<  BIP problem with no channel available           */
+       TAPI_SAT_BIP_PROBLEM_CHANNEL_CLOSED = 0x02, /**<        BIP problem with channel closed                 */
+       TAPI_SAT_BIP_PROBLEM_CHANNEL_ID_NOT_VALID = 0x03, /**<  BIP problem with channel id not valid           */
+       TAPI_SAT_BIP_PROBLEM_BUF_SIZE_NOT_AVAILABLE = 0x04, /**<        BIP problem with buffer size not available              */
+       TAPI_SAT_BIP_PROBLEM_SECURITY_ERROR = 0x05, /**<        BIP problem with security error                 */
+       TAPI_SAT_BIP_PRBLM_SIM_ME_IF_TRNSPRT_LEVEL_NOT_AVL = 0x06, /**< BIP problem with SIM ME interface transport level not available         */
+       TAPI_SAT_BIP_REMOTE_DEV_NOT_REACHABLE = 0x07, /**<      BIP problem with remote device not reachable            */
+       TAPI_SAT_BIP_SERVICE_ERROR = 0x08, /**< BIP service error               */
+       TAPI_SAT_BIP_SERVICE_IDENTIFIER_UNKNOWN = 0x09 /**<     BIP service identifier unknown          */
+} TelSatBipProblemType_t;
+
+/**
+ * @enum TelSatSmsTpduType_t
+ * This enum lists the values for the SMS TPDU type.
+ */
+typedef enum {
+       TAPI_SAT_SMS_TPDU_TYPE_DELIVER_TPDU = 0, /**<   sms tpdu type - DELIVER TPDU    */
+       TAPI_SAT_SMS_TPDU_TYPE_DELIVER_RPT = 1, /**<    sms tpdu type - DELIVER RPT     */
+       TAPI_SAT_SMS_TPDU_TYPE_SUBMIT_TPDU = 2, /**<    sms tpdu type - SUBMIT TPDU             */
+       TAPI_SAT_SMS_TPDU_TYPE_SUBMIT_RPT = 3, /**<     sms tpdu type - SUBMIT RPT      */
+       TAPI_SAT_SMS_TPDU_TYPE_STATUS_RPT = 4, /**<     sms tpdu type - STATUS RPT      */
+       TAPI_SAT_SMS_TPDU_TYPE_TPDU_CMD = 5 /**<        sms tpdu type - TPDU CMD        */
+} TelSatSmsTpduType_t;
+
+/**
+ * @enum TelSatToneType_t
+ * This enum lists the values tones type.
+ */
+typedef enum {
+       // standard supervisory tones
+       TAPI_SAT_DIAL_TONE = 0x01, /**< TONE TYPE DIAL TONE             */
+       TAPI_SAT_CALLED_SUBSCRIBER_BUSY = 0x02, /**<    TONE TYPE CALLED SUBSCRIBER BUSY                */
+       TAPI_SAT_CONGESTION = 0x03, /**<        TONE TYPE CONGESTION    */
+       TAPI_SAT_RADIO_PATH_ACK = 0x04, /**<    TONE TYPE RADIO PATH ACK        */
+       TAPI_SAT_RADIO_PATH_NOT_AVAILABLE_CALL_DROPPED = 0x05, /**<     TONE TYPE RADIO PATH NOT AVAILABLE CALL DROPPED */
+       TAPI_SAT_ERR_SPECIAL_INFO = 0x06, /**<  TONE TYPE ERR SPECIAL INFO      */
+       TAPI_SAT_CALL_WAITING_TONE = 0x07, /**< TONE TYPE CALL WAITING TONE             */
+       TAPI_SAT_RINGING_TONE = 0x08, /**<      TONE TYPE RINGING TONE  */
+
+       // ME proprietary tones
+       TAPI_SAT_GENERAL_BEEP = 0x10, /**<      TONE TYPE GENERAL BEEP          */
+       TAPI_SAT_POSITIVE_ACK_TONE = 0x11, /**< TONE TYPE POSITIVE ACK TONE             */
+       TAPI_SAT_NEGATIVE_ACK_OR_ERROR_TONE = 0x12, /**<        TONE TYPE NEGATIVE ACK OR ERROR TONE            */
+       TAPI_SAT_RINGING_TONE_SLCTD_BY_USR_FOR_INCOM_SPEECH_CALL = 0x13, /**<   TONE TYPE RINGING TONE SELECTED BY USER FOR INCOMING SPEECH CALL                */
+       TAPI_SAT_ALERT_TONE_SELECTED_BY_USER_FOR_INCOMING_SMS = 0x14, /**<      TONE TYPE ALERT TONE SELECTED BY USER FOR INCOMING SMS          */
+       TAPI_SAT_CRITICAL_ALERT = 0x15, /**<    TONE TYPE CRITICAL ALERT                */
+
+       //Themed tones
+       TAPI_SAT_HAPPY_TONE = 0x30, /**<        TONE TYPE HAPPY TONE            */
+       TAPI_SAT_SAD_TONE = 0x31, /**<  TONE TYPE SAD TONE                      */
+       TAPI_SAT_URGENT_ACTION_TONE = 0x32, /**<        TONE TYPE URGENT ACTION TONE            */
+       TAPI_SAT_QUESTION_TONE = 0x33, /**<     TONE TYPE QUESTION TONE                 */
+       TAPI_SAT_MESSAGE_RECEIVED_TONE = 0x34, /**<     TONE TYPE MESSAGE RECEIVED TONE                 */
+
+       //Melody tones
+       TAPI_SAT_MELODY_1 = 0x40, /**<  TONE TYPE MELODY 1              */
+       TAPI_SAT_MELODY_2 = 0x41, /**<  TONE TYPE MELODY 2              */
+       TAPI_SAT_MELODY_3 = 0x42, /**<  TONE TYPE MELODY 3              */
+       TAPI_SAT_MELODY_4 = 0x43, /**<  TONE TYPE MELODY 4              */
+       TAPI_SAT_MELODY_5 = 0x44, /**<  TONE TYPE MELODY 5              */
+       TAPI_SAT_MELODY_6 = 0x45, /**<  TONE TYPE MELODY 6              */
+       TAPI_SAT_MELODY_7 = 0x46, /**<  TONE TYPE MELODY 7              */
+       TAPI_SAT_MELODY_8 = 0x47, /**<  TONE TYPE MELODY 8              */
+
+       TAPI_SAT_TONE_TYPE_RESERVED = 0xFF /**< TONE TYPE RESERVED              */
+} TelSatToneType_t;
+
+/**
+ * @enum TelSatEventDownloadType_t
+ * This enum lists event types required by ME to monitor and report to SIM.
+ */
+typedef enum {
+       TAPI_EVENT_SAT_DW_TYPE_MT_CALL = 0,
+       TAPI_EVENT_SAT_DW_TYPE_CALL_CONNECTED = 1,
+       TAPI_EVENT_SAT_DW_TYPE_CALL_DISCONNECTED = 2,
+       TAPI_EVENT_SAT_DW_TYPE_LOCATION_STATUS = 3,
+       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,
+       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,
+       TAPI_EVENT_SAT_DW_TYPE_DISPLAY_PARAMETERS_CHANGED = 0x0C,
+       TAPI_EVENT_SAT_DW_TYPE_LOCAL_CONNECTION = 0x0D,
+       TAPI_EVENT_SAT_DW_TYPE_NW_SEARCH_MODE_CHANGED = 0X0E,
+       TAPI_EVENT_SAT_DW_TYPE_BROWSING_STATUS = 0X0F,
+       TAPI_EVENT_SAT_DW_TYPE_FRAMES_INFORMATION_CHANGED = 0X10,
+       TAPI_EVENT_SAT_DW_TYPE_RESERVED_FOR_3GPP = 0X11,
+       TAPI_EVENT_SAT_DW_TYPE_UNKNOWN = 0xFF /**<      data download type - unknown            */
+} TelSatEventDownloadType_t;
+
+/**
+ * @enum TelSatImageCodingSchemeType_t
+ * This enum lists image coding scheme types required by ME to show.
+ */
+typedef enum {
+       TAPI_SAT_SIM_IMAGE_CODING_SCHEME_BASIC = 0x11, /**<     IMAGE CODING SCHEME BASIC               */
+       TAPI_SAT_SIM_IMAGE_CODING_SCHEME_COLOUR = 0x21, /**<    IMAGE CODING SCHEME COLOUR              */
+       TAPI_SAT_SIM_IMAGE_CODING_SCHEME_RESERVED = 0xFF /**<      RESERVED             */
+} TelSatImageCodingSchemeType_t;
+
+/**
+ * @enum TelSatIconQualifierType_t
+ * This enum defines the icon qualifier.
+ */
+typedef enum {
+       TAPI_SAT_ICON_QUALI_SELF_EXPLANATORY = 0, /**<  ICON QUALI SELF EXPLANATORY     */
+       TAPI_SAT_ICON_QUALI_NOT_SELF_EXPLANATORY = 1, /**<      ICON QUALI NOT SELF EXPLANATORY         */
+       TAPI_SAT_ICON_QUALI_RESERVED = 0xFF /**<          RESERVED      */
+} TelSatIconQualifierType_t;
+
+/**
+ * @enum TelSatBcRepeatIndicatorType_t
+ * This enum defines the SIM ATK BC repeat indicator type.
+ */
+typedef enum {
+       TAPI_SAT_BC_REPEAT_INDI_ALTERNATE_MODE = 0x01, /**<     BC REPEAT ALTERNATE MODE                */
+       TAPI_SAT_BC_REPEAT_INDI_SEQUENTIAL_MODE = 0x03, /**<    BC REPEAT SEQUENTIAL MODE               */
+       TAPI_SAT_BC_REPEAT_INDI_RESERVED = 0xFF /**<    RESERVED        */
+} TelSatBcRepeatIndicatorType_t;
+
+/**
+ * @enum TelSatCallCtrlStringType_t
+ * This enum defines call control string type.
+ */
+typedef enum {
+       TAPI_SAT_CC_VOICE = 0x00, /**<  Call Control String Type - voice                */
+       TAPI_SAT_CC_SS = 0x01, /**<     Call Control String Type - ss           */
+       TAPI_SAT_CC_USSD = 0x02, /**<   Call Control String Type - ussd         */
+       TAPI_SAT_CC_NONE = 0xFF /**<    Call Control String Type - none                 */
+} TelSatCallCtrlStringType_t;
+
+/**
+ * @enum TelSatLanguageType_t
+ * This enum lists the language values.
+ */
+typedef enum {
+       TAPI_SAT_LP_GERMAN = 0x00, /**< GERMAN          */
+       TAPI_SAT_LP_ENGLISH = 0x01, /**<        ENGLISH         */
+       TAPI_SAT_LP_ITALIAN = 0x02, /**<        ITALIAN         */
+       TAPI_SAT_LP_FRENCH = 0x03, /**< FRENCH          */
+       TAPI_SAT_LP_SPANISH = 0x04, /**<        SPANISH         */
+       TAPI_SAT_LP_DUTCH = 0x05, /**<  DUTCH           */
+       TAPI_SAT_LP_SWEDISH = 0x06, /**<        SWEDISH */
+       TAPI_SAT_LP_DANISH = 0x07, /**< DANISH  */
+       TAPI_SAT_LP_PORTUGUESE = 0x08, /**<     PORTUGUESE      */
+       TAPI_SAT_LP_FINNISH = 0x09, /**<        FINNISH */
+       TAPI_SAT_LP_NORWEGIAN = 0x0A, /**<      NORWEGIAN       */
+       TAPI_SAT_LP_GREEK = 0x0B, /**<  GREEK   */
+       TAPI_SAT_LP_TURKISH = 0x0C, /**<        TURKISH */
+       TAPI_SAT_LP_HUNGARIAN = 0x0D, /**<      HUNGARIAN       */
+       TAPI_SAT_LP_POLISH = 0x0E, /**< POLISH  */
+       TAPI_SAT_LP_LANG_UNSPECIFIED = 0x0F /**<        LANGUAGE UNSPECIFIED    */
+} TelSatLanguageType_t;
+
+/**
+ * @enum TelSatBrowserIdentityType_t
+ * This enum lists the SAT browser identity type.
+ */
+typedef enum {
+       TAPI_SAT_BROWSER_ID_DEFAULT = 0x0, /**< DEFAULT BROWSER                 */
+       TAPI_SAT_BROWSER_ID_WML, /**<   BROWSER WML     */
+       TAPI_SAT_BROWSER_ID_HTML, /**<  BROWSER HTML    */
+       TAPI_SAT_BROWSER_ID_XHTML, /**< BROWSER XHTML   */
+       TAPI_SAT_BROWSER_ID_CHTML, /**< BROWSER CHTML   */
+       TAPI_SAT_BROWSER_ID_RESERVED = 0xFF /**<        RESERVED        */
+} TelSatBrowserIdentityType_t;
+
+/**
+ * @enum TelSatBearerType_t
+ * This enum lists the SAT bearer type.
+ */
+typedef enum {
+       TAPI_SAT_BEARER_TYPE_SMS = 0x0, /**<    BEARER SMS              */
+       TAPI_SAT_BEARER_TYPE_CSD = 0x1, /**<    BEARER CSD              */
+       TAPI_SAT_BEARER_TYPE_USSD = 0x2, /**<   BEARER USSD             */
+       TAPI_SAT_BEARER_TYPE_GPRS = 0x3, /**<   BEARER GPRS             */
+       TAPI_SAT_BEARER_TYPE_RESERVED = 0xFF /**<       BEARER RESERVED         */
+} TelSatBearerType_t;
+
+/**
+ * @enum TelSatBrowserTerminationCauseType_t
+ * This enum lists the SAT browser termination cause type.
+ */
+typedef enum {
+       TAPI_SAT_BROWSER_TERMINATED_BY_USER = 0, /**<   BROWSER TERMINATED BY USER              */
+       TAPI_SAT_BROWSER_TERMINATED_BY_ERROR = 1, /**<  BROWSER TERMINATED BY ERROR             */
+} TelSatBrowserTerminationCauseType_t;
+
+/**
+ * @enum TelSatBearerDescType_t
+ * This enum lists the SAT bearer destination type.
+ */
+typedef enum {
+       TAPI_SAT_BEARER_CSD = 0x1, /**< BEARER DESC CSD                 */
+       TAPI_SAT_BEARER_GPRS = 0x2, /**<        BEARER DESC GPRS                */
+       TAPI_SAT_BEARER_DEFAULT_BEARER_FROM_TRANSPORT_LAYER = 0x3, /**< BEARER DESC DEFAULT BEARER FROM TRANSPORT LAYER         */
+       TAPI_SAT_BEARER_LOCAL_LINK_TECHNOLOGY_INDEPENDENT = 0x4, /**<   BEARER DESC LOCAL LINK TECHNOLOGY INDEPENDENT           */
+       TAPI_SAT_BEARER_BLUETOOTH = 0x5, /**<   BEARER DESC BLUETOOTH   */
+       TAPI_SAT_BEARER_IrDA = 0x6, /**<        BEARER DESC IrDA        */
+       TAPI_SAT_BEARER_RS232 = 0x7, /**<       BEARER DESC RS232       */
+       TAPI_SAT_BEARER_USB = 0x10, /**<        BEARER DESC USB */
+       TAPI_SAT_BEARER_RESERVED = 0xFF /**<    RESERVED        */
+} TelSatBearerDescType_t;
+
+/**
+ * @enum TelSatBearerParamCsdDataRateType_t
+ * This enum lists the SAT bearer parameter csd data rate. refer TS 27.007
+ */
+typedef enum {
+       TAPI_SAT_BIP_DR_AUTOBAUDING = 0, /**<   CSD data rate - AUTOBAUDING             */
+       TAPI_SAT_BIP_DR_300BPS_V21 = 1, /**<    CSD data rate -300BPS V21               */
+       TAPI_SAT_BIP_DR_1200BPS_V22 = 2, /**<   CSD data rate - 1200BPS V22             */
+       TAPI_SAT_BIP_DR_1200_75BPS_V23 = 3, /**<        CSD data rate -1200 75BPS V23                   */
+       TAPI_SAT_BIP_DR_2400BPS_V22 = 4, /**<   CSD data rate -2400BPS V22              */
+       TAPI_SAT_BIP_DR_2400BPS_V26 = 5, /**<   CSD data rate - 2400BPS V26                     */
+       TAPI_SAT_BIP_DR_4800BPS_V32 = 6, /**<   CSD data rate - 4800BPS V32             */
+       TAPI_SAT_BIP_DR_9600BPS_V32 = 7, /**<   CSD data rate - 9600BPS V32             */
+       TAPI_SAT_BIP_DR_9600BPS_V34 = 12, /**<  CSD data rate - 9600BPS_V34             */
+       TAPI_SAT_BIP_DR_14400BPS_V34 = 14, /**< CSD data rate -14400BPS V34             */
+       TAPI_SAT_BIP_DR_19200BPS_V34 = 15, /**< CSD data rate -19200BPS V34             */
+       TAPI_SAT_BIP_DR_28800BPS_V34 = 16, /**< CSD data rate -28800BPS V34             */
+       TAPI_SAT_BIP_DR_33600BPS_V34 = 17, /**< CSD data rate -33600BPS V34             */
+       TAPI_SAT_BIP_DR_1200BPS_V120 = 34, /**< CSD data rate -1200BPS V120             */
+       TAPI_SAT_BIP_DR_2400BPS_V120 = 36, /**< CSD data rate -2400BPS V120             */
+       TAPI_SAT_BIP_DR_4800BPS_V120 = 38, /**< CSD data rate -4800BPS V120             */
+       TAPI_SAT_BIP_DR_9600BPS_V120 = 39, /**< CSD data rate -9600BPS V120             */
+       TAPI_SAT_BIP_DR_14400BPS_V120 = 43, /**<        CSD data rate -14400BPS V120            */
+       TAPI_SAT_BIP_DR_19200BPS_V120 = 47, /**<        CSD data rate -19200BPS V120            */
+       TAPI_SAT_BIP_DR_28800BPS_V120 = 48, /**<        CSD data rate -28800BPS V120            */
+       TAPI_SAT_BIP_DR_38400BPS_V120 = 49, /**<        CSD data rate -38400BPS V120            */
+       TAPI_SAT_BIP_DR_48000BPS_V120 = 50, /**<        CSD data rate -48000BPS V120            */
+       TAPI_SAT_BIP_DR_56000BPS_V120 = 51, /**<        CSD data rate -56000BPS V120            */
+       TAPI_SAT_BIP_DR_300BPS_V110 = 65, /**<  CSD data rate - 300BPS V110             */
+       TAPI_SAT_BIP_DR_1200BPS_V110 = 66, /**< CSD data rate -1200BPS V110             */
+       TAPI_SAT_BIP_DR_2400BPS_V110_OR_X31_FALG_STUFFING = 68, /**<    CSD data rate - 2400BPS V110 OR X31 FALG STUFFING               */
+       TAPI_SAT_BIP_DR_4800BPS_V110_OR_X31_FALG_STUFFING = 70, /**<    CSD data rate - 4800BPS V110 OR X31 FALG STUFFING               */
+       TAPI_SAT_BIP_DR_9600BPS_V110_OR_X31_FALG_STUFFING = 71, /**<    CSD data rate - 9600BPS V110 OR X31 FALG STUFFING               */
+       TAPI_SAT_BIP_DR_14400BPS_V110_OR_X31_FALG_STUFFING = 75, /**<   CSD data rate - 14400BPS V110 OR X31 FALG STUFFING              */
+       TAPI_SAT_BIP_DR_19200BPS_V110_OR_X31_FALG_STUFFING = 79, /**<   CSD data rate -19200BPS V110 OR X31 FALG STUFFING               */
+       TAPI_SAT_BIP_DR_28800BPS_V110_OR_X31_FALG_STUFFING = 80, /**<   CSD data rate -28800BPS V110 OR X31 FALG STUFFING               */
+       TAPI_SAT_BIP_DR_38400BPS_V110_OR_X31_FALG_STUFFING = 81, /**<   CSD data rate -38400BPS V110 OR X31 FALG STUFFING               */
+       TAPI_SAT_BIP_DR_48000BPS_V110_OR_X31_FALG_STUFFING = 82, /**<   CSD data rate -48000BPS V110 OR X31 FALG STUFFING               */
+       TAPI_SAT_BIP_DR_56000BPS_V110_OR_X31_FALG_STUFFING = 83, /**<   CSD data rate -56000BPS V110 OR X31 FALG STUFFING               */
+       TAPI_SAT_BIP_DR_64000BPS = 84, /**<     CSD data rate -64000BPS                 */
+       TAPI_SAT_BIP_DR_56000BPS_BIT_TRANSPERENT = 115, /**<    CSD data rate -56000BPS BIT TRANSPERENT                 */
+       TAPI_SAT_BIP_DR_64000BPS_BIT_TRANSPERENT = 116, /**<    CSD data rate -64000BPS BIT TRANSPERENT                 */
+       TAPI_SAT_BIP_DR_32000BPS_PIAFS32K = 120, /**<   CSD data rate -32000BPS PIAFS32K                */
+       TAPI_SAT_BIP_DR_64000BPS_PIAFS64K = 121, /**<   CSD data rate - 64000BPS PIAFS64K               */
+       TAPI_SAT_BIP_DR_28800BPS_MULTIMEDIA = 130, /**< CSD data rate -28800BPS MULTIMEDIA              */
+       TAPI_SAT_BIP_DR_32000BPS_MULTIMEDIA = 131, /**< CSD data rate -32000BPS MULTIMEDIA              */
+       TAPI_SAT_BIP_DR_33600BPS_MULTIMEDIA = 132, /**< CSD data rate - 33600BPS MULTIMEDIA             */
+       TAPI_SAT_BIP_DR_56000BPS_MULTIMEDIA = 133, /**< CSD data rate -56000BPS MULTIMEDIA              */
+       TAPI_SAT_BIP_DR_64000BPS_MULTIMEDIA = 134 /**<  CSD data rate -64000BPS MULTIMEDIA              */
+} TelSatBearerParamCsdDataRateType_t;
+
+/**
+ * @enum TelSatBearerParamCsdBearerServiceType_t
+ * This enum lists the SAT bearer parameter csd bearer service
+ */
+typedef enum {
+       TAPI_SAT_BIP_CSD_BS_DATA_CIRCUIT_ASYNC_UDI = 0, /**<    CSD Bearer service - DATA CIRCUIT ASYNCHRONOUS UDI              */
+       TAPI_SAT_BIP_CSD_BS_DATA_CIRCUIT_SYNC = 1, /**< CSD Bearer service - DATA CIRCUIT SYNCHRONOUS UDI               */
+       TAPI_SAT_BIP_CSD_BS_PAD_ACCESS_ASYNC_UDI = 2, /**<      CSD Bearer service - PAD ACCESS ASYNCHRONOUS UDI                        */
+       TAPI_SAT_BIP_CSD_BS_PACKET_ACCESS_SYNC = 3, /**<        CSD Bearer service - PACKET ACCESS SYNCHRONOUS UDI              */
+       TAPI_SAT_BIP_CSD_BS_DATA_CIRCUIT_ASYNC_RDI = 4, /**<    CSD Bearer service - DATA CIRCUIT ASYNCHRONOUS RDI              */
+       TAPI_SAT_BIP_CSD_BS_DATA_CIRCUIT_SYNC_RDI = 5, /**<     CSD Bearer service - DATA CIRCUIT SYNCHRONOUS RDI               */
+       TAPI_SAT_BIP_CSD_BS_PAD_ACCESS_ASYNC_RDI = 6, /**<      CSD Bearer service - PAD ACCESS ASYNCHRONOUS RDI                */
+       TAPI_SAT_BIP_CSD_BS_PACKET_ACCESS_SYNC_RDI = 7 /**<     CSD Bearer service - PACKET ACCESS SYNCHRONOUS RDI              */
+} TelSatBearerParamCsdBearerServiceType_t;
+
+/**
+ * @enum TelSatBearerParamCsdConnectionElementType_t
+ * This enum lists the SAT bearer parameter csd connection element
+ */
+typedef enum {
+       TAPI_SAT_BIP_CSD_CONN_ELEM_TRANSPARENT = 0, /**<        CSD connection element - TRANSPARENT            */
+       TAPI_SAT_BIP_CSD_CONN_ELEM_NON_TRANSPARENT = 1, /**<    CSD connection element - NON TRANSPARENT                */
+       TAPI_SAT_BIP_CSD_CONN_ELEM_BOTH_TRANSPARENT_PREF = 2, /**<      CSD connection element -BOTH TRANSPARENT PREFFERED              */
+       TAPI_SAT_BIP_CSD_CONN_ELEM_BOTH_NON_TRANSPARENT_PREF = 3 /**<   CSD connection element -  NON TRANSPARENT PREFFERED             */
+} TelSatBearerParamCsdConnectionElementType_t;
+
+/**
+ * @enum TelSatBearerParamGprsPrecedenceClassType_t
+ * This enum lists the SAT bearer parameter GPRS precedence class. refer  TS 23.107
+ */
+typedef enum {
+       TAPI_SAT_BIP_GPRS_PRECED_CLASS_HIGH_PRIORITY = 0x01, /**<       GPRS precedence class -HIGH PRIORITY            */
+       TAPI_SAT_BIP_GPRS_PRECED_CLASS_NORM_PRIORITY = 0x02, /**<       GPRS precedence class -NORM PRIORITY            */
+       TAPI_SAT_BIP_GPRS_PRECED_CLASS_LOW_PRIORITY = 0x03 /**< GPRS precedence class - LOW PRIORITY            */
+} TelSatBearerParamGprsPrecedenceClassType_t;
+
+/**
+ * @enum TelSatBearerParamGprsDelayClassType_t
+ * This enum lists the SAT bearer parameter GPRS delay class.
+ */
+typedef enum {
+       TAPI_SAT_BIP_GPRS_DELAY_CLASS_1 = 0x01, /**<    GPRS delay class - 1            */
+       TAPI_SAT_BIP_GPRS_DELAY_CLASS_2 = 0x02, /**<    GPRS delay class -      2       */
+       TAPI_SAT_BIP_GPRS_DELAY_CLASS_3 = 0x03, /**<    GPRS delay class -      3       */
+       TAPI_SAT_BIP_GPRS_DELAY_CLASS_4 = 0x04 /**<     GPRS delay class - 4            */
+} TelSatBearerParamGprsDelayClassType_t;
+
+/**
+ * @enum TelSatBearerParamGprsReliabilityClassType_t
+ * This enum lists the SAT bearer parameter GPRS Reliability class.
+ */
+typedef enum {
+       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_1 = 0x01, /**<      GPRS Reliability class -1               */
+       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_2 = 0x02, /**<      GPRS Reliability class -2               */
+       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_3 = 0x03, /**<      GPRS Reliability class -3               */
+       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_4 = 0x04, /**<      GPRS Reliability class -4               */
+       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_5 = 0x05 /**<       GPRS Reliability class -5               */
+} TelSatBearerParamGprsReliabilityClassType_t;
+
+/**
+ * @enum TelSatBearerParamGprsPeakThroughputClassType_t
+ * This enum lists the SAT bearer parameter GPRS peak throughput class.
+ */
+typedef enum {
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_8KBPS = 0x01, /**< GPRS peak throughput class- UPTO 8KBPS          */
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_16KBPS = 0x02, /**<        GPRS peak throughput class- UPTO 16KBPS         */
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_32KBPS = 0x03, /**<        GPRS peak throughput class-UPTO 32KBPS          */
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_64KBPS = 0x04, /**<        GPRS peak throughput class-UPTO 64KBPS          */
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_128KBPS = 0x05, /**<       GPRS peak throughput class- UPTO 128KBPS                        */
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_256KBPS = 0x06, /**<       GPRS peak throughput class- UPTO 256KBPS                        */
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_512KBPS = 0x07, /**<       GPRS peak throughput class- UPTO 512KBPS                */
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_1024KBPS = 0x08, /**<      GPRS peak throughput class-UPTO 1024KBPS                */
+       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_2048KBPS = 0x09 /**<       GPRS peak throughput class- UPTO 2048KBPS               */
+} TelSatBearerParamGprsPeakThroughputClassType_t;
+
+/**
+ * @enum TelSatBearerParamGprsMeanThroughputClassType_t
+ * This enum lists the SAT bearer parameter GPRS mean throughput class.
+ */
+typedef enum {
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_DOT_22_BPS = 0x01, /**< GPRS mean throughput class - DOT 22 BPS         */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_DOT_44_BPS = 0x02, /**< GPRS mean throughput class - DOT 44 BPS         */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_1_DOT_11_BPS = 0x03, /**<       GPRS mean throughput class -1 DOT 11 BPS                */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_2_DOT_2_BPS = 0x04, /**<        GPRS mean throughput class -2 DOT 2 BPS         */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_2_DOT_4_BPS = 0x05, /**<        GPRS mean throughput class -2 DOT 4 BPS                 */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_11_DOT_1_BPS = 0x06, /**<       GPRS mean throughput class - 11 DOT 1 BPS               */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_22BPS = 0x07, /**<      GPRS mean throughput class -22BPS               */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_44BPS = 0x08, /**<      GPRS mean throughput class - 44BPS              */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_111BPS = 0x09, /**<     GPRS mean throughput class - 111BPS             */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_DOT_22_KBPS = 0x0A, /**<        GPRS mean throughput class - DOT 22 KBPS                */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_DOT_44_KBPS = 0x0B, /**<        GPRS mean throughput class -DOT 44 KBPS                 */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_1_DOT_11_KBPS = 0x0C, /**<      GPRS mean throughput class -1 DOT 11 KBPS               */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_2_DOT_2_KBPS = 0x0D, /**<       GPRS mean throughput class -2 DOT 2 KBPS                */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_4_DOT_4_KBPS = 0x0E, /**<       GPRS mean throughput class - 4 DOT 4 KBPS               */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_11_DOT_1_KBPS = 0x0F, /**<      GPRS mean throughput class -11 DOT 1 KBPS               */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_22KBPS = 0x10, /**<     GPRS mean throughput class - 22KBPS             */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_44KBPS = 0x11, /**<     GPRS mean throughput class - 44KBPS             */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_111KBPS = 0x12, /**<    GPRS mean throughput class -111KBPS             */
+       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_BEST_EFFORT = 0x13 /**< GPRS mean throughput class - BEST EFFORT                */
+} TelSatBearerParamGprsMeanThroughputClassType_t;
+
+/**
+ * @enum TelSatBearerParamGprsPdpType_t
+ * This enum lists the SAT bearer parameter GPRS pdp type.
+ */
+typedef enum {
+       TAPI_SAT_BIP_GPRS_PDP_TYPE_IP = 0x02, /**<      bearer parameter GPRS pdp type - IP             */
+       TAPI_SAT_BIP_GPRS_PDP_TYPE_RESERVED = 0xff /**< reserved                */
+} TelSatBearerParamGprsPdpType_t;
+
+/**
+ * @enum TelSatBearerParamLocalLinksServiceIdentityType_t
+ * This enum lists the SAT bearer parameters local links service identity.
+ */
+typedef enum {
+       TAPI_SAT_BIP_LL_SERVICE_IDENT_VALUE_ASSIGNED_BY_USIM = 0x00, /**<       local links service identity - value assigned by USIM           */
+       TAPI_SAT_BIP_LL_SERVICE_IDENT_VALUE_ASSIGNED_BY_REMOTED_DEVICE = 0xFF /**<      local links service identity - value assigned by remote service */
+} TelSatBearerParamLocalLinksServiceIdentityType_t;
+
+/**
+ * @enum TelSatChannelStatusType_t
+ * This enum lists the SAT channel status type.
+ */
+typedef enum {
+       TAPI_SAT_CS_LINK_ESTABLISHED_OR_PDP_CTX_NOT_ACTIVATED, /**<     channel status type-CS LINK ESTABLISHED OR PDP CTX NOT ACTIVATED                */
+       TAPI_SAT_CS_LINK_ESTABLISHED_OR_PDP_CTX_ACTIVATED, /**< channel status type-CS LINK ESTABLISHED OR PDP CTX ACTIVATED            */
+       TAPI_SAT_UICC_SERVER_MODE_TCP_IN_CLOSED_STATE, /**<     channel status type-UICC SERVER MODE TCP IN CLOSED STATE                */
+       TAPI_SAT_UICC_SERVER_MODE_TCP_IN_LISTEN_STATE, /**<     channel status type-UICC SERVER MODE TCP IN LISTEN STATE                */
+       TAPI_SAT_UICC_SERVER_MODE_TCP_IN_ESTABLISHED_STATE, /**<        channel status type-UICC SERVER MODE TCP IN ESTABLISHED STATE           */
+       TAPI_SAT_UICC_SERVER_MODE_RESERVED /**< reserved                */
+} TelSatChannelStatusType_t;
+
+/**
+ * @enum TelSatChannelStatusInfoType_t
+ * This enum lists the SAT channel status info type.
+ */
+typedef enum {
+       TAPI_SAT_CHANNEL_STATUS_NO_FURTHER_INFO_AVAILABLE = 0, /**<     CHANNEL STATUS NO FURTHER INFO AVAILABLE                */
+       TAPI_SAT_CHANNEL_STATUS_NOT_USED = 1, /**<      CHANNEL STATUS NOT USED                 */
+       TAPI_SAT_CHANNEL_STATUS_LINK_DROPPED = 5 /**<   CHANNEL STATUS LINK DROPPED     */
+} TelSatChannelStatusInfoType_t;
+
+/**
+ * @enum TelSatAddressType_t
+ * This enum lists the SAT address type.
+ */
+typedef enum {
+       TAPI_SAT_ADDR_TYPE_IPv4 = 0x21, /**<    address type - IPv4     */
+       TAPI_SAT_ADDR_TYPE_IPv6 = 0x57, /**<    address type - IPv6     */
+       TAPI_SAT_ADDR_RESERVED = 0xFF /**<      reserved                */
+} TelSatAddressType_t;
+
+/**
+ * @enum TelSatTransportProtocolType_t
+ * This enum lists the SAT transport protocol type.
+ */
+typedef enum {
+       TAPI_SAT_TP_TYPE_UDP_UICC_CLIENT = 0x01, /**<   transport protocol type- UDP UICC CLIENT        */
+       TAPI_SAT_TP_TYPE_TCP_UICC_CLIENT = 0x02, /**<   transport protocol type-TCP UICC CLIENT         */
+       TAPI_SAT_TP_TYPE_TCP_UICC_SERVER = 0x03 /**<    transport protocol type- TCP UICC SERVER        */
+} TelSatTransportProtocolType_t;
+
+/**
+ * @enum TelSatRemoteEntityAddrCodingType_t
+ * This enum lists the SAT remote entity address coding type.
+ */
+typedef enum {
+       TAPI_SAT_REMOTE_ENTITY_ADDR_CODING_TYPE_IEEE802_48BIT = 0, /**< remote entity address coding type- IEEE802 48BIT                */
+       TAPI_SAT_REMOTE_ENTITY_ADDR_CODING_TYPE_IRDA_32BIT = 1, /**<    remote entity address coding type- IRDA 32BIT           */
+       TAPI_SAT_REMOTE_ENTITY_ADDR_CODING_TYPE_RESERVED = 0xFF /**<    reserved                */
+} TelSatRemoteEntityAddrCodingType_t;
+
+/**
+ * This structure defines the Address data object.
+ */
+typedef struct {
+       TelSimTypeOfNum_t ton; /**<     type of number          */
+       TelSimNumberingPlanIdentity_t npi; /**< number plan identity            */
+       unsigned char diallingNumberLen; /**<   dialing number length           */
+       char diallingNumber[TAPI_SAT_DIALLING_NUMBER_LEN_MAX]; /**<     dialing number  */
+} TelSatAddressInfo_t;
+
+/**
+ * This structure defines the data coding scheme object.
+ */
+typedef struct {
+       int bIsCompressedFormat; /**<   flag to verify compressed format        */
+       TelSatAlphabetFormatType_t alphabetFormat; /**< alphabet format Type            */
+       TelSatMsgClassType_t msgClass; /**<     Type of message class           */
+       unsigned char rawDcs; /**<      raw dcs info            */
+} TelSatDataCodingSchemeInfo_t;
+
+/**
+ * This structure defines the Alpha ID data object.
+ */
+typedef struct {
+       int bIsPresent; /**<    flag for checking existence of alpha identifier         */
+       TelSatDataCodingSchemeInfo_t dcs; /**<  dcs info                */
+       unsigned char stringLen; /**<   alpha identifier length                 */
+       char string[TAPI_SAT_ALPHA_ID_LEN_MAX]; /**<    alpha identifier info   */
+} TelSatAlphaIdentifierInfo_t;
+
+/**
+ * This structure defines the Sub Address data object.
+ */
+typedef struct {
+       unsigned char subAddressLen; /**<       sub address length              */
+       char subAddress[TAPI_SAT_SUB_ADDR_LEN_MAX]; /**<        sub address             */
+} TelSatSubAddressInfo_t;
+
+/**
+ * This structure defines the Capability Configuration Parameters data object.
+ */
+typedef struct {
+       unsigned char dataLen; /**<     capability configuration parameter length       */
+       char data[TAPI_SAT_CCP_DATA_LEN_MAX]; /**<      capability configuration parameter      */
+} TelSatCapaConfigParamInfo_t;
+
+/**
+ * This struct defines the Command qualifier values for send SMS command.
+ */
+typedef struct {
+       int bIsPackingByMeRequired; /**<        flag to verify packing requirement, if FALSE, packing by ME not required        */
+} TelSatCmdQualiSendSms_t;
+
+/**
+ * This struct defines the Command qualifier values for display text command.
+ */
+typedef struct {
+       TelSatDisplayTextPriorityType_t msgPriority; /**<       message priority                */
+       TelSatDisplayTextMsgClearType_t msgClear; /**<  message clear type              */
+} TelSatCmdQualiDisplayText_t;
+
+/**
+ * This struct defines the Command qualifier values for get inkey command.
+ */
+typedef struct {
+       TelSatInkeyType_t inkeyType; /**<       inkey type              */
+       int bIsUsingAlphabetSet; /**<   flag for checking whether using alphabet set or not. if FALSE, digits(0-9,*,#and+) only         */
+       TelSatUseInputAlphabetType_t alphabetType; /**< alphabet type           */
+       int bIsImmediateResponseRequired;/**<   flag for checking whether immediate response required or not            */
+       int bIsHelpInfoAvailable; /**<  flag for checking whether help info available or not. if FALSE, no help information available   */
+} TelSatCmdQualiGetInkey_t;
+
+/**
+ * This struct defines the Command qualifier values for get input command.
+ */
+typedef struct {
+       int bIsUsingAlphabetSet; /**<   flag for checking whether using alphabet set. if FALSE, digits(0-9,*,#and+) only        */
+       TelSatUseInputAlphabetType_t alphabetType; /**< alphabet type. only using alphabet set case.            */
+       int bIsMeEchoUserInput; /**<    flag for checking whether ME should echo user input. if FALSE, user input shall not be displayed*/
+       int bIsUserInputUnpackedFormat; /**<    flag for checking whether user input is in unpacked format or not.  if FALSE, user input in SMS packed format   */
+       int bIsHelpInfoAvailable; /**<  flag to verify if help info available or not. if FALSE, no help information available   */
+} TelSatCmdQualiGetInput_t;
+
+/**
+ * This struct defines the Command qualifier values for play tone command.
+ */
+typedef struct {
+       TelSatDisplayVibrateAlertType_t vibrateAlert; /**<      type of vibrate alert           */
+} TelSatCmdQualiPlayTone_t;
+
+/**
+ * This struct defines the Command qualifier values for select item command.
+ */
+typedef struct {
+       TelSatPresentationType_t presentationType; /**< type of presentation. only presentation type specified          */
+       TelSatSelectionPreferenceType_t selectionPreference; /**<       type of selection preference            */
+       int bIsHelpInfoAvailable; /**<  flag for checking whether help info available or not. if FALSE, no help information available   */
+} TelSatCmdQualiSelectItem_t;
+
+/**
+ * This struct defines the Command qualifier values for setup menu command.
+ */
+typedef struct {
+       TelSatSelectionPreferenceType_t selectionPreference; /**<       type of selection preference            */
+       int bIsHelpInfoAvailable; /**<  flag to verify help info available or not. if FALSE, no help information available      */
+} TelSatCmdQualiSetupMenu_t;
+
+/**
+ * This struct defines the Command qualifier values for language notification command.
+ */
+typedef struct {
+       int bSpecificLanguageNotification; /**< flag for specific language notification. if FALSE, non-specific language notification   */
+} TelSatCmdQualiLanguageNotification_t;
+
+/**
+ * SAT command qualifier open channel
+ */
+typedef struct {
+       int bIsEstablishImmediateLink; /**<     flag whether establishing immediate link or not. if FALSE, on demand link establishment */
+       int bIsAutomaticReconnection; /**<      flag whether automatic reconnection or not. if FALSE, no automatic reconnection */
+       int bIsModeBackground; /**<     flag whether background mode or not.            */
+} TelSatCmdQualiOpenChannel_t;
+
+/**
+ * SAT command qualifier send data
+ */
+typedef struct {
+       int bIsSendDataImmediately; /**<        flag whether to send data immediately or not. if FALSE, store data in Tx buffer*/
+} TelSatCmdQualiSendData_t;
+
+/**
+ * This structure contains the command number, type and the qualifier objects of a SATK command.
+ */
+typedef struct {
+       unsigned char commandNumber; /**< specific command number       */
+       TelSatCommandType_t commandType; /**<   proactive command type          */
+
+       union {
+               TelSatCmdQualiRefresh_t cmdQualiRefresh; /**<   refresh command qualifier info  */
+               TelSatCmdQualiSetupCall_t cmdQualiSetupCall; /**<       setup call command qualifier info       */
+               TelSatCmdQualiSendSms_t cmdQualiSendSms; /**<   send sms command qualifier info */
+               TelSatCmdQualiDisplayText_t cmdQualiDisplayText; /**<   display text command qualifier info     */
+               TelSatCmdQualiGetInkey_t cmdQualiGetInkey; /**< get inkey command qualifier info        */
+               TelSatCmdQualiGetInput_t cmdQualiGetInput; /**< get input command qualifier info        */
+               TelSatCmdQualiPlayTone_t cmdQualiPlayTone; /**< play tone command qualifier info        */
+               TelSatCmdQualiSelectItem_t cmdQualiSelectItem; /**<     select item command qualifier info      */
+               TelSatCmdQualiSetupMenu_t cmdQualiSetupMenu; /**<       setup menu command qualifier info       */
+               TelSatCmdQualiProvideLocalInfo_t cmdQualiProvideLocalInfo;/**<  provide local info command qualifier info       */
+               TelSatCmdQualiLanguageNotification_t cmdQualiLanguageNotification;/**<  language notification command qualifier info    */
+               TelSatCmdQualiLaunchBrowser_t cmdQualiLaunchBrowser; /**<       launch Browser command qualifier info   */
+               TelSatCmdQualiOpenChannel_t cmdQualiOpenChannel; /**<   Open channel command qualifier info     */
+               TelSatCmdQualiSendData_t cmdQualiSendData; /**< send data command qualifier info        */
+       } u; /**<       Union   */
+} TelSatCommandDetailInfo_t;
+
+/**
+ * This struct defines the device identity values.
+ */
+typedef struct {
+       TelSatDeviceIdentitiesTagType_t source; /**<    device identity tag for source  */
+       TelSatDeviceIdentitiesTagType_t destination; /**<       device identity for destination */
+} TelSatDeviceIdentitiesInfo_t;
+
+/**
+ * This structure defines the Duration data object.
+ */
+typedef struct {
+       TelSatTimeUnitType_t timeUnit; /**<     time units for the duration data                */
+       unsigned char timeInterval; /**<        time interval           */
+} TelSatDurationInfo_t;
+
+/**
+ * This structure defines the menu item data object.
+ */
+typedef struct {
+       unsigned char itemId; /**<      item identifier                 */
+       unsigned char textLen; /**<     text length             */
+       unsigned char text[TAPI_SAT_ITEM_TEXT_LEN_MAX + 1]; /**<        text information                */
+} TelSatMenuItemInfo_t;
+
+/**
+ * This structure defines the item identifier object.
+ */
+typedef struct {
+       unsigned char selectedItemIdentifier; /**<      selected item identifier                */
+} TelSatItemIdentifierInfo_t;
+
+/**
+ * This structure defines expected user response length.
+ */
+typedef struct {
+       unsigned char min; /**< user response length minimum value              */
+       unsigned char max; /**< user response length maximum value              */
+} TelSatRespLenInfo_t;
+
+/**
+ * This structure defines RESUlT data object.
+ */
+typedef struct {
+       TelSatResultType_t generalResult; /**<  general result  */
+       TelSatMeProblemType_t meProblem; /**<   additional information on general result        */
+} TelSatResultInfo_t;
+
+/**
+ * This structure defines RESUlT data object.
+ */
+typedef struct {
+       TelSatSmsTpduType_t tpduType; /**<      SMS TPDU TYPE   */
+       unsigned char dataLen; /**<     SMS TPDU DATA LENGTH    */
+       unsigned char data[TAPI_SAT_SMS_TPDU_SMS_DATA_LEN_MAX]; /**< SMS TPDU DATA*/
+} TelSatSmsTpduInfo_t;
+
+/**
+ * This structure defines SS STRING data object.
+ */
+typedef struct {
+       TelSimTypeOfNum_t ton; /**<     type of number  */
+       TelSimNumberingPlanIdentity_t npi; /**< number plan identity    */
+       unsigned char stringLen; /**<   ss string length        */
+       char string[TAPI_SAT_SS_STRING_LEN_MAX]; /**<   ss string       */
+} TelSatSsStringInfo_t;
+
+/**
+ * This structure defines TEXT STRING data object.
+ */
+typedef struct {
+       int bIsDigitOnly; /**<  flag for checking whether only digits used or not       */
+       TelSatDataCodingSchemeInfo_t dcs; /**<  data coding scheme              */
+       unsigned short stringLen; /**<  text length             */
+       char string[TAPI_SAT_TEXT_STRING_LEN_MAX + 1]; /**<     text string     */
+} TelSatTextTypeInfo_t;
+
+/**
+ * This structure defines menu item text object.
+ */
+typedef struct {
+       int bIsDigitOnly; /**<  flag for checking whether only digits used or not       */
+       TelSatDataCodingSchemeInfo_t dcs; /**<  data coding scheme              */
+       unsigned char stringLen; /**<   menu item string length */
+       char* pString; /**<     Menu Item String */
+} TelSatMenuItemTextInfo_t;
+
+/**
+ * This structure defines tone object.
+ */
+typedef struct {
+       TelSatToneType_t type; /**<     tone type       */
+} TelSatToneInfo_t;
+
+/**
+ * This structure defines USSD string data object.
+ */
+typedef struct {
+       TelSatDataCodingSchemeInfo_t dcs; /**<  data coding scheme      */
+       unsigned char ussdStringLen; /**<       ussd string length      */
+       char ussdString[TAPI_SAT_USSD_STRING_LEN_MAX]; /**<     ussd string     */
+} TelSatUssdStringInfo_t;
+
+/**
+ * This structure defines File list data object.
+ */
+typedef struct {
+       unsigned char fileCount; /**<   file count      */
+//     TelSimFileName_t fileId[TAPI_SAT_FILE_ID_LIST_MAX_COUNT]; /**<  file identifier */
+} TelSatFileListInfo_t;
+
+/**
+ * This structure defines default text data object.
+ */
+typedef struct {
+       int bIsPresent; /**<    flag for checking whether default text exists or not    */
+       int bIsDigitOnly; /**<  flag for checking whether only digits used or not       */
+       TelSatDataCodingSchemeInfo_t dcs; /**<  data coding scheme      */
+       unsigned char stringLen; /**<   default text string length              */
+       char string[TAPI_SAT_TEXT_STRING_LEN_MAX]; /**< default text    */
+} TelSatDefaultTextInfo_t;
+
+/**
+ * This structure defines Next Action Indicator List data object.
+ */
+typedef struct {
+       unsigned char listCount; /**<   next action identifier count    */
+       unsigned char list[TAPI_SAT_ITEMS_NEXT_ACTION_INDI_LIST_MAX_COUNT]; /**<        next action identifier list     */
+} TelSatItemsNextActionIndiListInfo_t;
+
+/**
+ * This structure defines event list data object.
+ */
+typedef struct {
+       unsigned char eventListCount; /**<      event list count        */
+       TelSatEventDownloadType_t list[TAPI_SAT_EVENT_LIST_MAX_COUNT]; /**<     event list */
+} TelSatEventListInfo_t;
+
+/**
+ * This structure defines icon info object.
+ */
+typedef struct {
+       unsigned char width; /**<       icon width              */
+       unsigned char height; /**<      icon height     */
+       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];
+       char clutFile[TAPI_SAT_IMG_DATA_FILE_PATH_LEN_MAX];
+} TelSatIconInfo_t;
+
+/**
+ * This structure defines icon data object.
+ */
+typedef struct {
+       int bIsPresent; /**<    flag for checking whether icon identifier exists or not         */
+       TelSatIconQualifierType_t iconQualifier; /**<   icon qualifier type             */
+       unsigned char iconIdentifier; /**<      icon identifier         */
+       TelSatIconInfo_t iconInfo; /**< icon info       */
+} TelSatIconIdentifierInfo_t;
+
+/**
+ * This structure defines icon identifier data object.
+ */
+typedef struct {
+       int bIsPresent; /**<    flag for checking whether icon identifier exists or not */
+       TelSatIconQualifierType_t iconListQualifier; /**<       icon list qualifier     */
+       unsigned char iconCount; /**<   icon count      */
+       unsigned char iconIdentifierList[TAPI_SAT_ICON_LIST_MAX_COUNT]; /**<    icon identifier list    */
+       TelSatIconInfo_t iconInfo[TAPI_SAT_ICON_LIST_MAX_COUNT]; /**<   icon list info  */
+} TelSatIconIdentifierListInfo_t;
+
+/**
+ * This structure defines SAT bc repeat indicator Info
+ */
+typedef struct {
+       TelSatBcRepeatIndicatorType_t indType; /**<     bc repeat indicator type        */
+} TelSatBcRepeatIndicatorInfo_t;
+
+/**
+ * This structure defines call control strings.
+ */
+typedef struct {
+       TelSatCallCtrlStringType_t callCtrlStringType; /**<     call control type       */
+       union {
+               TelSatAddressInfo_t voiceString; /**<   voice call string       */
+               TelSatSsStringInfo_t ssString; /**<     ss string       */
+               TelSatUssdStringInfo_t ussdString; /**< ussd string     */
+       } u; /**<       Union   */
+} TelSatCallCtrlAddressStringInfo_t;
+
+/**
+ * This structure defines the Action requested call control data.
+ */
+typedef struct {
+       TelSatCallCtrlAddressStringInfo_t callCtrlAddString; /**< Call control address string */
+       TelSatCapaConfigParamInfo_t ccp1; /**< Capability configuration parameter 1 */
+       TelSatSubAddressInfo_t subAddress; /**< Subaddress */
+       TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier */
+       TelSatBcRepeatIndicatorInfo_t bcRepeatIndicator; /**< Bc repeat indicator */
+       TelSatCapaConfigParamInfo_t ccp2; /**< Capability configuration parameter 2 */
+} TelSatCallCtrlRequestedActionInfo_t;
+
+/**
+ * This structure defines dtmf string data object.
+ */
+typedef struct {
+       unsigned char stringLen; /**<   dtmf string lengh       */
+       char dtmfTone[TAPI_SAT_DTMF_STRING_LEN_MAX]; /**<       dtmf tone data  */
+} TelSatDtmfStringInfo_t;
+
+/**
+ * This structure defines language data object.
+ */
+typedef struct {
+       TelSatLanguageType_t language; /**<     language type   */
+} TelSatLanguageInfo_t;
+
+/**
+ * This structure defines date time and time zone data object.
+ */
+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 timeZone; /**<    timeZone        */
+} TelSatDataTimeZoneInfo_t;
+
+/**
+ * This structure defines SAT browser identities.
+ */
+typedef struct {
+       TelSatBrowserIdentityType_t browserIdentity; /**<       browser identity        */
+} TelSatBrowserIdentitiesInfo_t;
+
+/**
+ * This structure defines SAT browser URL Data Object.
+ */
+typedef struct {
+       char string[TAPI_SAT_URL_LEN_MAX + 1]; /**<     url string      */
+} TelSatUrlInfo_t;
+
+/**
+ * This structure defines SAT bearer type.
+ */
+typedef struct {
+       unsigned char listLen; /**<     bearer list length      */
+       TelSatBearerType_t bearerList[TAPI_SAT_BEARER_LIST_MAX_COUNT]; /**<     bearer list     */
+} TelSatBearerInfo_t;
+
+/**
+ * This structure defines SAT provisioning reference.
+ */
+typedef struct {
+       char provisioningFilePath[TAPI_SAT_PROVISIONING_FILE_PATH_LEN_MAX]; /**<        provisioning file path  */
+} TelSatProvisioningRefInfo_t;
+
+/**
+ * This structure defines SAT browser termination cause.
+ */
+typedef struct {
+       TelSatBrowserTerminationCauseType_t cause; /**< browser termination cause       */
+} TelSatBrowserTerminationCauseInfo_t;
+
+/**
+ * This structure defines SAT Csd bearer parameters .
+ */
+typedef struct {
+       TelSatBearerParamCsdDataRateType_t dataRate; /**<       bearer csd data rate    */
+       TelSatBearerParamCsdBearerServiceType_t bearerService; /**<     bearer csd service type */
+       TelSatBearerParamCsdConnectionElementType_t connectionElement; /**<     bearer connection element type  */
+} TelSatBearerParametersCsdInfo_t;
+
+/**
+ * This structure defines SAT bearer parameters GPRS.
+ */
+typedef struct {
+       TelSatBearerParamGprsPrecedenceClassType_t precedenceClass; /**<        bearer gprs     precedence class        */
+       TelSatBearerParamGprsDelayClassType_t delayClass; /**<  bearer gprs delay       */
+       TelSatBearerParamGprsReliabilityClassType_t reliabilityClass; /**<      bearer gprs reliability */
+       TelSatBearerParamGprsPeakThroughputClassType_t peakThroughputClass;/**< bearer gprs peak throughput     */
+       TelSatBearerParamGprsMeanThroughputClassType_t meanThroughputClass;/**< bearer gprs mean throughput     */
+       TelSatBearerParamGprsPdpType_t pdpType; /**<    bearer gprs pdp type    */
+} TelSatBearerParametersGprsInfo_t;
+
+/**
+ * This structure defines SAT bearer parameters local links.
+ */
+typedef struct {
+       TelSatBearerParamLocalLinksServiceIdentityType_t serviceIdentifier; /**<        bearer local link service identifier            */
+       char serviceRecord[TAPI_SAT_BEARER_PARAMS_LEN_MAX]; /**<        bearer local link service record        */
+} TelSatBearerParametersLocalLinksInfo_t;
+
+/**
+ * This structure defines SAT bearer description.
+ */
+typedef struct {
+       TelSatBearerDescType_t bearerType; /**< bearer type     */
+       union {
+               TelSatBearerParametersCsdInfo_t bearerParamsCsd; /**<   csd     */
+               TelSatBearerParametersGprsInfo_t bearerParamsGprs; /**< gprs    */
+               TelSatBearerParametersLocalLinksInfo_t bearerParamsLocalLinks; /**<     local link      */
+       } bearer_params; /**<Union */
+} TelSatBearerDescriptionInfo_t;
+
+/**
+ * This structure defines SAT channel data.
+ */
+typedef struct {
+       unsigned char channelDataStringLen; /**<        channel data length     */
+       char channelDataString[TAPI_SAT_CHANNEL_DATA_STRING_LEN_MAX]; /**<      channel data    */
+} TelSatChannelDataInfo_t;
+
+/**
+ * This structure defines SAT channel data length.
+ */
+typedef struct {
+       unsigned char channelDataLen; /**<      channel data length     */
+} TelSatChannelDataLengthInfo_t;
+
+/**
+ * This structure defines SAT buffer size.
+ */
+typedef struct {
+       unsigned char bufferSize[2]; /**<       channel data buffer size        */
+} TelSatBufferSizeInfo_t;
+
+/**
+ * This structure defines SAT channel status.
+ */
+typedef struct {
+       unsigned char channelId; /**<   channel id      */
+       TelSatChannelStatusType_t status; /**<  channel status          */
+       TelSatChannelStatusInfoType_t channelInfo; /**< channel status info     */
+} TelSatChannelStatusInfo_t;
+
+/**
+ * This structure defines SAT other address.
+ */
+typedef struct {
+       TelSatAddressType_t addressType; /**<   channel address type    */
+       unsigned char addressLen; /**<  channel address length  */
+       char address[TAPI_SAT_OTHER_ADDR_LEN_MAX]; /**< channel address */
+} TelSatOtherAddressInfo_t;
+
+/**
+ * This structure defines SIM me interface transport level.
+ */
+typedef struct {
+       TelSatTransportProtocolType_t transportProtocolType; /**<       transport protocol type */
+       unsigned short portNumber; /**< port number     */
+} TelSatSimMeInterfaceTransportLevelInfo_t;
+
+/**
+ * This structure defines SAT network access name.
+ */
+typedef struct {
+       unsigned char length; /**<      network access name length      */
+       unsigned char netAccName[TAPI_SAT_NET_ACC_NAM_LEN_MAX]; /**<    network access name     */
+} TelSatnetworkAccessNameInfo_t;
+
+/**
+ * This structure defines SAT aid.
+ */
+typedef struct {
+       char aid[TAPI_SAT_AID_LEN_MAX]; /**<    application Id  */
+} TelSatAidInfo_t;
+
+/**
+ * This structure defines SAT remote entity address.
+ */
+typedef struct {
+       TelSatRemoteEntityAddrCodingType_t codingType; /**<     remote entity address coding type       */
+       unsigned short length; /**<     remote entity address length    */
+       unsigned char remoteEntityAddress[TAPI_SAT_REMOTE_ENTITY_ADDR_LEN_MAX]; /**<    remote entity address data      */
+} TelSatRemoteEntityAddressInfo_t;
+
+/**
+ * This structure defines SAT text attribute.
+ */
+typedef struct {
+       unsigned char textFormatting[4]; /**<   text attribute -e.g. bold, center align, etc    */
+} TelSatTextAttributeInfo_t;
+
+/**
+ * This structure defines SAT text attribute list.
+ */
+typedef struct {
+       unsigned int listCount; /**<    text attribute list count               */
+       TelSatTextAttributeInfo_t list[TAPI_SAT_ITEM_TEXT_ATTRIBUTES_LIST_MAX_COUNT]; /**<      text attribute list info        */
+} TelSatTextAttributeListInfo_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _TEL_SAT_OBJ_H_ */
+
+/**
+ * @}
+ */
diff --git a/include/TelSatProactvCmd.h b/include/TelSatProactvCmd.h
new file mode 100644 (file)
index 0000000..86ad042
--- /dev/null
@@ -0,0 +1,704 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup SAT_TAPI        SAT
+ * @{
+ *
+ * @file TelSatProactvCmd.h
+
+ @brief This file serves as a "C" header file defines structures for Tapi SAT Proactive commands and terminal response Services. \n
+ It contains a sample set of constants, enums, structs that would be required by applications.
+ */
+
+#ifndef _TEL_SAT_PROACTV_CMD_H_
+#define _TEL_SAT_PROACTV_CMD_H_
+
+#include <TelSatObj.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#define TAPI_SAT_MENU_ITEM_COUNT_MAX                   40      /**<    max count of sat menu items     */
+#define TAPI_SAT_PROVISIONING_REF_MAX_COUNT            10      /**<    max count of sat provisioning reference */
+
+/**
+ * This structure contains the data objects for DISPLAY TEXT proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+} TelSatMoreTimeIndInfo_t;
+
+/**
+ * This structure contains the data objects for DISPLAY TEXT proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatTextTypeInfo_t text; /**< display text info       */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       int bImmediateRespRequested; /**<       flag for checking whether immediate response required or not    */
+       TelSatDurationInfo_t duration; /**<     duration for which text should be displayed     */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatDisplayTextIndInfo_t;
+
+/**
+ * This structure contains the data objects for GET INKEY proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatTextTypeInfo_t text; /**< display text info       */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatDurationInfo_t duration; /**<     duration for which text should be displayed     */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatGetInkeyIndInfo_t;
+
+/**
+ * This structure contains the data objects for GET INPUT proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatTextTypeInfo_t text; /**< display text info       */
+       TelSatRespLenInfo_t respLen; /**<       input response length   */
+       TelSatTextTypeInfo_t defaultText; /**<  default text info       */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatGetInputIndInfo_t;
+
+/**
+ * This structure contains the data objects for PLAY TONE proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatToneInfo_t tone; /**<     tone info       */
+       TelSatDurationInfo_t duration; /**<     duration for which tone should be played        */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatPlayToneIndInfo_t;
+
+/**
+ * This structure contains the data objects for SETUP MENU proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       unsigned char menuItemCount; /**<       count of menu items     */
+       TelSatMenuItemInfo_t menuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX]; /**<       menu item data  */
+       TelSatItemsNextActionIndiListInfo_t itemNextActionIndList; /**< next action indication list     */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatIconIdentifierListInfo_t iconIdList; /**< icon identifier list info       */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+       TelSatTextAttributeListInfo_t itemTextAttributeList; /**<       item text attribute list        */
+} TelSatSetupMenuIndInfo_t;
+
+/**
+ * This structure contains the data objects for SELECT ITEM proactive command indication data.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatItemsNextActionIndiListInfo_t itemNextActionIndList; /**< next action indication list     */
+       unsigned char defaultItemIdentifier; /**<       default item identifier(default selected item id)       */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatIconIdentifierListInfo_t iconIdList; /**< icon identifier list info       */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+       TelSatTextAttributeListInfo_t itemTextAttributeList; /**<       item text attribute list        */
+       unsigned char menuItemCount; /**<       count of menu items     */
+       TelSatMenuItemInfo_t menuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX]; /**<       menu item data  */
+} TelSatSelectItemIndInfo_t;
+
+/**
+ * This structure contains the data objects for SEND SHORT MESSAGE proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatAddressInfo_t address; /**<       address for sending sms */
+       TelSatSmsTpduInfo_t smsTpdu; /**<       sms tpdu info   */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatSendSmsIndInfo_t;
+
+/**
+ * This structure contains the data objects for SEND SS proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatSsStringInfo_t ssString; /**<     ss string       */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatSendSsIndInfo_t;
+
+/**
+ * This structure contains the data objects for SEND USSD proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatUssdStringInfo_t ussdString; /**< ussd string info        */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatSendUssdIndInfo_t;
+
+/**
+ * This structure contains the data objects for SETUP CALL proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAddressInfo_t address; /**<       setup call address info*/
+       TelSatCapaConfigParamInfo_t ccp; /**<   capability configuration parameter      */
+       TelSatSubAddressInfo_t subAddress; /**< setup call sub address  */
+       TelSatDurationInfo_t duration; /**<     command execution time duration */
+       TelSatAlphaIdentifierInfo_t userConfirmPhaseAlphaId;/**<        user Confirmation Phase AlphaId */
+       TelSatAlphaIdentifierInfo_t callSetupPhaseAlphaId; /**< call Setup Phase AlphaId        */
+       TelSatIconIdentifierInfo_t userConfirmPhaseIconId; /**< user Confirmation Phase IconId  */
+       TelSatIconIdentifierInfo_t callSetupPhaseIconId; /**<   call Setup Phase IconId */
+       TelSatTextAttributeInfo_t userConfirmPhaseTextAttribute; /**<   user Confirmation Phase Text Attribute  */
+       TelSatTextAttributeInfo_t callSetupPhaseTextAttribute; /**<     call Setup PhaseText Attribute  */
+} TelSatSetupCallIndInfo_t;
+
+/**
+ * This structure contains the data objects for REFRESH proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatFileListInfo_t fileList; /**<     file list for refresh   */
+       TelSatAidInfo_t aid; /**<       application Id  */
+} TelSatRefreshIndInfo_t;
+
+/**
+ * This structure contains the data objects for PROVIDE LOCAL INFO proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+
+} TelSatProvideLocalInfoIndInfo_t;
+
+/**
+ * This structure contains the data objects for SETUP EVENT LIST proactive command indication data.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatEventListInfo_t eventList; /**<   event list contains events which are required by USIM application       */
+
+} TelSatSetupEventListIndInfo_t;
+
+/**
+ * This structure contains the data objects for SETUP IDLE MODE TEXT proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatTextTypeInfo_t text; /**< text to be shown on idle screen */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatSetupIdleModeTextIndInfo_t;
+
+/**
+ * This structure contains the data objects for SEND DTMF COMMAND proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatDtmfStringInfo_t dtmfString; /**< dtmf string     */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatSendDtmfIndInfo_t;
+
+/**
+ * This structure contains the data objects for LANGUAGE NOTIFICATION proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatLanguageInfo_t language; /**<     language info from USIM application     */
+} TelSatLanguageNotificationIndInfo_t;
+
+/**
+ * This structure contains the data objects for LAUNCH BROWSER proactive command indication.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatBrowserIdentitiesInfo_t browserId; /**<   browser identity        */
+       TelSatUrlInfo_t url; /**<       url     */
+       TelSatBearerInfo_t bearer; /**< bearer which is used by browser */
+       unsigned char provisioningRefCount; /**<        provisioning reference count    */
+       TelSatProvisioningRefInfo_t provisioningRef[TAPI_SAT_PROVISIONING_REF_MAX_COUNT]; /**<  provisioning reference data     */
+       TelSatTextTypeInfo_t text; /**< display text info       */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatLaunchBrowserIndInfo_t;
+
+/**
+ * This structure contains the data objects for OPEN CHANNEL CSB proactive command indication data.
+ */
+typedef struct {
+       TelSatAddressInfo_t address; /**<       channel address */
+       TelSatSubAddressInfo_t subAddress; /**< channel sub address     */
+       TelSatDurationInfo_t duration1; /**<    connection require time */
+       TelSatDurationInfo_t duration2; /**<    connection require time2        */
+       TelSatBearerParametersCsdInfo_t bearerParamsCsd; /**<   csd info        */
+       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
+       TelSatOtherAddressInfo_t otherAddress; /**<     otherAddress    */
+       TelSatTextTypeInfo_t userLogin; /**<    userLogin       */
+       TelSatTextTypeInfo_t userPassword; /**< userPassword    */
+       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     simMeInterfaceTransportLevel    */
+       TelSatOtherAddressInfo_t dataDestinationAddress; /**<   dataDestinationAddress  */
+} TelSatOpenChannelCsbInfo_t;
+
+/**
+ * This structure contains the data objects for OPEN CHANNEL (packet) proactive command indication data.
+ */
+typedef struct {
+       TelSatBearerParametersGprsInfo_t bearerParamsGprs; /**< gprs info       */
+       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
+       TelSatnetworkAccessNameInfo_t networkAccessName; /**<   networkAccessName       */
+       TelSatOtherAddressInfo_t otherAddress; /**<     otherAddress    */
+       TelSatTextTypeInfo_t userLogin; /**<    userLogin       */
+       TelSatTextTypeInfo_t userPassword; /**< userPassword    */
+       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     simMeInterfaceTransportLevel    */
+       TelSatOtherAddressInfo_t dataDestinationAddress; /**<   dataDestinationAddress  */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatOpenChannelpdbInfo_t;
+
+/**
+ * This structure contains the data objects for OPEN CHANNEL LOCAL LINK proactive command indication data.
+ */
+typedef struct {
+       TelSatDurationInfo_t duration1; /**<    command execution time duration1        */
+       TelSatDurationInfo_t duration2; /**<    command execution time duration2        */
+       TelSatBearerParametersLocalLinksInfo_t bearerParamsLocalLinks; /**<     local link info */
+       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
+       TelSatTextTypeInfo_t userPassword; /**< userPassword    */
+       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     simMeInterfaceTransportLevel    */
+       TelSatOtherAddressInfo_t dataDestinationAddress; /**<   dataDestinationAddress  */
+       TelSatRemoteEntityAddressInfo_t remoteEntityAddress; /**<       remoteEntityAddress     */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatOpenChannelLocalBearerInfo_t;
+
+/**
+ * This structure contains the data objects for OPEN CHANNEL (DEFAULT BEARER) proactive command indication data.
+ */
+typedef struct {
+       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
+       TelSatOtherAddressInfo_t otherAddress; /**<     otherAddress    */
+       TelSatTextTypeInfo_t userLogin; /**<    userLogin       */
+       TelSatTextTypeInfo_t userPassword; /**< userPassword    */
+       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel;/**<      simMeInterfaceTransportLevel    */
+       TelSatOtherAddressInfo_t dataDestinationAddress; /**<   dataDestinationAddress  */
+} TelSatOpenChannelDefaultBearerInfo_t;
+
+/**
+ * This structure contains the data objects for OPEN CHANNEL (UICC Server Mode) proactive command indication data.
+ */
+typedef struct {
+       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
+       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     simMeInterfaceTransportLevel    */
+} TelSatOpenChannelUiccServerModeInfo_t;
+
+/**
+ * This structure contains the data objects for OPEN CHANNEL proactive command indication data.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       int bIsUiccServerMode; /**<     flag whether UICC server mode or not    */
+       TelSatBearerDescType_t bearerType; /**< bearer destination type */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       union {
+               TelSatOpenChannelCsbInfo_t csBearer; /**<       cs info */
+               TelSatOpenChannelpdbInfo_t pdBearer; /**<       pbd info        */
+               TelSatOpenChannelLocalBearerInfo_t locBearer; /**<      local link info */
+               TelSatOpenChannelDefaultBearerInfo_t defaultBearer; /**<        defaultBearer   */
+               TelSatOpenChannelUiccServerModeInfo_t uiccServerMode; /**<      uiccServerMode  */
+       } details; /**< Open Channel Details */
+} TelSatOpenChannelIndInfo_t;
+
+/**
+ * This structure contains the data objects for CLOSE CHANNEL proactive command indication data.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
+} TelSatCloseChannelIndInfo_t;
+
+/**
+ * This structure contains the data objects for RECEIVE DATA proactive command indication data.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatChannelDataLengthInfo_t channelDataLen; /**<      channel data length     */
+} TelSatReceiveDataIndInfo_t;
+
+/**
+ * This structure contains the data objects for SEND DATA proactive command indication data.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
+       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
+       TelSatChannelDataInfo_t channel_data; /**<      channel data for sending        */
+} TelSatSendDataIndInfo_t;
+
+/**
+ * This structure contains the data objects for GET CHANNEL STATUS proactive command indication data.
+ */
+typedef struct {
+       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
+       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
+} TelSatGetChannelStatusIndInfo_t;
+
+/**
+ * This structure contains the data object for END PROACTIVE SESSION command indication.
+ */
+typedef struct {
+       TelSatCommandType_t commandType; /**<   proactive command type  */
+} TelSatEndProactiveSessionIndInfo_t;
+
+/**
+ * This structure contains the data objects for PROACTIVE command indication union data.
+ */
+typedef struct {
+       union {
+               TelSatMoreTimeIndInfo_t moreTime;
+               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        */
+               TelSatPlayToneIndInfo_t playTone; /**<  Parsed proactive command info from TLV to Telephony data type - play tone       */
+               TelSatSetupMenuIndInfo_t setupMenu; /**<        Parsed proactive command info from TLV to Telephony data type - setup menu      */
+               TelSatSelectItemIndInfo_t selectItem; /**<      Parsed proactive command info from TLV to Telephony data type - select item     */
+               TelSatSendSmsIndInfo_t sendSms; /**<    Parsed proactive command info from TLV to Telephony data type - send sms        */
+               TelSatSendSsIndInfo_t sendSs; /**<      Parsed proactive command info from TLV to Telephony data type - send ss */
+               TelSatSendUssdIndInfo_t sendUssd; /**<  Parsed proactive command info from TLV to Telephony data type - send  ussd      */
+               TelSatSetupCallIndInfo_t setupCall; /**<        Parsed proactive command info from TLV to Telephony data type - setup call      */
+               TelSatRefreshIndInfo_t refresh; /**<    Parsed proactive command info from TLV to Telephony data type - refresh */
+               TelSatProvideLocalInfoIndInfo_t provideLocInfo; /**<    Parsed proactive command info from TLV to Telephony data type - provide local info      */
+               TelSatLaunchBrowserIndInfo_t launchBrowser; /**<        Parsed proactive command info from TLV to Telephony data type - launch browser  */
+               TelSatSetupIdleModeTextIndInfo_t idleText; /**< Parsed proactive command info from TLV to Telephony data type - setup idle mode text    */
+               TelSatSendDtmfIndInfo_t sendDtmf; /**<  Parsed proactive command info from TLV to Telephony data type - send dtmf       */
+               TelSatLanguageNotificationIndInfo_t languageNotification;/**<   Parsed proactive command info from TLV to Telephony data type - language notification   */
+               TelSatSetupEventListIndInfo_t setupEventList; /**<      Parsed proactive command info from TLV to Telephony data type - setup event list        */
+               TelSatOpenChannelIndInfo_t openChannel; /**<    Parsed proactive command info from TLV to Telephony data type - open channel    */
+               TelSatCloseChannelIndInfo_t closeChannel; /**<  Parsed proactive command info from TLV to Telephony data type - close channel   */
+               TelSatReceiveDataIndInfo_t receiveData; /**<    Parsed proactive command info from TLV to Telephony data type - receive data    */
+               TelSatSendDataIndInfo_t sendData; /**<  Parsed proactive command info from TLV to Telephony data type - send data       */
+               TelSatGetChannelStatusIndInfo_t getChannelStatus; /**<  Parsed proactive command info from TLV to Telephony data type - get channel status      */
+       } cmdInfo; /**< Union   */
+} TelSatProactiveCmdData_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of DISPLAY TEXT proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatDisplayTextRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of GET INKEY proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       TelSatTextTypeInfo_t text; /**< inserted key info       */
+       TelSatDurationInfo_t duration;
+} TelSatGetInkeyRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of PLAY TONE proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatPlayToneRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of MORE TIME proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatMoreTimeRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SETUP MENU proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatSetupMenuRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of GET INPUT proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       TelSatTextTypeInfo_t text; /**< inserted string info    */
+} TelSatGetInputRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SELECT ITEM proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       int bOtherInfo; /**<    flag to check whether other information is required or not      */
+       unsigned char itemIdentifier; /**<      item identifier */
+} TelSatSelectItemRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of PROVIDE LOCAL INFORMATION proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       int bOtherInfo; /**<    flag to check whether other information is required or not      */
+       TelSatCmdQualiProvideLocalInfo_t infoType; /**< local info type - e.g. time zone or language info, etc  */
+       union {
+               TelSatDataTimeZoneInfo_t timeZoneInfo; /**<     current time zone info  */
+               TelSatLanguageInfo_t languageInfo; /**< current ME language setting info        */
+       } u; /**<       Union   */
+} TelSatProvideLocalInfoRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SETUP EVENT LIST proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatSetupEventListRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SEND SMS proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< call control problem    */
+} TelSatSendSmsRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SET UP CALL proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       int bOtherInfo; /**<    flag to check whether other information are required or not     */
+       TelSatNetworkProblemType_t networkProblem; /**< network problem during setup call       */
+       TelSatCallCtrlProblemType_t permanentCallCtrlProblem; /**<      permanent call control problem  */
+       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**<       call control requested action info      */
+       TelSatResultInfo_t result2; /**<        additional response on general result   */
+       TelSatTextTypeInfo_t text; /**< text string info        */
+       int bIsTapiCause; /**<  flag to check whether tapi makes problem or not */
+       unsigned long tapiCause; /**<   tapi call level cause   */
+       unsigned long tapiSsCause; /**< tapi ss level cause     */
+} TelSatSetupCallRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SEND SS proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       int bOtherInfo; /**<    flag to check whether whether other information is required or not      */
+       TelSatSsProblemType_t additionalSsProblemInfo; /**<     additional ss problem */
+       TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< additional call control problem */
+       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**<       call control requested action info      */
+       TelSatResultInfo_t result2; /**<        additional response on general result   */
+       TelSatTextTypeInfo_t text; /**< text string info        */
+} TelSatSendSsRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SEND USSD proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       int bOtherInfo; /**<    flag to check whether other information is required or not      */
+       TelSatUssdProblemType_t additionalUssdProblemInfo; /**< additional ussd problem */
+       TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< additional call control problem */
+       int bCallCtrlHasModification; /**<      flag to check whether modification happens during call control  */
+       TelSatTextTypeInfo_t text; /**< text string info        */
+       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**<       call control requested action info      */
+       TelSatResultInfo_t result2; /**<        additional response on general result   */
+       TelSatTextTypeInfo_t text2; /**<        text string info        */
+} TelSatSendUssdRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of REFRESH proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatRefreshRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of GET CHANNEL STATUS proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       int bOtherInfo; /**<    flag whether other information are required or not      */
+       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
+       TelSatChannelStatusInfo_t channelStatus; /**<   channel Status  */
+} TelSatGetChannelStatusRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of CLOSE CHANNEL proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
+} TelSatCloseChannelRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of OPEN CHANNEL proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       int bOtherInfo; /**<    flag whether other information are required or not */
+       TelSatBearerDescriptionInfo_t bearerDescription; /**<   bearerDescription       */
+       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
+       TelSatChannelStatusInfo_t channelStatus; /**<   channelStatus   */
+       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
+} TelSatOpenChannelRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of LANGAUGE NOTIFICATION proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatLanguageNotificationRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of LAUNCH BROWSER proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       TelSatLaunchBrowserProblemType_t additionalProblemInfo; /**<    browser specific problem info   */
+} TelSatLaunchBrowserRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of RECEIVE DATA proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
+       int bOtherInfo; /**<    flag whether other information are required or not      */
+       TelSatChannelDataInfo_t channel_data; /**<      channel data    */
+       unsigned char channelDataLen; /**<      channel data length     */
+} TelSatReceiveDataRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SEND DATA proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
+       unsigned char channelDataLen; /**<      channel data length     */
+} TelSatSendDataRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SETUP IDLE MODE TEXT proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatSetupIdlemodeTextRespInfo_t;
+
+/**
+ * This structure contains the data objects for the Terminal Response of SEND DTMF proactive command.
+ */
+typedef struct {
+       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
+} TelSatSendDtmfRespInfo_t;
+
+/**
+ * This contains the data structures to be used to send proactive command response.
+ */
+typedef struct {
+       unsigned char commandNumber; /**<         proactive command number      */
+       TelSatCommandType_t commandType; /**<     proactive command type        */
+       union {
+               TelSatMoreTimeRespInfo_t moreTime;
+               TelSatDisplayTextRespInfo_t displayText; /**<   terminal response info from displayText proactive command       */
+               TelSatGetInkeyRespInfo_t getInkey; /**< terminal response info from getInkey proactive command  */
+               TelSatGetInputRespInfo_t getInput; /**< terminal response info from getInput proactive command  */
+               TelSatPlayToneRespInfo_t playTone; /**< terminal response info from playTone proactive command  */
+               TelSatSetupMenuRespInfo_t setupMenu; /**<       terminal response info from setupMenu proactive command */
+               TelSatSelectItemRespInfo_t selectItem; /**<     terminal response info from selectItem proactive command        */
+               TelSatSendSmsRespInfo_t sendSms; /**<   terminal response info from sendSms proactive command   */
+               TelSatSendSsRespInfo_t sendSs; /**<     terminal response info from sendSs proactive command    */
+               TelSatSendUssdRespInfo_t sendUssd; /**< terminal response info from sendUssd proactive command  */
+               TelSatSetupCallRespInfo_t setupCall; /**<       terminal response info from setupCall proactive command */
+               TelSatRefreshRespInfo_t refresh; /**<   terminal response info from refresh proactive command   */
+               TelSatProvideLocalInfoRespInfo_t provideLocInfo; /**<   terminal response info from provide Local Info proactive command        */
+               TelSatLaunchBrowserRespInfo_t launchBrowser; /**<       terminal response info from launch Browser proactive command    */
+               TelSatSetupIdlemodeTextRespInfo_t idleText; /**<        terminal response info from setup idle mode text proactive command      */
+               TelSatSendDtmfRespInfo_t sendDtmf; /**< terminal response info from send Dtmf proactive command */
+               TelSatLanguageNotificationRespInfo_t languageNotification; /**< terminal response info from language Notification proactive command     */
+               TelSatSetupEventListRespInfo_t setupEventList; /**<     terminal response info from setup Event List proactive command  */
+               TelSatOpenChannelRespInfo_t openChannel; /**<   terminal response info from openChannel proactive command       */
+       } terminalRespInfo; /**<        Union   */
+} TelSatRespInfo_t;
+
+/*
+ *SAT Icon Data
+ */
+
+typedef struct {
+       unsigned char iconId;
+       unsigned char imgType;
+       unsigned char imgLen;
+       unsigned char imgData[256];
+} TelSatIconDataResp_t;
+
+typedef struct {
+       unsigned char iconId;
+       unsigned char imgType;
+       unsigned char fileId[2];
+       unsigned char reqDataLen[2];
+       unsigned char offset[2];
+} TelsatIconDataGet_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _TEL_SAT_PROACTV_CMD_H_ */
+
+/**
+ * @}
+ */
diff --git a/include/TelSim.h b/include/TelSim.h
new file mode 100644 (file)
index 0000000..7497e55
--- /dev/null
@@ -0,0 +1,1145 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup SIM_TAPI        SIM
+ * @{
+ *
+ * @file TelSim.h
+
+ @brief This file serves as a "C" header file defines structures for Tapi SIM Services. \n
+ It contains a sample set of constants, enums, structs that would be required by applications.
+ */
+
+#ifndef _TELSIM_H_
+#define _TELSIM_H_
+
+#include <TelDefines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/** Maximum ICCID Length */
+#define TAPI_SIM_ICCID_LEN_MAX 20
+
+/** Alpha Id  max length */
+#define TAPI_SIM_XDN_ALPHA_ID_MAX_LEN 30
+
+/** Dialing number max length */
+#define TAPI_SIM_XDN_DIALING_NUMBER_LEN        20
+
+/** CSP profile entry count max length */
+#define TAPI_SIM_CPHS_CUSTOMER_SERVICE_PROFILE_ENTRY_COUNT_MAX 11
+
+/** Authentication code max length */
+#define TAPI_SIM_AUTH_MAX_REQ_DATA_LEN 256
+
+/** Authentication response data max length */
+#define TAPI_SIM_AUTH_MAX_RESP_DATA_LEN 128
+
+/** SAP APDU max length */
+#define TAPI_SIM_APDU_MAX_LEN 256+2 // to be fine tuned according to lower layers, 2bytes for SW1 & SW2 should be added
+
+/** SIM 3G Phone book EF Max count */
+#define TAPI_SIM_PB_3G_FILE_MAX_COUNT 13
+
+/** SAP Answer to Reset data max length */
+#define TAPI_SIM_SAP_ATR_DATA  256
+
+#define TAPI_SIM_NET_FULL_NAME_MAX_LEN 40
+
+#define TAPI_SIM_NET_SHORT_NAME_MAX_LEN 10
+
+#define TAPI_SIM_OPERATION_TIMEOUT 1234
+
+/**
+ * @enum TelSimCardType_t
+ * This enumeration defines the card type.
+ */
+typedef enum {
+       TAPI_SIM_CARD_TYPE_UNKNOWN, /**< Unknown card */
+       TAPI_SIM_CARD_TYPE_GSM, /**< SIm(GSM) card*/
+       TAPI_SIM_CARD_TYPE_USIM, /**< USIM card */
+       TAPI_SIM_CARD_TYPE_RUIM,
+       TAPI_SIM_CARD_TYPE_IMS,
+} TelSimCardType_t;
+
+/**
+ * @enum TelSimFileID_t
+ * This enumeration defines the card type.
+ */
+typedef enum {
+       TAPI_SIM_EF_DIR = 0x2F00, /**< Root Directory for the USIM */
+       TAPI_SIM_EF_ICCID = 0x2FE2, /**< the ICC Identification file    */
+       TAPI_SIM_EF_IMSI = 0x6F07, /**< the IMSI file                */
+       TAPI_SIM_EF_SST = 0x6F38, /**< the SIM Service Table file   */
+       TAPI_SIM_EF_EST = 0x6F56, /**< the Enabled Service Table file   */
+       TAPI_SIM_EF_OPLMN_ACT = 0x6F61, /**< the OPLMN List file*/
+       TAPI_SIM_EF_GID1 = 0x6F3E, /**< the Group Identifier Level 1 */
+       TAPI_SIM_EF_GID2 = 0x6F3F, /**< the Group Identifier Level 2 */
+
+       TAPI_SIM_EF_ELP = 0x2F05, /**< the Extended Language Preference file */
+       TAPI_SIM_EF_LP = 0x6F05, /**< SIM: Language preference */
+       TAPI_SIM_EF_ECC = 0x6FB7, /**< the Emergency Call Codes     */
+       TAPI_SIM_EF_SPN = 0x6F46, /**< the Service Provider Name    */
+       TAPI_SIM_EF_SPDI = 0x6FCD, /**< the Service provider display information*/
+       TAPI_SIM_EF_PNN = 0x6FC5, /**< the PLMN Network Name File*/
+       TAPI_SIM_EF_OPL = 0x6FC6, /**< the Operator PLMN List File*/
+       TAPI_SIM_EF_MSISDN = 0x6F40, /**< MSISDN */
+
+       TAPI_SIM_EF_SMS = 0x6F3C, /** < Short Messages file */
+       TAPI_SIM_EF_SMSP = 0x6F42, /** < SMS Parameter */
+       TAPI_SIM_EF_SMSS = 0x6F43, /** < SMS Status */
+       TAPI_SIM_EF_CBMI = 0x6F45, /** < Cell Broadcast Message Identifier */
+       TAPI_SIM_EF_MBDN = 0x6FC7, /** < SIM Mail Box Dialing Number file */
+
+       TAPI_SIM_EF_USIM_MBI = 0x6FC9, /** < Mailbox Identifier -linear fixed*/
+       TAPI_SIM_EF_USIM_MWIS = 0x6FCA, /** < Message Waiting Indication Status -linear fixed*/
+       TAPI_SIM_EF_USIM_CFIS = 0x6FCB, /** < Call forward indication status -linear fixed*/
+
+       /* CPHS FILE ID */
+       TAPI_SIM_EF_CPHS_VOICE_MSG_WAITING = 0x6F11, /** < CPHS voice MSG waiting indication  */
+       TAPI_SIM_EF_CPHS_SERVICE_STRING_TABLE = 0x6F12, /** < CPHS service string table  */
+       TAPI_SIM_EF_CPHS_CALL_FORWARD_FLAGS = 0x6F13, /** < CPHS call forward flags  */
+       TAPI_SIM_EF_CPHS_OPERATOR_NAME_STRING = 0x6F14, /** < CPHS operator name string  */
+       TAPI_SIM_EF_CPHS_CUSTOMER_SERVICE_PROFILE = 0x6F15, /** < CPHS customer service profile  */
+       TAPI_SIM_EF_CPHS_CPHS_INFO = 0x6F16, /** < CPHS information  */
+       TAPI_SIM_EF_CPHS_MAILBOX_NUMBERS = 0x6F17, /** < CPHS mail box numbers  */
+       TAPI_SIM_EF_CPHS_OPERATOR_NAME_SHORT_FORM_STRING = 0x6F18, /** < CPHS operator name short form string  */
+       TAPI_SIM_EF_CPHS_INFORMATION_NUMBERS = 0x6F19, /** < CPHS information numbers  */
+       /*  CPHS ALS FILE ID */
+       TAPI_SIM_EF_CPHS_DYNAMICFLAGS = 0x6F9F, /** < CPHS Dynamics flags  */
+       TAPI_SIM_EF_CPHS_DYNAMIC2FLAG = 0x6F92, /** < CPHS Dynamics2 flags  */
+       TAPI_SIM_EF_CPHS_CUSTOMER_SERVICE_PROFILE_LINE2 = 0x6F98, /** < CPHS CSP2  */
+
+       /* Invalid File ID, All the file ID are less than this Value*/
+       TAPI_SIM_EF_INVALID = 0xFFFF, /**< Invalid file.*/
+       TAPI_SIM_EF_OTHERS, /**< Element to indicate an unknown file.*/
+}TelSimFileID_t;
+
+/**
+ * @enum TelSimFacilityStatus_t
+ * This enumeration defines the pin status.
+ */
+typedef enum {
+       TAPI_SIM_FACILITY_DISABLED = 0x00,
+       TAPI_SIM_FACILITY_ENABLED = 0x01,
+       TAPI_SIM_FACILITY_UNKNOWN = 0xFF
+} TelSimFacilityStatus_t;
+
+/**
+ * @enum TelSimPinOperationResult_t
+ * This enumeration defines the pin operation result from the lower layers.
+ */
+typedef enum {
+       TAPI_SIM_PIN_OPERATION_SUCCESS, /**< Operation involving PIN (verification/change/enable/disable, etc) is successful.  */
+       TAPI_SIM_BUSY, /**< SIM is busy  */
+       TAPI_SIM_CARD_ERROR, /**< SIM card error - Permanently blocked and general errors   */
+       TAPI_SIM_INCOMPATIBLE_PIN_OPERATION, /**< SIM Incompatible pin operation that is in case when invalid SIM command is given or incorrect parameters are supplied to the SIM. */
+       TAPI_SIM_PIN_INCORRECT_PASSWORD, /**< SIM PIN  Incorrect password */
+       TAPI_SIM_PUK_INCORRECT_PASSWORD, /**< SIM PUK Incorrect Password */
+       TAPI_SIM_PUK_REQUIRED, /**< PUK Required */
+       TAPI_SIM_PIN_REQUIRED, /**< PIN Required */
+       TAPI_SIM_NCK_REQUIRED, /**< Network Control Key Required */
+       TAPI_SIM_NSCK_REQUIRED, /**< Network Subset Control Key Required */
+       TAPI_SIM_SPCK_REQUIRED, /**< Service Provider Control Key Required */
+       TAPI_SIM_CCK_REQUIRED, /**< Corporate Control Key Required */
+       TAPI_SIM_LOCK_REQUIRED, /**<  PH-SIM (phone-SIM) locked state **/
+} TelSimPinOperationResult_t;
+
+/**
+ * @enum TelSimAccessResult_t
+ * This enumeration defines the SIM access result from the lower layers.
+ */
+typedef enum {
+       TAPI_SIM_ACCESS_SUCCESS, /**< Access to file successful.  */
+       TAPI_SIM_ACCESS_CARD_ERROR, /**< SIM card error    */
+       TAPI_SIM_ACCESS_FILE_NOT_FOUND, /**< File not found  */
+       TAPI_SIM_ACCESS_ACCESS_CONDITION_NOT_SATISFIED, /**< Access condition is not fulfilled  */
+       TAPI_SIM_ACCESS_FAILED, /**< Access failed.  */
+} TelSimAccessResult_t;
+
+/**
+ * @enum TelSimPinType_t
+ * This enumeration defines the pin type.
+ */
+typedef enum {
+       TAPI_SIM_PTYPE_PIN1 = 0x00, /**< PIN 1 code */
+       TAPI_SIM_PTYPE_PIN2 = 0x01, /**< PIN 2 code */
+       TAPI_SIM_PTYPE_PUK1 = 0x02, /**< PUK 1 code */
+       TAPI_SIM_PTYPE_PUK2 = 0x03, /**< PUK 2 code */
+       TAPI_SIM_PTYPE_UPIN = 0x04, /**< Universal PIN - Unused now */
+       TAPI_SIM_PTYPE_ADM = 0x05, /**< Administrator - Unused now */
+       TAPI_SIM_PTYPE_SIM = 0x06 /**< SIM Lock code */
+} TelSimPinType_t;
+
+/**
+ * @enum TelSimTypeOfNum_t
+ * This enumeration defines the type of number.
+ */
+typedef enum {
+       TAPI_SIM_TON_UNKNOWN = 0, /**< unknown */
+       TAPI_SIM_TON_INTERNATIONAL = 1, /**< international number */
+       TAPI_SIM_TON_NATIONAL = 2, /**< national number */
+       TAPI_SIM_TON_NETWORK_SPECIFIC = 3, /**< network specific number */
+       TAPI_SIM_TON_DEDICATED_ACCESS = 4, /**< subscriber number */
+       TAPI_SIM_TON_ALPHA_NUMERIC = 5, /**< alphanumeric, GSM 7-bit default alphabet) */
+       TAPI_SIM_TON_ABBREVIATED_NUMBER = 6, /**< abbreviated number */
+       TAPI_SIM_TON_RESERVED_FOR_EXT = 7 /**< reserved for extension */
+} TelSimTypeOfNum_t;
+
+/**
+ *  @enum TelSimTextEncrypt_t
+ *   This enumeration defines the text encryption types
+ */
+typedef enum {
+       TAPI_SIM_TEXT_ENC_ASCII, /**< ASCII Encoding */
+       TAPI_SIM_TEXT_ENC_GSM7BIT, /**< GSM 7 Bit Encoding */
+       TAPI_SIM_TEXT_ENC_UCS2, /**< UCS2 Encoding */
+       TAPI_SIM_TEXT_ENC_HEX, /**< HEX Encoding */
+} TelSimTextEncrypt_t;
+
+/**
+ * @enum TelSimNumberingPlanIdentity_t
+ * This enumeration defines the numbering plan identifier.
+ */
+typedef enum {
+       TAPI_SIM_NPI_UNKNOWN = 0, /**< Unknown */
+       TAPI_SIM_NPI_ISDN_TEL = 1, /**< ISDN/Telephone numbering plan */
+       TAPI_SIM_NPI_DATA_NUMBERING_PLAN = 3, /**< Data numbering plan */
+       TAPI_SIM_NPI_TELEX = 4, /**< Telex numbering plan */
+       TAPI_SIM_NPI_SVC_CNTR_SPECIFIC_PLAN = 5, /**< Service Center Specific plan */
+       TAPI_SIM_NPI_SVC_CNTR_SPECIFIC_PLAN2 = 6, /**< Service Center Specific plan */
+       TAPI_SIM_NPI_NATIONAL = 8, /**< National numbering plan */
+       TAPI_SIM_NPI_PRIVATE = 9, /**< Private numbering plan */
+       TAPI_SIM_NPI_ERMES_NUMBERING_PLAN = 10, /**< ERMES numbering plan */
+       TAPI_SIM_NPI_RESERVED_FOR_EXT = 0xF /**< Reserved for extension */
+} TelSimNumberingPlanIdentity_t;
+
+/**
+ * @enum TelSimEccEmergencyServiceInfo_t
+ * This enumeration defines the emergency service type.
+ */
+typedef enum {
+       TAPI_SIM_ECC_ESC_POLICE = 0x01, /**< Police */
+       TAPI_SIM_ECC_ESC_AMBULANCE = 0x02, /**< Ambulance */
+       TAPI_SIM_ECC_ESC_FIREBRIGADE = 0x04, /**< Fire brigade */
+       TAPI_SIM_ECC_ESC_MARAINEGUARD = 0x08, /**< Marine guard */
+       TAPI_SIM_ECC_ESC_MOUTAINRESCUE = 0x10, /**< Mountain rescue */
+       TAPI_SIM_ECC_ESC_SPARE = 0x00 /**< Spare */
+} TelSimEccEmergencyServiceInfo_t;
+
+/**
+ * @enum TelSimLanguagePreferenceCode_t
+ * This enumeration defines the language indication code.
+ */
+typedef enum {
+       TAPI_SIM_LP_GERMAN = 0x00, /**< German */
+       TAPI_SIM_LP_ENGLISH = 0x01, /**< English */
+       TAPI_SIM_LP_ITALIAN = 0x02, /**< Italian */
+       TAPI_SIM_LP_FRENCH = 0x03, /**< French */
+       TAPI_SIM_LP_SPANISH = 0x04, /**< Spanish */
+       TAPI_SIM_LP_DUTCH = 0x05, /**< Dutch */
+       TAPI_SIM_LP_SWEDISH = 0x06, /**< Swedish */
+       TAPI_SIM_LP_DANISH = 0x07, /**< Danish */
+       TAPI_SIM_LP_PORTUGUESE = 0x08, /**< Portuguese */
+       TAPI_SIM_LP_FINNISH = 0x09, /**< Finnish */
+       TAPI_SIM_LP_NORWEGIAN = 0x0A, /**< Norwegian */
+       TAPI_SIM_LP_GREEK = 0x0B, /**< Greek */
+       TAPI_SIM_LP_TURKISH = 0x0C, /**< Turkish */
+       TAPI_SIM_LP_HUNGARIAN = 0x0D, /**< Hungarian */
+       TAPI_SIM_LP_POLISH = 0x0E, /**< Polish */
+       TAPI_SIM_LP_KOREAN = 0x0F, /**< Korean */
+       TAPI_SIM_LP_CHINESE = 0x10, /**< Chinese */
+       TAPI_SIM_LP_RUSSIAN = 0x11, /**< Russian */
+       TAPI_SIM_LP_JAPANESE = 0x12, /**< Japanese */
+       TAPI_SIM_LP_LANG_UNSPECIFIED = 0xFF /**< Unspecified */
+} TelSimLanguagePreferenceCode_t;
+
+/**
+ * @enum TelSimCardStatus_t
+ * This enumeration defines the SIM card status
+ */
+typedef enum {
+       TAPI_SIM_STATUS_CARD_ERROR = 0x00, /**< Bad card / On the fly SIM gone bad **/
+       TAPI_SIM_STATUS_CARD_NOT_PRESENT = 0x01, /**<  Card not present **/
+       TAPI_SIM_STATUS_SIM_INITIALIZING = 0x02, /**<  SIM is Initializing state **/
+       TAPI_SIM_STATUS_SIM_INIT_COMPLETED = 0x03, /**<  SIM Initialization ok **/
+       TAPI_SIM_STATUS_SIM_PIN_REQUIRED = 0x04, /**<  PIN  required state **/
+       TAPI_SIM_STATUS_SIM_PUK_REQUIRED = 0x05, /**<  PUK required state **/
+       TAPI_SIM_STATUS_CARD_BLOCKED = 0x06, /**<  PIN/PUK blocked(permanently blocked- All the attempts for PIN/PUK failed) **/
+       TAPI_SIM_STATUS_SIM_NCK_REQUIRED = 0x07, /**<  Network Control Key required state **/
+       TAPI_SIM_STATUS_SIM_NSCK_REQUIRED = 0x08, /**<  Network Subset Control Key required state **/
+       TAPI_SIM_STATUS_SIM_SPCK_REQUIRED = 0x09, /**<  Service Provider Control Key required state **/
+       TAPI_SIM_STATUS_SIM_CCK_REQUIRED = 0x0a, /**<  Corporate Control Key required state **/
+       TAPI_SIM_STATUS_CARD_REMOVED = 0x0b, /**<  Card removed **/
+       TAPI_SIM_STATUS_SIM_LOCK_REQUIRED = 0x0c, /**<  PH-SIM (phone-SIM) locked state **/
+       TAPI_SIM_STATUS_UNKNOWN = 0xff /**<  Unknown status. It can be initial status **/
+} TelSimCardStatus_t;
+
+/**
+ * @enum TelSimCphsPhaseType_t
+ * This enum gives the current CPHS phase of SIM card.
+ */
+typedef enum {
+       TAPI_SIM_CPHS_PHASE1 = 0x01, /**< phase1  */
+       TAPI_SIM_CPHS_PHASE2 = 0x02, /**< phase2  */
+       TAPI_SIM_CPHS_PHASE_RFU = 0xff /**< RFU  */
+} TelSimCphsPhaseType_t;
+
+/**
+ * @enum TelSimCphsIndexLevelIndicator_t
+ * This struct gives CPHS index level indication.
+ */
+typedef enum {
+       TAPI_SIM_CPHS_INDEX_LEVEL_ONE = 0x01, /**< SIM cphs index level one */
+       TAPI_SIM_CPHS_INDEX_LEVEL_TWO = 0x02, /**< SIM cphs index level two */
+       TAPI_SIM_CPHS_INDEX_LEVEL_THREE = 0x03, /**< SIM cphs index level three */
+       TAPI_SIM_CPHS_INDEX_LEVEL_RFU = 0xff /**< SIM cphs index level rfu */
+} TelSimCphsIndexLevelIndicator_t;
+
+/**
+ * @enum TelSimCphsCustomerServiceGroup_t
+ * This struct gives CPHS group service type information .
+ */
+typedef enum {
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CALL_OFFERING = 0x01, /**< Group csp offering*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CALL_RESTRICTION = 0x02, /**< Group csp restriction*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_OTHER_SUPP_SERVICES = 0x03, /**< Group csp supplementary services*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CALL_COMPLETION = 0x04, /**< Group csp completion*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_TELESERVICES = 0x05, /**< Group csp teleservices*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CPHS_TELESERVICES = 0x06, /**< Group csp cphs teleservies*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CPHS_FEATURES = 0x07, /**< Group csp cphs features*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_NUMBER_IDENTIFIERS = 0x08, /**< Group csp number identifiers*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_PHASE_SERVICES = 0x09, /**< Group csp phase services*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_VALUE_ADDED_SERVICES = 0xC0, /**< Group csp value added services*/
+       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_INFORMATION_NUMBERS = 0xD5 /**< Group csp information numbers*/
+} TelSimCphsCustomerServiceGroup_t;
+
+/**
+ * @enum TelSimMailboxType_t
+ * This enum gives mailbox type.
+ */
+typedef enum {
+       TAPI_SIM_MAILBOX_VOICE = 0x01, /**< CFIS voice*/
+       TAPI_SIM_MAILBOX_VOICE2 = 0x02, /**< CFIS voice*/
+       TAPI_SIM_MAILBOX_FAX = 0x03, /**< CFIS fax*/
+       TAPI_SIM_MAILBOX_DATA = 0x04, /**< CFIS data*/
+} TelSimMailboxType_t;
+
+/**
+ * @enum TelSimDynamicFlagsSelectedLineId_t
+ * This enum gives dynamics flag selected line  information.
+ */
+typedef enum {
+       TAPI_SIM_DYNAMIC_FLAGS_LINE1 = 0x01, /**< line 1 */
+       TAPI_SIM_DYNAMIC_FLAGS_LINE2 = 0x00, /**< line 2*/
+       TAPI_SIM_DYNAMIC_FLAGS_RFU = 0xff /**< rfu*/
+} TelSimDynamicFlagsSelectedLineId_t;
+
+/**
+ * @enum tapi_sim_dynamic2_flag_als_status_t
+ * This enum gives dynamics2 flag selected line  information.
+ */
+typedef enum {
+       TAPI_SIM_PIN2_ACCESSIBLE_FLAGS_LOCKED = 0x01, /**< Dynamic flags locked */
+       TAPI_SIM_PIN2_ACCESSIBLE_FLAGS_UNLOCKED = 0x00, /**< Dynamic flags unlocked */
+       TAPI_SIM_PIN2_ACCESSIBLE_FLAGS_RFU = 0xff /**< rfu */
+} TelSimDynamic2FlagAlsStatus_t;
+
+
+/**
+ * @enum TelSimAuthenticationType_t
+ * This is used for Authentication Procedure by using SIM.
+ */
+typedef enum {
+       TAPI_SIM_AUTH_TYPE_IMS = 0x00, /**< IMS Authentication */
+       TAPI_SIM_AUTH_TYPE_GSM, /**< GSM Authentication */
+       TAPI_SIM_AUTH_TYPE_3G, /**< 3G Authentication */
+       TAPI_SIM_AUTH_TYPE_MAX /**< TBD */
+} TelSimAuthenticationType_t;
+
+/**
+ * @enum TelSimAuthenticationResult_t
+ * This is used for Authentication Procedure.
+ */
+typedef enum {
+       TAPI_SIM_AUTH_NO_ERROR = 0x00, /**< ISIM no error */
+       TAPI_SIM_AUTH_CANNOT_PERFORM, /**< status - can't perform authentication */
+       TAPI_SIM_AUTH_SKIP_RESPONSE, /**< status - skip authentication response */
+       TAPI_SIM_AUTH_MAK_CODE_FAILURE, /**< status - MAK(Multiple Activation Key) code failure */
+       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 */
+} TelSimAuthenticationResult_t;
+
+/**
+ * @enum TelSimLockType_t
+ *     This structure gives security lock type enum values
+ */
+typedef enum {
+       TAPI_SIM_LOCK_PS = 0x01, /** < PH-SIM (phone-SIM) locked.Lock Phone to SIM/UICC card
+        *      (MT asks password when other than current SIM/UICC card inserted;
+        *      MT may remember certain amount of previously used cards thus not
+        *      requiring password when they are inserted
+        */
+       TAPI_SIM_LOCK_PF, /** < PH-FSIM (phone-first-SIM) Lock Phone to the very
+        * First inserted SIM/UICC card(MT asks password when other than the first SIM/UICC
+        * card is inserted
+        */
+       TAPI_SIM_LOCK_SC, /** < SIM Lock (PIN, PIN2, PUK, PUK2) Lock SIM/UICC card ( SIM asks password in ME power-up and
+        *      when this command is issued
+        */
+       TAPI_SIM_LOCK_FD, /** < FDN - SIM card or active application in the UICC (GSM or USIM)
+        *      fixed dialing memory feature */
+       TAPI_SIM_LOCK_PN, /**< Network Personalization */
+       TAPI_SIM_LOCK_PU, /** < network subset Personalization */
+       TAPI_SIM_LOCK_PP, /** < service Provider Personalization */
+       TAPI_SIM_LOCK_PC, /** < Corporate Personalization */
+} TelSimLockType_t;
+
+/**
+ * @enum TelSimLockKey_t
+ *     This structure gives security lock key information enum values
+ */
+typedef enum {
+       TAPI_SIM_LOCK_KEY_NOT_NEED = 0x00, /**< key not need */
+       TAPI_SIM_LOCK_KEY_PIN = 0x01, /**< PIN required */
+       TAPI_SIM_LOCK_KEY_PUK = 0x02, /**< PUK required */
+       TAPI_SIM_LOCK_KEY_PIN2 = 0x03, /**< PIN2 required */
+       TAPI_SIM_LOCK_KEY_PUK2 = 0x04, /**< PUK2 required */
+       TAPI_SIM_LOCK_PERM_BLOCKED = 0x05, /**< Permanent block SIM */
+} TelSimLockStatus_t;
+
+/**
+ * @enum TelSimSapPowerMode_t
+ * This enum gives the SAP message Ids between SAP client and SAP server.
+ */
+typedef enum {
+       TAPI_SIM_SAP_POWER_SIM_ON_REQ, /**< SAP Client request about power SIM on in Server */
+       TAPI_SIM_SAP_POWER_SIM_OFF_REQ, /**< SAP Client request about power SIM off in Server */
+       TAPI_SIM_SAP_RESET_SIM_REQ, /**< SAP Client request about SIM reset in Server */
+} TelSimSapPowerMode_t;
+
+/**
+ * @enum TelSimSapConnectionStatus_t
+ * This enum gives the SAP connection status information .
+ */
+typedef enum {
+       TAPI_SIM_SAP_CONNECTION_STATUS_OK = 0x00, /**< connect successfully */
+       TAPI_SIM_SAP_CONNECTION_STATUS_UNABLE_TO_ESTABLISH, /**< unable to establish connection */
+       TAPI_SIM_SAP_CONNECTION_STATUS_NOT_SUPPORT_MAX_SIZE, /**< when server does not support message length that client want send */
+       TAPI_SIM_SAP_CONNECTION_STATUS_TOO_SMALL_MAX_SIZE /**< when client want to connect with very small message length which is not supported by Server */
+} TelSimSapConnectionStatus_t;
+
+/**
+ * @enum TelSimSapDissconnectType_t
+ * This enum gives the SAP  disconnect type information.
+ */
+typedef enum {
+       TAPI_SIM_SAP_DISCONNECT_TYPE_GRACEFUL = 0x00, /**< disconnection procedure ends after finishing current work */
+       TAPI_SIM_SAP_DISCONNECT_TYPE_IMMEDIATE /**<  disconnection procedure ends immediately*/
+} TelSimSapDissconnectType_t;
+
+/**
+ * @enum TelSimSapStatusInfo_t
+ * This enum gives the SAP current connection status information
+ */
+typedef enum {
+       TAPI_SIM_SAP_STATUS_UNKNOWN = 0x00, /**<  SAP server connection status - unknown*/
+       TAPI_SIM_SAP_STATUS_NO_SIM, /**<  SAP server connection status - no SIM*/
+       TAPI_SIM_SAP_STATUS_NOT_READY, /**<  SAP server connection status - not ready*/
+       TAPI_SIM_SAP_STATUS_READY, /**<  SAP server connection status - ready*/
+       TAPI_SIM_SAP_STATUS_CONNECTED /**<  SAP server connection status - connected*/
+} TelSimSapStatusInfo_t;
+
+/**
+ * @enum TelSimSapCardStatus_t
+ * This enum gives the SIM card status if server`s status changed about connection with subscription module
+ */
+typedef enum {
+       TAPI_SIM_SAP_CARD_STATUS_UNKNOWN = 0x00, /**<  SAP server status(card reader status) - unknown*/
+       TAPI_SIM_SAP_CARD_STATUS_RESET, /**<  SAP server status(card reader status) - reset*/
+       TAPI_SIM_SAP_CARD_STATUS_NOT_ACCESSIBLE, /**<  SAP server status(card reader status) - not accessible*/
+       TAPI_SIM_SAP_CARD_STATUS_REMOVED, /**<  SAP server status(card reader status) - removed*/
+       TAPI_SIM_SAP_CARD_STATUS_INSERTED, /**<  SAP server status(card reader status) - inserted*/
+       TAPI_SIM_SAP_CARD_STATUS_RECOVERED /**<  SAP server status(card reader status) - recovered*/
+} TelSimSapCardStatus_t;
+
+/**
+ * @enum TelSimSapResultCode_t
+ * This enum gives the SAP result information.
+ */
+typedef enum {
+       TAPI_SIM_SAP_RESULT_CODE_OK = 0x00, /**<  SAP operation result - ok*/
+       TAPI_SIM_SAP_RESULT_CODE_NO_REASON, /**<  SAP operation result - no reason*/
+       TAPI_SIM_SAP_RESULT_CODE_CARD_NOT_ACCESSIBLE, /**<  SAP operation result - not accessible*/
+       TAPI_SIM_SAP_RESULT_CODE_CARD_ALREADY_POWER_OFF, /**<  SAP operation result - card already power off*/
+       TAPI_SIM_SAP_RESULT_CODE_CARD_REMOVED, /**<  SAP operation result - card removed*/
+       TAPI_SIM_SAP_RESULT_CODE_CARD_ALREADY_POWER_ON, /**<  SAP operation result - card already power on*/
+       TAPI_SIM_SAP_RESULT_CODE_DATA_NOT_AVAILABLE, /**<  SAP operation result - data not available*/
+       TAPI_SIM_SAP_RESULT_CODE_NOT_SUPPORT /**<  SAP operation result - not support*/
+} TelSimSapResultCode_t;
+
+/**
+ * @enum TelSimSapProtocol_t
+ * This enum gives SAP transport protocol type
+ */
+typedef enum {
+       TAPI_SIM_SAP_PROTOCOL_T0, /**< T = 0, character*/
+       TAPI_SIM_SAP_PROTOCOL_T1 /**< T = 1, block*/
+} TelSimSapProtocol_t;
+
+/**
+ * @enum TelSimPbAccessResult_t
+ * This enumeration defines the Phone book access result
+ */
+typedef enum {
+       TAPI_SIM_PB_SUCCESS, /**< SIM phonebook operation successful. */
+       TAPI_SIM_PB_FAIL, /**< SIM phonebook operation failure. */
+       TAPI_SIM_PB_INVALID_INDEX, /**< The index passed was not a valid index. */
+       TAPI_SIM_PB_INVALID_NUMBER_LENGTH, /**< The number length is exceeds the max length allowed (or 0). */
+       TAPI_SIM_PB_INVALID_NAME_LENGTH, /**< The name length is exceeds the max length allowed (or 0). */
+       TAPI_SIM_PB_ACCESS_CONDITION_NOT_SATISFIED, /**< Access condition for PB file is not satisfied. */
+} TelSimPbAccessResult_t;
+
+/**
+ * @enum TelSimPbFileType_t
+ * This enumeration defines  different storage types to be selected in SIM or USIM
+ */
+typedef enum {
+       TAPI_SIM_PB_FDN, /**< Fixed Dialing Number */
+       TAPI_SIM_PB_ADN, /**< SIM - ADN  */
+       TAPI_SIM_PB_SDN, /**< Service Dialing Number  */
+       TAPI_SIM_PB_3GSIM, /**< USIM - 3G phone book */
+       TAPI_SIM_PB_AAS, /**< Additional number Alpha String */
+       TAPI_SIM_PB_GAS, /**< Grouping identifier Alpha String */
+       TAPI_SIM_PB_UNKNOWNN = 0xFF, /**< Unknown file type */
+} TelSimPbType_t;
+
+/**
+ * @enum TelSimPb3GFileType_t
+ *  This enumeration defines the different storage field types in 3G Phone book.
+ */
+typedef enum {
+       /* for 3G phone storage field type */
+       TAPI_PB_3G_NAME = 0x01, /**< Name */
+       TAPI_PB_3G_NUMBER, /**< Number */
+       TAPI_PB_3G_ANR1, /**< First Another number*/
+       TAPI_PB_3G_ANR2, /**< Second Another number */
+       TAPI_PB_3G_ANR3, /**< Third Another number */
+       TAPI_PB_3G_EMAIL1, /**< First Email */
+       TAPI_PB_3G_EMAIL2, /**< Second Email */
+       TAPI_PB_3G_EMAIL3, /**< Third Email */
+       TAPI_PB_3G_EMAIL4, /**< Fourth Email */
+       TAPI_PB_3G_SNE, /**< Second name entry of main name*/
+       TAPI_PB_3G_GRP, /**< Group  */
+       TAPI_PB_3G_PBC, /** <1 byte control info and 1 byte hidden info*/
+} TelSimPb3GFileType_t;
+
+/**
+ * This data structure defines the data for the Imsi information.
+ */
+typedef struct {
+       char szMcc[3 + 1]; /**< mobile country code */
+       char szMnc[3 + 1]; /**< mobile network code */
+       char szMsin[10 + 1]; /**< mobile station identification number */
+} TelSimImsiInfo_t;
+
+typedef struct {
+       char name[30+1];
+       char number[6+1];
+       TelSimEccEmergencyServiceInfo_t category;
+}TelSimEcc_t;
+
+typedef struct {
+       int ecc_count;
+       TelSimEcc_t list[15];
+}TelSimEccList_t;
+
+/**
+ *This data structure defines the data which is provided a unique identification number for the (U)ICC.
+ */
+typedef struct {
+       int icc_length; /**< Integrated Circuit Card number length */
+       char icc_num[TAPI_SIM_ICCID_LEN_MAX]; /**< Integrated Circuit Card number */
+} TelSimIccIdInfo_t;
+
+typedef struct {
+       int line1;
+       int line2;
+}TelSimCallForwardingInfo_t;
+
+typedef struct {
+       int line1;
+       int line2;
+       int fax;
+       int video;
+}TelSimMessageWaitingInfo_t;
+
+typedef struct {
+       TelSimMailboxType_t type;
+       char name[TAPI_SIM_XDN_DIALING_NUMBER_LEN+1];
+       char number[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN+1];
+       TelSimTypeOfNum_t ton;
+}TelSimMailboxInfo_t;
+
+typedef struct {
+       int count;
+       TelSimMailboxInfo_t list[4]; //max is 4
+}TelSimMailboxList_t;
+
+/**
+ *     This data structure represents MSISDN information
+ */
+typedef struct {
+       char num[TAPI_SIM_XDN_DIALING_NUMBER_LEN + 1]; /**< MSISDN number. If not exist, Null string will be returned*/
+       char name[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN + 1]; /**< MSISDN name. If not exist, Null string will be returned*/
+} TelSimSubscriberInfo_t;
+
+typedef struct {
+       int count;
+       TelSimSubscriberInfo_t list[3]; //max is 3
+}TelSimMsisdnList_t;
+
+typedef struct {
+       char plmn[6+1];
+       int b_umts;
+       int b_gsm;
+}TelSimOplmnwact_t;
+
+typedef struct {
+       int count;
+       TelSimOplmnwact_t list[30]; //max is 30
+}TelSimOplmnwactList_t;
+
+typedef struct {
+       unsigned char display_condition; /**< display condition (1 byte) */
+       unsigned char spn[TAPI_SIM_NET_FULL_NAME_MAX_LEN + 1]; /**< SPN */
+}TelSimSpn_t;
+
+typedef struct {
+       unsigned char full_name[TAPI_SIM_NET_FULL_NAME_MAX_LEN + 1];
+       unsigned char short_name[TAPI_SIM_NET_SHORT_NAME_MAX_LEN + 1];
+}TelSimCphsNetName_t;
+
+/**
+ *This is used for authentication request procedure.
+ */
+typedef struct {
+       TelSimAuthenticationType_t auth_type; /**< Authentication type */
+       int rand_length; /**< the length of RAND */
+       int autn_length; /**< the length of AUTN. it is not used in case of GSM AUTH */
+       char rand_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN]; /**< RAND data */
+       char autn_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN]; /**< AUTN data. it is not used in case of GSM AUTH */
+} TelSimAuthenticationData_t;
+
+/**
+ * This is used for result data of authentication.
+ */
+typedef struct {
+       TelSimAuthenticationType_t auth_type; /**< authentication type */
+       TelSimAuthenticationResult_t auth_result; /**< authentication result */
+       int resp_length; /**< response length. IMS and 3G case, it stands for RES_AUTS. GSM case, it stands for SRES. */
+       char resp_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< response data. IMS and 3G case, it stands for RES_AUTS. GSM case, it stands for SRES. */
+       int authentication_key_length; /**< the length of authentication key, Kc*/
+       char authentication_key[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< the data of of authentication key, Kc*/
+       int cipher_length; /**< the length of cipher key length */
+       char cipher_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< cipher key */
+       int integrity_length; /**< the length of integrity key length */
+       char integrity_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< integrity key */
+} TelSimAuthenticationResponse_t;
+
+
+/**
+ * This structure contains information about pin data.
+ * SIM PIN DATA. For PIN handling (Change, UnBlock) & for Type of PIN information.
+ */
+typedef struct {
+       TelSimPinType_t type; /**< Pin type */
+       unsigned char* pw; /**< PIN code */
+       unsigned int pw_len; /**< PIN code length*/
+} TelSimSecPw_t;
+
+/**
+ * This data structure defines the data for the PIN Information.
+ */
+typedef struct {
+       TelSimPinType_t type; /**< Specifies the PIN or PUK type.*/
+       int retry_count; /**< Number of attempts remaining for PIN/PUK verification.*/
+} TelSimSecResult_t;
+
+/**
+ * This structure is used to en/disable facility
+ */
+typedef struct {
+       TelSimLockType_t lock_type; /**< Facility type */
+       unsigned char *pw; /**< password */
+       int pw_len; /**< password length */
+} TelSimFacilityPw_t;
+
+typedef struct {
+       TelSimLockType_t type; /**< Specifies the PIN or PUK type.*/
+       int retry_count; /**< Number of attempts remaining for PIN/PUK verification.*/
+} TelSimFacilityResult_t;
+
+typedef struct {
+       TelSimLockType_t type;
+       TelSimFacilityStatus_t f_status;
+}TelSimFacilityInfo_t;
+
+/**
+ *
+ * This structure is used to get information about LOCK_TYPE
+ */
+typedef struct {
+       TelSimLockType_t lock_type; /**< Lock type */
+       TelSimLockStatus_t lock_status; /**< Lock key */
+       int retry_count; /**< retry counts */
+} TelSimLockInfo_t;
+
+/**
+ * This data structure defines the data for the apdu.
+ */
+typedef struct {
+       unsigned char apdu_len;
+       unsigned char* apdu;
+} TelSimApdu_t;
+
+/**
+ * This data structure defines the data for the Response of sending apdu.
+ */
+typedef struct {
+       unsigned char apdu_resp_len;
+       unsigned char apdu_resp[TAPI_SIM_APDU_MAX_LEN];
+} TelSimApduResp_t;
+
+/**
+ * This data structure defines the data for the Response of sending apdu.
+ */
+typedef struct {
+       unsigned char atr_resp_len;
+       unsigned char atr_resp[TAPI_SIM_APDU_MAX_LEN];
+} TelSimAtrResp_t;
+
+
+/**CPHS related structs **/
+
+/**
+ *     This sturcture gives information of available optional CPHS SIM files.
+ */
+typedef struct {
+       /* Byte 2 - bit1 & 2*/
+       int bCustomerServiceProfile; /**< Customer Service Profile (CSP)  */
+       /* Byte 2 - bit3 & 4*/
+       int bServiceStringTable; /**< Service String Table (SST) */
+       /* Byte 2 - bit5 & 6*/
+       int bMailBoxNumbers; /**< MailBoxNumbers */
+       /* Byte 2 - bit7 & 8*/
+       int bOperatorNameShortForm; /**< Short form of operator name */
+       /* Byte 3 - bit1 & 2*/
+       int bInformationNumbers; /**< Information numbers */
+} TelSimCphsServiceTable_t;
+
+/*
+ These requirements are additional to the GSM 900 and DCS1800 recommendations.
+ They apply to all products which are to be compliant with the CPHS specification.
+
+ In addition to those SIM storage fields previously defined in DCS1800 to support
+ existing MS features and services, the Association has defined the following fields  :-
+
+ 1)    Call Forwarding flag                                            (mandatory)
+ 2)    Voice message waiting flag                                      (mandatory)
+ 3)    PLMN operator name                                              (mandatory)
+ 4)    Customer Service Profile (CSP)                          (optional)
+ 5)    CPHS Information                                                        (mandatory)
+ 6)    Mailbox Numbers                                                 (optional)
+ 7)    Information Numbers                                             (optional)
+
+ */
+
+/*
+ DATA FIELD - 6F 16: CPHS INFORMATION
+ Access Conditions:
+ READ  CHV1
+ UPDATE        ADM
+ */
+/**
+ *
+ *This structure gives CPHS information data.
+ */
+typedef struct {
+       TelSimCphsPhaseType_t CphsPhase; /**< CPHS phase type */
+       TelSimCphsServiceTable_t CphsServiceTable; /**< CPHS service table */
+} TelSimCphsInfo_t;
+
+/*
+ DATA FIELD -6F 11: Voice message waiting flag
+ Access Conditions:
+ READ  CHV1
+ UPDATE        CHV1
+ */
+/**
+ *
+ * This struct gives CPHS voice message waiting flag information .
+ */
+typedef struct {
+       int bWaitVoiceMsgLine1; /**< VoiceMsgLine 1 */
+       int bWaitVoiceMsgLine2; /**< VoiceMsgLine 2 */
+       int bWaitFaxMsg; /**< FAX Msg */
+       int bWaitDataMsg; /**< Data Msg */
+} TelSimCphsVoiceMsgWaitFlagInfo_t;
+
+/*
+ DATA FIELD -6F 13: Call forwarding flags
+ Access Conditions:
+ READ  CHV1
+ UPDATE        CHV1
+ */
+/**
+ * This struct gives CPHS call forwarding flag information.
+ */
+typedef struct {
+       int bCallForwardUnconditionalLine1; /**< CallForwardUnconditionalLine 1 */
+       int bCallForwardUnconditionalLine2; /**< CallForwardUnconditionalLine 2 */
+       int bCallForwardUnconditionalFax; /**< CallForwardUnconditional FAX */
+       int bCallForwardUnconditionalData; /**<CallForwardUnconditional data*/
+       int bCallForwardUnconditionalSms; /**< CallForwardUnconditional SMS */
+       int bCallForwardUnconditionalBearer; /**< CallForwardUnconditional bearer*/
+} TelSimCphsCallForwardingFlagInfo_t;
+
+/*
+ DATA FIELD -6F 19: Information Numbers
+ Access Conditions:
+ READ  CHV1
+ UPDATE        CHV1
+ */
+/**
+ * This struct gives CPHS information numbers data.
+ */
+typedef struct {
+       int bUsed; /**< SIM CPHS index level one */
+       unsigned char AlphaIdLength; /**< length of alpha identifier */
+
+       TelSimCphsIndexLevelIndicator_t IndexLevelIndicator; /**< SIM CPHS index level one */
+       int PremiumServiceIndicator; /**< SIM CPHS index level one */
+       int NetworkSpecificIndicator; /**< SIM CPHS index level one */
+       unsigned char Alpha_id[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN + 1]; /**<  Alpha Identifier */
+
+       unsigned long DiallingnumLength; /**< Length of BCD number/SSC contents */
+       TelSimTypeOfNum_t TypeOfNumber; /**< TON */
+       TelSimNumberingPlanIdentity_t NumberingPlanIdentity; /**< NPI */
+       char DiallingNum[TAPI_SIM_XDN_DIALING_NUMBER_LEN + 1]; /**< dialing Number/SSC String */
+       unsigned char Ext1RecordId; /**< Extensiion1 Record Identifier */
+} TelSimCphsInformationNum_t;
+
+/*
+ DATA FIELD- 6F 15: Customer Service Profile (Storing a list of service options which are relevant to that specific customer)
+ Access Conditions:
+ READ  CHV1
+ UPDATE        CHV1
+ */
+/**
+ *
+ * This struct gives CPHS service call offering information.
+ */
+typedef struct {
+       int bCallForwardingUnconditional; /**< CallForwarding Unconditional */
+       int bCallForwardingOnUserBusy; /**< CallForwarding On UserBusy */
+       int bCallForwardingOnNoReply; /**< CallForwarding On NoReply */
+       int bCallForwardingOnUserNotReachable; /**< CallForwarding On User Not Reachable */
+       int bCallTransfer; /**< Call Transfer */
+} TelSimCphsServiceCallOffering_t;
+
+/**
+ *
+ * This struct gives CPHS service call restriction information.
+ */
+typedef struct {
+       int bBarringOfAllOutgoingCalls; /**< Barring Of All Outgoing Calls*/
+       int bBarringOfOutgoingInternationalCalls; /**< Barring Of Outgoing International Calls */
+       int bBarringOfOutgoingInternationalCallsExceptHplmn; /**< Barring Of Outgoing International Calls Except HPLMN */
+       int bBarringOfAllIncomingCallsRoamingOutsideHplmn; /**< Barring Of All Incoming Calls Roaming Outside HPLMN */
+       int bBarringOfIncomingCallsWhenRoaming; /**< Barring Of IncomingCalls When Roaming */
+} TelSimCphsServiceCallRestriction_t;
+
+/**
+ *
+ * This struct gives CPHS service SS  information.
+ */
+typedef struct {
+       int bMultiPartyService; /**< MultiPartyService*/
+       int bClosedUserGroup; /**< ClosedUserGroup*/
+       int bAdviceOfCharge; /**< AdviceOfCharge*/
+       int bPreferentialClosedUserGroup; /**< PreferentialClosedUserGroup*/
+       int bClosedUserGroupOutgoingAccess; /**< ClosedUserGroupOutgoingAccess*/
+} TelSimCphsServiceOtherSupplimentaryService_t;
+
+/**
+ *
+ * This struct gives CPHS service call complete information.
+ */
+typedef struct {
+       int bCallHold; /**< Call Hold*/
+       int bCallWaiting; /**< Call Waiting*/
+       int bCompletionOfCallToBusySubscriber; /**< Completion Of Call To Busy Subscriber*/
+       int bUserUserSignalling; /**< User User Signaling*/
+} TelSimCphsServiceCallComplete_t;
+
+/**
+ *
+ * This struct gives CPHS service teleservices  information.
+ */
+typedef struct {
+       int bShortMessageMobileOriginated; /**< Short Message Mobile Originated*/
+       int bShortMessageMobileTerminated; /**< Short Message Mobile Terminated*/
+       int bShortMessageCellBroadcast; /**< Short Message Cell Broadcast*/
+       int bShortMessageReplyPath; /**< Short  Message Reply Path*/
+       int bShortMessageDeliveryConf; /**< Short Message Delivery Conf*/
+       int bShortMessageProtocolIdentifier; /**< Short Message Protocol Identifier*/
+       int bShortMessageValidityPeriod; /**< Short Message Validity Period*/
+} TelSimCphsServiceTeleservices_t;
+
+/**
+ *
+ * This struct gives CPHS alternative line service  information.
+ */
+typedef struct {
+       int bAlternativeLineService; /**< Alternative Line Service*/
+} TelSimCphsServiceCphsTeleservices_t;
+
+/**
+ *
+ * This struct gives CPHS string service table information.
+ */
+typedef struct {
+       int bStringServiceTable; /**< String Service Table*/
+} TelSimCphsServiceCphsFeatures_t;
+
+/**
+ *
+ * This struct gives CPHS service number identifier  information.
+ */
+typedef struct {
+       int bCallingLineIdentificationPresent; /**< Calling Line Identification Present*/
+       int bConnectedLineIdentificationRestrict; /**< Connected Line Identification Restrict*/
+       int bConnectedLineIdentificationPresent; /**< Connected Line Identification Present*/
+       int bMaliciousCallIdentifier; /**< Malicious Call Identifier*/
+       int bCallingLineIdentificationSend; /**< Calling Line Identification Send*/
+       int bCallingLineIdentificationBlock; /**< Calling Line Identification Block*/
+} TelSimCphsServiceNumberIdentifier_t;
+
+/**
+ *
+ * This struct gives CPHS service phase services information.
+ */
+typedef struct {
+       int bMenuForGprs; /**< Menu For GPRS*/
+       int bMenuForHighSpeedCsd; /**< Menu For HighSpeedCsd*/
+       int bMenuForVoiceGroupCall; /**< Menu For VoiceGroupCall*/
+       int bMenuForVoiceBroadcastService; /**< Menu For VoiceBroadcastService*/
+       int bMenuForMultipleSubscriberProfile; /**< Menu For MultipleSubscriberProfile*/
+       int bMenuForMultipleBand; /**< Menu For MultipleBand*/
+} TelSimCphsServicePhaseServices_t;
+
+/**
+ *
+ * This struct gives CPHS value added service   information.
+ */
+typedef struct {
+       int bRestrictMenuForManualSelection; /**< RestrictMenu For ManualSelection*/
+       int bRestrictMenuForVoiceMail; /**< RestrictMenu For VoiceMail*/
+       int bRestrictMenuForMoSmsAndPaging; /**< RestrictMenu For MoSmsAndPaging*/
+       int bRestrictMenuForMoSmsWithEmialType; /**< RestrictMenu For MoSmsWithEmialType*/
+       int bRestrictMenuForFaxCalls; /**< RestrictMenu For FaxCalls*/
+       int bRestrictMenuForDataCalls; /**< RestrictMenu For DataCalls*/
+       int bRestrictMenuForChangeLanguage; /**< RestrictMenu For ChangeLanguage*/
+} TelSimCphsServiceValueAddedServices_t;
+
+/**
+ *
+ * This struct gives CPHS service information number data.
+ */
+typedef struct {
+       int bInformationNumbers; /**< Information Numbers*/
+} TelSimCphsServiceInformationNumbers_t;
+
+/**
+ *
+ * This struct gives CPHS service profile entry  information.
+ */
+typedef struct {
+       TelSimCphsCustomerServiceGroup_t CustomerServiceGroup; /**< customer service group*/
+       union {
+               TelSimCphsServiceCallOffering_t CallOffering; /**< call offering*/
+               TelSimCphsServiceCallRestriction_t CallRestriction; /**< call restriction*/
+               TelSimCphsServiceOtherSupplimentaryService_t OtherSuppServices; /**< other SS services*/
+               TelSimCphsServiceCallComplete_t CallComplete; /**< call complete*/
+               TelSimCphsServiceTeleservices_t Teleservices; /**< teleservices*/
+               TelSimCphsServiceCphsTeleservices_t CphsTeleservices; /**< CPHS teleservices*/
+               TelSimCphsServiceCphsTeleservices_t CphsFeatures; /**< CPHS features*/
+               TelSimCphsServiceNumberIdentifier_t NumberIdentifiers; /**< number identifiers*/
+               TelSimCphsServicePhaseServices_t PhaseServices; /**< phase services*/
+               TelSimCphsServiceValueAddedServices_t ValueAddedServices; /**< value added services*/
+               TelSimCphsServiceInformationNumbers_t InformationNumbers; /**< information numbers*/
+       } u;
+} TelSimCphsCustomerServiceProfileEntry_t;
+
+/**
+ *
+ * This struct gives CPHS service profile information.
+ */
+typedef struct {
+       TelSimCphsCustomerServiceProfileEntry_t ServiceProfileEntry[TAPI_SIM_CPHS_CUSTOMER_SERVICE_PROFILE_ENTRY_COUNT_MAX]; /**< service profile entry*/
+} TelSimCphsCustomerServiceProfileInfo_t;
+
+/**
+ *
+ * This struct gives dynamics flag selected line  information.
+ */
+typedef struct {
+       TelSimDynamicFlagsSelectedLineId_t DynamicFlags; /**< Dynamic flags information */
+} TelSimDynamicFlagsInfo_t;
+
+/**
+ *
+ * This struct gives dynamics flag selected line  information.
+ */
+typedef struct {
+       TelSimDynamic2FlagAlsStatus_t Dynamic2Flag; /**< Dynamic flags status */
+} TelSimDynamic2FlagsInfo_t;
+
+
+/**
+ * This data structure gives the phone book availability of current SIM.
+ */
+typedef struct {
+       int b_fdn; /**< Fixed Dialing Number */
+       int b_adn; /**< SIM - ADN(2G phonebook   */
+       int b_sdn; /**< Service Dialing Number  */
+       int b_3g; /**< USIM - 3G phonebook */
+       int b_aas; /**< Additional number Alpha String phonebook */
+       int b_gas; /**< Grouping information Alpha String phonebook */
+} TelSimPbList_t;
+
+typedef struct {
+       TelSimPbType_t phonebook_type;
+       unsigned short index;
+       unsigned short next_index; //this field is not used in add/update case
+
+       unsigned char name[60];
+       TelSimTextEncrypt_t dcs;
+
+       unsigned char number[40];
+       TelSimTypeOfNum_t ton;
+
+       /* following field is valid in only USIM*/
+       unsigned char anr1[40];
+       TelSimTypeOfNum_t anr1_ton;
+       unsigned char anr2[40];
+       TelSimTypeOfNum_t anr2_ton;
+       unsigned char anr3[40];
+       TelSimTypeOfNum_t anr3_ton;
+
+       unsigned char email1[60];
+       unsigned char email2[60];
+       unsigned char email3[60];
+       unsigned char email4[60];
+
+       unsigned short group_index; //GRP
+       unsigned short pb_control; //PBC
+} TelSimPbRecord_t;
+
+/**
+ *     This data structure defines the phone book storage count information.
+ */
+typedef struct {
+       TelSimPbType_t StorageFileType; /**< Storage  file type */
+       unsigned short TotalRecordCount; /**< Total record count */
+       unsigned short UsedRecordCount; /**< Used record count */
+} TelSimPbStorageInfo_t;
+
+/**
+ * This data structure gives the phone book entry information.
+ */
+typedef struct {
+       TelSimPbType_t StorageFileType; /**< Storage  file type */
+       unsigned short PbIndexMin; /**< Phone book minimum index*/
+       unsigned short PbIndexMax; /**< Phone book maximum index */
+       unsigned short PbNumLenMax; /**< Phone number maximum length */
+       unsigned short PbTextLenMax; /**< Text maximum length */
+} TelSimPbEntryInfo_t;
+
+/**
+ *
+ This structure gives 3G phone book capability information.
+ */
+typedef struct {
+       TelSimPb3GFileType_t field_type; /**< 3G phonebook file type */
+       unsigned short index_max; /**< max index */
+       unsigned short text_max; /**< max text length */
+       unsigned short used_count; /**< used record count */
+} TelSimPb3GFileTypeCapabiltyInfo_t;
+
+/**
+ *
+ * This data structure defines the data for the SIM PHONEBOOK & ITS CAPABILITIES information.
+ * It refers to EF_PBR
+ */
+typedef struct {
+       unsigned short FileTypeCount; /**< phonebook file type count */
+       TelSimPb3GFileTypeCapabiltyInfo_t FileTypeInfo[TAPI_SIM_PB_3G_FILE_MAX_COUNT]; /**< phonebook file type information */
+} TelSimPbCapabilityInfo_t;
+
+
+
+/* SAP (SIM Access Profile) related interface structures and enum */
+/**
+ * This struct gives the SAP ATR response data information.
+ */
+typedef struct {
+       int atr_len; /**<  SAP ATR response data length */
+       unsigned char atr_data[TAPI_SIM_SAP_ATR_DATA]; /**<  SAP ATR response data */
+} TelSapAtrInfo_t;
+
+/* SAP transfer APDU request */
+
+/**
+ * This data structure gives the SAP APDU data information.
+ */
+typedef struct {
+       int apdu_len; /**<  SAP APDU length */
+       unsigned char apdu_data[TAPI_SIM_APDU_MAX_LEN]; /**<  SAP APDU data */
+} TelSapApduData_t;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _TELSIM_H_
+/**
+ * @}
+ */
diff --git a/include/TelSms.h b/include/TelSms.h
new file mode 100644 (file)
index 0000000..af1add2
--- /dev/null
@@ -0,0 +1,768 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+* @open
+* @ingroup             TelephonyAPI
+* @addtogroup  NetText_TAPI    NetText(SMS)
+* @{
+*
+* @file TelNetText.h
+
+     @brief This file serves as a "C" header file defines structures for Tapi Network Text Services. \n
+      It contains a sample set of constants, enums, structs that would be required by applications.
+
+ */
+#ifndef _TEL_NETTEXT_H_
+#define _TEL_NETTEXT_H_
+
+#include <TelSim.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/* NetText */
+/** EF-SMSP digit length */
+#define TAPI_SIM_SMSP_ADDRESS_LEN              20
+/** EF-SMSP alpha id length */
+#define TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX         128
+
+#define TAPI_NETTEXT_MSG_SIZE_MAX              918 /**< Maximum Message Size */
+#define TAPI_NETTEXT_CB_SIZE_MAX                       93 /** Maximum CB Message Size */
+#define TAPI_NETTEXT_ADDRESS_LEN_MAX   20 /* Nettext Address Length */
+#define TAPI_NETTEXT_SCADDRESS_LEN_MAX 18 /* SC Address Length */
+
+#define TAPI_NETTEXT_CB_PAGE_SIZE_MAX                           93    /**< CB maximum page size*/
+#define TAPI_NETTEXT_GSM_SMS_MSG_NUM_MAX                 90    /**< Maximum GSM SMS message number*/
+#define TAPI_NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX      50    /**< Maximum GSM SMS CBMI list size*/
+#define TAPI_NETTEXT_SMDATA_SIZE_MAX                           165  /**< Maximum SMS data size that can be stored*/
+#define TAPI_NETTEXT_MAX_SMS_SERVICE_CENTER_ADDR   12    /**<Maximum SMS service center address*/
+#define TAPI_NETTEXT_MAX_INDEX                                        255 /**< Maximum index value for SMS */
+
+#define TAPI_NETTEXT_SMSP_PARAMS_MAX_LEN               28
+
+// ************************  CDMA Features  **************************//
+#define TAPI_NETTEXT_PARAM_TELESERVICE_MASK                    1 << 0                          /**< Teleservice parameter bit position */
+#define TAPI_NETTEXT_PARAM_SERVICE_CATEGORY_MASK               1 << 1                          /**< Service Category parameter bit position */
+#define TAPI_NETTEXT_PARAM_ADDRESS_MASK                                1 << 2                          /**< Address parameter bit position */
+#define TAPI_NETTEXT_PARAM_SUBADDRESS_MASK                     1 << 3                          /**< Subaddress parameter bit position */
+#define TAPI_NETTEXT_PARAM_BEARER_REPLY_MASK                   1 << 4                          /**< Bearer reply parameter bit position */
+#define TAPI_NETTEXT_PARAM_CAUSE_CODES_MASK                    1 << 5                          /**< Cause Code parameter bit position */
+#define TAPI_NETTEXT_PARAM_MESSAGE_ID_MASK                     1 << 6                          /**< Message ID parameter bit position */
+#define TAPI_NETTEXT_PARAM_USER_DATA_MASK                      1 << 7                          /**< User Data parameter bit position */
+#define TAPI_NETTEXT_PARAM_USER_RESPONSE_CODE_MASK             1 << 8                          /**< User Response Code parameter bit position */
+#define TAPI_NETTEXT_PARAM_MC_TIME_STAMP_MASK                  1 << 9                          /**< Message Center Timestamp parameter bit position */
+#define TAPI_NETTEXT_PARAM_VALIDITY_PERIOD_ABS_MASK            1 << 10                         /**< Valid period Absolute parameter bit position */
+#define TAPI_NETTEXT_PARAM_VALIDITY_PERIOD_REL_MASK                    1 << 11                         /**< Valid period Relative parameter bit position */
+#define TAPI_NETTEXT_PARAM_DEFERRED_DELIVERY_ABS_MASK          1 << 12                         /**< Deferred delivery absolute parameter bit position */
+#define TAPI_NETTEXT_PARAM_DEFERRED_DELIVERY_REL_MASK          1 << 13                         /**< Deferred delivery relative parameter bit position */
+#define TAPI_NETTEXT_PARAM_PRIORITY_MASK                               1 << 14                         /**< Priority parameter bit position */
+#define TAPI_NETTEXT_PARAM_PRIVACY_MASK                                1 << 15                         /**< Privacy parameter bit position */
+#define TAPI_NETTEXT_PARAM_REPLY_OPTION_MASK                   1 << 16                         /**< Reply Option parameter bit position */
+#define TAPI_NETTEXT_PARAM_NUMBER_OF_MESSAGE_MASK              1 << 17                         /**< Number of message parameter bit position */
+#define TAPI_NETTEXT_PARAM_ALERT_ON_DELIVERY_MASK                      1 << 18                         /**< Alert on delivery parameter bit position */
+#define TAPI_NETTEXT_PARAM_LANGUAGE_MASK                       1 << 19                         /**< Language parameter bit position */
+#define TAPI_NETTEXT_PARAM_CALLBACK_MASK                               1 << 20                         /**< Callback Number parameter bit position */
+#define TAPI_NETTEXT_PARAM_DISPLAY_MODE_MASK                   1 << 21                         /**< Display mode parameter bit position */
+#define TAPI_NETTEXT_PARAM_MULTI_ENCODING_USER_DATA_MASK       1 << 22                         /**< Multi Encoding user data parameter bit position */
+
+#define TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA                                160                                     /**< Maximum MT user data  size*/
+#define TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA                                160                                     /**< Maximum MO user data  size*/
+
+#define TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS                                             32                                      /**< MAX sms destination(or origination ) address /call back number */
+
+#define TAPI_NETTEXT_ERR_CLASS0_STATUS_SEND_OK                                                         0       /**< send success */
+#define TAPI_NETTEXT_ERR_CLASS23_ADDRESS_VACANT                                                                0       /**< address vacant */
+#define TAPI_NETTEXT_ERR_CLASS23_ADDRESS_TRANSLATION_FAILURE                                   1       /**< address translation failure */
+#define TAPI_NETTEXT_ERR_CLASS23_NETWORK_RESOURCE_SHORTAGE                                     2       /**< network resource shortage */
+#define TAPI_NETTEXT_ERR_CLASS23_NETWORK_FAILURE                                                               3       /**< network failure */
+#define TAPI_NETTEXT_ERR_CLASS23_INVALID_TELESERVICE_ID                                                        4       /**< invalid teleservice id */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM                                         5       /**< other network problem */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM_MORE_FIRST                      6       /**< other network problem more first */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM_MORE_LAST                       31      /**< other network problem more last */
+#define TAPI_NETTEXT_ERR_CLASS23_NO_PAGE_RESPONSE                                                              32      /**< no page response */
+#define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_BUSY                                                              33      /**< destination busy */
+#define TAPI_NETTEXT_ERR_CLASS23_NO_ACK                                                                                        34      /**< no ack */
+#define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_RESOURCE_SHORTAGE                         35      /**< destination resource shortage */
+#define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED                                                36      /**< sms delivery postponed */
+#define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_OUT_OF_SERVICE                                    37      /**< destination out of service */
+#define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_NO_LONGER_AT_THIS_ADDRESS         38      /**< destination no longer at this address */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM                                                39      /**< other terminal problem */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM_MORE_FIRST                     40      /**< other terminal problem more first */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM_MORE_LAST                      47      /**< other terminal problem more last */
+#define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED_MORE_FIRST                     48      /**< sms delivery postpone more first */
+#define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED_MORE_LAST                      63      /**< sms delivery postpone more last */
+#define TAPI_NETTEXT_ERR_CLASS23_RADIO_IF_RESOURCE_SHORTAGE                                    64      /**< radio interface resource shortage */
+#define TAPI_NETTEXT_ERR_CLASS23_RADIO_IF_INCOMPATIBLE                                                 65      /**< radio interface incompatible */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM                                                66      /**< other radio interface problem */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM_MORE_FIRST                     67      /**< other radio interface problem more first */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM_MORE_LAST                      95      /**< other radio interface problem more last */
+#define TAPI_NETTEXT_ERR_CLASS23_UNEXPECTED_PARM_SIZE                                                  96      /**< unexpected parameter size */
+#define TAPI_NETTEXT_ERR_CLASS23_SMS_ORIGINATION_DENIED                                                97      /**< sms origination denied */
+#define TAPI_NETTEXT_ERR_CLASS23_SMS_TERMINATION_DENIED                                                98      /**< sms termination denied */
+#define TAPI_NETTEXT_ERR_CLASS23_SUPPL_SERVICE_NOT_SUPPORTED                                   99      /**< supplementary service not supported */
+#define TAPI_NETTEXT_ERR_CLASS23_SMS_NOT_SUPPORTED                                                             100     /**< sms not supported */
+#define TAPI_NETTEXT_ERR_CLASS23_RESERVED_101                                                                  101     /**< reserved 101 */
+#define TAPI_NETTEXT_ERR_CLASS23_MISSING_EXPECTED_PARM                                         102     /**< missing expected parameter */
+#define TAPI_NETTEXT_ERR_CLASS23_MISSING_MANDATORY_PARM                                                103     /**< missing mandatory parameter value */
+#define TAPI_NETTEXT_ERR_CLASS23_UNRECOGNIZED_PARM_VALUE                                               104     /**< unrecognized parameter value */
+#define TAPI_NETTEXT_ERR_CLASS23_UNEXPECTED_PARM_VALUE                                         105     /**< unexpected parameter value */
+#define TAPI_NETTEXT_ERR_CLASS23_USER_DATA_SIZE_ERROR                                                  106     /**< user data size error */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS                                                107     /**< other general problem */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS_MORE_FIRST                     108     /**< other general problem first */
+#define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS_MORE_LAST                      255     /**< other general problem last */
+
+#define TAPI_NETTEXT_ERR_CLASS4_WAITING_FOR_TL_ACK                                                             1       /**< waiting for transport ack */
+#define TAPI_NETTEXT_ERR_CLASS4_OUT_OF_RESOURCES                                                               2       /**< out of resource */
+#define TAPI_NETTEXT_ERR_CLASS4_ACCESS_TOO_LARGE                                                               3       /**< access to large */
+#define TAPI_NETTEXT_ERR_CLASS4_DTC_TOO_LARGE                                                          4       /**< DTC too large */
+#define TAPI_NETTEXT_ERR_CLASS4_DTC_CONNECTED                                                                  5       /**< DTC connected */
+#define TAPI_NETTEXT_ERR_CLASS4_NETWORK_NOT_READY                                                              6       /**< network not ready */
+#define TAPI_NETTEXT_ERR_CLASS4_NO_SVC                                                                                 7       /**< no service */
+#define TAPI_NETTEXT_ERR_CLASS4_PHONE_NOT_READY                                                                8       /**< phone not ready */
+#define TAPI_NETTEXT_ERR_CLASS4_NOT_ALLOWED_IN_AMPS                                                    9       /**< fail to allowed in amps */
+#define TAPI_NETTEXT_ERR_CLASS4_CANNOT_SEND_BROADCAST                                                  10      /**< fail to send broadcast */
+#define TAPI_NETTEXT_ERR_CLASS4_INVALID_TRANSACTION_ID
+// ********************************************************************//
+
+/**
+ * @enum TelSmsMsgStatus_t
+ * This enumeration defines the network text status type.
+ */
+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;
+
+/**
+ * @enum TelSmsMemStatusType
+ * This enumeration defines the memory status type.
+ */
+typedef enum
+{
+       TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE                = 0x01, /**< PDA Memory Available */
+       TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL                     = 0x02,  /**< PDAMemory is Full */
+       TAPI_NETTEXT_PHONE_MEMORY_STATUS_AVAILABLE      = 0x03, /**< Phone memory Available */
+       TAPI_NETTEXT_PHONE_MEMORY_STATUS_FULL                   = 0x04, /**< phone memory is full */
+}TelSmsMemStatusType;
+
+/**
+ * @enum TelSmsBearerType_t
+ * This enum defines the different bearer types
+ */
+typedef enum
+{
+       TAPI_NETTEXT_BEARER_PS_ONLY = 0x01,       /**< Send SMS only on PS Bearer */
+       TAPI_NETTEXT_BEARER_CS_ONLY,                  /**< Send SMS only on CS Bearer */
+       TAPI_NETTEXT_BEARER_PS_PREFERRED,        /**<Send SMS preferably on PS Bearer*/
+       TAPI_NETTEXT_BEARER_CS_PREFERRED ,       /**<Send SMS preferably on CS Bearer*/
+       TAPI_NETTEXT_NO_PREFERRED_BEARER         /**<SMS is sent based on default preferred bearer set at OEM based on vendor/operator preference*/
+} TelSmsBearerType_t;
+
+
+/**
+* @enum TelSmsCbMsgType_t
+* This enumeration defines the different CB message types.
+*/
+typedef enum
+{
+          TAPI_NETTEXT_CB_MSG_CBS = 1,             /**< Cell broadcast message */
+          TAPI_NETTEXT_CB_MSG_SCHEDULE,            /**< CB Schedule message  */
+          TAPI_NETTEXT_CB_MSG_CBS41,               /**< CBS41 type message  */
+          TAPI_NETTEXT_CB_MSG_INVALID            /**< Invalid  CB message */
+} TelSmsCbMsgType_t;
+
+
+/**
+ * @enum TelSmsResponse_t
+ * This enum defines the different response types that come in the
+ * sent status acknowledgement/notification after sending a message to the network
+ */
+typedef enum
+{
+       TAPI_NETTEXT_SENDSMS_SUCCESS = 0x00,     /**<Message send success*/
+       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 a operation already done*/
+       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 happened*/
+       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;
+
+ /** @enum  TelSmsCause_t
+ * This enum defines the different cause types that come in the
+ * sent status acknowledgement/notification after sending a message to the network
+ */
+
+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 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 allocation of memory for SMS operation.*/
+  TAPI_NETTEXT_OPERATION_NOT_SUPPORTED      /**< operation not allowed/supported*/
+}  TelSmsCause_t;
+
+/**
+ * @enum TelSmsSetResponse
+ * This defines the response values
+ */
+typedef enum
+{
+       TAPI_NETTEXT_CBSETCONFIG_RSP,     /**<  cellbroadcast 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;
+
+// ************************  CDMA Features  **************************//
+ /** @enum  TelSmsIs637AlertPriority_t
+ * This enum defines the type of alerts used to distinguish different priorities
+ * of the message
+ */
+typedef enum{
+  TAPI_NETTEXT_ALERT_PRIORITY_DEFAULT = 0,     /**< Mobile default alert */
+  TAPI_NETTEXT_ALERT_PRIORITY_LOW,                     /**< Low priority alert */
+  TAPI_NETTEXT_ALERT_PRIORITY_MEDIUM,          /**< Medium priority alert */
+  TAPI_NETTEXT_ALERT_PRIORITY_HIGH,                    /**< High priority alert */
+} TelSmsIs637AlertPriority_t;
+
+ /** @enum  TelSmsIs637Privacy_t
+ * This enum defines the desired privacy level of the message
+ */
+typedef enum{
+  TAPI_NETTEXT_PRIVACY_NOT_RESTRICTED = 0,     /**< Not restricted */
+  TAPI_NETTEXT_PRIVACY_RESTRICTED,                     /**< Restricted */
+  TAPI_NETTEXT_PRIVACY_CONFIDENTIAL,                   /**< Confidential */
+  TAPI_NETTEXT_PRIVACY_SECRET,                         /**< Secret */
+} TelSmsIs637Privacy_t;
+
+ /** @enum  TelSmsIs637Priority_t
+ * This enum defines the priority level of the message
+ */
+typedef enum{
+  TAPI_NETTEXT_PRIORITY_NORMAL = 0,                    /**< Normal */
+  TAPI_NETTEXT_PRIORITY_INTERACTIVE,                   /**< Interactive */
+  TAPI_NETTEXT_PRIORITY_URGENT,                                /**< Urgent */
+  TAPI_NETTEXT_PRIORITY_EMERGENCY,                     /**< Emergency */
+} TelSmsIs637Priority_t;
+
+ /** @enum  TelSmsIs637LangIndicator_t
+ * This enum defines the language of the message so that the receiving mobile station can
+ * discard those messages that are not in the user's preferred language
+ */
+typedef enum{
+  TAPI_NETTEXT_LANG_UNKNOWN = 0x0,                     /**< Unknown or unspecified */
+  TAPI_NETTEXT_LANG_ENGLISH,                                   /**< English */
+  TAPI_NETTEXT_LANG_FRENCH,                                    /**< French */
+  TAPI_NETTEXT_LANG_SPANISH,                                   /**< Spanish */
+  TAPI_NETTEXT_LANG_JAPANESE,                                  /**< Japanese */
+  TAPI_NETTEXT_LANG_KOREAN,                                    /**< Korean */
+  TAPI_NETTEXT_LANG_CHINESE,                                   /**< Chinese */
+  TAPI_NETTEXT_LANG_HEBREW,                                    /**< Hebrew */
+} TelSmsIs637LangIndicator_t;
+
+ /** @enum  TelSmsIs637MsgDisplayMode_t
+ * This enum defines the display mode to the mobile station when to display the received message
+ */
+typedef enum{
+  TAPI_NETTEXT_MSG_DISPLAY_IMMEDIATE = 0x0,    /**< The mobile station is to display the received message as soon as possible */
+  TAPI_NETTEXT_MSG_DISPLAY_DEFAULT,                    /**< he mobile station is to display the received message based on a pre-defined mode in the mobile station. */
+  TAPI_NETTEXT_MSG_DISPLAY_USER_INVOKE = 0x3, /**< The mobile station is to display the received message based on the mode selected by the user. */
+  TAPI_NETTEXT_MSG_DISPLAY_RESERVED,                   /**< Reserved */
+} TelSmsIs637MsgDisplayMode_t;
+
+ /** @enum  TelSmsIs637ErrorClass_t
+ * This enum defines the error report class
+ */
+typedef enum{
+  TAPI_NETTEXT_MSG_ERROR_CLASS_NONE = 0x0,                                     /**< None error(for SMS ack) */
+  TAPI_NETTEXT_MSG_ERROR_CLASS_TEMPORARY_ERROR = 0x2,          /**< Temporary error(for SMS ack) */
+  TAPI_NETTEXT_MSG_ERROR_CLASS_PERMANENT_ERROR = 0x3,          /**< Permanent error(for SMS ack) */
+  TAPI_NETTEXT_MSG_ERROR_CLASS_PHONE_INTERNAL_ERROR = 0x4,     /**< Phone Internal Status (for Send status) */
+} TelSmsIs637ErrorClass_t;
+
+ /** @enum  TelSmsBroadCastCategory_t
+ * This enum defines the Broadcast Service Category
+ */
+typedef enum{
+  TAPI_NETTEXT_CATEGORY_UNKNOWN                        = 0x00,                 /**< Unknown category */
+  TAPI_NETTEXT_CATEGORY_EMERGENCY                      = 0x01,                 /**< Emergency category */
+  TAPI_NETTEXT_CATEGORY_ADMIN                          = 0x02,                 /**< Admin category */
+  TAPI_NETTEXT_CATEGORY_MAINTENANCE            = 0x03,                 /**< Maintenance category */
+  TAPI_NETTEXT_CATEGORY_GEN_NEWS_LOC           = 0x04,                 /**< General News(Local) category */
+  TAPI_NETTEXT_CATEGORY_GEN_NEWS_REG           = 0x05,                 /**< General News(Regional) category */
+  TAPI_NETTEXT_CATEGORY_GEN_NEWS_NAT           = 0x06,                 /**< General News(National) category */
+  TAPI_NETTEXT_CATEGORY_GEN_NEWS_INT           = 0x07,                 /**< General News(International) category */
+  TAPI_NETTEXT_CATEGORY_FIN_NEWS_LOC           = 0x08,                 /**< Business/Financial News(Local) category */
+  TAPI_NETTEXT_CATEGORY_FIN_NEWS_REG           = 0x09,                 /**< Business/Financial News(Regional) category */
+  TAPI_NETTEXT_CATEGORY_FIN_NEWS_NAT           = 0x0A,                 /**< Business/Financial News(National) category */
+  TAPI_NETTEXT_CATEGORY_FIN_NEWS_INT           = 0x0B,                 /**< Business/Financial News(International) category */
+  TAPI_NETTEXT_CATEGORY_SPT_NEWS_LOC           = 0x0C,                 /**< Sports News(Local) category */
+  TAPI_NETTEXT_CATEGORY_SPT_NEWS_REG           = 0x0D,                 /**< Sports News(Regional) category */
+  TAPI_NETTEXT_CATEGORY_SPT_NEWS_NAT           = 0x0E,                 /**< Sports News(National) category */
+  TAPI_NETTEXT_CATEGORY_SPT_NEWS_INT           = 0x0F,                 /**< Sports News(International) category */
+  TAPI_NETTEXT_CATEGORY_ENT_NEWS_LOC           = 0x10,                 /**< Entertainment News(Local) category */
+  TAPI_NETTEXT_CATEGORY_ENT_NEWS_REG           = 0x11,                 /**< Entertainment News(Regional) category */
+  TAPI_NETTEXT_CATEGORY_ENT_NEWS_NAT           = 0x12,                 /**< Entertainment News(National) category */
+  TAPI_NETTEXT_CATEGORY_ENT_NEWS_INT           = 0x13,                 /**< Entertainment News(International) category */
+  TAPI_NETTEXT_CATEGORY_LOC_WEATHER            = 0x14,                 /**< Local Weather category */
+  TAPI_NETTEXT_CATEGORY_AREA_TRAFFIC           = 0x15,                 /**< Area Traffic Reports category */
+  TAPI_NETTEXT_CATEGORY_AIRPORT_SCHED          = 0x16,                 /**< Local Airport Flight Schedules category */
+  TAPI_NETTEXT_CATEGORY_RESTAURANTS            = 0x17,                 /**< Restaurants category */
+  TAPI_NETTEXT_CATEGORY_LODGINGS                       = 0x18,                 /**< Lodgings category */
+  TAPI_NETTEXT_CATEGORY_RETAILS                        = 0x19,                 /**< Retail Directory category */
+  TAPI_NETTEXT_CATEGORY_ADS                            = 0x1A,                 /**< Advertisements category */
+  TAPI_NETTEXT_CATEGORY_STOCK_QUOTES           = 0x1B,                 /**< Stock Quotes category */
+  TAPI_NETTEXT_CATEGORY_JOBS                           = 0x1C,                 /**< Employment Opportunities category */
+  TAPI_NETTEXT_CATEGORY_MEDICAL                        = 0x1D,                 /**< Medical/Health/Hospitals category */
+  TAPI_NETTEXT_CATEGORY_TECH_NEWS                      = 0x1E,                 /**< Technology News category */
+  TAPI_NETTEXT_CATEGORY_MULTI                          =  0x1F,                        /**< Multi-category */
+} TelSmsBroadCastCategory_t;
+
+/** @enum  TelSmsMsgType_t
+ * This enum defines the type of IS637 message
+ */
+typedef enum{
+  TAPI_NETTEXT_MESSAGETYPE_DELIVER = 0x01,                                     /**< sms deliver message  */
+  TAPI_NETTEXT_MESSAGETYPE_SUBMIT = 0x02,                                      /**< sms submit message  */
+  TAPI_NETTEXT_MESSAGETYPE_CANCEL = 0x03,                                      /**< sms cancellation message  */
+  TAPI_NETTEXT_MESSAGETYPE_DELIVERY_ACK = 0x04,                                /**< sms delivery acknowledgment message  */
+  TAPI_NETTEXT_MESSAGETYPE_USER_ACK = 0x05,                                    /**< sms user acknowledgment message  */
+} TelSmsMsgType_t;
+
+/** @enum  TelSmsIs637DigitMode_t
+ * This enum defines the type of address whether it is 4-bit mode or 8-bit mode
+ */
+typedef enum{
+  TAPI_NETTEXT_DIGITMODE_4BITDTMF      = 0x00,                                 /**< 4-bit mode  */
+  TAPI_NETTEXT_DIGITMODE_8BITCODE      = 0x01,                                 /**< 8-bit mode  */
+} TelSmsIs637DigitMode_t;
+
+/** @enum  TelSmsIs637NumberMode_t
+ * This enum defines the mode of address number to indicate whether the address type is as defined in ANSI TI.607 or is a data network address
+ */
+typedef enum{
+  TAPI_NETTEXT_NUMMODE_NONE_DATANETWORK =      0x00,           /**< in ANSI TI.607 */
+  TAPI_NETTEXT_NUMMODE_DATANETWORK = 0x01,                                     /**< in Data Network */
+} TelSmsIs637NumberMode_t;
+
+/** @enum  TelSmsIs637NumberType_t
+ * This enum defines the type of address
+ */
+typedef enum{
+  TAPI_NETTEXT_NUMBER_TYPE_UNKNOWN          = 0x00,                            /**<  Unknown */
+  TAPI_NETTEXT_NUMBER_TYPE_INTERNATIONAL    = 0x01,                    /**<  International number*/
+  TAPI_NETTEXT_NUMBER_TYPE_NATIONAL         = 0x02,                            /**<  National number */
+  TAPI_NETTEXT_NUMBER_TYPE_NETWORK          = 0x03,                            /**<  Abbreviated number */
+  TAPI_NETTEXT_NUMBER_TYPE_SUBSCRIBER       = 0x04,                    /**< Abbreviated number */
+  TAPI_NETTEXT_NUMBER_TYPE_RESERVED_5       = 0x05,                    /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_TYPE_ABBREVIATED       = 0x06,                   /**<  Abbreviated number */
+  TAPI_NETTEXT_NUMBER_TYPE_RESERVED_7       = 0x07,                    /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_TYPE_IP                      = 0x11,                     /**<  Internet Protocol(RFC 791) */
+  TAPI_NETTEXT_NUMBER_TYPE_EMAILADDR       = 0x12,                     /**<  Internet Email Address(RFC 822) */
+} TelSmsIs637NumberType_t;
+
+/** @enum  TelSmsIs637NumberPlan_t
+ * This enum defines the plan of address
+ */
+typedef enum{
+  TAPI_NETTEXT_NUMBER_PLAN_UNKNOWN                         = 0x00,             /**<  Unknown */
+  TAPI_NETTEXT_NUMBER_PLAN_TELEPHONY               = 0x01,             /**< ISDN/Telephony numbering plan */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_2              = 0x02,             /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_DATA                                = 0x03,                 /**< Data numbering plan */
+  TAPI_NETTEXT_NUMBER_PLAN_TELEX                             = 0x04,           /**< CTelex numbering plan */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_5              = 0x05,             /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_6              = 0x06,             /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_7              = 0x07,             /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_8              = 0x08,             /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_PRIVATE                         = 0x09,             /**<  Private numbering plan */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_10           = 0x0A,                       /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_11           = 0x0B,                       /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_12           = 0x0C,                       /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_13           = 0x0D,                       /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_14           = 0x0E,                       /**<  Reserved */
+  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_15           = 0x0F,                       /**<  Reserved */
+} TelSmsIs637NumberPlan_t;
+
+/** @enum  TelSmsIs637SubAddressType_t
+ * This enum defines the plan of address
+ */
+typedef enum{
+  TAPI_NETTEXT_SUBADDR_NSAP                                      = 0x00,       /**< NSAP ( CCITT Recommendation X.213 or ISO 8348 AD2 ) */
+  TAPI_NETTEXT_SUBADDR_USER_SPECIFIED              = 0x01,     /**<  User-specified */
+} TelSmsIs637SubAddressType_t;
+
+// ********************************************************************//
+
+/**
+ * This structure defines the different parameters of  CB configuration
+ */
+typedef struct {
+       int bCBEnabled; /**< CB service state. If cb_enabled is true then cell broadcast service will be enabled and underlying modem will enable CB Channel to receiving CB messages. Otherwise CB service will be disabled, underlying modem will deactivate the CB channel. (enabled/disabled) */
+       unsigned char SelectedId; /**< CBMI Identifier selected (all or some)  */
+       unsigned char MsgIdMaxCount; /**< CB Channel List Max Count */
+       int MsgIdCount; /**< CB message ID count */
+       unsigned short MsgIDs[TAPI_NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX]; /**< CB message ID information */
+} TelSmsCbConfig_t;
+
+/**
+ * This structure defines the properties of a dialing number
+ * Type of Number, Numbering Plan Indicator, length and the actual number.
+ */
+typedef struct {
+       unsigned int DialNumLen; /**< length of address. If Service center address is not set, then this will be zero */
+       TelSimTypeOfNum_t Ton; /**< Type of number*/
+       TelSimNumberingPlanIdentity_t Npi; /**<Numbering plan identification*/
+       unsigned char szDiallingNum[TAPI_SIM_SMSP_ADDRESS_LEN + 1]; /**< destination address. If Address not set, then set to 0xFF */
+} TelSmsAddressInfo_t;
+
+/**
+ * This structure defines different fields involved in setting the parameters of
+ * a particular sms in EFsmsp.
+ */
+typedef struct {
+
+       unsigned char RecordIndex; /**< Index*/
+       unsigned char RecordLen; /**< SMS Parameter Record length*/
+       unsigned long AlphaIdLen; /**< Alpha id length */
+       char szAlphaId[TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX + 1]; /**< Alpha id .It is a unique identifier for each row/record in EFsmsp */
+       unsigned char ParamIndicator; /**< SMS parameter indicator is a 1 byte value. Each bit in this value indicates the presence/absence of the sms header parameters.If the parameter is present the corresponding bit value is set to 0.If the parameter is absent then it is set as 1.Refer 3GPP TS 31.02 :4.4.23 */
+       TelSmsAddressInfo_t TpDestAddr; /**< TP-destination address (TP-DA) */
+       TelSmsAddressInfo_t TpSvcCntrAddr; /**< TP-service center address */
+       unsigned short TpProtocolId; /**< TP-protocol Id */
+       unsigned short TpDataCodingScheme; /**< TP-data coding scheme */
+       unsigned short TpValidityPeriod; /**< TP-validity period */
+} TelSmsParams_t;
+
+/**
+ * This structure defines the fields related to an Sms like SIM index, TPDU  and length
+ */
+typedef struct {
+       unsigned char Sca[TAPI_SIM_SMSP_ADDRESS_LEN]; /**< Service Centre address - an optional parameter. If this parameter is not present, then this field will be Null.If present, the valid service centre address information is filled as per 3GPP TS23.040 9.1.2.5 Address fields */
+       int MsgLength; /**< Size of array szData (which is actual TPDU message) */
+       unsigned char szData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1]; /**<SMS TPDU message */
+} TelSmsDatapackageInfo_t;
+
+/**
+ *This structure defines the data Related to SimIndex,MessageStatus and SMS Data Stored.
+ */
+typedef struct {
+       int SimIndex; /**< Index where SMS is stored. */
+       TelSmsMsgStatus_t MsgStatus; /**< Message status.*/
+       TelSmsDatapackageInfo_t SmsData; /**<SMS message */
+} TelSmsData_t;
+
+/**
+ * This structure defines the different parameters that are related to the message count
+ *in a particular memory(Phone/SIM)
+ */
+typedef struct {
+       unsigned int TotalCount; /**< Total count of messages stored in SIM*/
+       int UsedCount; /**< Stored message count in SIM in SIM*/
+       int IndexList[TAPI_NETTEXT_GSM_SMS_MSG_NUM_MAX]; /**< Message index list stored in SIM. And the maximum size of this array can be of totalCount.This array contains the list of index values in which the messages are stored.i.e. index_list[totalcount] = [2,3] denotes that indexs 2 and 3 are stored(valid) and others not(empty).*/
+} TelSmsStoredMsgCountInfo_t;
+
+/**
+ * This structure defines a cell broadcast message.
+ */
+typedef struct {
+
+       TelSmsCbMsgType_t CbMsgType; /**< Cell Broadcast  message type */
+       unsigned short Length; /**<Size of array szMsgData (which is actual TPDU message) */
+       char szMsgData[TAPI_NETTEXT_CB_PAGE_SIZE_MAX + 1]; /**<Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1]*/
+} TelSmsCbMsg_t;
+
+// ************************  CDMA Features  **************************//
+/**
+ *  This structure defines cause code as an indication whether an SMS error has occurred and
+ *  if so, whether the condition is considered temporary or permanent
+ **/
+typedef struct {
+       unsigned char ReplySeqNumber; /**< Reply sequence number */
+       TelSmsIs637ErrorClass_t ErrClass; /**< Error report class */
+       unsigned char Cause; /**< Error cause identifier */
+} TelSmsIs637CauseCode_t;
+
+/**
+ * This structure defines the parameters of address and its type
+ */
+typedef struct {
+       TelSmsIs637DigitMode_t Digit; /**< Digit mode indicator (0x00:4bit_dtmf, 0x01:8bit_code) */
+       TelSmsIs637NumberMode_t NumberMode; /**< Number mode indicator (0x00:ANSI TI607, 0x01:Data network) */
+       TelSmsIs637NumberType_t NumberType; /**< Type of number */
+       TelSmsIs637NumberPlan_t NumberPlan; /**< Numbering plan */
+       unsigned char szAddrLength; /**< The number of CHARi */
+       unsigned char szAddress[TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS]; /**< The address digit or character */
+} TelSmsIs637Address_t;
+
+/**
+ * This structure defines the parameters of subaddress of originator and destination
+ */
+typedef struct {
+       TelSmsIs637SubAddressType_t SubType; /**< Subaddress type */
+       unsigned char Odd; /**< Odd/even indicator */
+       unsigned char szAddrLength; /**< The number of CHARi */
+       unsigned char szAddress[TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS]; /**< A subaddress octet */
+} TelSmsIs637SubAddress_t;
+
+/**
+ * This structure defines the message center time stamp may be include
+ * with SMS message sent from a message center
+ */
+typedef struct {
+       unsigned int year; /**< Year - if the year is 2002, the year field contains 0x02 */
+       unsigned int month; /**< Month (1 ~ 12) */
+       unsigned int day; /**< Day (1 ~ 31) */
+       unsigned int hours; /**< Hours (0 ~ 23) */
+       unsigned int minutes; /**< Minute (0 ~ 59) */
+       unsigned int seconds; /**< Seconds (0 ~ 59) */
+} TelSmsTimeStamp_t;
+
+/**
+ * The structure defines the parameter of SMS submit message
+ */
+typedef struct {
+       TelSmsIs637Address_t DstAddr; /**< Destination address */
+       TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
+       unsigned short TeleService; /**< Teleservice Identifier */
+       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
+       unsigned char ReplySeqNumber; /**< Reply sequence number */
+       unsigned short MsgId; /**< Message identifier */
+       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
+       unsigned short MsgLength; /**< Message length */
+       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA]; /**< SMS user data */
+       TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute (not supported) */
+       unsigned char ValidityPeriodRel; /**< Validity period - Relative (not supported) */
+       TelSmsTimeStamp_t DeferredDelTimeAbs; /**< Deferred delivery time - Absolute */
+       unsigned char DeferredDelTimeRel; /**< Deferred delivery time - Relative */
+       TelSmsIs637Priority_t Priority; /**< Priority indicator */
+       TelSmsIs637Privacy_t Privacy; /**< Privacy indicator */
+       int bUserAckRequest; /**< User acknowledge request */
+       int bDeliveryAckRequest; /**< Delivery acknowledge request */
+       TelSmsIs637AlertPriority_t AlertPriority; /**< Alert priority of message */
+       TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
+       TelSmsIs637Address_t CallBackNumber; /**< Callback number address */
+} TelSmsIs637OutSubmit_t;
+
+/**
+ * The structure defines the parameter of SMS acknowledgement message for submit
+ */
+typedef struct {
+       TelSmsIs637Address_t DstAddr; /**< Destination address */
+       TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
+       unsigned short TeleService; /**< Teleservice Identifier */
+       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
+       unsigned char ReplySeqNumber; /**< Reply sequence number */
+       unsigned short MsgId; /**< Message identifier */
+       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
+       unsigned short MsgLength; /**< Message length */
+       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA]; /**< SMS user data */
+       unsigned char UserResponseCode; /**< User response code */
+} TelSmsIs637OutAck_t;
+
+/**
+ * The structure defines the parameter of SMS cancellation message
+ */
+typedef struct {
+       TelSmsIs637Address_t DstAddr; /**< Destination address */
+       TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
+       unsigned short TeleService; /**< Teleservice Identifier */
+       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
+       unsigned char ReplySeqNumber; /**< Reply sequence number */
+       unsigned short MsgId; /**< Message identifier */
+} TelSmsIs637OutCancel_t;
+
+/**
+ * The structure defines the parameter of SMS devivery message
+ */
+typedef struct {
+       TelSmsIs637Address_t OrigAddr; /**< Origination address */
+       TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
+       unsigned short TeleService; /**< Teleservice Identifier */
+       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
+       unsigned char ReplySeqNumber; /**< Reply sequence number */
+       unsigned short MsgId; /**< Message identifier */
+       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
+       unsigned short MsgLength; /**< Message length */
+       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
+       TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
+       TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute */
+       unsigned char ValidityPeriodRel; /**< Validity period - Relative */
+       TelSmsTimeStamp_t DeferredDelTimeAbs; /**< Deferred delivery time - Absolute (not supported) */
+       unsigned char DeferredDelTimeRel; /**< Deferred delivery time - Relative (not supported) */
+       TelSmsIs637Priority_t Priority; /**< Priority indicator */
+       TelSmsIs637Privacy_t Privacy; /**< Privacy indicator */
+       unsigned char NumMsg; /**< Number of voice mail (0-99) */
+       int bUserAckRequest; /**< User acknowledge request */
+       int bDeliveryAckRequest; /**< Delivery acknowledge request */
+       TelSmsIs637AlertPriority_t AlertPriorty; /**< Alert priority of message */
+       TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
+       TelSmsIs637Address_t CallBackNumer; /**< Callback number address */
+       TelSmsIs637MsgDisplayMode_t Display; /**< Message display mode */
+} TelSmsIs637InDeliver_t;
+
+/**
+ * The structure defines the parameter of SMS acknowledge message for deliver
+ */
+typedef struct {
+       TelSmsIs637Address_t OrigAddr; /**< Origination address */
+       TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
+       unsigned short TeleService; /**< Teleservice Identifier */
+       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
+       unsigned char ReplySeqNumber; /**< Reply sequence number */
+       unsigned short MsgId; /**< Message identifier */
+       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
+       unsigned short MsgLength; /**< Message length */
+       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
+       unsigned char UserResponseCode; /**< User response code */
+       TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
+} TelSmsIs637InAck_t;
+
+/**
+ * The structure defines the parameter of SMS acknowledge message from message center
+ */
+typedef struct {
+       TelSmsIs637Address_t OrigAddr; /**< Origination address */
+       TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
+       unsigned short TeleService; /**< Teleservice Identifier */
+       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
+       unsigned char ReplySeqNumber; /**< Reply sequence number */
+       unsigned short MsgId; /**< Message identifier */
+       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
+       unsigned short MsgLength; /**< Message length */
+       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
+       TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
+} TelSmsIs637InDeliverAck_t;
+
+/**
+ * The structure defines the parameter of SMS broadcast message
+ */
+typedef struct {
+       TelSmsBroadCastCategory_t ServiceCategory; /**< Broadcast service category */
+       unsigned short MsgId; /**< Message identifier */
+       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
+       unsigned char ReplySeqNumber; /**< Reply sequence number */
+       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
+       unsigned short MsgLength; /**< Message length */
+       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
+       TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
+       TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute */
+       unsigned char ValidityPeriodRel; /**< Validity period - Relative */
+       TelSmsIs637Priority_t Priority; /**< Priority indicator */
+       TelSmsIs637AlertPriority_t AlertPriorty; /**< Alert priority of message */
+       TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
+       TelSmsIs637MsgDisplayMode_t Display; /**< Message display mode */
+} TelSmsIs637InBroadCast_t;
+
+/**
+ * The structure defines the type of SMS message as union
+ */
+typedef union {
+       TelSmsIs637OutSubmit_t OutSubmit; /**< Outgoing Submit message */
+       TelSmsIs637OutAck_t OutAck; /**< Outgoing Acknowledge message */
+       TelSmsIs637OutCancel_t OutCancel; /**< Outgoing Cancel message */
+       TelSmsIs637InDeliver_t InDeliver; /**< Incoming Delivery message */
+       TelSmsIs637InAck_t InAck; /**< Incoming Acknowledge message */
+       TelSmsIs637InDeliverAck_t InDeliverAck; /**< Incoming Delivery Acknowledge message */
+       TelSmsIs637InBroadCast_t InBc; /**< Incoming Broadcast message */
+} TelSmsMessage_t;
+
+/**
+ * The structure defines the parameter of entire SMS message of each type
+ */
+typedef struct {
+       int ParamMask; /**< Parameter ID mask */
+       TelSmsMsgType_t MsgType; /**< Message type */
+       TelSmsMessage_t MsgData; /**< Message data */
+} TelSmsMsgInfo_t;
+// ********************************************************************//
+
+struct tel_noti_sms_incomming_msg {
+        char Sca[TAPI_SIM_SMSP_ADDRESS_LEN];
+        int MsgLength;
+        char szData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1];
+};
+
+struct tel_noti_sms_incomming_cb_msg {
+       TelSmsCbMsgType_t CbMsgType; /**< Cell Broadcast  message type */
+        short Length; /**<Size of array szMsgData (which is actual TPDU message) */
+        char szMsgData[TAPI_NETTEXT_CB_PAGE_SIZE_MAX + 1]; /**<Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1]*/
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif  // _TEL_NETTEXT_H_
+
+/**
+ * @}
+*/
diff --git a/include/TelSs.h b/include/TelSs.h
new file mode 100644 (file)
index 0000000..251a13f
--- /dev/null
@@ -0,0 +1,465 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+/**
+ * @open
+ * @ingroup            TelephonyAPI
+ * @addtogroup  SS_TAPI        SS(Supplementary services)
+ * @{
+ *
+ * @file TelSs.h
+
+ @brief This file serves as a "C" header file and defines structures for Tapi Supplementary Services\n
+ It contains a sample set of constants, enums, structs that would be required by applications.
+ */
+
+#ifndef _TEL_SS_H_
+#define _TEL_SS_H_
+
+#include <TelDefines.h>
+#include <TelErr.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/** maximum length of barring password */
+#define TAPI_SS_GSM_BARR_PW_LEN_MAX                            4 /**<Maximum length of barring password */
+
+/** maximum length of dial digit */
+#define TAPI_CALL_DIALDIGIT_LEN_MAX                            82 /**<maximum length of dial digit *///( To Accommodate Unpacked string length, which will be greater than 182, 182* 8 /7 = 208, Packed len = 182* 7/8 = 160)
+#define TAPI_SS_USSD_DATA_SIZE_MAX                             208      /**<User-to-user data maximum size */
+#define TAPI_SS_RECORD_NUM_MAX                                 5 /**< SS record maximum size */
+#define TAPI_SS_AOC_CURRENCY_LEN_MAX                   3 /**< maximum length of AOC currency */
+
+/* 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
+
+/**
+ *  This enumeration defines the call forwarding flavor.
+ */
+typedef enum {
+       TAPI_SS_CF_WHEN_CFU = 0x01, /* 0x01 : Call Forwarding Unconditional */
+       TAPI_SS_CF_WHEN_CFB,        /* 0x02 : Call Forwarding Mobile Busy */
+       TAPI_SS_CF_WHEN_CFNRy,      /* 0x03 : Call Forwarding No Reply */
+       TAPI_SS_CF_WHEN_CFNRc,      /* 0x04 : Call Forwarding Not Reachable */
+       TAPI_SS_CF_WHEN_CF_ALL,     /* 0x05 : All Call Forwarding */
+       TAPI_SS_CF_WHEN_CFC,        /* 0x06 : All Conditional Call Forwarding */
+       TAPI_SS_CF_WHEN_MAX         /* 0x07 : Max */
+} TelSsForwardWhen_t;
+
+/**
+ * The various types of call barring. Note, only one type of incoming barring and only one type of outgoing barring may be active at any time.
+ */
+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 */
+       TAPI_SS_CB_TYPE_BAIC,                /* 0x04 : Barring All Incoming Calls */
+       TAPI_SS_CB_TYPE_BIC_ROAM,       /* 0x05 : Barring Incoming Calls when roam, 
+                                                                       outside of 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 */
+       TAPI_SS_CB_TYPE_MAX
+} TelSsBarringType_t;
+
+/**
+ * This enumeration defines the ussd Indication Type
+ */
+typedef enum {
+       TAPI_SS_USSD_STATUS_NOTIFY = 0x00, /**< notify : to display USSD data to user */
+       TAPI_SS_USSD_STATUS_NO_ACTION_REQUIRE = 0x01, /**< No further user action required */
+       TAPI_SS_USSD_STATUS_ACTION_REQUIRE = 0x02, /**< Further user action required*/
+       TAPI_SS_USSD_STATUS_TERMINATED_BY_NET = 0x03, /**< 0x03 : USSD terminated by network */
+       TAPI_SS_USSD_STATUS_OTHER_CLIENT = 0x04, /**< 0x04 : other local client has responded */
+       TAPI_SS_USSD_STATUS_NOT_SUPPORT = 0x05, /**< 0x05 : operation not supported */
+       TAPI_SS_USSD_STATUS_TIME_OUT = 0x06 /**< 0x06 : Time out when there is no response from network */
+} TelSsUssdStatus_t;
+
+/**
+ *
+ * This enum defines the values for USSD type.
+ */
+typedef enum {
+       TAPI_SS_USSD_TYPE_USER_INIT = 0x01, /**< USSD request type User Initiated. */
+       TAPI_SS_USSD_TYPE_USER_RSP, /**< USSD request type User Response. */
+       TAPI_SS_USSD_TYPE_USER_REL /**< USSD request type User Release. */
+} TelSsUssdType_t;
+
+/**
+ *  This enumeration defines the call barring operation mode .
+ */
+typedef enum {
+       TAPI_SS_CB_MODE_ACTIVATE, /**< Activate call barring  */
+       TAPI_SS_CB_MODE_DEACTIVATE, /**< De Activate call barring */
+} TelSsBarringMode_t;
+
+/**
+ *  This enumeration defines the call barring operation mode .
+ */
+typedef enum {
+       TAPI_SS_CW_MODE_ACTIVATE, /**< Activate call barring  */
+       TAPI_SS_CW_MODE_DEACTIVATE, /**< De Activate call barring */
+} TelSsCallWaitingMode_t;
+
+/**
+ *  This enumeration defines the call type .
+ */
+typedef enum {
+       /* TELESERVICE */
+       TAPI_SS_CLASS_ALL_TELE=0x10,                        /* 0x10 : All Teleservices */
+       TAPI_SS_CLASS_VOICE=0x11,                              /* 0x11 : All Voice ( telephony ) */
+       TAPI_SS_CLASS_ALL_DATA_TELE=0x12,             /* 0x12 : All Data Teleservices */
+       TAPI_SS_CLASS_FAX=0x13,                                /* 0x13 : All 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 teleservice 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*/  
+
+       /* PLMN SPECIFIC TELESERVICE */
+       TAPI_SS_CLASS_PLMN_TELE_ALL = 0x50,         /*0x50 : PLMN specific teleservices*/
+       TAPI_SS_CLASS_PLMN_TELE_1 = 0x51,              /*0x51 :PLMN specific teleservice 1*/
+       TAPI_SS_CLASS_PLMN_TELE_2 = 0x52,             /*0x52 : PLMN specific teleservice 2*/
+       TAPI_SS_CLASS_PLMN_TELE_3 = 0x53,             /*0x53 : PLMN specific teleservice 3*/
+       TAPI_SS_CLASS_PLMN_TELE_4 = 0x54,             /*0x54 : PLMN specific teleservice 4*/
+       TAPI_SS_CLASS_PLMN_TELE_5 = 0x55,             /*0x55 : PLMN specific teleservice 5*/
+       TAPI_SS_CLASS_PLMN_TELE_6 = 0x56,             /*0x56 : PLMN specific teleservice 6*/
+       TAPI_SS_CLASS_PLMN_TELE_7 = 0x57,             /*0x57 : PLMN specific teleservice 7*/
+       TAPI_SS_CLASS_PLMN_TELE_8 = 0x58,             /*0x58 : PLMN specific teleservice 8*/
+       TAPI_SS_CLASS_PLMN_TELE_9 = 0x59,             /*0x59 : PLMN specific teleservice 9*/
+       TAPI_SS_CLASS_PLMN_TELE_A = 0x60,           /*0x60 :PLMN specific teleservice 10*/
+       TAPI_SS_CLASS_PLMN_TELE_B = 0x61,           /*0x61 :PLMN specific teleservice 11*/
+       TAPI_SS_CLASS_PLMN_TELE_C = 0x62,             /*0x62 : PLMN specific teleservice 12*/
+       TAPI_SS_CLASS_PLMN_TELE_D = 0x63,             /*0x63 : PLMN specific teleservice 13*/
+       TAPI_SS_CLASS_PLMN_TELE_E = 0x64,             /*0x64 : PLMN specific teleservice 14*/
+       TAPI_SS_CLASS_PLMN_TELE_F = 0x65,             /*0x65 : PLMN specific teleservice 15*/
+
+       /* PLMN SPECIFIC BEARER SERVICE */
+       TAPI_SS_CLASS_PLMN_BEAR_ALL = 0x70,         /*0x70 : All PLMN specific bearer services*/
+       TAPI_SS_CLASS_PLMN_BEAR_1 = 0x71,              /*0x71 :PLMN specific bearer service 1*/
+       TAPI_SS_CLASS_PLMN_BEAR_2 = 0x72,             /*0x72 : PLMN specific bearer service  2*/
+       TAPI_SS_CLASS_PLMN_BEAR_3 = 0x73,             /*0x73 : PLMN specific bearer service  3*/
+       TAPI_SS_CLASS_PLMN_BEAR_4 = 0x74,             /*0x74 : PLMN specific bearer service  4*/
+       TAPI_SS_CLASS_PLMN_BEAR_5 = 0x75,             /*0x75 : PLMN specific bearer service  5*/
+       TAPI_SS_CLASS_PLMN_BEAR_6 = 0x76,             /*0x76 : PLMN specific bearer service  6*/
+       TAPI_SS_CLASS_PLMN_BEAR_7 = 0x77,             /*0x77 : PLMN specific bearer service  7*/
+       TAPI_SS_CLASS_PLMN_BEAR_8 = 0x78,             /*0x78 : PLMN specific bearer service  8*/
+       TAPI_SS_CLASS_PLMN_BEAR_9 = 0x79,             /*0x79 : PLMN specific bearer service  9*/
+       TAPI_SS_CLASS_PLMN_BEAR_A = 0x80,            /*0x80 : PLMN specific bearer service  10*/
+       TAPI_SS_CLASS_PLMN_BEAR_B = 0x81,             /*0x81 : PLMN specific bearer service  11*/
+       TAPI_SS_CLASS_PLMN_BEAR_C = 0x82,            /*0x82 : PLMN specific bearer service  12*/
+       TAPI_SS_CLASS_PLMN_BEAR_D = 0x83,            /*0x83 : PLMN specific bearer service  13*/
+       TAPI_SS_CLASS_PLMN_BEAR_E = 0x84,             /*0x84 : PLMN specific bearer service  14*/
+       TAPI_SS_CLASS_PLMN_BEAR_F = 0x85,             /*0x85 : PLMN specific bearer service  15*/
+
+       /* CPHS - AUXILIARY SERVICE */
+       TAPI_SS_CLASS_AUX_VOICE = 0x89,                 /* 0x89 : All 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 */
+} TelSsClass_t;
+
+/**
+ *  This enumeration defines the forward mode .
+ */
+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_ERASURE_EV, /**< De-register call forwarding */
+} TelSsForwardMode_t;
+
+typedef enum {
+       TAPI_SS_CF_NO_REPLY_TIME_5_SECS = 5, /**< Timer value set to 5secs*/
+       TAPI_SS_CF_NO_REPLY_TIME_10_SECS = 10, /**< Timer value set to 10secs*/
+       TAPI_SS_CF_NO_REPLY_TIME_15_SECS = 15, /**< Timer value set to 15secs*/
+       TAPI_SS_CF_NO_REPLY_TIME_20_SECS = 20, /**< Timer value set to 20secs*/
+       TAPI_SS_CF_NO_REPLY_TIME_25_SECS = 25, /**< Timer value set to 25secs*/
+       TAPI_SS_CF_NO_REPLY_TIME_30_SECS = 30, /**< Timer value set to 30secs*/
+} TelSsNoReplyTime_t;
+
+/**
+ *  Describes whether a supplementary service request was a success or a failure; and if it failed, why.
+ */
+typedef enum {
+       TAPI_SS_SUCCESS, /**<  SS operation was successful */
+       TAPI_SS_TIMEREXPIRE, /**< SS operation timer expired on network. */
+       TAPI_SS_UNKNOWNSUBSCRIBER, /**< SS error indicating unknown/illegal subscriber.  */
+       TAPI_SS_BEARERSERVICENOTPROVISIONED, /**<The network returns this error when it is requested to  @n
+        perform an operation on a supplementary service  */
+       TAPI_SS_TELESERVICENOTPROVISIONED, /**<The network returns this error when it is requested to perform  @n
+        an operation on a supplementary service  */
+       TAPI_SS_ILLEGALSSOPERATION, /**<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, /**<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, /**< SS not available in network */
+       TAPI_SS_SUBSCRIPTIONVIOLATION, /**< SS service subscription violation. */
+       TAPI_SS_INCOMPATIBILITY, /**< This error is returned by the network when it is requested for a supplementary service operation incompatible with the @n
+        status of another supplementary service or with the teleservice or bearer service for which the operation is requested */
+       TAPI_SS_SYSTEMFAILURE, /**< This error is returned by the network, when it cannot perform an operation because of a failure in the network */
+       TAPI_SS_DATAMISSING, /**< 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, /**< SS error indicating unexpected data value on network side *//**< SS operation barred.  */
+       TAPI_SS_PWREGISTRATIONFAILURE, /**< SS error indicating change password failure. */
+       TAPI_SS_NEGATIVEPWCHECK, /**< SS error indicating negative password check.  */
+       TAPI_SS_FACILITYNOTSUPPORTED, /**< SS service facility not supported  */
+       TAPI_SS_RESOURCESNOTAVAILABLE, /**< SS error indicating resources not available in network.  */
+       TAPI_SS_MAXNOMPTYEXCEEDED, /**< SS error indicating Maximum MPTY is reached.  */
+       TAPI_SS_CALLBARRED, /**< This error is returned by the network to the MS when call independent subscriber control procedures are barred by the operator */
+       TAPI_SS_NUMBEROFPWATTEMPTSVIOLATION, /**< SS error indicating barring password attempts violated.  */
+       TAPI_SS_ABSENTSUBSCRIBER, /**< This error is returned when the subscriber has activated the detach service or the system detects the absence condition */
+       TAPI_SS_ILLEGALSUBSCRIBER, /**<This error is returned when illegality of the access has been @n
+        established by use of authentication procedure. */
+       TAPI_SS_ILLEGALEQUIPMENT, /**<This error is returned when the IMEI check procedure has shown that  @n
+        the IMEI is blacklisted or not whitelisted  */
+       TAPI_SS_USSDBUSY, /**< SS error indicating USSD Busy(Already SS / USSD is ongoing).  */
+       TAPI_SS_UNKNOWNALPHABET, /**< SS error indicating unknown SS data coding of alphabet */
+       TAPI_SS_INVALIDDEFLECTEDTONUMBER, /**< SS error indicating the invalid deflected to number.  */
+       TAPI_SS_DEFLECTIONTOSERVEDSUBSCRIBER, /**< This error is returned if a diversion to the served  @n
+        subscriber's number was requested.  */
+       TAPI_SS_SPECIALSERVICECODE, /**< This error is returned if diversion to a special service code was requested.  */
+       TAPI_SS_REJECTEDBYUSER, /**< SS operation rejected by user.  */
+       TAPI_SS_REJECTEDBYNETWORK, /**< SS operation rejected by network.  */
+       TAPI_SS_NET_NOT_ALLOWED_EMERGENCY_CALLS_ONLY, /**< SS operation is not allowed by network.  */
+       TAPI_SS_UNKNOWNERROR, /**< SS error indicating unknown error  */
+       TAPI_SS_OEM_NOT_SUPPORTED /**< If oem do not support any of SS requests, then this error will be returned back */
+} TelSsCause_t;
+
+/**
+ *   The status of a supplementary service feature (e.g. Call Forwarding or Call Barring). @n
+ *   These enumerated values should be used as masks
+ */
+typedef enum {
+       TAPI_SS_STATUS_REGISTERED = 0x01, /**< Provisioned & registered (but not active/active-quiescent */
+       TAPI_SS_STATUS_PROVISIONED, /**<Provisioned but not registered (or active/active-quiescent) */
+       TAPI_SS_STATUS_ACTIVE, /**< Provisioned & registered & active */
+       TAPI_SS_STATUS_QUIESCENT, /**< Provisioned & registered & active but quiescent */
+       TAPI_SS_STATUS_NOTHING /**< Not provisioned */
+} TelSsStatus_t;
+
+/**
+ * These are the four types of identity presentation / restriction services.
+ */
+typedef enum {
+       TAPI_CALLING_LINE_IDENTITY_PRESENTATION, /**< 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 */
+       TAPI_CONNECTED_LINE_IDENTITY_RESTRICTION, /**< restrict yourself from being identified by incoming calls, such as forwarded calls */
+       TAPI_CALLED_LINE_IDENTITY_PRESENTATION, /**< Called line identity presentation  */
+       TAPI_CALLING_NAME_PRESENTATION /**< Calling Name Presentation */
+} TelSsLineIdentificationType_t;
+
+/**
+ *  This enumeration defines the cli service status .
+ */
+typedef enum {
+       TAPI_CLI_STATUS_NOT_PROVISONED = 0x01, /**<Service not provided by the service provider */
+       TAPI_CLI_STATUS_PROVISIONED, /**<Service is provided by the service provider */
+       TAPI_CLI_STATUS_ACTIVATED, /**<Service is activated at the network */
+       TAPI_CLI_STATUS_UNKOWN, /**<Service status is unknown*/
+       TAPI_CLI_STATUS_TEMP_RESTRICTED, /**<Service is temporarily restricted */
+       TAPI_CLI_STATUS_TEMP_ALLOWED /**<Service is temporarily allowed */
+} TelSsCliStatus_t;
+
+/**
+ *  This enumeration defines the values for Cli service type .
+ */
+typedef enum {
+       TAPI_SS_CLI_CLIP = 0x01, /**< Calling Line Identification Presentation. */
+       TAPI_SS_CLI_CLIR = 0x02, /**<  Calling Line Identification Restriction. */
+       TAPI_SS_CLI_COLP = 0x03, /**<  Connected Line Identification Presentation. */
+       TAPI_SS_CLI_COLR = 0x04, /**<  Connected Line Identification Restriction. */
+       TAPI_SS_CLI_CDIP = 0x05, /**<  Called Line Identification Presentation. */
+       TAPI_SS_CLI_CNAP = 0x06, /**<  Calling Name Presentation.*/
+} TelSsCliType_t;
+
+/**
+ * This enum defines the values for AOC type.
+ */
+typedef enum {
+       TAPI_SS_AOC_TYPE_RESET = 0x00, /**< Specifies the Reset MAXACM Value. */
+       TAPI_SS_AOC_TYPE_ACM = 0x01, /**< Specifies the Accumulated call meter. */
+       TAPI_SS_AOC_TYPE_CCM = 0x02, /**< Specifies the Current call meter. */
+       TAPI_SS_AOC_TYPE_MAXACM = 0x04, /**< Specifies the Max accumulated call meter. */
+       TAPI_SS_AOC_TYPE_PUC = 0x08 /**< Specifies the Price per unit and currency.*/
+} TelSsAocType_t;
+
+/**
+ *  This structure  defines the different parameters related to forward info.
+ */
+typedef struct {
+       TelSsClass_t Class;
+       TelSsForwardMode_t Mode; /**< Forward Mode */
+       TelSsForwardWhen_t Condition; /**< Forward Condition */
+       char szPhoneNumber[TAPI_CALL_DIALDIGIT_LEN_MAX]; /**< Phone Number*/
+       TelSsNoReplyTime_t NoReplyConditionTimer; /**< No reply wait time 5-30 secs in intervals of 5. */
+} TelSsForwardInfo_t;
+
+/**
+ *  This structure defines the values for USSD request type.
+ */
+typedef struct {
+       TelSsUssdType_t Type;
+       int Length; /**< USSD  String Length */
+       char szString[TAPI_SS_USSD_DATA_SIZE_MAX]; /**< USSD  String */
+} TelSsUssdMsgInfo_t;
+
+/**
+ *  This structure  defines the different parameters related to call barring.
+ */
+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 */
+} TelSsBarringInfo_t;
+
+/**
+ *  This structure  defines the different parameters related to call waiting.
+ */
+typedef struct {
+       TelSsClass_t Class; /**< Call type */
+       TelSsCallWaitingMode_t Mode; /**< Waiting mode  */
+} TelSsWaitingInfo_t;
+
+/**
+ * This structure defines the release complete message notification type.
+ */
+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. */
+} TelSsRelCompMsgInfo_t;
+
+/**
+ * This structure defines the values for AOC request type.
+ */
+
+typedef struct {
+       float PPM;
+       unsigned char CharTypeOfCurrency;
+       unsigned char szCurrency[TAPI_SS_AOC_CURRENCY_LEN_MAX];
+} TelAocPucInfo_t;
+
+typedef struct {
+       TelSsAocType_t AocType; /**< Specifies the AOC type. */
+       unsigned int ACM; /**< Specifies the accumulated call meter value. */
+       unsigned int MaxAcm; /**< Specifies the maximum value of ACM . */
+       float CCM; /**< Specifies the Current call meter value. */
+       float PPM; /**< Specifies the Price per unit value. */
+       unsigned char CharTypeOfCurrency; /**< Specifies the Char type of currency. */
+       unsigned char szCurrency[TAPI_SS_AOC_CURRENCY_LEN_MAX]; /**< Specifies the Currency characters. */
+} TelCallAocInfo_t;
+
+/**
+ * This structure defines the values for ss call barring record
+ */
+typedef struct {
+       int record_num;
+       struct {
+               TelSsClass_t Class;
+               TelSsStatus_t Status; /**< SS status  */
+               TelSsBarringType_t Flavour; /**< Call barring types providing various barring conditions on that basis call be barred */
+       } record[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the  Maximum of TAPI_SS_RECORD_NUM_MAX records. */
+} TelSsBarringResp_t;
+
+/**
+ * This structure defines the values for ss call forwarding record
+ */
+typedef struct {
+       int record_num;
+       struct {
+               TelSsClass_t Class;
+               TelSsStatus_t Status; /**< Call forwarding SS status */
+               TelSsForwardWhen_t ForwardCondition; /**< Call forward types providing various conditions when call can be forwarded */
+               int bCallForwardingNumberPresent; /**< Call forwarding number present or not */
+               unsigned char NoReplyWaitTime;
+               unsigned char szCallForwardingNumber[TAPI_CALL_DIALDIGIT_LEN_MAX]; /**< forwarded number.[Null Terminated string]*/
+       } record[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the  Maximum of TAPI_SS_RECORD_NUM_MAX records. */
+} TelSsForwardResp_t;
+
+/**
+ * This structure defines the values for ss call waiting record
+ */
+typedef struct {
+       int record_num;
+       struct {
+               TelSsClass_t Class;
+               TelSsStatus_t Status; /**< SS status */
+       } record[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the  Maximum of TAPI_SS_RECORD_NUM_MAX records. */
+} TelSsWaitingResp_t;
+
+/**
+ * This structure defines the values for Calling line identity service
+ */
+typedef struct {
+       TelSsLineIdentificationType_t Type; /**< Various line identification types */
+       TelSsCliStatus_t Status; /**< Line identification status from network */
+} TelSsCliResp_t;
+
+typedef struct {
+       TelSsUssdType_t Type;
+       TelSsUssdStatus_t Status;
+       int Length; /**< USSD  String Length */
+       char szString[TAPI_SS_USSD_DATA_SIZE_MAX]; /**< USSD  String */
+} TelSsUssdResp_t;
+
+typedef struct {
+       TelSsUssdStatus_t Status;
+       int Length; /**< USSD  String Length */
+       char szString[TAPI_SS_USSD_DATA_SIZE_MAX]; /**< USSD  String */
+} TelSsUssdNoti_t;
+
+typedef struct {
+       float PPM; /**< Specifies the Price per unit value. */
+       unsigned char CharTypeOfCurrency; /**< Specifies the Char type of currency. */
+       unsigned char szCurrency[TAPI_SS_AOC_CURRENCY_LEN_MAX]; /**< Specifies the Currency characters. */
+} TelSsAoc_ppm_info_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _TEL_SS_H_
+/**
+ * @}
+ */
diff --git a/include/common/TapiCommon.h b/include/common/TapiCommon.h
deleted file mode 100644 (file)
index 937898c..0000000
+++ /dev/null
@@ -1,591 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup COMMON_TAPI     COMMON
- * @{
- *
- * @file TapiCommon.h
- * @brief  This file serves as a "C" header file defines functions for Tapi Common Interfaces like Callback Registration / De-registration. \n
- It contains a sample set of function prototypes that would be required by applications.
-
-
- */
-
-#ifndef _TAPI_COMMON_H_
-#define _TAPI_COMMON_H_
-
-#include <TelDefines.h>
-#include <TelUtility.h>
-#include <TapiEvent.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define TAPI_EVENT_NAME_MAX_LEN                        128             /**< Maximum length of theevent name */
-#define TAPI_REQUEST_NOTI_ID                   0xff    /**< Request id for notification message */
-#define TAPI_REQUEST_INVALID_ID                        -1              /**< Invalid request id */
-#define TAPI_DBUS_CONNECTION_NAME_LEN_MAX      255
-
-/**
- *This structure retrieves current application name registered in DBUS.
- */
-typedef struct {
-       char name[TAPI_DBUS_CONNECTION_NAME_LEN_MAX]; /**<application name*/
-       unsigned int length_of_name; /**<length of application name*/
-} tapi_dbus_connection_name;
-
-/**
- *This structure holds information like length and actual tunneling data.
- */
-typedef struct {
-       unsigned int TunnelDataLen; /**<Length of tunnel data*/
-       void *pTunnelData; /**<Tunneling information exchanged between OEM and application(Not Null terminated string)*/
-} TelTunnelInfo_t;
-
-/**
- * @brief This API shall be used to initialize TAPI library.
- *  This API internally initiate a D-bus shared connection to communicate with Telephony Server.
- *  This API should be called before any other TAPI APIs.
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -  None.
- *
- * @warning
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <TapiCommon.h>
- *
- * int api_err;
- * api_err = tel_init(); //initialize telephony api if application use gmain loop
- * @endcode
- *
- * @see tel_register_event tel_deinit
- *
- * @remarks
- *  - None.
- *
- */
-/*================================================================================================*/
-int tel_init(void);
-
-/**
- * @brief  This function is used to register the callback function for a specific TAPI Event.
- *           If Application tries to register a callback for a specific event multiple times, then multiple callbacks will be registered.
- *           When an event indication is received, then registered callbacks for the specific event will be invoked multiple times.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -  Incase Application has registered for multiple callbacks for a event and it wants to have only one callback to be registered
- *     for that particular event, then Application needs to explicitly deregister the callbacks based on subscription id.
- *     If Application wants to modify the already registered event with a different callback, then it needs to deregister the already
- *     registered TAPI event with subscription id received and Application has to register again with a new callback for that TAPI event.
- *
- * @warning
- *
- * @param[in] EventType
- * - TAPI Event for which the callback registration is required.
- *
- * @param [out] SubscriptionId
- *   - An unique identifier identifying the callback registration.
- *
- * @param[in] AppCallBack
- * - Callback which will be invoked when an event occurs for that particular event class.
- *
- * @param[in] data
- * - User data which is passed as the callback parameter
- *
- * @par Async Response Message:
- * - None.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <stdio.h>
- * #include <stdlib.h>
- * #include <TapiCommon.h>
- * #include <ITapiCall.h>
- *
- * void app_callback(TelTapiEvent_t *event);
- * // REGISTER EVENT
- * void registerevent()
- * {
- *     unsigned int subscription_id = 0;
- *     int api_err = 0;
- *
- *     api_err = tel_init();
- *     if(api_err != 0){
- *             printf ("tel_init Failed - api_err = %d \n",api_err);
- *     }
- *     api_err = tel_register_event (TAPI_EVENT_CALL_SETUP_CNF ,
- *                      &subscription_id, (TelAppCallback)&app_callback);
- *     printf("MISC Event registeration is Done: sub id is %d, api_err is %d\n", subscription_id, api_err);
- * }
- *
- * void callsetup()
- * {
- *     int ret_status = 0;
- *     int RequestID = 0;
- *     unsigned int CallHandle;
- *     TelCallSetupParams_t Params;
- *     char *normal = "1234";//Called party number
- *
- *     memset(&Params, 0, sizeof(TelCallSetupParams_t));
- *     Params.CallType = TAPI_CALL_TYPE_VOICE;
- *     strcpy(Params.szNumber, normal);
- *
- *     ret_status = tel_exe_call_mo (&Params, &CallHandle, &RequestID);
- *     printf ("The return value is %d\n", ret_status);
- *
- *     if (ret_status == 0)
- *             printf("successful\n");
- *     else
- *             printf("error=%d\n", ret_status); //WAIT FOR EVENT HERE
- * }
- *
- * static void app_callback(TelTapiEvent_t *event)
- * {
- *     int eventClass;
- *     int eventType;
- *  int requestId;
- *     int status;
- *     void *EventData = NULL;
- *
- *     unsigned int temp_handle = 0;
- *     eventClass = event->EventClass;
- *     eventType = event->EventType;
- *     requestId = event->RequestId;
- *     status = event->Status;
- *     EventData = event->pData;
- *
- *
- *     if (status != 0) {
- *             return;
- *     }
- *
- *     switch (eventType) {
- *             case TAPI_EVENT_CALL_SETUP_CNF:
- *                     memcpy(&temp_handle, EventData, sizeof(unsigned int));
- *                     break;
- *             case TAPI_EVENT_CALL_ALERT_IND:
- *                     memcpy(&temp_handle, event->pData, sizeof(unsigned int));
- *                     break;
- *             case TAPI_EVENT_CALL_CONNECTED_IND:
- *                     memcpy(&temp_handle, event->pData, sizeof(unsigned int));
- *                     break;
- *     }
- *
- *     // Handle the event data
- *     ...
- * }
- * @endcode
- *
- * @see None.
- *
- * @remarks
- *  - None.
- *
- */
-/*================================================================================================*/
-int tel_register_event(int EventType, unsigned int *SubscriptionId, TelAppCallback AppCallBack, void *data);
-
-/**
- * @brief  This function will de-register the application callback registered for the specific event or event class based on the
- *             subscription id. This identifier is the same subscription identifier which is returned back to the application during
- *             TAPI registration procedure.If de-register API is called during any service requests, Application registered callback
- *             will be cleared based on the subscription id. No application callback shall be invoked in case any confirmations/indications
- *             are received from TS.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -  Application has to de-register each registration using subscription id explicitly as there is no overriding of callback registration.
- *
- * @warning
- *
- * @param[in] SubscriptionId
- * - An unique identifier identifying the callback registration.
- *
- * @par Async Response Message:
- * - None.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (TapiResult_t) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <TapiCommon.h>
- * #include <ITapiCall.h>
- *
- * unsigned int subscription_id = 0;
- *
- * void registerevent()
- * {
- *     int api_err = 0;
- *     api_err = tel_init();
- *     if (api_err != 0) {
- *             printf ("tel_init Failed - api_err = %d \n", api_err);
- *             return;
- *     }
- *     api_err = tel_register_event (TAPI_EVENT_CALL_SETUP_CNF,
- *                      &subscription_id, (TelAppCallback)&app_callback);
- *     printf("MISC Event registeration is Done: sub id is %d, api_err is %d\n", subscription_id, api_err);
- * }
- *
- * void deregisterevent()
- * {
- *     int api_err = 0;
- *  api_err = tel_deregister_event (subscription_id); //should be used subscription id which is generated at register time
- * }
- * @endcode
- *
- * @see None.
- *
- * @remarks
- *  - None.
- *
- */
-/*================================================================================================*/
-int tel_deregister_event(unsigned int SubscriptionId);
-
-/**
- * @brief This API shall be used to de-initialize TAPI library.
- *  It shall handle the reinitializing routines related to Event delivery mechanism.
- *  This API internally shall handle Event delivery related de-initialization routines .
- *  This API should be called before any other TAPI API.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -  None.
- *
- * @warning
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <TapiCommon.h>
- *
- * int api_err = 0;
- * api_err = tel_deinit(); //no in,out param required
- * @endcode
- *
- * @see None.
- *
- * @remarks
- *  - None.
- *
- */
-/*================================================================================================*/
-int tel_deinit(void);
-
-
-/**
- * @brief This API shall be used to check whether telephony service is ready or not.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -  None.
- *
- * @warning
- *
- *
- * @param[out] bStatus
- * - Status of the telephony service
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <TapiCommon.h>
- *
- * int bStatus = 0;
- * int err_code;
- * err_code = tel_check_service_ready(&bStatus); //bStatus value is set 1 if ready
- *
- * @endcode
- *
- * @see None.
- *
- * @remarks
- *  - None.
- *
- */
-/*================================================================================================*/
-int tel_check_service_ready(int *bStatus);
-
-/**
- * @brief This API shall be used to register the application name which listen
- *        the async response upon the TAPI requests
- *
- * @par Notes:
- * This function sets the application name. It is to determine the destination
- * which the Telephony Server send the asynchronous response upon TAPI request.
- * The TAPI callee can receive the response event.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -  Before register an application name, tel_init() has to be called.
- *    Otherwise it will fail in registering the name.
- *
- * @warning
- *
- *
- * @param[in] name
- * - Application name.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - It should be invoked after registering telephony events and before starting a event loop.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <TapiCommon.h>
- * #include <glib.h>
- *
- * GMainLoop *loop = g_main_loop_new(NULL, false);
- *
- * tel_init();
- * tel_register_app_name("com.samsung.test"); //register application name. the format of name is not fixed
- * g_main_loop_run(loop);
- *
- * @endcode
- *
- * @see tel_get_app_name
- *
- * @remarks
- *  - None.
- */
-/*================================================================================================*/
-int tel_register_app_name(char *name);
-
-/**
- * @brief This API shall be used to get the registered application name.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -  None.
- *
- * @warning
- *
- *
- * @param[out] app_name
- * - Application name which is registered in telephony server.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - It should be invoked after registering telephony events and before starting a event loop.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <TapiCommon.h>
- *
- * tapi_dbus_connection_name app_name;
- * tel_get_app_name(&app_name); //if application want to get registered name itself
- *
- * @endcode
- *
- * @see tel_register_app_name
- *
- * @remarks
- *  - None.
- */
-/*================================================================================================*/
-int tel_get_app_name(tapi_dbus_connection_name *app_name);
-
-/**
- * @brief  This API allows Application to send any proprietary information to OEM.
- *
- * @par Notes:
- * This API shall be used when any proprietary information what telephony server is transparent is needed to send the OEM layer.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -  None.
- *
- * @warning
- *
- * @param[in] pTunnelInfo
- * - This information holds the length of the tunneling data and actual tunneling data.
- *
- * @param[out] pRequestId
- * - Callback which will be invoked when an event occurs for that particular event class.
- *
- * @par Async Response Message:
- * - This Asynchronous event TAPI_EVENT_TUNNEL_INFO_CNF is returned in response and associated event
- *    data is #TelTunnelInfo_t with this event. Asynchronous return status will be indicated by tunnel_status
- *    which is a Boolean indicating success(1-True) or Failure(0-False)
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <TapiCommon.h>
- *
- * int requestId = 0;
- * TelTunnelInfo_t ti;
- * int test = 1234;
- *
- * ti.pTunnelData = (void *)test;
- * ti.TunnelDataLen = sizeof(test); //should be set correct size
- * ret = tel_request_tunnel (&ti, &requestId);
- *
- * @endcode
- *
- * @see None.
- *
- * @remarks
- *  - None.
- *
- */
-/*================================================================================================*/
-int tel_request_tunnel(const TelTunnelInfo_t *pTunnelInfo, int *pRequestId);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TAPI_COMMON_H_ */
-
-/**
- *  @}
- */
diff --git a/include/common/TapiEvent.h b/include/common/TapiEvent.h
deleted file mode 100644 (file)
index bf7f76a..0000000
+++ /dev/null
@@ -1,589 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup COMMON_TAPI     EVENT
- * @{
- *
- * @file TapiEvent.h
- * @brief  This file serves as a "C" header file defines type of events. \n
- */
-
-#ifndef _TAPI_EVENT_H_
-#define _TAPI_EVENT_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- *   This value defines the Telephony Event Class. Class is nothing but a group of events
- *   related to a particular subsystem. Example of one Event Class is TAPI_EVENT_CLASS_CALL_VOICE.
- *   This becomes the first parameter of telephony notifications.
- */
-
-#define TAPI_EVENT_NAME_MAX_LEN                        128     /**< Maximum length of theevent name */
-#define TAPI_REQUEST_NOTI_ID                   0xff    /**< Request id for notification message */
-#define TAPI_REQUEST_INVALID_ID                        -1              /**< Invalid request id */
-
-#define TAPI_EVENT_TYPE_CONFIRMATION   (0 << 16)
-#define TAPI_EVENT_TYPE_NOTIFICATION   (1 << 16)
-#define TAPI_EVENT_TYPE_RESERVED               (2 << 16)
-#define TAPI_EVENT_TYPE_MAX                            (3 << 16)
-
-#define TAPI_EVENT_NONE                                        (-1)                                                    /**< Event None */
-#define TAPI_EVENT_CLASS_BASE                  (0)                                                             /**< Event None */
-#define TAPI_EVENT_CLASS_CALL_VOICE            (TAPI_EVENT_CLASS_BASE + 0)             /**<    Voice Call Event Class  */
-#define TAPI_EVENT_CLASS_CALL_DATA             (TAPI_EVENT_CLASS_BASE + 1)             /**<    Data Call Event Class   */
-#define TAPI_EVENT_CLASS_SIM                   (TAPI_EVENT_CLASS_BASE + 2)             /**<    SIM Event  Class        */
-#define TAPI_EVENT_CLASS_NETTEXT               (TAPI_EVENT_CLASS_BASE + 3)             /**<    Nettext (SMS/CB) Event Class    */
-#define TAPI_EVENT_CLASS_NETWORK               (TAPI_EVENT_CLASS_BASE + 4)             /**<    Network Event  Class    */
-#define TAPI_EVENT_CLASS_SS                            (TAPI_EVENT_CLASS_BASE + 5)             /**<    SS Event  Class */
-#define TAPI_EVENT_CLASS_SAT                   (TAPI_EVENT_CLASS_BASE + 6)             /**<    SAT Events  Class       */
-#define TAPI_EVENT_CLASS_DATA                  (TAPI_EVENT_CLASS_BASE + 7)             /**<    GPRS DATA Events  Class */
-#define TAPI_EVENT_CLASS_SOUND                 (TAPI_EVENT_CLASS_BASE + 8)             /**<    SOUND Events  Class     */
-#define TAPI_EVENT_CLASS_UTIL                  (TAPI_EVENT_CLASS_BASE + 9)             /**<    COMMON Events  Class    */
-#define TAPI_EVENT_CLASS_EXTENSION             (TAPI_EVENT_CLASS_BASE + 0x1F)  /**<    Extension Event */
-#define TAPI_EVENT_CLASS_MAX                   (TAPI_EVENT_CLASS_BASE + 0x3F)  /**<    MAX event Class */
-
-#define        TAPI_EVENT_CLASS_ERR                    (TAPI_EVENT_CLASS_EXTENSION)            /**<    Fatal error Event  Class        */
-#define        TAPI_EVENT_CLASS_POWER                  (TAPI_EVENT_CLASS_EXTENSION + 1)        /**<    POWEREvents  Class      */
-#define        TAPI_EVENT_CLASS_DISPLAY                (TAPI_EVENT_CLASS_EXTENSION + 2)        /**<    DISPLAY Events  Class   */
-#define        TAPI_EVENT_CLASS_MISC                   (TAPI_EVENT_CLASS_EXTENSION + 3)        /**<    MISC Events  Class      */
-#define        TAPI_EVENT_CLASS_CFG                    (TAPI_EVENT_CLASS_EXTENSION + 4)        /**<    CFG Events  Class       */
-#define        TAPI_EVENT_CLASS_IMEI                   (TAPI_EVENT_CLASS_EXTENSION + 5)        /**<    MISC Events  Class      */
-#define        TAPI_EVENT_CLASS_GPS                    (TAPI_EVENT_CLASS_EXTENSION + 6)        /**<GPS Events  Class   */
-#define        TAPI_EVENT_CLASS_OMADM                  (TAPI_EVENT_CLASS_EXTENSION + 7)        /**<    OMADM Events  Class */
-#define TAPI_EVENT_CLASS_SVCMODE               (TAPI_EVENT_CLASS_EXTENSION + 8)
-#define TAPI_EVENT_CLASS_FACTORY               (TAPI_EVENT_CLASS_EXTENSION + 9)
-#define TAPI_EVENT_CLASS_CALL_E911             (TAPI_EVENT_CLASS_EXTENSION + 10)       // check why this is needed.
-#define        TAPI_EVENT_CLASS_CDMA_DATA              (TAPI_EVENT_CLASS_EXTENSION + 11)       /**<    CDMA Data Events  Class */
-
-/*     Events releated to Voice Call */
-#define TAPI_EVENT_CALL_CONFIRMATION                   (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_CALL_VOICE << 8))
-#define TAPI_EVENT_CALL_SETUP_CNF                              (TAPI_EVENT_CALL_CONFIRMATION + 0)              /**<    This event indicates the Call Setup request triggered */
-#define TAPI_EVENT_CALL_ANSWER_CNF                             (TAPI_EVENT_CALL_CONFIRMATION + 1)              /**<    Incoming call was answered*/
-#define TAPI_EVENT_CALL_RETRIEVE_CNF                   (TAPI_EVENT_CALL_CONFIRMATION + 2)              /**<    This event indicates Call is retrieved from held state*/
-#define TAPI_EVENT_CALL_HOLD_CNF                               (TAPI_EVENT_CALL_CONFIRMATION + 3)              /**<    This event indicates is call is put on hold*/
-#define TAPI_EVENT_CALL_TRANSFER_CNF                   (TAPI_EVENT_CALL_CONFIRMATION + 4)              /**<    This event indicates is call is explicitly transferred*/
-#define TAPI_EVENT_CALL_SETUPCONFERENCE_CNF            (TAPI_EVENT_CALL_CONFIRMATION + 5)              /**<    This event indicates that Call is joined in a conference*/
-#define TAPI_EVENT_CALL_SPLITCONFERENCE_CNF            (TAPI_EVENT_CALL_CONFIRMATION + 6)              /**<    This event indicates Call is split from conference*/
-#define TAPI_EVENT_CALL_SEND_DTMF_CNF                  (TAPI_EVENT_CALL_CONFIRMATION + 7)              /**<    This event indicates the confirmation for sending DTMF Digits to the network*/
-#define TAPI_EVENT_CALL_RELEASE_CNF                            (TAPI_EVENT_CALL_CONFIRMATION + 8)              /**<    This event is indicated when a specific call is released requested by the application*/
-#define TAPI_EVENT_CALL_RELEASE_ALL_CNF                        (TAPI_EVENT_CALL_CONFIRMATION + 9)              /**<    This event is indicated when all the calls released requested by the application*/
-#define TAPI_EVENT_CALL_RELEASE_ALL_ACTIVE_CNF (TAPI_EVENT_CALL_CONFIRMATION + 10)             /**<    This event is indicated when all the active calls released requested by the application*/
-#define TAPI_EVENT_CALL_RELEASE_ALL_HELD_CNF   (TAPI_EVENT_CALL_CONFIRMATION + 11)             /**<    This event is indicated when all the held calls released requested by the application*/
-#define TAPI_EVENT_CALL_GET_LINEID_CNF                 (TAPI_EVENT_CALL_CONFIRMATION + 12)             /**<    Error in Get Line ID    */
-#define TAPI_EVENT_CALL_SET_LINEID_CNF                 (TAPI_EVENT_CALL_CONFIRMATION + 13)             /**<    Error in Set Line Id            */
-#define TAPI_EVENT_CALL_SWAP_CNF                               (TAPI_EVENT_CALL_CONFIRMATION + 14)             /**<    Call Swap Confirmation */
-#define TAPI_EVENT_CALL_TIME_CNF                               (TAPI_EVENT_CALL_CONFIRMATION + 15)             /**<    call time cnf */
-#define TAPI_EVENT_CALL_FLASHINFO_CNF                  (TAPI_EVENT_CALL_CONFIRMATION + 16)             /**<    Flash info      */
-#define TAPI_EVENT_CALL_GET_PRIVACYMODE_CNF            (TAPI_EVENT_CALL_CONFIRMATION + 17)             /**<    Get Privacy mode        */
-#define TAPI_EVENT_CALL_SET_PRIVACYMODE_CNF            (TAPI_EVENT_CALL_CONFIRMATION + 18)             /**<    Set Privacy mode        */
-#define TAPI_EVENT_CALL_EXIT_EMERGENCYMODE_CNF (TAPI_EVENT_CALL_CONFIRMATION + 19)             /**<    Exit Emergency mode     cnf */
-#define TAPI_EVENT_CALL_CNF_MAX                                        (TAPI_EVENT_CALL_CONFIRMATION + 20)
-
-#define TAPI_EVENT_CALL_NOTIFICATION                   (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_CALL_VOICE << 8))
-#define TAPI_EVENT_CALL_ALERT_IND                              (TAPI_EVENT_CALL_NOTIFICATION + 0)              /**<    This event indicates the Call is in Alerting stage*/
-#define TAPI_EVENT_CALL_CONNECTING_IND                 (TAPI_EVENT_CALL_NOTIFICATION + 1)              /**<    This event indicates the Call is in Connecting stage*/
-#define TAPI_EVENT_CALL_CONNECTED_IND                  (TAPI_EVENT_CALL_NOTIFICATION + 2)              /**<    This event indicates the Call is Connected */
-#define TAPI_EVENT_CALL_END_IND                                        (TAPI_EVENT_CALL_NOTIFICATION + 3)              /**<    This event indicates the Call is Ended. This event can be solicited/unsolicited.*/
-#define TAPI_EVENT_CALL_INCOM_IND                              (TAPI_EVENT_CALL_NOTIFICATION + 4)              /**<    This event indicates Incoming Call indication to Application*/
-#define TAPI_EVENT_CALL_HOLD_IND                               (TAPI_EVENT_CALL_NOTIFICATION + 5)              /**<    This event indicates that other party is has put the call on hold*/
-#define TAPI_EVENT_CALL_RETRIEVE_IND                   (TAPI_EVENT_CALL_NOTIFICATION + 6)              /**<    This event indicates that other party has retrieved the call from hold*/
-#define TAPI_EVENT_CALL_SETUPCONFERENCE_IND            (TAPI_EVENT_CALL_NOTIFICATION + 7)              /**<    Conference setup indication*/
-#define TAPI_EVENT_CALL_WAITING_IND                            (TAPI_EVENT_CALL_NOTIFICATION + 8)              /**<    Call waiting indication*/
-#define TAPI_EVENT_CALL_FORWARD_IND                            (TAPI_EVENT_CALL_NOTIFICATION + 9)              /**<    This event indication for Call is forwarded */
-#define TAPI_EVENT_CALL_TRANSFER_IND                   (TAPI_EVENT_CALL_NOTIFICATION + 10)             /**<    Call Transfer Indication*/
-#define TAPI_EVENT_CALL_TIME_IND                               (TAPI_EVENT_CALL_NOTIFICATION + 11)             /**<    call time ind */
-#define TAPI_EVENT_CALL_BARRING_IND                            (TAPI_EVENT_CALL_NOTIFICATION + 12)             /**<    This event indicates the Call is Barred*/
-#define TAPI_EVENT_CALL_FORWARDED_INFO_IND             (TAPI_EVENT_CALL_NOTIFICATION + 13)             /**<    This event indicates the MT call is Forwarded*/
-#define TAPI_EVENT_CALL_CUGINFO_IND                            (TAPI_EVENT_CALL_NOTIFICATION + 14)             /**<    This event indicates CUG information */
-#define TAPI_EVENT_CALL_AOCINFO_IND                            (TAPI_EVENT_CALL_NOTIFICATION + 15)             /**<    This event indicates the AOC Information*/
-#define TAPI_EVENT_CALL_CALLINGNAMEINFO_IND            (TAPI_EVENT_CALL_NOTIFICATION + 16)             /**<    This event indicates the Calling Name Information*/
-#define TAPI_EVENT_CALL_CONNECTEDNUMBERINFO_IND        (TAPI_EVENT_CALL_NOTIFICATION + 17)             /**<    This event indicates the Connected Number Information*/
-#define TAPI_EVENT_CALL_CLISUPRESSIONREJ_IND   (TAPI_EVENT_CALL_NOTIFICATION + 18)             /**<    This event indicates the CLI Suppression Indication*/
-#define TAPI_EVENT_CALL_DEFLECTED_IND                  (TAPI_EVENT_CALL_NOTIFICATION + 19)             /**<    This event indicates the Call is Deflected*/
-#define TAPI_EVENT_CALL_UNCOND_FORWARDING_IND  (TAPI_EVENT_CALL_NOTIFICATION + 20)             /**<    This event indicates the Call is unconditionally forwarded*/
-#define TAPI_EVENT_CALL_COND_FORWARDING_IND            (TAPI_EVENT_CALL_NOTIFICATION + 21)             /**<    This event indicates the Call is conditionally forwarded*/
-#define TAPI_EVENT_CALL_CONNECTED_ECT_REMOTE_IND       (TAPI_EVENT_CALL_NOTIFICATION + 22)             /**<    This event indicates the ECT remote connection  */
-#define TAPI_EVENT_CALL_ON_HOLD_RELEASED_IND   (TAPI_EVENT_CALL_NOTIFICATION + 23)             /**<    This event indicates the Call on hold is released*/
-#define TAPI_EVENT_CALL_ALERT_ECT_REMOTE_IND   (TAPI_EVENT_CALL_NOTIFICATION + 24)             /**<    This event indicates the ECT remote alert*/
-#define TAPI_EVENT_CALL_SS_FORWARDED_MSG_RXED_IND      (TAPI_EVENT_CALL_NOTIFICATION + 25)             /**<    This event indicates that the forwarded msg has been received*/
-#define TAPI_EVENT_CALL_OTA_PROGRESS_IND               (TAPI_EVENT_CALL_NOTIFICATION + 26)             /**<       ota progress ind */
-#define TAPI_EVENT_CALL_DISPLAY_INFO_IND               (TAPI_EVENT_CALL_NOTIFICATION + 27)             /**<       display info ind */
-#define TAPI_EVENT_CALL_EMERGENCYMODE_IND              (TAPI_EVENT_CALL_NOTIFICATION + 28)             /**<    Emergency mode  ind */
-#define TAPI_EVENT_CALL_PRIVACYMODE_IND                        (TAPI_EVENT_CALL_NOTIFICATION + 29)             /**<    Privacy mode Indication */
-#define TAPI_EVENT_CALL_IND_MAX                                        (TAPI_EVENT_CALL_NOTIFICATION + 30)
-
-/*     Events releated to Data Call */
-#define TAPI_EVENT_DATA_CALL_CONFIRMATION              (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_CALL_DATA << 8))
-#define TAPI_EVENT_DATA_SETUP_CNF                              (TAPI_EVENT_DATA_CALL_CONFIRMATION + 0)         /**<    This event indicates the Call Setup request triggered */
-#define TAPI_EVENT_DATA_CNF_MAX                                        (TAPI_EVENT_DATA_CALL_CONFIRMATION + 1)
-
-#define TAPI_EVENT_DATA_CALL_NOTIFICATION              (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_CALL_DATA << 8))
-#define TAPI_EVENT_DATA_ALERT_IND                              (TAPI_EVENT_DATA_CALL_NOTIFICATION + 0)         /**<    This event indicates the Call is in Alerting stage*/
-#define TAPI_EVENT_DATA_CONNECTED_IND                  (TAPI_EVENT_DATA_CALL_NOTIFICATION + 2)         /**<    This event indicates the Call is Connected */
-#define TAPI_EVENT_DATA_END_IND                                (TAPI_EVENT_DATA_CALL_NOTIFICATION + 3)         /**<    This event indicates the Call is Ended. This event can be solicited/unsolicited.*/
-#define TAPI_EVENT_DATA_INCOM_IND                      (TAPI_EVENT_DATA_CALL_NOTIFICATION + 4)         /**<    This event indicates Incoming Call indication to Application*/
-#define TAPI_EVENT_DATA_AOCINFO_IND                    (TAPI_EVENT_DATA_CALL_NOTIFICATION + 15)        /**<    This event indicates the Call is in Alerting stage*/
-#define TAPI_EVENT_DATA_IND_MAX                                        (TAPI_EVENT_DATA_CALL_NOTIFICATION + 16)
-
-/*     Events releated to SIM */
-#define TAPI_EVENT_SIM_CONFIRMATION                            (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_SIM << 8))
-#define TAPI_EVENT_SIM_VERIFY_SEC_CNF                  (TAPI_EVENT_SIM_CONFIRMATION + 0)               /**<    verify pin,sim*/
-#define TAPI_EVENT_SIM_VERIFY_PUK_CNF                  (TAPI_EVENT_SIM_CONFIRMATION + 1)               /**<    verify puk1, puk2*/
-#define TAPI_EVENT_SIM_CHANGE_PINS_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 2)               /**<    change pin1,2*/
-#define TAPI_EVENT_SIM_DISABLE_SEC_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 3)               /**<    disable security facility*/
-#define TAPI_EVENT_SIM_ENABLE_SEC_CNF                  (TAPI_EVENT_SIM_CONFIRMATION + 4)               /**<    enable security facility*/
-#define TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF             (TAPI_EVENT_SIM_CONFIRMATION + 5)               /**<    disable fdn mode*/
-#define TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF              (TAPI_EVENT_SIM_CONFIRMATION + 6)               /**<    enable fdn mode*/
-#define TAPI_EVENT_SIM_PERS_STATUS_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 7)               /**<    status of personalization*/
-#define TAPI_EVENT_SIM_DISABLE_PERS_CNF                        (TAPI_EVENT_SIM_CONFIRMATION + 8)               /**<    disable personalization*/
-#define TAPI_EVENT_SIM_ENABLE_PERS_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 9)               /**<    enable personalization*/
-#define TAPI_EVENT_SIM_GET_INDICATION_CNF              (TAPI_EVENT_SIM_CONFIRMATION + 10)              /**<    read sim indication information(mwis, cfis)*/
-#define TAPI_EVENT_SIM_SET_INDICATION_CNF              (TAPI_EVENT_SIM_CONFIRMATION + 11)              /**<    update sim indication information(mwis, cfis)*/
-#define TAPI_EVENT_SIM_GET_MAILBOX_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 12)              /**<    read sim mailbox information*/
-#define TAPI_EVENT_SIM_SET_MAILBOX_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 13)              /**<    update sim mailbox information*/
-#define TAPI_EVENT_SIM_SET_LANGUAGE_CNF                        (TAPI_EVENT_SIM_CONFIRMATION + 14)              /**<    update sim language information*/
-#define TAPI_EVENT_SIM_RSIM_ACCESS_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 15)              /**<    rsim operation*/
-#define TAPI_EVENT_SIM_AUTHENTICATION_CNF      (TAPI_EVENT_SIM_CONFIRMATION + 16)              /**<    ISIM authentication confirmation*/
-#define TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF            (TAPI_EVENT_SIM_CONFIRMATION + 17)              /**<    Phonebook storage count*/
-#define TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF               (TAPI_EVENT_SIM_CONFIRMATION + 18)              /**<    Phonebook entry information*/
-#define TAPI_EVENT_SIM_PB_ACCESS_READ_CNF              (TAPI_EVENT_SIM_CONFIRMATION + 19)              /**<    Phonebook access read*/
-#define TAPI_EVENT_SIM_PB_UPDATE_CNF                   (TAPI_EVENT_SIM_CONFIRMATION + 20)              /**<    Phonebook update result*/
-#define TAPI_EVENT_SIM_PB_DELETE_CNF                   (TAPI_EVENT_SIM_CONFIRMATION + 21)              /**<    Phonebook delete result*/
-#define TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF  (TAPI_EVENT_SIM_CONFIRMATION + 22)              /**<    3G SIM PB capability Info */
-#define TAPI_EVENT_SIM_SAP_CONNECT_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 23)              /**<    SAP connect confirmation */
-#define TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF  (TAPI_EVENT_SIM_CONFIRMATION + 24)              /**<    SAP connection status confirmation*/
-#define TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF            (TAPI_EVENT_SIM_CONFIRMATION + 25)              /**<    SAP transfer ATR confirmation */
-#define TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF   (TAPI_EVENT_SIM_CONFIRMATION + 26)              /**<    SAP transfer APDU confirmation */
-#define TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF            (TAPI_EVENT_SIM_CONFIRMATION + 27)              /**<    SAP set protocol confirmation */
-#define TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF   (TAPI_EVENT_SIM_CONFIRMATION + 28)              /**<    SAP set sim power confirmation */
-#define TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF      (TAPI_EVENT_SIM_CONFIRMATION + 29)      /**<    SAP card reader status confirmation*/
-#define TAPI_EVENT_SIM_APDU_CNF                                        (TAPI_EVENT_SIM_CONFIRMATION + 30)      /**<    apdu confirmation*/
-#define TAPI_EVENT_SIM_ATR_CNF                                 (TAPI_EVENT_SIM_CONFIRMATION + 31)      /**<    atr confirmation*/
-#define TAPI_EVENT_SIM_CNF_MAX                                 (TAPI_EVENT_SIM_CONFIRMATION + 32)
-
-#define TAPI_EVENT_SIM_NOTIFICATION                            (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_SIM << 8))
-#define TAPI_EVENT_SIM_STATUS_IND                              (TAPI_EVENT_SIM_NOTIFICATION + 0)               /**<    Unsolicited event --- whenever there is a changes in SIM status*/
-#define TAPI_EVENT_SIM_FDN_STATUS_IND                  (TAPI_EVENT_SIM_NOTIFICATION + 1)               /**<    Unsolicited event --- whenever there is a changes in FDN status and phonebook init status*/
-#define TAPI_EVENT_SIM_SAP_CONNECT_NOTI                        (TAPI_EVENT_SIM_NOTIFICATION + 2)               /**<    SAP connect notification */
-#define TAPI_EVENT_SIM_IND_MAX                                 (TAPI_EVENT_SIM_NOTIFICATION + 3)               /**<    SAP connect notification */
-
-/* Events related on Nettext Messages  */
-#define TAPI_EVENT_NETTEXT_CONFIRMATION                        (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_NETTEXT << 8))
-#define TAPI_EVENT_NETTEXT_SENTSTATUS_CNF              (TAPI_EVENT_NETTEXT_CONFIRMATION + 0)   /**<    This event is returned in response to SMS  message sent*/
-#define TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF (TAPI_EVENT_NETTEXT_CONFIRMATION + 1)   /**<    This event is returned in response to send delivery report*/
-#define TAPI_EVENT_NETTEXT_READ_SMS_CNF                (TAPI_EVENT_NETTEXT_CONFIRMATION + 2)   /**<    This event is returned in response to SMS Read message*/
-#define TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF             (TAPI_EVENT_NETTEXT_CONFIRMATION + 3)   /**<    This confirmation event is a returned indicating the Save SMS into SIM status*/
-#define TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF   (TAPI_EVENT_NETTEXT_CONFIRMATION + 4)   /**<    This confirmation event is a returned indicating the delete message status*/
-#define TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF   (TAPI_EVENT_NETTEXT_CONFIRMATION + 5)   /**<    This event is returned with Get CB configuration details*/
-#define TAPI_EVENT_NETTEXT_GET_COUNT_CNF               (TAPI_EVENT_NETTEXT_CONFIRMATION + 6)   /**<    This event is returned in response to Get Number of messages stored in SIM*/
-#define TAPI_EVENT_NETTEXT_GET_SCA_CNF                 (TAPI_EVENT_NETTEXT_CONFIRMATION + 7)   /**<    This event is returned with Get SCA Cnf*/
-#define TAPI_EVENT_NETTEXT_PARAM_COUNT_IND             (TAPI_EVENT_NETTEXT_CONFIRMATION + 8)   /**<    Param count response */
-#define TAPI_EVENT_NETTEXT_GET_PARAM_CNF               (TAPI_EVENT_NETTEXT_CONFIRMATION + 9)   /**<    This event is returned in response to NetText Get parameters*/
-#define TAPI_EVENT_NETTEXT_SET_REQUEST_CNF             (TAPI_EVENT_NETTEXT_CONFIRMATION + 10)  /**<    This event is returned as a confirmation for SET nettext APIs*/
-#define TAPI_EVENT_NETTEXT_SENTSTATUS_EX_CNF   (TAPI_EVENT_NETTEXT_CONFIRMATION + 20)  /**<    This event is returned in response to SMS  message extended sent*/
-#define TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF   (TAPI_EVENT_NETTEXT_CONFIRMATION + 21)  /**<    This event is returned as a response to get preferred bearer used for SMS Transport*/
-#define TAPI_EVENT_NETTEXT_CNF_MAX                             (TAPI_EVENT_NETTEXT_CONFIRMATION + 22)
-
-#define TAPI_EVENT_NETTEXT_NOTIFICATION                        (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_NETTEXT << 8))
-#define TAPI_EVENT_NETTEXT_INCOM_IND                   (TAPI_EVENT_NETTEXT_NOTIFICATION + 0)   /**<    This is an unsolicited Incoming SMS Event*/
-#define TAPI_EVENT_NETTEXT_CB_INCOM_IND                        (TAPI_EVENT_NETTEXT_NOTIFICATION + 1)   /**<    This is an unsolicited Incoming cell broadcast message*/
-#define TAPI_EVENT_NETTEXT_INCOM_EX_IND                        (TAPI_EVENT_NETTEXT_NOTIFICATION + 2)   /**<    This is an extended unsolicited Incoming SMS Event*/
-#define TAPI_EVENT_NETTEXT_CB_INCOM_EX_IND             (TAPI_EVENT_NETTEXT_NOTIFICATION + 3)   /**<    This is an extended unsolicited Incoming cell broadcast message*/
-#define TAPI_EVENT_NETTEXT_MEMORY_STATUS_IND   (TAPI_EVENT_NETTEXT_NOTIFICATION + 4)   /**<    This event is an unsolicited event indicating SIM memory status */
-#define TAPI_EVENT_NETTEXT_DEVICE_READY_IND            (TAPI_EVENT_NETTEXT_NOTIFICATION + 5)   /**<    Device Ready indication */
-#define TAPI_EVENT_NETTEXT_IND_MAX                             (TAPI_EVENT_NETTEXT_NOTIFICATION + 6)
-
-/* Events related on Network Messages  */
-#define TAPI_EVENT_NETWORK_CONFIRMATION                        (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_NETWORK << 8))
-#define TAPI_EVENT_NETWORK_SELECT_CNF                  (TAPI_EVENT_NETWORK_CONFIRMATION + 0)   /**<    This confirmation event is returned when user manually selected a network from list for Network selection */
-#define TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF        (TAPI_EVENT_NETWORK_CONFIRMATION + 1)   /**<    This event is returned on getting network selection mode*/
-#define TAPI_EVENT_NETWORK_SEARCH_CNF                  (TAPI_EVENT_NETWORK_CONFIRMATION + 2)   /**<    This event is returned as confirmation for manual Network search with the available network list*/
-#define TAPI_EVENT_NETWORK_SETNWBAND_CNF               (TAPI_EVENT_NETWORK_CONFIRMATION + 3)   /**<    This event indicates the Network Band has been set*/
-#define TAPI_EVENT_NETWORK_GETNWBAND_CNF               (TAPI_EVENT_NETWORK_CONFIRMATION + 4)   /**<    This event indicates the Network Band has been identified and returned*/
-#define TAPI_EVENT_NETWORK_SETSERVICEDOMAIN_CNF        (TAPI_EVENT_NETWORK_CONFIRMATION + 5)   /**<    This event confirms the request to set the service domain */
-#define TAPI_EVENT_NETWORK_GETSERVICEDOMAIN_CNF        (TAPI_EVENT_NETWORK_CONFIRMATION + 6)   /**<    This event confirms the request to get the service domain */
-#define TAPI_EVENT_NETWORK_SETNWMODE_CNF               (TAPI_EVENT_NETWORK_CONFIRMATION + 7)   /**<    This event is returned on setting network mode*/
-#define TAPI_EVENT_NETWORK_GETNWMODE_CNF               (TAPI_EVENT_NETWORK_CONFIRMATION + 8)   /**<    This event is returned on getting network mode*/
-#define TAPI_EVENT_NETWORK_SETPREFFEREDPLMN_CNF        (TAPI_EVENT_NETWORK_CONFIRMATION + 9)   /**<    This event indicates the preferred PLMN has been set*/
-#define TAPI_EVENT_NETWORK_GETPREFFEREDPLMN_CNF        (TAPI_EVENT_NETWORK_CONFIRMATION + 10)  /**<    This event indicates that the PLMN used has been identified and returned */
-#define TAPI_EVENT_NETWORK_SET_ROAMING_MODE_CNF        (TAPI_EVENT_NETWORK_CONFIRMATION + 11)  /**<     This event is returned on setting roaming mode */
-#define TAPI_EVENT_NETWORK_GET_ROAMING_MODE_CNF        (TAPI_EVENT_NETWORK_CONFIRMATION + 12)  /**<    This event is returned on getting roaming mode */
-#define TAPI_EVENT_NETWORK_SET_CDMA_HYBRID_MODE_CNF    (TAPI_EVENT_NETWORK_CONFIRMATION + 13)  /**<    This event is returned on setting cdma hybrid mode */
-#define TAPI_EVENT_NETWORK_GET_CDMA_HYBRID_MODE_CNF    (TAPI_EVENT_NETWORK_CONFIRMATION + 14)  /**<    This event is returned on getting cdma hybrid mode */
-#define TAPI_EVENT_NETWORK_CNF_MAX                             (TAPI_EVENT_NETWORK_CONFIRMATION + 15)  /**<    This event is returned on getting cdma hybrid mode */
-
-#define TAPI_EVENT_NETWORK_NOTIFICATION                        (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_NETWORK << 8))
-#define TAPI_EVENT_NETWORK_LOCATIONCELLINFO_IND        (TAPI_EVENT_NETWORK_NOTIFICATION + 0)   /**<    This event indicates the LAC and CELLID has been obtained*/
-#define TAPI_EVENT_NETWORK_RADIO_INFO_IND              (TAPI_EVENT_NETWORK_NOTIFICATION + 1)   /**<    This event indicates the Radio Information is got*/
-#define TAPI_EVENT_NETWORK_SPN_INFO                            (TAPI_EVENT_NETWORK_NOTIFICATION + 2)   /**<    This event indicates the SPN info is got*/
-#define TAPI_EVENT_NETWORK_DISPLAYINFO_IND             (TAPI_EVENT_NETWORK_NOTIFICATION + 3)   /**<    This event indicates the Display Information is obtained*/
-#define TAPI_EVENT_NETWORK_CHANGE_IND                  (TAPI_EVENT_NETWORK_NOTIFICATION + 4)   /**<    This event indicates there is a change in Network*/
-#define TAPI_EVENT_NETWORK_IND_MAX                             (TAPI_EVENT_NETWORK_NOTIFICATION + 5)
-
-/* Events related on SS Messages  */
-#define TAPI_EVENT_SS_CONFIRMATION                             (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_SS << 8))
-#define TAPI_EVENT_SS_BARRING_CNF                              (TAPI_EVENT_SS_CONFIRMATION + 0)                /**<    This confirmation event is sent when Barring activation/deactivation is requested*/
-#define TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF   (TAPI_EVENT_SS_CONFIRMATION + 1)                /**<    This event is returned as Barring password change confirmation*/
-#define TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF  (TAPI_EVENT_SS_CONFIRMATION + 2)                /**<    This event is returned  as Barring status query confirmation*/
-#define TAPI_EVENT_SS_FORWARD_CNF                              (TAPI_EVENT_SS_CONFIRMATION + 3)                /**<    This event is returned as confirmation for Forward Activation/Deactivation/Registration/Erasure */
-#define TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF  (TAPI_EVENT_SS_CONFIRMATION + 4)                /**<    This event is returned as confirmation for Forward Status query confirmation*/
-#define TAPI_EVENT_SS_WAITING_CNF                              (TAPI_EVENT_SS_CONFIRMATION + 5)                /**<    This event is returned as confirmation for Call waiting activation/deactivation*/
-#define TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF  (TAPI_EVENT_SS_CONFIRMATION + 6)                /**<    This event is returned as Call waiting status query confirmation*/
-#define TAPI_EVENT_SS_USSD_CNF                                 (TAPI_EVENT_SS_CONFIRMATION + 7)                /**<    This event is returned as USSD send confirmation*/
-#define TAPI_EVENT_SS_USSD_CANCEL_CNF                  (TAPI_EVENT_SS_CONFIRMATION + 8)                /**<    This event is returned as USSD cancel confirmation      >**/
-#define TAPI_EVENT_SS_CLI_QUERYSTATUS_CNF              (TAPI_EVENT_SS_CONFIRMATION + 9)                /**<    This event is indicated to the Application for CLI service interrogation*/
-#define TAPI_EVENT_SS_AOC_RSP                                  (TAPI_EVENT_SS_CONFIRMATION + 10)               /**<    This event is used to send the aoc information */
-#define TAPI_EVENT_SS_SET_AOC_CNF                              (TAPI_EVENT_SS_CONFIRMATION + 11)               /**<    This event is used to send the confirmation for setting aoc values */
-#define TAPI_EVENT_SS_USSD_RSP_CNF                     (TAPI_EVENT_SS_CONFIRMATION + 12)       /**<    This event is returned as USSD response confirmation    >**/
-#define TAPI_EVENT_SS_CNF_MAX                                  (TAPI_EVENT_SS_CONFIRMATION + 13)
-
-#define TAPI_EVENT_SS_NOTIFICATION                             (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_SS << 8))
-#define TAPI_EVENT_SS_USSD_IND                                 (TAPI_EVENT_SS_NOTIFICATION + 0)                /**<    This is an unsolicited USSD indication*/
-#define TAPI_EVENT_SS_BARRING_TYPE_IND                 (TAPI_EVENT_SS_NOTIFICATION + 1)                /**<    This event is used to send the barring type while making an MO call */
-#define TAPI_EVENT_SS_REL_COMP_MSG_NOTIFY              (TAPI_EVENT_SS_NOTIFICATION + 2)                /**<    This event is indicated to the Application when tapi receives Release complete message notification for any SS transactions*/
-#define TAPI_EVENT_SS_REL_CO                                   (TAPI_EVENT_SS_NOTIFICATION + 3)                /**<    This event is indicated to the Application when tapi receives Release complete message notification for any SS transactions*/
-#define TAPI_EVENT_SS_IND_MAX                                  (TAPI_EVENT_SS_NOTIFICATION + 4)
-
-/*SAT events*/
-#define TAPI_EVENT_SAT_CONFIRMATION                            (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_SAT << 8))
-#define TAPI_EVENT_SAT_EVENT_DOWNLOAD_CNF              (TAPI_EVENT_SAT_CONFIRMATION + 0)               /**< response from sim for event download request */
-#define TAPI_EVENT_SAT_MENU_SELECTION_CNF              (TAPI_EVENT_SAT_CONFIRMATION + 1)               /**< response from sim for menu selection request */
-#define TAPI_EVENT_SAT_CNF_MAX                                 (TAPI_EVENT_SAT_CONFIRMATION + 2)
-
-#define TAPI_EVENT_SAT_NOTIFICATION                            (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_SAT << 8))
-#define TAPI_EVENT_SAT_DISPLAY_TEXT_IND                        (TAPI_EVENT_SAT_NOTIFICATION + 0)               /**< 0x0D00, SAT Display Text Event*/
-#define TAPI_EVENT_SAT_GET_INKEY_IND                   (TAPI_EVENT_SAT_NOTIFICATION + 1)               /**< SAT Get Inkey Event */
-#define TAPI_EVENT_SAT_GET_INPUT_IND                   (TAPI_EVENT_SAT_NOTIFICATION + 2)               /**< SAT Get Input Event */
-#define TAPI_EVENT_SAT_UI_PLAY_TONE_IND                        (TAPI_EVENT_SAT_NOTIFICATION + 3)               /**< SAT Play Tone Event for UI client*/
-#define TAPI_EVENT_SAT_PLAY_TONE_IND                   (TAPI_EVENT_SAT_NOTIFICATION + 4)               /**< SAT Play Tone Event for MM client */
-#define TAPI_EVENT_SAT_UI_REFRESH_IND                  (TAPI_EVENT_SAT_NOTIFICATION + 5)               /**< SAT Refresh Event for UI client*/
-#define TAPI_EVENT_SAT_SETUP_MENU_IND                  (TAPI_EVENT_SAT_NOTIFICATION + 6)               /**< SAT Setup Menu Event for UI client */
-#define TAPI_EVENT_SAT_UI_SETUP_MENU_IND               (TAPI_EVENT_SAT_NOTIFICATION + 7)               /**< SAT Setup Menu Event for UI client */
-#define TAPI_EVENT_SAT_SELECT_ITEM_IND                 (TAPI_EVENT_SAT_NOTIFICATION + 8)               /**< SAT Select Item Event */
-#define TAPI_EVENT_SAT_UI_SEND_SMS_IND                 (TAPI_EVENT_SAT_NOTIFICATION + 9)               /**< SAT Send SMS Event for UI client */
-#define TAPI_EVENT_SAT_UI_SEND_SS_IND                  (TAPI_EVENT_SAT_NOTIFICATION + 10)              /**< SAT Send SS Event for UI client */
-#define TAPI_EVENT_SAT_UI_SEND_USSD_IND                        (TAPI_EVENT_SAT_NOTIFICATION + 11)              /**< SAT Send USSD Event for UI client */
-#define TAPI_EVENT_SAT_UI_SETUP_CALL_IND               (TAPI_EVENT_SAT_NOTIFICATION + 12)              /**< SAT Setup Call Event for UI client */
-#define TAPI_EVENT_SAT_PROVIDE_LOCAL_INFO_IND  (TAPI_EVENT_SAT_NOTIFICATION + 13)              /**< SAT Provide Local Information Event*/
-#define TAPI_EVENT_SAT_SETUP_IDLE_MODE_TEXT_IND        (TAPI_EVENT_SAT_NOTIFICATION + 14)              /**< SAT Setup Idle Mode Event*/
-#define TAPI_EVENT_SAT_UI_SEND_DTMF_IND                        (TAPI_EVENT_SAT_NOTIFICATION + 15)              /**< SAT Send DTMF Event for UI client*/
-#define TAPI_EVENT_SAT_LANGUAGE_NOTIFICATION_IND       (TAPI_EVENT_SAT_NOTIFICATION + 16)      /**< SAT Language notification Event */
-#define TAPI_EVENT_SAT_UI_LAUNCH_BROWSER_IND   (TAPI_EVENT_SAT_NOTIFICATION + 17)              /**< SAT Launch Browser Event for UI client*/
-#define TAPI_EVENT_SAT_END_PROACTIVE_SESSION_IND       (TAPI_EVENT_SAT_NOTIFICATION + 18)      /**< SAT End Proactive Command Session Event. This is to indicate that Proactive UICC Session ended*/
-#define TAPI_EVENT_SAT_CALL_CONTROL_IND                        (TAPI_EVENT_SAT_NOTIFICATION + 19)              /**< response from sim for call control by USIM. This is to indicate that the voice call/ss/ussd parameters have been modified by USIM  */
-#define TAPI_EVENT_SAT_MO_SMS_CONTROL_IND              (TAPI_EVENT_SAT_NOTIFICATION + 20)              /**< response from sim for Mo sms control by USIM. This is to indicate that the SMS parameters have been modified by USIM */
-#define TAPI_EVENT_SAT_SMS_REFRESH_IND (TAPI_EVENT_SAT_NOTIFICATION + 21)              /**< SAT Refresh Event for SMS client */
-#define TAPI_EVENT_SAT_PB_REFRESH_IND  (TAPI_EVENT_SAT_NOTIFICATION + 22)              /**< SAT Refresh Event for Phonebook client*/
-#define TAPI_EVENT_SAT_IDLE_REFRESH_IND                (TAPI_EVENT_SAT_NOTIFICATION + 23)              /**< SAT Refresh Event for Idle Mode client */
-#define TAPI_EVENT_SAT_SEND_SMS_IND                    (TAPI_EVENT_SAT_NOTIFICATION + 24)              /**< SAT Send SMS Event for SMS client*/
-#define TAPI_EVENT_SAT_SETUP_CALL_IND  (TAPI_EVENT_SAT_NOTIFICATION + 25)              /**< SAT Setup Call Event for Call client */
-#define TAPI_EVENT_SAT_SEND_SS_IND             (TAPI_EVENT_SAT_NOTIFICATION + 26)              /**< SAT Send SS Event for SS client*/
-#define TAPI_EVENT_SAT_SEND_USSD_IND   (TAPI_EVENT_SAT_NOTIFICATION + 27)              /**< SAT Send SS Event for USSD client */
-#define TAPI_EVENT_SAT_SEND_DTMF_IND           (TAPI_EVENT_SAT_NOTIFICATION + 28)              /**< SAT Send DTMF Event for UI client*/
-#define TAPI_EVENT_SAT_LAUNCH_BROWSER_IND      (TAPI_EVENT_SAT_NOTIFICATION + 29)              /**< SAT Launch Browser Event for Browser */
-#define TAPI_EVENT_SAT_END_OF_APP_EXEC_IND             (TAPI_EVENT_SAT_NOTIFICATION + 30)              /**< SAT End Proactive command Execution Event. This event will be indicated to the application to end the execution of a Proactive Command when required  */
-#define TAPI_EVENT_SAT_EVENT_DOWNLOAD_IND      (TAPI_EVENT_SAT_NOTIFICATION + 31)              /**< SAT Event Download Indication for Idle, Browser, Setting applications */
-#define TAPI_EVENT_SAT_IND_MAX                                 (TAPI_EVENT_SAT_NOTIFICATION + 32)
-
-/* DATA Events */
-#define TAPI_EVENT_PS_CONFIRMATION                             (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_DATA << 8))
-#define TAPI_EVENT_PS_PDP_ACT_RSP                              (TAPI_EVENT_PS_CONFIRMATION + 0)                        /**< 0x0B00,   -  PDP activation response event */
-#define TAPI_EVENT_PS_PDP_DEACT_RSP                            (TAPI_EVENT_PS_CONFIRMATION + 1)                        /**<      PDP deactivation response event */
-#define TAPI_EVENT_PS_DATA_DORMANT_RESP                        (TAPI_EVENT_PS_CONFIRMATION + 2)                        /**<  Dormant response event  */
-#define TAPI_EVENT_PS_PDP_SET_PORTLIST_RSP             (TAPI_EVENT_PS_CONFIRMATION + 3)                        /**<  Port List set response event  */
-#define TAPI_EVENT_PS_PDP_GET_PORTLIST_RSP             (TAPI_EVENT_PS_CONFIRMATION + 4)                        /**<  Port List get response event  */
-#define TAPI_EVENT_PS_CNF_MAX                                  (TAPI_EVENT_PS_CONFIRMATION + 5)
-
-#define TAPI_EVENT_PS_NOTIFICATION                             (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_DATA << 8))
-#define TAPI_EVENT_PS_PDP_DEACT_IND                            (TAPI_EVENT_PS_NOTIFICATION + 0)                        /**<     PDP deactivation indication event. */
-#define TAPI_EVENT_PS_STATUS                                   (TAPI_EVENT_PS_NOTIFICATION + 1)                        /**<     PDP status event. */
-#define TAPI_EVENT_PS_CALL_STATISTICS                  (TAPI_EVENT_PS_NOTIFICATION + 2)                        /**<     publish notification or response of the call statistics  */
-#define TAPI_EVENT_PS_HSDPA_STATUS_NOTI                        (TAPI_EVENT_PS_NOTIFICATION + 3)                        /**<   HSDPA Status notification event  */
-#define TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI            (TAPI_EVENT_PS_NOTIFICATION + 4)                        /**<  BT DUN PIN notification event   */
-#define TAPI_EVENT_PS_PDP_ACT_IPCONFIG_INFO            (TAPI_EVENT_PS_NOTIFICATION + 5)                        /**<  PDP IP information event  */
-#define TAPI_EVENT_PS_EXTERNAL_CALL_IND                        (TAPI_EVENT_PS_NOTIFICATION + 6)                        /**<  External call indication event  */
-#define TAPI_EVENT_PS_ERROR_IND                                        (TAPI_EVENT_PS_NOTIFICATION + 7)                        /**<  PS Error event   */
-#define TAPI_EVENT_PS_IND_MAX                                  (TAPI_EVENT_PS_NOTIFICATION + 8)
-
-/* Sound events */
-#define TAPI_EVENT_SOUND_CONFIRMATION                  (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_SOUND << 8))
-#define TAPI_EVENT_SOUND_VOLUMECTRL_RSP                        (TAPI_EVENT_SOUND_CONFIRMATION + 0)            /**<  Phone volumn response event  */
-#define TAPI_EVENT_SOUND_MICMUTECTRL_RSP               (TAPI_EVENT_SOUND_CONFIRMATION + 1)             /**<   MIC mute response event */
-#define TAPI_EVENT_SOUND_SUCCESS_IND                   (TAPI_EVENT_SOUND_CONFIRMATION + 2)             /**<   Sound Error response event */
-#define TAPI_EVENT_SOUND_ERROR_IND                             (TAPI_EVENT_SOUND_CONFIRMATION + 3)             /**<   Sound Success response event */
-#define TAPI_EVENT_SOUND_CNF_MAX                               (TAPI_EVENT_SOUND_CONFIRMATION + 4)
-
-#define TAPI_EVENT_SOUND_NOTIFICATION                  (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_SOUND << 8))
-#define TAPI_EVENT_SOUND_AUDIOPATHCTRL_NOTI            (TAPI_EVENT_SOUND_NOTIFICATION + 0)     /**<  Audio path indication event   */
-#define TAPI_EVENT_SOUND_AUDIOSOURCECTRL_NOTI  (TAPI_EVENT_SOUND_NOTIFICATION + 1)     /**<   Audio source indication event  */
-#define TAPI_EVENT_SOUND_IND_MAX                               (TAPI_EVENT_SOUND_NOTIFICATION + 2)
-
-/* Util events */
-#define TAPI_EVENT_UTIL_CONFIRMATION                   (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_UTIL << 8))
-#define TAPI_EVENT_UTIL_TUNNEL_CNF                             (TAPI_EVENT_UTIL_CONFIRMATION + 0)             /**<  tunnel response event  */
-
-#define TAPI_EVENT_UTIL_NOTIFICATION                   (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_UTIL << 8))
-#define TAPI_EVENT_UTIL_TUNNEL_NOTI                            (TAPI_EVENT_UTIL_NOTIFICATION + 0)             /**<  tunnel notification event  */
-
-/* Extension events */
-#define        TAPI_EVENT_CLASS_ERR                    (TAPI_EVENT_CLASS_EXTENSION)            /**< Fatal error Event  Class */
-#define        TAPI_EVENT_CLASS_POWER                  (TAPI_EVENT_CLASS_EXTENSION + 1)        /**< POWEREvents  Class */
-#define        TAPI_EVENT_CLASS_DISPLAY                (TAPI_EVENT_CLASS_EXTENSION + 2)        /**< DISPLAY Events  Class */
-#define        TAPI_EVENT_CLASS_MISC                   (TAPI_EVENT_CLASS_EXTENSION + 3)        /**< MISC Events  Class */
-#define        TAPI_EVENT_CLASS_CFG                    (TAPI_EVENT_CLASS_EXTENSION + 4)        /**< CFG Events  Class */
-#define        TAPI_EVENT_CLASS_IMEI                   (TAPI_EVENT_CLASS_EXTENSION + 5)        /**< MISC Events  Class */
-#define        TAPI_EVENT_CLASS_GPS                    (TAPI_EVENT_CLASS_EXTENSION + 6)        /**< GPS Events  Class */
-#define        TAPI_EVENT_CLASS_OMADM                  (TAPI_EVENT_CLASS_EXTENSION + 7)        /**< OMADM Events  Class */
-#define TAPI_EVENT_CLASS_SVCMODE               (TAPI_EVENT_CLASS_EXTENSION + 8)
-#define TAPI_EVENT_CLASS_FACTORY               (TAPI_EVENT_CLASS_EXTENSION + 9)
-#define TAPI_EVENT_CLASS_CALL_E911             (TAPI_EVENT_CLASS_EXTENSION + 10)       // check why this is needed.
-#define        TAPI_EVENT_CLASS_CDMA_DATA              (TAPI_EVENT_CLASS_EXTENSION + 11)       /**< CDMA Data Events  Class */
-
-#define        TAPI_EVENT_NETWORK_GETPOWERONATTACH_CNF                 (TAPI_EVENT_NETWORK_CNF_MAX + 0)        /**< This event indicates the Power on attach options has been identified and returned */
-#define        TAPI_EVENT_NETWORK_SETPOWERONATTACH_CNF                 (TAPI_EVENT_NETWORK_CNF_MAX + 1)        /**< This event indicates the Power on attach has been set */
-#define        TAPI_EVENT_NETWORK_GETNWORDER_CNF                               (TAPI_EVENT_NETWORK_CNF_MAX + 2)        /**< This event is returned on getting network order */
-#define        TAPI_EVENT_NETWORK_SETNWORDER_CNF                               (TAPI_EVENT_NETWORK_CNF_MAX + 3)        /**< This event is returned on setting network order */
-#define        TAPI_EVENT_NETWORK_CANCELMANUALSELECTION_CNF    (TAPI_EVENT_NETWORK_CNF_MAX + 4)        /**< This event is returned on cancellation of manual network selection from network list */
-#define        TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF               (TAPI_EVENT_NETWORK_CNF_MAX + 5)        /**< This event is returned on cancellation of manual network search */
-#define        TAPI_EVENT_NETWORK_SEARCH_POPUP_ENABLE                  (TAPI_EVENT_NETWORK_CNF_MAX + 6)        /**< This event indicates a status which applications refer to show network search popup */
-#define        TAPI_EVENT_NETWORK_SEARCH_POPUP_DISABLE                 (TAPI_EVENT_NETWORK_CNF_MAX + 7)        /**< This event indicates a status which applications refer to show network search popup */
-#define        TAPI_EVENT_NETWORK_INTERNAL_CNF_MAX                             (TAPI_EVENT_NETWORK_CNF_MAX + 8)
-
-/* Error Class Events*/
-#define        TAPI_EVENT_ERR_NOTIFICATION                                     (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_ERR<<8))
-#define        TAPI_EVENT_ERR                                                          (TAPI_EVENT_ERR_NOTIFICATION + 0)               /**< Fatal Error Information */
-#define        TAPI_EVENT_ERR_RESERVED1_IND                            (TAPI_EVENT_ERR_NOTIFICATION + 1)               /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-#define        TAPI_EVENT_ERR_RESERVED2_IND                            (TAPI_EVENT_ERR_NOTIFICATION + 2)               /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-#define        TAPI_EVENT_ERR_RESERVED3_IND                            (TAPI_EVENT_ERR_NOTIFICATION + 3)               /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-#define        TAPI_EVENT_ERR_RESERVED4_IND                            (TAPI_EVENT_ERR_NOTIFICATION + 4)               /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-#define        TAPI_EVENT_ERR_RESERVED5_IND                            (TAPI_EVENT_ERR_NOTIFICATION + 5)               /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-
-/*     Power Module Event Types...     */
-#define        TAPI_EVENT_POWER_CONFIRMATION                           (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_POWER<<8))
-#define        TAPI_EVENT_POWER_FLIGHT_MODE_RESP                       (TAPI_EVENT_POWER_CONFIRMATION + 0)             /**< Flight Mode Response */
-#define        TAPI_EVENT_POWER_CNF_MAX                                        (TAPI_EVENT_POWER_CONFIRMATION + 1)
-
-#define        TAPI_EVENT_POWER_NOTIFICATION                           (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_POWER<<8))
-#define        TAPI_EVENT_POWER_PHONE_OFF                                      (TAPI_EVENT_POWER_NOTIFICATION + 0)             /**< Modem power Off */
-#define        TAPI_EVENT_POWER_BATT_STAT_IND                          (TAPI_EVENT_POWER_NOTIFICATION + 1)             /**< Battery level Indication */
-#define        TAPI_EVENT_POWER_SERVICE_READY_IND                      (TAPI_EVENT_POWER_NOTIFICATION + 2)             /**< telephony service ready */
-#define        TAPI_EVENT_POWER_IND_MAX                                        (TAPI_EVENT_POWER_NOTIFICATION + 3)
-
-/*     Display Module Event Types...   */
-#define        TAPI_EVENT_DISPLAY_NOTIFICATION                         (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_DISPLAY<<8))
-#define        TAPI_EVENT_DISPLAY_ICON_INFO_IND                        (TAPI_EVENT_DISPLAY_NOTIFICATION + 0)   /**< Display Icon Info Indication */
-#define        TAPI_EVENT_DISPLAY_HMZ_O2_IND                           (TAPI_EVENT_DISPLAY_NOTIFICATION + 1)   /**< Home Zone Info Indication */
-#define        TAPI_EVENT_DISPLAY_PHONE_FATAL_NOTI                     (TAPI_EVENT_DISPLAY_NOTIFICATION + 2)   /**< Phone Fatal Message Notification */
-#define        TAPI_EVENT_DISPLAY_EXT_ROAM_INFO_NOTI           (TAPI_EVENT_DISPLAY_NOTIFICATION + 3)   /**< Roam Information Notification */
-#define        TAPI_EVENT_DISPLAY_EXT_USER_IND_MSG_NOTI        (TAPI_EVENT_DISPLAY_NOTIFICATION + 4)   /**< User Indication Message Notification */
-#define        TAPI_EVENT_DISPLAY_IND_MAX                                      (TAPI_EVENT_DISPLAY_NOTIFICATION + 5)
-
-/*     Misc Module Types...    */
-#define        TAPI_EVENT_MISC_CONFIRMATION                            (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_MISC<<8))
-#define        TAPI_EVENT_MISC_NITZ_GETCNF                             (TAPI_EVENT_MISC_CONFIRMATION + 0)
-#define        TAPI_EVENT_MISC_NITZ_NOTIFY                     (TAPI_EVENT_MISC_CONFIRMATION + 1)
-#define        TAPI_EVENT_MISC_NITZ_IND                                (TAPI_EVENT_MISC_CONFIRMATION + 2)
-#define        TAPI_EVENT_MISC_AT_FUS                          (TAPI_EVENT_MISC_CONFIRMATION + 3)
-#define        TAPI_EVENT_MISC_SERIAL_NUMBER_IND                       (TAPI_EVENT_MISC_CONFIRMATION + 4)
-#define        TAPI_EVENT_MISC_GET_NAM_INFO_CNF                        (TAPI_EVENT_MISC_CONFIRMATION + 5)
-#define        TAPI_EVENT_MISC_SET_NAM_INFO_CNF                        (TAPI_EVENT_MISC_CONFIRMATION + 6)
-#define        TAPI_EVENT_MISC_NAM_INFO_NOTI                           (TAPI_EVENT_MISC_CONFIRMATION + 7)
-#define        TAPI_EVENT_MISC_CNF_MAX                                         (TAPI_EVENT_MISC_CONFIRMATION + 8)
-
-/*     Config Module Types...  */
-#define        TAPI_EVENT_CFG_CONFIRMATION                                     (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_CFG<<8))
-#define        TAPI_CFG_EVENT_DEFAULTCFG_IND                           (TAPI_EVENT_CFG_CONFIRMATION + 0)       /**< Default configuration Event Type */
-#define        TAPI_EVENT_CFG_GET_A_KEY_CNF                            (TAPI_EVENT_CFG_CONFIRMATION + 1)       /**< Get A key Event Type */
-#define        TAPI_EVENT_CFG_VERIFY_A_KEY_CNF                         (TAPI_EVENT_CFG_CONFIRMATION + 2)       /**< A key verification Event Type */
-#define        TAPI_EVENT_CFG_GET_MSL_INFO_CNF                         (TAPI_EVENT_CFG_CONFIRMATION + 3)       /**< Get MSL information Event Type */
-#define        TAPI_EVENT_CFG_GET_VOCODER_OPTION_CNF           (TAPI_EVENT_CFG_CONFIRMATION + 4)       /**< Get vocoder option Event Type */
-#define        TAPI_EVENT_CFG_SET_VOCODER_OPTION_CNF           (TAPI_EVENT_CFG_CONFIRMATION + 5)       /**< Set vocoder option Event Type */
-#define        TAPI_EVENT_CFG_GET_HIDDEN_MENU_ACCESS_CNF       (TAPI_EVENT_CFG_CONFIRMATION + 6)       /**< Get hidden menu access Event Type */
-#define        TAPI_EVENT_CFG_SET_HIDDEN_MENU_ACCESS_CNF       (TAPI_EVENT_CFG_CONFIRMATION + 7)       /**< Set hidden menu access Event  Type */
-#define        TAPI_EVENT_CFG_GET_CURRENT_CARRIER_CNF          (TAPI_EVENT_CFG_CONFIRMATION + 8)       /**< Get current carrier Event */
-#define        TAPI_EVENT_CFG_SET_CURRENT_CARRIER_CNF          (TAPI_EVENT_CFG_CONFIRMATION + 9)       /**< Set current carrier Event */
-#define        TAPI_EVENT_CFG_GET_SIO_MODE_CNF                         (TAPI_EVENT_CFG_CONFIRMATION + 10)      /**< Get Phone SIO mode Event */
-#define        TAPI_EVENT_CFG_SET_SIO_MODE_CNF                         (TAPI_EVENT_CFG_CONFIRMATION + 11)      /**< Set Phone SIO mode Event */
-#define        TAPI_EVENT_CFG_GET_ACTIVATION_DATE_CNF          (TAPI_EVENT_CFG_CONFIRMATION + 12)      /**< Get Activated Data Event */
-#define        TAPI_EVENT_CFG_GET_RECONDITIONED_DATE_CNF       (TAPI_EVENT_CFG_CONFIRMATION + 13)      /**< Get Reconditioned data Event */
-#define        TAPI_EVENT_CFG_SET_TTY_MODE_CNF                         (TAPI_EVENT_CFG_CONFIRMATION + 14)      /**< Set TTY mode Event */
-#define        TAPI_EVENT_CFG_GET_TTY_MODE_CNF                         (TAPI_EVENT_CFG_CONFIRMATION + 15)      /**< Get TTY mode Event */
-#define        TAPI_EVENT_CFG_CNF_MAX                                          (TAPI_EVENT_CFG_CONFIRMATION + 16)
-
-/*     IMEI Module Types...    */
-#define        TAPI_EVENT_IMEI_CONFIRMATION                            (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_IMEI<<8))
-#define        TAPI_EVENT_IMEI_CMLA_IND                                        (TAPI_EVENT_IMEI_CONFIRMATION + 0)
-#define        TAPI_EVENT_IMEI_COMPAREITEM                             (TAPI_EVENT_IMEI_CONFIRMATION + 1)
-#define        TAPI_EVENT_IMEI_CNF_MAX                                         (TAPI_EVENT_IMEI_CONFIRMATION + 2)
-
-/*     GPS Module Types...     */
-#define        TAPI_EVENT_GPS_CONFIRMATION                             (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_GPS<<8))
-#define        TAPI_EVENT_GPS_INIT_RESP                                (TAPI_EVENT_GPS_CONFIRMATION + 0)       /**< Start session response event type. */
-#define        TAPI_EVENT_GPS_DEINIT_RESP                              (TAPI_EVENT_GPS_CONFIRMATION + 1)       /**< GPS option set response  event type. */
-#define        TAPI_EVENT_GPS_FIX_REQUEST_RESP (TAPI_EVENT_GPS_CONFIRMATION + 2)
-#define        TAPI_EVENT_GPS_STOP_SESSION_RESP                (TAPI_EVENT_GPS_CONFIRMATION + 3)       /**< Close session response event type */
-#define        TAPI_EVENT_GPS_PARAMETERS_SET_RESP              (TAPI_EVENT_GPS_CONFIRMATION + 4)
-#define        TAPI_EVENT_GPS_XTRA_INIT                        (TAPI_EVENT_GPS_CONFIRMATION + 5)
-#define        TAPI_EVENT_GPS_XTRA_DEINIT              (TAPI_EVENT_GPS_CONFIRMATION + 6)
-#define        TAPI_EVENT_GPS_XTRA_ENABLE_SET_RESP     (TAPI_EVENT_GPS_CONFIRMATION + 7)
-#define        TAPI_EVENT_GPS_XTRA_SET_TIME_RESP       (TAPI_EVENT_GPS_CONFIRMATION + 8)
-#define        TAPI_EVENT_GPS_XTRA_SET_DATA_RESP       (TAPI_EVENT_GPS_CONFIRMATION + 9)
-#define        TAPI_EVENT_GPS_PARAMETERS_GET_RESP      (TAPI_EVENT_GPS_CONFIRMATION + 10)
-#define        TAPI_EVENT_GPS_FREQ_AIDING_SET_RESP     (TAPI_EVENT_GPS_CONFIRMATION + 11)
-#define        TAPI_EVENT_GPS_CNF_MAX                          (TAPI_EVENT_GPS_CONFIRMATION + 12)
-
-#define        TAPI_EVENT_GPS_NOTIFICATION                             (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_GPS<<8))
-#define        TAPI_EVENT_GPS_POSITION_NOTI                    (TAPI_EVENT_GPS_NOTIFICATION + 0)
-#define        TAPI_EVENT_GPS_EXT_POSITION_NOTI                (TAPI_EVENT_GPS_NOTIFICATION + 1)
-#define        TAPI_EVENT_GPS_PD_CMD_CB_NOTI                   (TAPI_EVENT_GPS_NOTIFICATION + 2)
-#define        TAPI_EVENT_GPS_PDP_CONNECTION_IND               (TAPI_EVENT_GPS_NOTIFICATION + 3)
-#define        TAPI_EVENT_GPS_DNS_LOOKUP_IND                   (TAPI_EVENT_GPS_NOTIFICATION + 4)
-#define        TAPI_EVENT_GPS_VERIFICATION_IND                 (TAPI_EVENT_GPS_NOTIFICATION + 5)       /**< Verification indication event type. */
-#define        TAPI_EVENT_GPS_SUPL_NOTI                                (TAPI_EVENT_GPS_NOTIFICATION + 6)       /**< SUPL Notification event type. */
-#define        TAPI_EVENT_GPS_XTRA_TIME_NOTI                   (TAPI_EVENT_GPS_NOTIFICATION + 7)       /**< XTRA Time info notification event type. */
-#define        TAPI_EVENT_GPS_XTRA_DATA_NOTI                   (TAPI_EVENT_GPS_NOTIFICATION + 8)       /**< XTRA DATA Status injection notification. */
-#define        TAPI_EVENT_GPS_ASSIST_DATA_NOTI                 (TAPI_EVENT_GPS_NOTIFICATION + 9)       /**< XTRA DATA Status injection notification. */
-#define        TAPI_EVENT_GPS_MEASURE_POSITION_IND             (TAPI_EVENT_GPS_NOTIFICATION + 10)      /**< XTRA DATA Status injection notification. */
-#define        TAPI_EVENT_GPS_MEASURE_POSITION_CNF             (TAPI_EVENT_GPS_NOTIFICATION + 11)      /**< XTRA DATA Status injection notification. */
-#define        TAPI_EVENT_GPS_RESET_ASSIST_DATA_NOTI   (TAPI_EVENT_GPS_NOTIFICATION + 12)      /**< XTRA DATA Status injection notification. */
-#define        TAPI_EVENT_GPS_IND_MAX                                  (TAPI_EVENT_GPS_NOTIFICATION + 13)
-
-/* OMA-DM events */
-#define        TAPI_EVENT_OMADM_CONFIRMATION                   (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_OMADM<<8))
-#define        TAPI_EVENT_OMADM_PRL_SIZE_GET_CNF               (TAPI_EVENT_OMADM_CONFIRMATION + 0)     /**< OMA-DM PRL size get confirm event type. */
-#define        TAPI_EVENT_OMADM_MODEL_NAME_GET_CNF             (TAPI_EVENT_OMADM_CONFIRMATION + 1)     /**< OMA-DM Model name get confirm event type. */
-#define        TAPI_EVENT_OMADM_OEM_NAME_GET_CNF               (TAPI_EVENT_OMADM_CONFIRMATION + 2)     /**< OMA-DM OEM name get confirm event type. */
-#define        TAPI_EVENT_OMADM_SW_VERSION_GET_CNF             (TAPI_EVENT_OMADM_CONFIRMATION + 3)     /**< OMA-DM SW version get confirm event type. */
-#define        TAPI_EVENT_OMADM_PRL_READ_GET_CNF               (TAPI_EVENT_OMADM_CONFIRMATION + 4)     /**< OMA-DM PRL Data read confirm event type. */
-#define        TAPI_EVENT_OMADM_PRL_WRITE_SET_CNF              (TAPI_EVENT_OMADM_CONFIRMATION + 5)     /**< OMA-DM PRL Data write confirm event type. */
-#define        TAPI_EVENT_OMADM_CNF_MAX                                (TAPI_EVENT_OMADM_CONFIRMATION + 6)
-
-/* SVC event */
-#define        TAPI_EVENT_SVCMODE_CONFIRMATION                 (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_SVCMODE<<8))
-#define        TAPI_EVENT_SVCMODE_START_NOTI                   (TAPI_EVENT_SVCMODE_CONFIRMATION + 0)   // should be checked
-#define        TAPI_EVENT_SVCMODE_END_NOTI                             (TAPI_EVENT_SVCMODE_CONFIRMATION + 1)
-#define        TAPI_EVENT_SVCMODE_DEBUG_DUMP_CNF               (TAPI_EVENT_SVCMODE_CONFIRMATION + 2)
-#define        TAPI_EVENT_SVCMODE_CNF_MAX                              (TAPI_EVENT_SVCMODE_CONFIRMATION + 3)
-
-#define        TAPI_EVENT_SVCMODE_NOTIFICATION                 (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_SVCMODE<<8))
-#define        TAPI_EVENT_SVCMODE_CHANGE_NOTI                  (TAPI_EVENT_SVCMODE_NOTIFICATION + 0)
-#define        TAPI_EVENT_SVCMODE_SCREEN_CFG_NOTI              (TAPI_EVENT_SVCMODE_NOTIFICATION + 1)
-#define        TAPI_EVENT_SVCMODE_DISP_SCREEN_NOTI             (TAPI_EVENT_SVCMODE_NOTIFICATION + 2)
-#define        TAPI_EVENT_SVCMODE_DEVICE_TEST_NOTI             (TAPI_EVENT_SVCMODE_NOTIFICATION + 3)
-#define        TAPI_EVENT_SVCMODE_IND_MAX                              (TAPI_EVENT_SVCMODE_NOTIFICATION + 4)
-
-#define TAPI_EVENT_FACTORY_CONFIRMATION                                        (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_FACTORY<<8))
-#define TAPI_EVENT_FACTORY_OMISSION_AVOIDANCE_SET_CNF  (TAPI_EVENT_FACTORY_CONFIRMATION + 0)
-#define TAPI_EVENT_FACTORY_OMISSION_AVOIDANCE_GET_CNF  (TAPI_EVENT_FACTORY_CONFIRMATION + 1)
-
-#define        TAPI_EVENT_FACTORY_NOTIFICATION                         (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_FACTORY<<8))
-#define        TAPI_EVENT_FACTORY_DFT_SMS                                      (TAPI_EVENT_FACTORY_NOTIFICATION + 0)
-#define        TAPI_EVENT_FACTORY_IND_MAX                                      (TAPI_EVENT_FACTORY_NOTIFICATION + 1)
-
-/* CDMA DATA events */
-#define        TAPI_EVENT_CDMA_DATA_CONFIRMATION                       (TAPI_EVENT_TYPE_CONFIRMATION + (TAPI_EVENT_CLASS_CDMA_DATA<<8))
-#define        TAPI_EVENT_DATA_MIP_NAI_GET_CNF                         (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 0)         /**< CDMA Data Service PIN Control confirm event type. */
-#define        TAPI_EVENT_DATA_MIP_NAI_SET_CNF                         (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 1)         /**< CDMA Data MIP NAI set confirm event type. */
-#define        TAPI_EVENT_DATA_CURRENT_NAI_INDEX_GET_CNF       (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 2)         /**< CDMA Data Current NAI Index get confirm event type. */
-#define        TAPI_EVENT_DATA_TE2_STATUS_GET_CNF                      (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 3)         /**< CDMA Data TE2 Status get confirm event type. */
-#define        TAPI_EVENT_DATA_BYTES_COUNTER_RESET_CNF         (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 4)         /**< CDMA Data Bytes Counter Reset confirm event type. */
-#define        TAPI_EVENT_DATA_BYTES_COUNTER_GET_CNF           (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 5)         /**< CDMA Data Bytes Counter get confirm event type. */
-#define        TAPI_EVENT_DATA_PACKET_DATA_CALL_CONFIGURATION_GET_CNF  (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 6) /**<  CDMA Data Packet data call configuration get confirm event type. */
-#define        TAPI_EVENT_DATA_HDR_SESSION_CLEAR_SET_CNF       (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 7)         /**< CDMA Data HDR session clear set confirm event type. */
-#define        TAPI_EVENT_DATA_ROAM_GUARD_GET_CNF                      (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 8)         /**< CDMA Roam guard get confirm event type. */
-#define        TAPI_EVENT_DATA_ROAM_GUARD_SET_CNF                      (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 9)         /**< CDMA Roam guard set confirm event type. */
-#define        TAPI_EVENT_DATA_MODEM_NAI_GET_CNF                       (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 10)        /**< CDMA Modem NAI get confirm event type. */
-#define        TAPI_EVENT_DATA_EVDO_REV_CONFIG_GET_CNF         (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 11)        /**< CDMA Force RevA mode get confirm event type. */
-#define        TAPI_EVENT_DATA_EVDO_REV_CONFIG_SET_CNF         (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 12)        /**< CDMA Force RevA mode set confirm event type. */
-#define        TAPI_EVENT_DATA_NAI_SETTING_MODE_GET_CNF        (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 13)        /**< CDMA NAI setting mode get confirm event type. */
-#define        TAPI_EVENT_DATA_NAI_SETTING_MODE_SET_CNF        (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 14)        /**< CDMA NAI setting mode set confirm event type. */
-#define        TAPI_EVENT_DATA_RESTORE_NAI_SET_CNF                     (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 15)        /**< CDMA Data Restore NAI set confirm event type. */
-#define        TAPI_EVENT_DATA_DDTM_CONFIGURATION_GET_CNF      (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 16)        /**< CDMA Data DDTM Configuration get confirm event type. */
-#define        TAPI_EVENT_DATA_DDTM_CONFIGURATION_SET_CNF      (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 17)        /**< CDMA Data DDTM Configuration set confirm event type. */
-#define        TAPI_EVENT_DATA_INTERNAL_CNF_MAX                        (TAPI_EVENT_CDMA_DATA_CONFIRMATION + 18)
-
-#define        TAPI_EVENT_CDMA_DATA_NOTIFICATION                       (TAPI_EVENT_TYPE_NOTIFICATION + (TAPI_EVENT_CLASS_CDMA_DATA<<8))
-#define        TAPI_EVENT_DATA_TE2_STATUS_NOTI                         (TAPI_EVENT_CDMA_DATA_NOTIFICATION + 0)         /**< CDMA Data TE2 Status changed indication event type. */
-#define        TAPI_EVENT_DATA_DS_TE2_DATA_RATE_INFO_NOTI      (TAPI_EVENT_CDMA_DATA_NOTIFICATION + 1)         /**< CDMA Data DS TE2 Data Rate changed indication event type. */
-#define        TAPI_EVENT_DATA_INTERNAL_IND_MAX                        (TAPI_EVENT_CDMA_DATA_NOTIFICATION + 2)
-
-/**
- *This structure defines the Telephony Event.
- */
-typedef struct {
-       int EventClass; /**< Event Class */
-       int EventType;  /**< Event type */
-       int RequestId;  /**< This parameter is applicable only for Asynchronous solicited responses. The request id for a service request is sent back in the asynchronous response. For unsolicited indications, request id will be -1 */
-       int Status;     /**< This parameter is applicable only for Asynchronous solicited responses. This status parameter informs the actual result of Asynchronous response. For unsolicited indications, status will be -1 */
-       void *pData;    /**< Event Data - Based on Event type response/indications. Event data information is captured in each API Section */
-       int pDataLen;   /**< Event Data size */
-} TelTapiEvent_t;
-
-typedef void (*TapiCallback)(int eventClass, int eventType, int param1, char *param2);
-
-/**
- * This structure defines the Telephony Event .
- */
-typedef struct {
-       int eventClass; /**< Event class */
-       int eventType;  /**< Event type */
-       int param1;     /**< Event Data Length */
-       void *param2;   /**< Event Data */
-} TapiEvent;
-
-/*     New Telephony Fw Event structure to be used with ts_delivery_power_display_event()      */
-typedef struct {
-       int group;   // Event Class
-       int type;    // Event Group
-       char name[TAPI_EVENT_NAME_MAX_LEN]; // Event Name
-       int len;     // Data Length
-       void *data;  // Data
-} tapi_event_type_t;
-
-/**
- * prototype for TAPI Callback function.
- */
-typedef int (*TelAppCallback)(const TelTapiEvent_t *pTapiEvent, void *data);
-
-/**
- * this structure contains the necessary information on subscription list.
- */
-typedef struct TapiSubscription {
-       int SubscriptId; /**< Subscription ID */
-       int EventClass; /**< Event Class */
-       TelAppCallback AppCallback; /**< Callback function pointer */
-       struct TapiSubscription * next; /**< Link to the next subscription */
-} TapiSubscriptionList;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TAPI_EVENT_H_ */
-
-/**
- *  @}
- */
diff --git a/include/common/TapiUtility.h b/include/common/TapiUtility.h
deleted file mode 100644 (file)
index 739acec..0000000
+++ /dev/null
@@ -1,400 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 _TAPI_UTILITY_H_
-#define _TAPI_UTILITY_H_
-
-#include <dlog.h>
-#include <TapiEvent.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define LEVEL_DEBUG            LOG_DEBUG
-#define LEVEL_INFO             LOG_DEBUG
-#define LEVEL_NOTICE   LOG_DEBUG
-#define LEVEL_WARNING  LOG_DEBUG
-#define LEVEL_ERR              LOG_WARN
-#define LEVEL_CRIT             LOG_WARN
-#define LEVEL_ALERT            LOG_WARN
-#define LEVEL_LOGGING  LOG_WARN
-#define LEVEL_EMERG            LOG_FATAL
-
-#define LOG_TELEPHONY  "TELEPHONY"
-
-/**
- * Default we are disabling the logging. If we want enable logging based on our
- * requirement whether to log on to STD or to syslog we have to compile telephony
- * code with flags as mentioned below
- *
- * DISABLE LOGGING                             ----> No Flag
- * ENABLE LOGGING(to SYSLOG)   ----> Enable Flag  _TAPI_DEBUG_ON_SYSLOG_ in Sconscript
- * ENABLE LOGGING(to STD)              ----> Enable Flag  _TAPI_DEBUG_ON_SCREEN_ in Sconscript
- */
-
-#define TAPI_LIB_DEBUG(level, frmt, args...)   do {RLOG(level,LOG_TELEPHONY, "[TAPI] %s; "frmt"\n", __func__, ##args);} while (0)
-#define TAPI_PRINT_TIME(str, args...)                  do { } while (0)
-
-/*
-#define TAPI_LIB_DEBUG(level, frmt, args...)  do { fprintf(stderr, "\n[TAPI Library] [PID: %d, %s:%d] " frmt , getpid(), __func__,  __LINE__, ##args); } while (FALSE)
-#define TAPI_PRINT_TIME(str, args...)   do { } while(0)
-#define TAPI_SYSLOG_DEBUG(args...)   {\
-       syslog(LOG_USER , "\n[Telephony Server] [%s:%d] ",  __func__, __LINE__);  \
-       syslog(LOG_USER , args); }
-*/
-
-/**
- * This will check the 'scalar_exp' for TRUE, if failed then return 'err_value' from function.
- */
-#define TAPI_RET_ERR_NUM_IF_FAIL(scalar_exp, err_num) {\
-       if (!(scalar_exp)) \
-       { \
-               TAPI_LIB_DEBUG(LEVEL_ERR, "TAPI_RET_ERR_NUM_IF_FAIL Failed. returning [%d]", err_num);\
-               return err_num; \
-       } \
-}
-
-/**
- * Returns from the current function if the expression is not true. If the expression evaluates to FALSE,
- * a critical message is logged and the function returns. This can only be used in functions which do not
- * return a value.
- *
- * expr : the expression to check.
- */
-#define TAPI_RETURN_IF_FAIL(scalar_exp) {\
-       if (!scalar_exp) \
-       { \
-               TAPI_LIB_DEBUG(LEVEL_ERR, "TAPI_RETURN_IF_FAIL: Failed: Returning from here."); \
-               return; \
-       } \
-}
-
-/**
- * Returns from the current function, returning the value ret, if the expression is not true.
- * If the expression evaluates to FALSE, a critical message is logged and ret is returned.
- */
-#define TAPI_RETURN_VAL_IF_FAIL(scalar_exp, ret) { \
-       if (!scalar_exp) \
-       { \
-               TAPI_LIB_DEBUG(LEVEL_ERR, "TAPI_RETURN_VAL_IF_FAIL: Failed: Returning [%d]", ret); \
-               return ret; \
-       } \
-}
-
-/**
- * Returns from the current function, returning the value ret, if the expression is not true.
- * If the expression evaluates to FALSE, a critical message is logged and ret is returned.
- */
-#define TAPI_RETURN_VAL_IF_SUCCESS(scalar_exp, ret) { \
-       if (scalar_exp) \
-       { \
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "TAPI_RETURN_VAL_IF_SUCCESS: Failed Returning [%d]", ret); \
-               return ret; \
-       } \
-}
-
-/**
- * This assert will log an err on stderr and abort,  if assertion failed,
- * Use this only if the telephpny sevrer needs to be exited, if asertion fails
- */
-#define TAPI_ASSERT(scalar_exp)        assert(scalar_exp);
-
-/**
- * Returns from the current function, returning the value ret, if the exp1 and exp2 are of same value.
- * If the equal expression evaluates to TRUE, a critical message is logged and ret is returned.
- */
-#define TAPI_RETURN_VAL_IF_EQUAL(exp1, exp2, ret) {    \
-       if (exp1 == exp2) \
-       { \
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "TAPI_RETURN_VAL_IF_EQUAL: FAILED, Returning [%d]", ret); \
-               return ret; \
-       } \
-}
-
-/**
- * void *calloc(size_t nelements, size_t bytes);
- * which allocates a region of memory large enough to hold nelements of size bytes each.
- * The allocated region is initialized to zero.
- */
-#define TAPI_CALLOC(ptr, no_elements, type)    \
-       ptr = (type *) calloc (no_elements , sizeof (type)); \
-       if (ptr == NULL) { \
-               perror("NULL is returned"); \
-               TAPI_LIB_DEBUG(LEVEL_ERR, "calloc error -NULL, errno is [%d]", errno); \
-               fprintf(stderr,"Calloc ERRNO %d\n", errno); \
-               TAPI_ASSERT(ptr); \
-       }
-
-/**
- * why ptr = NULL; after free()?.
- * If the same pointer is passed to free twice,        known as a double free. To avoid this, set pointers to
- * NULL after passing them to free: free(NULL) is safe (it does nothing).
- */
-#define TAPI_FREE(ptr) \
-       if (ptr != NULL) { \
-               free(ptr); \
-               ptr = NULL; \
-       } \
-       else { \
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "Double Free or NULL"); \
-       }
-
-/**
- * check for available destination buffer size before copying source buffer data to destination buffer.
- * Assert if destination buffer size less than source buffer size.
- */
-#define TAPI_MEMCPY(dest, src, dest_len, src_len) \
-       if (dest_len >= src_len) { \
-               memcpy(dest, src, src_len); \
-       } \
-       else { \
-               TAPI_LIB_DEBUG(LEVEL_ERR, "TAPI_MEMCPY FAILURE - dest_len(%d) < src_len(%d)", dest_len, src_len); \
-               assert(0); \
-       }
-
-/**
- * Encode a sequence of binary data into its Base-64 stringified representation.
- *
- * data : the binary data to encode.
- * len : the length of data.
- * Returns : a newly allocated, zero-terminated Base-64 encoded string representing data.
- * gchar *g_base64_encode (const guchar *data, gsize len);
- */
-#define TAPI_BASE64_ENCODE(data, len, encoded_data) \
-       encoded_data = g_base64_encode((const guchar *)data, (gsize) len);
-
-/**
- * Decode a sequence of Base-64 encoded text into binary data
- *
- * text : zero-terminated string with base64 text to decode.
- * out_len : The length of the decoded data is written here.
- * Returns : a newly allocated buffer containing the binary data that text represents
- * guchar *g_base64_decode  (const gchar *text, gsize *out_len);
- */
-#define TAPI_BASE64_DECODE(text, decoded_data, ptr_out_len)    \
-       decoded_data = g_base64_decode((const gchar *)text, (gsize *)ptr_out_len);
-
-/**
- * Define Macro for calculate the length of SCA in BCD type.
- */
-#define TAPI_GET_LENGTH_FROM_BCD(nLength, rtn) { \
-       if (nLength <= 0) { \
-               rtn = 0; \
-       } \
-       else if ((nLength) % 2) { \
-               rtn = ((nLength) / 2) + 1; \
-       } \
-       else { \
-               rtn = (nLength) / 2; \
-       } \
-}
-
-
-#define TAPI_VALIDATE_EVENTTYPE(val_min ,val_max, type, ret) { \
-       if (type < val_min || type > val_max ) { \
-               return ret; \
-       } \
-}
-
-/**
- * Initialize the in-put & out-put params for the TAPI API's
- */
-#define TAPI_GLIB_INIT_PARAMS() \
-       GArray* in_param1  = NULL; \
-       GArray* in_param2  = NULL; \
-       GArray* in_param3  = NULL; \
-       GArray* in_param4  = NULL; \
-       GArray* out_param1 = NULL; \
-       GArray* out_param2 = NULL; \
-       GArray* out_param3 = NULL; \
-       GArray* out_param4 = NULL;
-
-
-/**
- * If alloc fails any where in between IP1 to OP4 then free allocated params,
- * and return FLASE to Application who ever called our API.
- *
- * GArray *g_array_new(gboolean zero_terminated, gboolean clear_ ,guint element_size);
- */
-#define TAPI_GLIB_ALLOC_PARAMS(IP1,IP2,IP3,IP4,OP1,OP2,OP3,OP4) \
-        IP1 = g_array_new(FALSE, FALSE, sizeof(gchar));        \
-        IP2 = g_array_new(FALSE, FALSE, sizeof(gchar));        \
-        IP3 = g_array_new(FALSE, FALSE, sizeof(gchar));        \
-        IP4 = g_array_new(FALSE, FALSE, sizeof(gchar)); \
-        if(IP1 && IP2 && IP3 && IP4) \
-        { \
-        } \
-        else \
-        { \
-                       TAPI_GLIB_FREE_PARAMS(IP1,IP2,IP3,IP4,OP1,OP2,OP3,OP4); \
-                       return TAPI_API_SYSTEM_OUT_OF_MEM; \
-        }
-
-
-/**
- * Free any allocated in-put & out-put params
- */
-#define TAPI_GLIB_FREE_PARAMS(IP1,IP2,IP3,IP4,OP1,OP2,OP3,OP4) \
-       if (IP1) \
-               g_array_free(IP1, TRUE); \
-       if (IP2) \
-               g_array_free(IP2, TRUE); \
-       if (IP3) \
-               g_array_free(IP3, TRUE); \
-       if (IP4) \
-               g_array_free(IP4, TRUE); \
-       if (OP1) \
-               g_array_free(OP1, TRUE); \
-       if (OP2) \
-               g_array_free(OP2, TRUE); \
-       if (OP3) \
-               g_array_free(OP3, TRUE); \
-       if (OP4) \
-               g_array_free(OP4, TRUE);
-
-#define TAPI_SIGNAL_OBJPATH "/org/projectx/telephony_event"
-#define TAPI_SIGNAL_SENDER "org.projectx.telephony_event"
-#define TAPI_SIGNAL_MEMBER_ARG0 "ARG0"
-#define TAPI_SIGNAL_MEMBER_ARG1 "ARG1"
-#define TAPI_SIGNAL_MEMBER_ARG2 "ARG2"
-#define TAPI_SIGNAL_MEMBER_ARG3 "ARG3"
-#define TAPI_SIGNAL_MEMBER_ARG4 "ARG4"
-#define TAPI_SIGNAL_MEMBER_ARG5 "ARG5"
-#define TAPI_SIGNAL_MEMBER_GENRESP "GENRESP"
-
-#define IF_NAME_MAX    100
-/* Generate a unique signal interface name for each dbus message */
-#ifndef TAPI_GET_EVENT_NAME
-#define TAPI_GET_EVENT_NAME(TYPE, SIG_IF_NAME) { \
-       char *_class = NULL; \
-       char *_type = NULL; \
-       switch((TYPE >>8)&0xFF)\
-       {\
-               case TAPI_EVENT_CLASS_CALL_VOICE:\
-                       _class = "Voicecall"; \
-                       break;\
-               case TAPI_EVENT_CLASS_CALL_DATA:\
-                       _class = "Datacall"; \
-                       break;\
-               case TAPI_EVENT_CLASS_SIM:\
-                       _class = "Sim"; \
-                       break;\
-               case TAPI_EVENT_CLASS_NETTEXT:\
-                       _class = "Nettext"; \
-                       break;\
-               case TAPI_EVENT_CLASS_NETWORK:\
-                       _class = "Network"; \
-                       break;\
-               case TAPI_EVENT_CLASS_SS:\
-                       _class = "Ss"; \
-                       break;\
-               case TAPI_EVENT_CLASS_SAT:\
-                       _class = "Sat"; \
-                       break;\
-               case TAPI_EVENT_CLASS_DATA:\
-                       _class = "Data"; \
-                       break;\
-               case TAPI_EVENT_CLASS_SOUND:\
-                       _class = "Sound"; \
-                       break;\
-               case TAPI_EVENT_CLASS_UTIL:\
-                       _class = "Util"; \
-                       break;\
-               case TAPI_EVENT_CLASS_ERR:\
-                       _class = "Error"; \
-                       break;\
-               case TAPI_EVENT_CLASS_POWER:\
-                       _class = "Power"; \
-                       break;\
-               case TAPI_EVENT_CLASS_DISPLAY:\
-                       _class = "Display"; \
-                       break;\
-               case TAPI_EVENT_CLASS_MISC:\
-                       _class = "Misc"; \
-                       break;\
-               case TAPI_EVENT_CLASS_CFG:\
-                       _class = "Cfg"; \
-                       break;\
-               case TAPI_EVENT_CLASS_IMEI:\
-                       _class = "Imei"; \
-                       break;\
-               case TAPI_EVENT_CLASS_GPS:\
-                       _class = "Gps"; \
-                       break;\
-               case TAPI_EVENT_CLASS_OMADM:\
-                       _class = "Omadm"; \
-                       break;\
-               case TAPI_EVENT_CLASS_SVCMODE:\
-                       _class = "Svcmode"; \
-                       break;\
-               case TAPI_EVENT_CLASS_FACTORY:\
-                       _class = "Factory"; \
-                       break;\
-               case TAPI_EVENT_CLASS_CALL_E911:\
-                       _class = "EmergencyCall"; \
-                       break;\
-               case TAPI_EVENT_CLASS_CDMA_DATA:\
-                       _class = "CdmaData"; \
-                       break;\
-               default:\
-                       _class = "Unknown"; \
-                       TAPI_LIB_DEBUG(LEVEL_ERR,"Invalid event class = 0lx%x",(TYPE >>8)&0xFF);\
-       }\
-       switch(TYPE&0xFF0000)\
-       {\
-               case TAPI_EVENT_TYPE_NOTIFICATION:\
-                       _type = "Noti"; \
-                       break;\
-               case TAPI_EVENT_TYPE_CONFIRMATION:\
-                       _type = "Resp"; \
-                       break;\
-               default:\
-                       _type = "Unknown"; \
-                       TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid event type = 0x%lx",TYPE&0xFF0000);\
-       }\
-       snprintf(SIG_IF_NAME, IF_NAME_MAX, "Telephony.%s.%s_0x%x", _class, _type, TYPE);\
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "event_string = %s", SIG_IF_NAME);\
-}
-#endif
-
-#define TAPI_BACKTRACE  { \
-                       void *buffer[128]; \
-                       char **strings; \
-                       int i, nptrs; \
-                       nptrs = backtrace(buffer, 128); \
-                       TAPI_LIB_DEBUG(LEVEL_INFO, "backtrace() returned %d addresses", nptrs); \
-                       strings = backtrace_symbols(buffer, nptrs); \
-                       if (strings == NULL) { \
-                               TAPI_LIB_DEBUG(LEVEL_INFO, "backtrace_symbols() failed. (errno=%d)", errno); \
-                       } \
-                       else { \
-                               for (i=0; i<nptrs; i++) { \
-                                       TAPI_LIB_DEBUG(LEVEL_INFO, "[%2d] %s", i, strings[i]); \
-                               } \
-                               free(strings); \
-                       } \
-               }
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TAPI_UTILITY_H_     */
diff --git a/include/common/TelCall.h b/include/common/TelCall.h
deleted file mode 100644 (file)
index b79de3d..0000000
+++ /dev/null
@@ -1,823 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup TAPI_CALL       CALL
- * @{
- *
- * @file TelCall.h
-
- @brief This file serves as a "C" header file defines structures for Tapi Call Services. \n
- It contains a sample set of constants, enums, structs that would be required by applications.
- */
-
-#ifndef _TEL_CALL_H_
-#define _TEL_CALL_H_
-
-#include <TelSs.h>
-#include <TelUtility.h>
-#include <TelDefines.h>
-#include <TapiCommon.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define TAPI_CALLING_NAME_SIZE_MAX      80      /**< The maximum length of the string for calling party name.   */
-#define TAPI_CALL_UUS_DATA_LEN_MAX      131     /**< The Maximum length of the user to user singnalling data string.   */
-#define TAPI_CALL_DISPLAY_RECORD_MAX    32      /**< The maximum length of the string for display record in CDMA   */
-#define MAX_TAPI_CALL_COUNT                            6       /**< Maximum number of call can be possible at a time */
-#define MAX_TAPI_CONF_CALL_COUNT               5       /**< Maximum number of Call can be possible in a conference call at a time */
-#define INVALID_CALL_HANDLE                            0               /**< TS_UINT is used for call handle */
-
-/* Call */
-#define        TAPI_CALL_DIALDIGIT_LEN_MAX             82              /**< Maximum Dialling Digit Length  */
-#define        TAPI_CALL_SUBADDRESS_LEN_MAX    40              /**< Maximum Call Subaddress Length */
-#define        TAPI_CALL_NUMBER_LEN_MAX                7               /**< Dialling Num length */
-#define        TAPI_CONTEXT_CALL_SIZE_MAX              6               /**< Maximum Call context */
-#define        TAPI_CALL_DIAL_NUMBER_LEN_MAX   82
-
-#define TAPI_INVALID_CONTEXTHANDLE             (HTapiContext)-1
-#define TAPI_CLIENT_SIZE_MAX                   30
-
-/**
- * @enum TelCallCause_t
- * This structure defines the values for Call Cause.
- */
-typedef enum {
-       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 un authorized */
-       TAPI_CAUSE_BEARERMODE_UNAVAIL,          /**< Bearer mode not available */
-       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 happened */
-       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_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_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_REJ_SRVC_NOT_AVL,            /**< Rejection service not available  */
-       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_MODIFY_SAME_BEARER,          /**< Modify same bearer */
-       TAPI_CAUSE_MODIFY_NOT_PERMITTED,        /**< Modification not permitted */
-       TAPI_CAUSE_HOLD_FAIL,                           /**< Call hold fail */                                                  //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_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 already USSD transaction is ongoing. */
-       TAPI_CAUSE_IDLE,                                        /**< Idle */
-       TAPI_CAUSE_NETWORK_SPECIFIC,            /**< Network specific error */
-       TAPI_CAUSE_FADE,                                        /**< voice call was dropped e.g. because of a loss of signal */
-       TAPI_CAUSE_UNKNOWN,                             /**< unknown no details available */
-       TAPI_CAUSE_INCOM_CALL,                          /**< terminated by incoming call */
-       TAPI_CAUSE_ALERT_STOP,                          /**< terminated by alert stop */
-       TAPI_CAUSE_INTERCEPT,                           /**< voice call was dropped by interception */
-       TAPI_CAUSE_REORDER,                             /**< voice call was 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_TYPENOTSUPPORTED,            /**< Type 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_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,       /**< Un acceptable 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 Success */
-       TAPI_CAUSE_SEND_DTMF_FAIL,                      /**< Sending DTMF Failed */
-       TAPI_CAUSE_TIMER_EXPIRED,                       /**< Call Timer Expired */
-} TelCallCause_t;
-
-/**
- * @enum TelTapiEndCause_t
- * When a call is ended, this end cause is given with the CALL END notification to the application.  This end cause can be originated
- * from different elements in the communication path or different modules in the same element.
- */
-typedef enum {
-       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_OPERATOR_DETERMINED_BARRING,      /**< Operator Determined Barring */
-       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_ALERTING_NO_ANSWER,          /**< User Alerting no Answer */
-       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_INVALID_NUMBER_FORMAT,            /**< Invalid Number Format */
-       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_SWITCHING_EQUIPMENT_CONGESTION,   /**< Switching Equipment Congestion */
-
-       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 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,                  /**< incomming 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_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,/**< Resticted 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_USER_NOT_MEMBER_OF_CUG,                           /**< Not 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_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_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_PROTOCOL_ERROR_UNSPECIFIED,       /**< Protocol error unspecified */
-       TAPI_CC_CAUSE_INTERWORKING_UNSPECIFIED, /**< Interworking unspecified */
-
-       TAPI_CC_CAUSE_END = 128,
-
-       /* Reject causes*/
-       TAPI_REJECT_CAUSE_IMSI_UNKNOWN_IN_HLR,  /**< IMSI unknown in HLR */
-       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_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_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_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_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_MESSAGE_TYPE_NOT_COMP_PRT_ST,         /**< Message type not COMP PRT ST */
-       TAPI_REJECT_CAUSE_IE_NON_EXISTANT,                                              /**< IE not existant */
-       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_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 */
-
-       /* 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 expire */
-       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  */
-
-       /* 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_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 */
-
-       /* 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 of Network 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 cal failure */
-       TAPI_CDMA_END_CAUSE_PHONE_OFFLINE,                              /**< Call Released because of phone offline */
-       TAPI_CDMA_END_CAUSE_PHONE_IS_CDMA_LOCKED,               /**< Call Released because of CDMA locked */
-       TAPI_CDMA_END_CAUSE_FLASH_IS_IN_PROGRESS_ERR,   /**< Call Released because of flash-is-in-progress error */
-       TAPI_CDMA_END_CAUSE_E911_MODE_ERR,                              /**< Call Released because of e911 mode */
-       TAPI_CDMA_END_CAUSE_OTHERS,                                     /**< Call Released by Others */
-       TAPI_CDMA_END_CAUSE_MAX                                         /**< Maximum End Cause limit for cdma */
-} TelTapiEndCause_t;
-
-/**
- * @enum TelConferenceCallState_t
- * This enum defines the call conference states
- */
-typedef enum {
-       TAPI_CALL_CONFERENCE_IDLE,      /**< idle */
-       TAPI_CALL_CONFERENCE_ACTIVE /**< active */
-} TelConferenceCallState_t;
-
-/**
- * @enum TelCallStates_t
- * Applications can use these sates or can have their own states.
- */
-typedef enum {
-       TAPI_CALL_STATE_IDLE,           /**< Call is in idle state - i.e. no call */
-       TAPI_CALL_STATE_ORIG,           /**< Call is in origination state */
-       TAPI_CALL_STATE_SETUPIND,       /**< Call is in setup state */
-       TAPI_CALL_STATE_CONNECTING, /**< Call is in connecting state */
-       TAPI_CALL_STATE_ALERT,          /**< Call is in alerting state */
-       TAPI_CALL_STATE_INCOM,          /**< Call is in incoming state */
-       TAPI_CALL_STATE_ANSWER, /**< Call is in answered state, and waiting for connected indication event */
-       TAPI_CALL_STATE_CONV,           /**< Call is in connected and conversation state */
-       TAPI_CALL_STATE_ENDING, /**< Call is in end-requested state */
-       TAPI_CALL_STATE_END,            /**< Call is in disconnected state */
-       TAPI_CALL_STATE_INVALID /**< Call is in invalid(unknown) state */
-} TelCallStates_t;
-
-/**
- * IN GSM ONLY: call identification number.
- */
-typedef enum {
-       TAPI_CALL_ACTIVE_LINE1, /**< Line 1 */
-       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;
-
-/**
- * The Incoming call indication could have be one of the following SS info messages in it.
- */
-typedef enum {
-       /*      Number details are present in the "char number" of call info struct. if number is not present
-        then "no cli cause" member in  mt_ss_info is set accordingly.  */
-       TAPI_CALL_MT_CLI_PRESENT = 0x31,
-
-       /*      Calling Name Info presnet,      TelCallingNameInfo_t of call info struct contains this info.  */
-       TAPI_CALL_MT_CNA_PRESENT = 0x32,
-
-       /*      Undefined ss indication. Ignore mt_ss_info */
-       TAPI_CALL_MT_SS_UNDEFINED = 0x00,
-
-} TelCallMtSSInfo_t;
-
-/**
- * @enum TelCallAnswerType_t
- * Answer type used as in parameter in the answer call API.
- */
-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 */
-       TAPI_CALL_ANSWER_HOLD_AND_ACCEPT,       /**< Hold the current active call, and accept the wating call */
-} TelCallAnswerType_t;
-
-/**
- * @enum TelCallType_t
- * Applications needs to use this call type while using the setup call API. Like the requested call is a voice call or video call.
- */
-typedef enum {
-       TAPI_CALL_TYPE_VOICE,   /**< Voice call type. */// in ipcv4, 0x0100
-       TAPI_CALL_TYPE_DATA,    /**< Data call type - (for modem, fax, packet, etc. calls). */// in ipcv4, 0x0200
-       TAPI_CALL_TYPE_E911     /**< Emergency call type. */// in ipcv4, 0x0700
-} TelCallType_t;
-
-/**
- * @enum TelCallAlertingPattern_t
- * This enumeration defines the different alerting patterns available.
- */
-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;
-
-/**
- * @enum TelCallActiveState_t
- * State of the current call.
- */
-typedef enum {
-       TAPI_CALL_CONNECT_IDLE, /**< Call is in Idle state. */
-       TAPI_CALL_CONNECT_ACTIVE,       /**< Call is in Active state.*/
-       TAPI_CALL_CONNECT_HELD          /**< Call is in Held state. */
-} TelCallActiveState_t;
-
-/**
- * @enum TelCallCugOptions_t
- * This enumeration defines the closed user group options
- */
-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;
-
-/**
- * @enum TelCallUusProtocolType_t
- *  This enumeration defines the tapi call uus protocol types
- */
-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;
-
-/**
- * @enum TelCallNameMode_t
- *  This enumeration defines the call name mode
- */
-typedef enum {
-       TAPI_CALL_NAME_AVAIL = 0,                               /**< This identifier refers to the presentation of the calling party's name identity to the called party. */
-       TAPI_CALL_NAME_RESTRICTED = 1,                  /**< This identifier refers to the restriction of presentation of the name identity of the calling party to the called party. */
-       TAPI_CALL_NAME_UNAVAIL = 2,                     /**< This identifier refers to the unavailability of the calling party's name identity to be offered to the called party. */
-       TAPI_CALL_NAME_AVAIL_RESTRICTED = 3     /**< This identifier refers to the calling party's name identity to be offered to the called party with which presentation restriction is overridden.  */
-} TelCallNameMode_t;
-
-/**
- * @enum TelCallSSNocliCause_t
- * This enumeration defines the value for "No Cli cause".
- */
-typedef enum {
-       TAPI_SS_NO_CLI_CAUSE_UNAVAILABLE = 0x00,                /**< Unavailable */
-       TAPI_SS_NO_CLI_CAUSE_REJECTBY_USER = 0x01,              /**< Rejected by User */
-       TAPI_SS_NO_CLI_CAUSE_INTERACTION_OTHERSERVICES = 0x02, /**<  Other services */
-       TAPI_SS_NO_CLI_CAUSE_COINLINE_PAYPHONE = 0x03,  /**< Coin line phone */
-       TAPI_SS_NO_CLI_CAUSE_MAX                                                /**< maximum usage */
-} TelCallSSNocliCause_t;
-
-/**
- * Fwded Ind Type used for MO and Mt from SS Noti Info
- */
-typedef enum {
-       TAPI_CALL_OUTGOING_FWDED = 0x00,        /* Outgoing call forwarded */
-       TAPI_CALL_INCOMMING_FWDED = 0x01,       /* Incoming call forwarded */
-} TelCallForwardType_t;
-
-/**
- * @enum TelCallPrivacyMode_t
- * This structure contains the voice privacy option mode(CDMA only).
- */
-typedef enum {
-       TAPI_CALL_PRIVACY_MODE_STANDARD = 0x00, /**< Standard mode */
-       TAPI_CALL_PRIVACY_MODE_ENHANCED         /**< Enhanced mode */
-} TelCallPrivacyMode_t;
-
-/**
- * @enum TelCallPrivacyType_t
- * This structure contains the voice privacy request type(CDMA only).
- */
-typedef enum {
-       TAPI_CALL_PRIVACY_TYPE_MS = 0x01,       /**< Mobile Station Voice Privacy Mode */
-       TAPI_CALL_PRIVACY_TYPE_BS,                      /**< Base Station Voice Privacy Mode */
-       TAPI_CALL_PRIVACY_TYPE_CURRENT          /**< Current Serving Privacy Mode */
-} TelCallPrivacyType_t;
-
-/**
- * @enum TelCallEmergecyMode_t
- * This structure contains the emergency callback mode(CDMA only).
- */
-typedef enum {
-       TAPI_CALL_EMERGENCY_MODE_EXIT,  /**< Emergency CB Exit mode */
-       TAPI_CALL_EMERGENCY_MODE_ENTER  /**< Emergency CB Enter mode */
-} TelCallEmergecyMode_t;
-
-/**
- * @enum TelCallOtaType_t
- * This structure contains the OTA type(CDMA only).
- */
-typedef enum {
-       TAPI_CALL_OTATYPE_OTASP = 0x01, /**< OTASP : mobile initiated OTA*/
-       TAPI_CALL_OTATYPE_OTAPA,                /**< OTAPA : network initiated OTA */
-} TelCallOtaType_t;
-
-/**
- * @enum TelCallOtaspStatus_t
- * This structure contains the OTASP Status(CDMA only).
- */
-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_FAILURES_EXCESS_SPC,    /**< OTASP : SPC excess failure */
-       TAPI_CALL_OTASP_LOCK_CODE_PW_SET,               /**< OTASP : lock code password set*/
-} TelCallOtaspStatus_t;
-
-/**
- * @enum TelCallOtapaStatus_t
- * This structure contains the OTAPA Status(CDMA only).
- */
-typedef enum {
-       TAPI_CALL_OTAPA_STOP = 0x00,    /**< OTAPA : stop */
-       TAPI_CALL_OTAPA_START,                  /**< OTAPA : start */
-} TelCallOtapaStatus_t;
-
-/**
- * @enum TelCallTimeMaskType_t
- * This structure contains call time request mask type.
- */
-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;
-
-/**
- * @enum TelCallToneDuration_t
- * This structure contains dtmf tone length.
- */
-typedef enum {
-       TAPI_CALL_TONE_DURATION_SHORT = 0x01,
-       TAPI_CALL_TONE_DURATION_LONG
-} TelCallToneDuration_t;
-
-/**
- * @enum TelCallEmergencyCategory_t
- * This structure contains emergency category type
- */
-typedef enum {
-       TAPI_CALL_ECC_DEFAULT = 0x00,
-       TAPI_CALL_ECC_POLICE = 0x01,
-       TAPI_CALL_ECC_AMBULANCE = 0x02,
-       TAPI_CALL_ECC_FIREBRIGADE = 0x04,
-       TAPI_CALL_ECC_MARINEGUARD = 0x08,
-       TAPI_CALL_ECC_MOUNTAINRESCUE = 0x10,
-       TAPI_CALL_ECC_MANUAL_ECALL = 0x20,
-       TAPI_CALL_ECCY_AUTO_ECALL = 0x40
-} TelCallEmergencyCategory_t;
-
-typedef enum {
-       TAPI_CALL_IDENTITY_DEFAULT, /**< Calling line identity will be sent. Based on network setting, Line identity will presented to the called party. */
-       TAPI_CALL_IDENTITY_SHOW,        /**< Display calling line identity */
-       TAPI_CALL_IDENTITY_HIDE /**< Hide the display of Calling line identity */
-} TelCallIdentityMode_t;
-
-
-/**
- * context type
- */
-typedef enum {
-       TAPI_CONTEXT_TYPE_NONE = 0x00,
-       TAPI_CONTEXT_TYPE_VOICE_CALL = 0x01,
-       TAPI_CONTEXT_TYPE_DATA_CALL = 0x2,
-       TAPI_CONTEXT_TYPE_VIDEO_CALL = 0x3,
-       TAPI_CONTEXT_TYPE_NETTEXT,
-       TAPI_CONTEXT_TYPE_E911,
-} TapiContextType;
-
-
-/**
- * Timer State and or Call Timer ID
- */
-typedef enum {
-       TAPI_CALL_TSTATE_IDLE = 0x00,           /**< No timer running */
-       TAPI_CALL_TSTATE_SETUP_PENDING, /**< Setup Timer */
-       TAPI_CALL_TSTATE_CONNECT_PENDING,       /**< Connected 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;
-
-typedef struct {
-       TS_BOOL bRequestedBySAT;                        /** This flag is to indicate whether the request has been initiated by SAT or not.Possible values are 0 and 1. This flag should be updated only when originating a setup request */
-       TelCallIdentityMode_t IdentityMode; /**< Sets Calling Line Identity mode. If default value  TAPI_IDENTITY_DEFAULT is set, OEM will set the default value. */
-       TelCallEmergencyCategory_t ecc;
-} tel_set_call_satflag_identiymode;
-
-/**
- * This structure contains information about the redirect destination  information.
- */
-typedef struct {
-       unsigned char number[TAPI_CALL_DIAL_NUMBER_LEN_MAX + 1]; /**< Redirect destination number */
-} TelCallDeflectDstInfo_t;
-
-/**
- * This structure defines the calling name information
- */
-typedef struct {
-       TelCallNameMode_t NameMode;                                     /**< Display mode of the szNameData. */
-       char szNameData[TAPI_CALLING_NAME_SIZE_MAX];    /**< Calling party name string.   */
-} TelCallingNameInfo_t;
-
-/**
- * This structure contains information about an outgoing call.
- */
-typedef struct {
-       TelCallType_t CallType;                                         /**< sets type of call (voice, data, video, emergency) */
-       char szNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1]; /**< A string containing the destination phone number. This follows the dial number format.*/
-} TelCallSetupParams_t;
-
-/**
- * This structure contains information about call status.
- */
-typedef struct {
-       int bMoCall;                                                                    /**< Status will be yes for MO Call. If MT call, then FALSE*/
-       char pNumber[TAPI_CALL_DIALDIGIT_LEN_MAX + 1];  /**< Mobile Number */
-       TelCallType_t CallType;                                         /**< Specifies type of call (voice, data, emergency) */
-       TelCallStates_t CallState;                                              /**< Current Call state */
-       TelCallActiveState_t CallActiveState;                   /**< Current Active state */
-       int bConferenceState;                                                   /**< Whether Call is in Conference or not*/
-} TelCallStatus_t;
-
-/**
- * This structure contains information about Call end information.
- */
-typedef struct {
-       TelTapiEndCause_t CallEndCause; /**< End cause for the call indicates whether the call is released normally or due to other cause*/
-       unsigned int pCallHandle;               /**< Call handle*/
-       unsigned int CallStartTime;     /**< Start time of the call(time in secs) */
-       unsigned int CallEndTime;               /**< End time of the call(time in secs)*/
-} TelCallEndInfo_t;
-
-/**
- * This structure contains information about call redirection details.
- */
-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;
-
-/**
- * This structure contains the incoming call information.
- */
-typedef struct {
-       unsigned int CallHandle;                                /**< At Foundation API Level, Call handle indicates the Handle of the Call for the Application . At Framework API Level, call handle indicates the Call identifier used for call by the OEM Adaptation Layer Plug-in */
-       TelCallType_t CallType;                         /**< Call type */
-       TelSsLineIdentificationType_t CliPresentationIndicator; /**< Calling Party presentation indicator */
-       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 network, this information will be NULL.*/
-       TelCallRedirectionInfo_t RedirectInfo;  /**< The data for the Call Redirect information. If there is no information from network, this information will be NULL.  */
-       TelCallSSNocliCause_t CliCause;         /**< No of CLI cause */
-       int fwded;                                                              /**< True or false. If Incoming call is a forwarded call, then true else false. */
-       TelCallActiveLine_t ActiveLine;         /**< Current Active Line */
-} TelCallIncomingCallInfo_t;
-
-/**
- *SS Info message.
- */
-typedef struct {
-       TelCallMtSSInfo_t type; /* Type of the SS Info presnet. */
-       TelCallSSNocliCause_t no_cli_cause;
-} 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 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;                             /* EndCause */
-} TelTapiCallInfo_t;
-
-/**
- * This structure contains the connected number information.
- */
-typedef struct {
-       TelCallSSNocliCause_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 */
-} TelCallConnectedNumberInfo_t;
-
-/**
- * This structure contains the voice privacy info(CDMA only).
- */
-typedef struct {
-       TelCallPrivacyType_t PrivacyType; /**< Voice Privacy Request Type */
-       TelCallPrivacyMode_t PrivacyMode; /**< Voice Privacy Mode */
-} TelCallVoicePrivacyInfo_t;
-
-/**
- * This structure contains the OTA progress indication information(CDMA only).
- */
-typedef struct {
-       TelCallOtaType_t OtaType;                       /**< OTA type */
-       TelCallOtaspStatus_t OtaspStatus;       /**< OTASP status : if OTA type is  OTASP, it is valid */
-       TelCallOtapaStatus_t OtapaStatus;       /**< OTAPA status : if OTA type is  OTAPA, it is valid */
-} TelCallOtaProgressInfo_t;
-
-/**
- * This structure contains information about a call time and call count.
- */
-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 second) */
-       unsigned long OutgoingCallTime; /**< Overall Outgoing Call Time(in second) */
-       unsigned long IncomingCallTime; /**< Overall Incoming Call Time(in second) */
-       unsigned long LastCallTime;     /**< Last Call Time(in second) */
-} TelCallTimeInfo_t;
-
-/**
- * This structure contains information about display record in CDMA.
- */
-typedef struct {
-       unsigned char Record[TAPI_CALL_DISPLAY_RECORD_MAX + 1]; /**< display record */
-} TelCallDisplayRecordInfo_t;
-
-
-/**
- * context handle
- */
-typedef TS_UINT HTapiContext;
-
-typedef struct {
-       TS_BOOL bUsed;                  /* This slot is used or not */
-       int eventClass;         /* Event group to notify */
-       TapiCallback callback;  /* callback function pointer of the application */
-} TapiClient;
-
-typedef struct _TapiContext {
-       TapiContextType type;
-       TS_BOOL bUsed;
-       HTapiContext hContext;
-       TapiClient *pClient; /* the client that has ownership on this call */
-} TapiContext;
-
-
-/**
- * Call Timer object
- */
-typedef struct {
-       TelTapiCallTimerState t_state;  /**< Timer State Map to Publish Call RSP Event */
-       int source_id;                                  /**< Unique Timer Source ID. Returned by g_timeout_add() */
-} TelTapiCallTimer_t;
-
-/**
- * structure of voice call information
- */
-typedef struct _TapiCallContext {
-       TapiContextType type;                   /* Voice or Video  */
-       TS_BOOL bUsed;
-       TS_UINT CallHandle;
-       int call_number;                                /* Call Id of OEM layer */
-       TelTapiCallInfo_t callInfo;
-       TelCallForwardType_t forwardIndType;
-       TelCallConnectedNumberInfo_t connected_info;
-       int requestId;
-       TelTapiCallTimer_t timer_obj;   /**<timer state and timer id */
-} tapi_call_context;
-
-typedef struct {
-       TapiClient clients[TAPI_CLIENT_SIZE_MAX];
-       int nCallContextCount;
-       tapi_call_context callContexts[TAPI_CONTEXT_CALL_SIZE_MAX];
-       TelCallActiveLine_t active_line;
-} TelCallAllContext_info_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif  // _TEL_CALL_H_
-/**
- * @}
- */
diff --git a/include/common/TelData.h b/include/common/TelData.h
deleted file mode 100644 (file)
index a24748e..0000000
+++ /dev/null
@@ -1,308 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup           TELEPHONY_API
- * @addtogroup Data_Service Data Services
- * @{
- * @file TelData.h
- *
- * Data APIs allow an application to accomplish the following services: @n
- * - process data pin control. @n
- */
-
-#ifndef _TEL_DATA_H
-#define _TEL_DATA_H
-
-#include <TelDefines.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define TAPI_DATA_MAX_DIAL_NUM_LEN                             32              /** Maximum length of dial number */
-#define TAPI_DATA_MIP_CONNECT_SUCCESS                  0xFF    /** For Sprint */
-#define TAPI_DATA_MAX_USER_NAI_LEN                             72              /** Maximum length of user NAI */
-#define TAPI_DATA_MAX_SHARED_SECRET_LEN                        16              /** Maximum length of shared secret */
-
-#define TAPI_DATA_MAX_PKT_DATA_ORIGINSTRING_LEN        16              /** Maximum length of Packet data origin string */
-#define TAPI_DATA_MAX_PAP_USER_ID_LEN                  64              /** Maximum length of Packet PAP user ID */
-#define TAPI_DATA_MAX_PAP_USER_PASSWORD_LEN            14              /** Maximum length of Packet PAP password */
-
-typedef enum {
-       TAPI_DATA_NO_ERR = 0x00, /**< There is no error for any data operation. */
-       TAPI_DATA_PARAMETER_ERR, /**< There is no error for any data operation. */
-       TAPI_DATA_OFFLINE_ERR,   /**< This error is sent when any network option is tried when phone is in offline mode */
-       TAPI_DATA_OTHER_ERR      /**< This error to indicate other failure */
-} TelDataOperationCause_t;
-
-/**
- * @enum TelDataSignalType
- * Data Signal Type
- */
-typedef enum {
-       TAPI_DATA_SIGNAL_DCD = 0x01, /**< DCD Signal */
-       TAPI_DATA_SIGNAL_DTR = 0x04, /**< DTR Signal */
-       TAPI_DATA_SIGNAL_DSR = 0x06, /**< DSR Signal */
-       TAPI_DATA_SIGNAL_RTS = 0x07, /**< RTS Signal */
-       TAPI_DATA_SIGNAL_CTS = 0x08, /**< CTS Signal */
-       TAPI_DATA_SIGNAL_RI = 0x09,  /**< RI Signal */
-} TelDataSignalType_t;
-
-/**
- * @enum TelDataSignalStatus
- * Data Signal Status
- */
-typedef enum {
-       TAPI_DATA_SIGNAL_STATUS_OFF = 0x00, /**< Signal Status Off */
-       TAPI_DATA_SIGNAL_STATUS_ON = 0x01   /**< Signal Status On */
-} TelDataSignalStatus_t;
-
-/**
- * @enum TelDataDormantStatus_t
- * This enumeration defines Status of Dormant Mode.
- */
-typedef enum {
-       TAPI_DATA_DORMANT_STATUS_DISABLE = 0x00, /**< Dormant Mode Disabled */
-       TAPI_DATA_DORMANT_STATUS_ENABLE = 0x01, /**< Dormant Mode Enabled */
-       TAPI_DATA_DORMANT_STATUS_3G_DATA_ACTIVE = 0x02 /**< 3G Data Call Activated */
-} TelDataDormantStatus_t;
-
-typedef enum {
-       TAPI_DATA_TE2_TYPE_UART = 0x00,
-       TAPI_DATA_TE2_TYPE_USB = 0x01,
-       TAPI_DATA_TE2_TYPE_BLUETOOTH = 0x02
-} TelDataTE2Type_t;
-
-typedef enum {
-       TAPI_DATA_TE2_DETACHED = 0x00,
-       TAPI_DATA_TE2_ATTACHED = 0x01
-} TelDataTE2CableStatus_t;
-
-typedef enum {
-       TAPI_DATA_CALL_TYPE_DEFAULT = 0x00,
-       TAPI_DATA_CALL_TYPE_FAX_FOR_NEXT_CALL = 0x01,
-       TAPI_DATA_CALL_TYPE_FAX_FOR_ALL_CALLS = 0x02,
-       TAPI_DATA_CALL_TYPE_ASYNC_FOR_NEXT_CALL = 0x03,
-       TAPI_DATA_CALL_TYPE_ASYNC_FOR_ALL_CALLS = 0x04
-} TelDataCallType_t;
-
-typedef enum {
-       TAPI_DATA_CALL_STATUS_ALLOWED = 0x00,
-       TAPI_DATA_CALL_STATUS_NOT_ALLOWED_NO_SERVICE = 0x01,
-       TAPI_DATA_CALL_STATUS_NOT_ALLOWED_CALLING_VOICE = 0x02,
-       TAPI_DATA_CALL_STATUS_NOT_ALLOWED_NOT_CDMA = 0x03,
-       TAPI_DATA_CALL_STATUS_NOT_ALLOWED_LOCKED = 0x04,
-       TAPI_DATA_CALL_STATUS_NOT_CALL_GUARD = 0x05
-} TelDataDialingStatus_t;
-
-typedef enum {
-       TAPI_DATA_BAUDRATE_19200_BPS = 0x00,
-       TAPI_DATA_BAUDRATE_38400_BPS = 0x01,
-       TAPI_DATA_BAUDRATE_57600_BPS = 0x02,
-       TAPI_DATA_BAUDRATE_115200_BPS = 0x03,
-       TAPI_DATA_BAUDRATE_230400_BPS = 0x04
-} TelDataBaudRate_t;
-
-typedef enum {
-       TAPI_DATA_FACTORY_NAI = 0x00,
-       TAPI_DATA_CUSTOM_NAI = 0x01
-} TelDataNAIIndex_t;
-
-typedef enum {
-       TAPI_DATA_NAI_MIP_MASK_NONE = 0x0000,
-       TAPI_DATA_NAI_MIP_MASK_USER_NAI = 0x0001,
-       TAPI_DATA_NAI_MIP_MASK_SPI_MN_HA = 0x0002,
-       TAPI_DATA_NAI_MIP_MASK_SPI_MN_AAA = 0x0004,
-       TAPI_DATA_NAI_MIP_MASK_REVERSE_TUNNEL = 0x0008,
-       TAPI_DATA_NAI_MIP_MASK_HOME_ADDRESS = 0x0010,
-       TAPI_DATA_NAI_MIP_MASK_PRIMARY_HOME_AGENT_IP = 0x0020,
-       TAPI_DATA_NAI_MIP_MASK_SECONDARY_HOME_AGENT_IP = 0x0040,
-       TAPI_DATA_NAI_MIP_MASK_MN_AAA_SS = 0x0080,
-       TAPI_DATA_NAI_MIP_MASK_MN_HA_SS = 0x0100,
-       TAPI_DATA_NAI_MIP_MASK_ALGO_SIP_SS = 0x0200,
-       TAPI_DATA_NAI_MIP_MASK_ALGO_MIP_MN_AAA_SS = 0x0400,
-       TAPI_DATA_NAI_MIP_MASK_ALGO_MIP_MN_HA_SS = 0x0800,
-       TAPI_DATA_NAI_MIP_MASK_ALL = 0xFFFF
-} TelDataNaiMipParamMask_t;
-
-typedef enum {
-       TAPI_DATA_NAI_GENERIC_INFO_CHANGED = 0x0, /**< NAI, MN-HA SPI Set, MN-HA SPI Value, MN-AAA SPI Set, MN-AAA SPI Value, Rev Tunnel Preferred, Mobile IP Address, Primary HA Address, Secondary HA Address */
-       TAPI_DATA_SHARED_SECRET_CHANGED /**< HA Shared Secret, AAA Shared Secret */
-} TelDataNaiChangedItem_t;
-
-typedef enum {
-       TAPI_DATA_MIP_CHANGED_ITEM_NAI_INFO = 0x00,
-       TAPI_DATA_MIP_CHANGED_ITEM_SHARED_SECRET = 0x01
-} TelDataNAIItem_t;
-
-typedef enum {
-       TAPI_DATA_PACKET_NAI_SIGNIN_OUT = 0x00,
-       TAPI_DATA_PACKET_NAI_SIGNIN_IN = 0x01
-} TelDataSignStatus_t;
-
-typedef enum {
-       TAPI_DATA_ROAM_GUARD_DEFAULT = 0x00,
-       TAPI_DATA_ROAM_GUARD_ALWAYS_ASK = 0x01,
-       TAPI_DATA_ROAM_ROAM_GUARD_NEVER_ASK = 0x02,
-       TAPI_DATA_ROAM_ROAM_GUARD_OFF = 0x03,
-       TAPI_DATA_ROAM_ROAM_GUARD_ON = 0x04
-} TelDataRoamGuardMode_t;
-
-typedef enum {
-       TAPI_DATA_MODEM_NAI_OFF = 0x00,
-       TAPI_DATA_MODEM_NAI_ON = 0x01
-} TelDataModemNAIMode_t;
-
-typedef enum {
-       TAPI_DATA_DS_TYPE_NORMAL = 0x01,
-       TAPI_DATA_DS_TYPE_DUN = 0x02,
-       TAPI_DATA_DS_TYPE_BTDUN = 0x03,
-       TAPI_DATA_DS_TYPE_IS = 0x04,
-       TAPI_DATA_DS_TYPE_MMS = 0x05
-} TelDataDSType_t;
-
-typedef enum {
-       TAPI_DATA_REVA = 0x00,
-       TAPI_DATA_REV0 = 0x01
-} TelDataRevConfig_t;
-
-typedef enum {
-       TAPI_DATA_COMMERCIAL_NETWORK = 0x00,
-       TAPI_DATA_DOMESTIC_NETWORK = 0x01,
-       TAPI_DATA_RESERVED = 0x02
-} TelDataNAISettingMode_t;
-
-typedef enum {
-       TAPI_DATA_DDTM_MODE_OFF = 0x00,
-       TAPI_DATA_DDTM_MODE_ON = 0x01
-} TelDataDDTMStatus_t;
-
-typedef enum {
-       TAPI_DATA_DSWORKING_MODE_OFF = 0x00,
-       TAPI_DATA_DSWORKING_MODE_ON = 0x01
-} TelDataDSWorkingMode_t;
-
-typedef enum {
-       TAPI_DATA_PACKET_DATA_TYPE_QNC = 0x00,
-       TAPI_DATA_PACKET_DATA_TYPE_MIP = 0x01,
-       TAPI_DATA_PACKET_DATA_TYPE_CALL_TYPE = 0x02,
-       TAPI_DATA_PACKET_DATA_TYPE_PKT_ORIGIN_STRING = 0x03,
-       TAPI_DATA_PACKET_DATA_TYPE_PAP_USER_ID = 0x04,
-       TAPI_DATA_PACKET_DATA_TYPE_PAP_USER_PASSWORD = 0x05
-} TelDataPacketConfigType_t;
-
-typedef enum {
-       TAPI_DATA_QNC_DISABLE = 0x00,
-       TAPI_DATA_QNC_ENABLE = 0x01
-} TelDataQncType_t;
-
-typedef enum {
-       TAPI_DATA_MIP_SIMPLE_IP_ONLY = 0x00,
-       TAPI_DATA_MIP_IF_AVAIL = 0x01,
-       TAPI_DATA_MIP_ONLY = 0x02
-} TelDataMipType_t;
-
-typedef enum {
-       TAPI_DATA_CALL_TYPE_ONLY_MDR_SVC = 0x00,
-       TAPI_DATA_CALL_TYPE_MDR_SVC = 0x01,
-       TAPI_DATA_CALL_TYPE_ONLY_LSPD = 0x02,
-       TAPI_DATA_CALL_TYPE_HSPD = 0x02
-} TelDataPacketDataCallType_t;
-
-/**
- * This structure contains Data pin control information.
- *
- */
-typedef struct {
-       TelDataSignalType_t signaltype; /**<Signal Type*/
-       TelDataSignalStatus_t signalstatus; /**<Signal Status*/
-} TelDataPinControlInfo_t;
-
-typedef struct {
-       TelDataTE2Type_t type;
-       TelDataTE2CableStatus_t cable_status;
-} TelDataTE2Status_t;
-
-typedef struct {
-       unsigned int rx_curr_packet_bytes;
-       unsigned int tx_curr_packet_bytes;
-       unsigned long long rx_total_packet_bytes;
-       unsigned long long tx_total_packet_bytes;
-} TelDataPacketByteCounter_t;
-
-typedef struct {
-       unsigned int tx_bytes;
-       unsigned int rx_bytes;
-       unsigned char report_period;
-       unsigned char channel_num;
-       unsigned char tx_bar_level;
-       unsigned char rx_bar_level;
-} TelDataTE2DataRateInfo_t;
-
-typedef struct {
-       unsigned char usrNaiLength;
-       char usrNai[TAPI_DATA_MAX_USER_NAI_LEN + 1];
-       unsigned int mnHaSpi;
-       unsigned int mnAaaSpi;
-       unsigned char revTunPreference;
-       unsigned int homeAddress;
-       unsigned int primaryHaAddress;
-       unsigned int secondaryHaAddr;
-} TelDataMipNaiGenericInfoType_t;
-
-typedef struct {
-       unsigned char mnHaSharedSecretLength;
-       char mnHaSharedSecret[TAPI_DATA_MAX_SHARED_SECRET_LEN];
-       unsigned char mnAaaSharedSecretLength;
-       char mnAaaSharedSecret[TAPI_DATA_MAX_SHARED_SECRET_LEN];
-}TelDataMipNaiSsInfoType_t;
-
-typedef struct {
-       TelDataNAIIndex_t naiIndex;
-       unsigned short paramMask;
-       TelDataMipNaiGenericInfoType_t genericInfo; /** NAI Generic Information */
-       TelDataMipNaiSsInfoType_t ssInfo; /** <Shared Secret */
-}TelDataMipNaiParam_t;
-
-typedef struct {
-       TelDataQncType_t qnc;
-       TelDataMipType_t mip;
-       TelDataPacketDataCallType_t pkt_data_call_type;
-       char pkt_orig_str[TAPI_DATA_MAX_PKT_DATA_ORIGINSTRING_LEN+1];
-       char pap_user_id[TAPI_DATA_MAX_PAP_USER_ID_LEN+1];
-       char pap_password[TAPI_DATA_MAX_PAP_USER_PASSWORD_LEN+1];
-}TelDataPacketParam_t;
-
-typedef struct {
-       TelDataPacketConfigType_t type;
-       TelDataPacketParam_t param;
-}TelDataPacketDataCallConfig_t;
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _TEL_DATA_H
-/**
- * @}
- */
diff --git a/include/common/TelDefines.h b/include/common/TelDefines.h
deleted file mode 100644 (file)
index a303c99..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @ingroup            TelephonyAPI
- * @addtogroup COMMON_TAPI     COMMON
- * @{
- *
- * @file TelDefines.h
- * @brief  This file  provides #defines required for Telephony server and TAPI Client Library
- */
-
-#ifndef _TEL_DEFINES_H_
-#define _TEL_DEFINES_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Machine independence */
-typedef long TS_INT32;
-typedef unsigned long TS_UINT32;
-
-typedef int TS_INT;
-typedef unsigned int TS_UINT;
-typedef double TS_DOUBLE;
-
-typedef int TS_BOOL;
-
-/* Programming concept */
-typedef unsigned char TS_BYTE;
-typedef unsigned short TS_WORD;
-typedef unsigned long TS_DWORD;
-typedef unsigned char TS_UINT8;
-typedef char TS_INT8;
-typedef unsigned short TS_UINT16;
-typedef unsigned long TS_ULONG;
-typedef unsigned long long TS_UINT64;
-typedef unsigned short TS_USHORT;
-
-#ifndef TRUE
-#define TRUE           1
-#endif
-
-#ifndef FALSE
-#define FALSE          0
-#endif
-
-#ifndef DEPRECATED
-#define DEPRECATED __attribute__((deprecated))
-#endif
-
-typedef int HObj;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TEL_DEFINES_H_ */
-
-/**
- *  @}
- */
diff --git a/include/common/TelDisplay.h b/include/common/TelDisplay.h
deleted file mode 100644 (file)
index 82eeda1..0000000
+++ /dev/null
@@ -1,200 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup            TelephonyAPI
- * @addtogroup         DISPLAY_TAPI    DISPLAY
- * @{
- *
- * These APIs allow an application to accomplish the following services: @n
- * - Get the Display Icon Information. @n
- */
-
-#ifndef _TEL_DISPLAY_H_
-#define _TEL_DISPLAY_H_
-
-#include <TelDefines.h>
-#include <TelUtility.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define TAPI_MAX_DISP_O2_HOMEZONE_TAG_LEN      13      /** Maximum number of bytes Home Zone Tag name */
-#define TAPI_MAX_DISP_ROAM_INFO_LEN                            49      /* Roaming location information Maximum length is 32 bytes, But, 49 bytes in Modem code*/
-#define TAPI_MAX_DISP_PHONE_FATAL_ERR_MSG_LEN  64      /* Phone fatal error message length */
-
-/**
- * This defines the RSSI levels.
- * In GSM, this field represent the radio signal strength in  dBm , but in the CDMA this field represents
- * the number of the antenna bar as follows
- */
-typedef enum {
-       TAPI_DISPLAY_RSSI_0 = 0x00,
-       TAPI_DISPLAY_RSSI_1 = 0x01,
-       TAPI_DISPLAY_RSSI_2 = 0x02,
-       TAPI_DISPLAY_RSSI_3 = 0x03,
-       TAPI_DISPLAY_RSSI_4 = 0x04,
-       TAPI_DISPLAY_RSSI_5 = 0x05,
-       TAPI_DISPLAY_RSSI_6 = 0x06
-} tapi_display_rssi_level_t;
-
-/**
- * This enum defines the strength of the battery in levels
- */
-typedef enum {
-       TAPI_POWER_PHONE_BATT_LEVEL0 = 0x00, /**< BLANK(Critical Low) */
-       TAPI_POWER_PHONE_BATT_LEVEL1 = 0x01, /**< bar1 */
-       TAPI_POWER_PHONE_BATT_LEVEL2 = 0x02, /**< bar2 */
-       TAPI_POWER_PHONE_BATT_LEVEL3 = 0x03, /**< bar3 */
-       TAPI_POWER_PHONE_BATT_LEVEL4 = 0x04, /**< bar4 */
-       TAPI_POWER_PHONE_BATT_LEVEL5 = 0x05, /**< bar5 */
-       TAPI_POWER_PHONE_BATT_LEVEL_INIT = 0x06 /**< init value */
-} tapi_phone_battery_level_t;
-
-/**
- * Home Zone UI Icon Indiction Type
- */
-typedef enum {
-       TAPI_DISPLAY_HMZ_O2_ZONE_INDI_NONE = 0x00, /**< None */
-       TAPI_DISPLAY_HMZ_O2_ZONE_INDI_IND = 0x01, /**< Ind */
-       TAPI_DISPLAY_HMZ_O2_ZONE_INDI_CLEAR = 0x02 /**< Clear */
-} tapi_display_hmz_02_zone_ind_t;
-
-/**
- * Home Zone Type
- */
-typedef enum {
-       TAPI_DISPLAY_HMZ_O2_ZONE_TYPE_NONE = 0x00, /**< None */
-       TAPI_DISPLAY_HMZ_O2_ZONE_TYPE_HOME = 0x01, /**< Home Zone */
-       TAPI_DISPLAY_HMZ_O2_ZONE_TYPE_CITY = 0x02 /**< City Zone */
-} tapi_display_hmz_02_zone_type_t;
-
-/**
- * ZONE_TAG_PRESENT
- */
-typedef enum {
-       TAPI_DISPLAY_HMZ_O2_ZONE_TAG_NONE = 0x00, /**< None */
-       TAPI_DISPLAY_HMZ_O2_ZONE_TAG_PRESENT = 0x01, /**< Present */
-       TAPI_DISPLAY_HMZ_O2_ZONE_TAG_ABSENT = 0x02 /**< Absent */
-} tapi_display_hmz_02_zone_tag_t;
-
-/**
- * This enumeration is used to identify what icon info the client is interested in..
- */
-typedef enum {
-       TAPI_DISPLAY_GET_ICON_RSSI = 0x01, /**< Signal Strength */
-       TAPI_DISPLAY_GET_ICON_BATT = 0x02, /**< Battery Level */
-       TAPI_DISPLAY_GET_ICON_HDR_RSSI = 0x04, /**< HDR(High Data Rate RSSI - CDMA */
-       TAPI_DISPLAY_GET_ICON_ALL = 0xFF /**< All Values Request */
-} tapi_display_get_icon_req_type_t;
-
-/**
- * roam info Control Indication Type
- */
-typedef enum {
-       TAPI_DISPLAY_ROAM_INDI_NONE = 0x00, /**< None */
-       TAPI_DISPLAY_ROAM_TEXT_OFF = 0x01, /**< Roam Text Off */
-       TAPI_DISPLAY_ROAM_TEXT_ON = 0x02 /**< Roam Text On */
-} tapi_display_roam_control_ind_t;
-
-/**
- * roam info data roam guard Indication Type
- */
-typedef enum {
-       TAPI_DISPLAY_DATA_ROAM_GUARD_NONE = 0x00, /**< None */
-       TAPI_DISPLAY_DATA_ROAM_GUARD_OFF = 0x01, /**< Data Roam Guard Off */
-       TAPI_DISPLAY_DATA_ROAM_GUARD_ON = 0x02 /**< Data Roam Guard On */
-} tapi_display_data_roam_guard_ind_t;
-
-/**
- * roam info data roam guard Indication Type
- */
-typedef enum {
-       TAPI_DISPLAY_USER_IND_NORMAL_MODE = 0x01, /**< Normal Mode */
-       TAPI_DISPLAY_USER_IND_INITIAL_PROGRAMMING = 0x02, /**< Initial Programming needed */
-       TAPI_DISPLAY_USER_IND_MAINTENANCE_REQUIRED = 0x03, /**< Maintenance Required */
-       TAPI_DISPLAY_USER_IND_AUTHENTICATION_REQUIRED = 0x04 /**< Authentication Required */
-} tapi_display_user_ind_message_t;
-
-/**
- * This structure defines the display icon information
- */
-typedef struct {
-       tapi_display_rssi_level_t rssi; /**< RSSI Levels */
-       tapi_display_rssi_level_t hdrRssi; /**< HDR(High Data Rate) RSSI Levels -CDMA */
-       tapi_phone_battery_level_t batt; /**< Battery Level */
-} tapi_display_icon_info_t;
-
-/**
- * HomeZone Information Notification Message
- *
- * This service specifies the implementation of o2 DE's HomeZone Indication (HZI) service
- * in 3G or 2G handsets. The HZI service consists of displaying a text and, optionally depending
- * on the zone, an icon in the handset (UE) when the UE is located within a zone which is defined
- * individually for each customer. The zone is defined by a set of cells, i. e. for each cell the
- * indication is either displayed or not. If the display of a MS is too small to display the complete
- * operator name together with the complete tag, it will be allowed to display the operator
- * name and the HomeZone/CityZone-tag in the same line ('o2 - de city' or 'o2 - de home').
- *
- * Reference O2 Home Zone spec.
- */
-typedef struct {
-       tapi_display_hmz_02_zone_ind_t ind;
-       tapi_display_hmz_02_zone_type_t type;
-       tapi_display_hmz_02_zone_tag_t tag_presnet;
-
-       /**
-        * The coding is 12-character string coded in the short message alphabet given
-        * In GSM 03.38 with bit 8 set to zero. Default FF. FF indicates no display.
-        * If ZONE_TAG_PRESENT, then this is 13 bytes.
-        * If ZONE_TAG_ABSENT, then this is zero byte.
-        */
-       unsigned char tag_name[TAPI_MAX_DISP_O2_HOMEZONE_TAG_LEN];
-} tapi_display_hmz_o2_ind_t;
-
-/**
- * Notify the TS of the occurrence of the phone fatal in the phone
- */
-typedef struct {
-       unsigned char Msg_len;
-       unsigned char Message[TAPI_MAX_DISP_PHONE_FATAL_ERR_MSG_LEN];
-} tapi_display_phone_fatal_info_noti_t;
-
-/**
- * Notify the TS of the occurrence of the ext roam info in the phone
- */
-typedef struct {
-       tapi_display_roam_control_ind_t control;
-       tapi_display_data_roam_guard_ind_t data_roam_guard;
-       unsigned char txt_len;
-       unsigned char text[TAPI_MAX_DISP_ROAM_INFO_LEN];
-} tapi_display_ext_roam_info_noti_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TEL_DISPLAY_H_ */
-
-/**
- *  @}
- */
diff --git a/include/common/TelErr.h b/include/common/TelErr.h
deleted file mode 100644 (file)
index 0b25164..0000000
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup                    TelephonyAPI
- * @addtogroup         COMMON_TAPI     COMMON
- * @{
- *     These error codes are used by Applications.
- */
-
-
-#ifndef _TEL_ERR_H_
-#define _TEL_ERR_H_
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/************************************************************
-**    Errors defined in  "+CME ERROR" ,
-**    - see 3GPP TS 27.007
-**    - ranges are 0x00 ~ 0x7FFF
-************************************************************/
-/**
-       Error codes sent by the modem in response to the above operations.
-*/
-typedef enum
-{
-  /* GENERAL ERRORS */
-  TAPI_OP_GEN_ERR_PHONE_FAILURE        = 0,                                            /* 0 */
-  TAPI_OP_GEN_ERR_NO_CONNECTION_TO_PHONE,                                      /* 1 */
-  TAPI_OP_GEN_ERR_PHONE_ADAPTOR_LINK_RESERVED,                 /* 2 */
-  TAPI_OP_GEN_ERR_OPER_NOT_ALLOWED,                                            /* 3 */
-  TAPI_OP_GEN_ERR_OPER_NOT_SUPPORTED,                                          /* 4 */
-  TAPI_OP_GEN_ERR_PH_SIM_PIN_REQU,                                             /* 5 */
-  TAPI_OP_GEN_ERR_PH_FSIM_PIN_REQU,                                            /* 6 */
-  TAPI_OP_GEN_ERR_PH_FSIM_PUK_REQU,                                            /* 7 */
-  TAPI_OP_GEN_ERR_SIM_NOT_INSERTED     =10,                                    /* 10 */
-  TAPI_OP_GEN_ERR_SIM_PIN_REQU,                                                        /* 11 */
-  TAPI_OP_GEN_ERR_SIM_PUK_REQU,                                                        /* 12 */
-  TAPI_OP_GEN_ERR_SIM_FAILURE,                                                 /* 13 */
-  TAPI_OP_GEN_ERR_SIM_BUSY,                                                            /* 14 */
-  TAPI_OP_GEN_ERR_SIM_WRONG,                                                           /* 15 */
-  TAPI_OP_GEN_ERR_INCORRECT_PW,                                                        /* 16 */
-  TAPI_OP_GEN_ERR_SIM_PIN2_REQU,                                                       /* 17 */
-  TAPI_OP_GEN_ERR_SIM_PUK2_REQU,                                                       /* 18 */
-  TAPI_OP_GEN_ERR_MEM_FULL     = 20,                                                   /* 20 */
-  TAPI_OP_GEN_ERR_INVALID_INDEX,                                                       /* 21 */
-  TAPI_OP_GEN_ERR_NOT_FOUND,                                                           /* 22 */
-  TAPI_OP_GEN_ERR_MEM_FAILURE,                                                 /* 23 */
-  TAPI_OP_GEN_ERR_TEXT_STR_TOO_LONG,                                           /* 24 */
-  TAPI_OP_GEN_ERR_INVALID_CHARACTERS_IN_TEXT_STR,                      /* 25 */
-  TAPI_OP_GEN_ERR_DIAL_STR_TOO_LONG,                                           /* 26 */
-  TAPI_OP_GEN_ERR_INVALID_CHARACTERS_IN_DIAL_STR,                      /* 27 */
-  TAPI_OP_GEN_ERR_NO_NET_SVC   = 30,                                           /* 30 */
-  TAPI_OP_GEN_ERR_NET_TIMEOUT,                                                 /* 31 */
-  TAPI_OP_GEN_ERR_NET_NOT_ALLOWED_EMERGENCY_CALLS_ONLY,        /* 32 */
-  TAPI_OP_GEN_ERR_NET_PERS_PIN_REQU    = 40,                                   /* 40 */
-  TAPI_OP_GEN_ERR_NET_PERS_PUK_REQU,                                           /* 41 */
-  TAPI_OP_GEN_ERR_NET_SUBSET_PERS_PIN_REQU,                            /* 42 */
-  TAPI_OP_GEN_ERR_NET_SUBSET_PERS_PUK_REQU,                            /* 43 */
-  TAPI_OP_GEN_ERR_SVC_PROVIDER_PERS_PIN_REQU,                          /* 44 */
-  TAPI_OP_GEN_ERR_SVC_PROVIDER_PERS_PUK_REQU,                          /* 45 */
-  TAPI_OP_GEN_ERR_CORPORATE_PERS_PIN_REQU,                             /* 46 */
-  TAPI_OP_GEN_ERR_CORPORATE_PERS_PUK_REQU,                             /* 47 */
-  TAPI_OP_GEN_ERR_HIDDEN_KEY_REQU,                                             /* 48 */
-  TAPI_OP_GEN_ERR_UNKNOWN      = 100,                                          /* 100 */
-
-  /* Errors related to a failure to perform an Attach */
-  TAPI_OP_GEN_ERR_ILLEGAL_MS   = 103,                                  /* 103 */
-  TAPI_OP_GEN_ERR_ILLEGAL_ME   = 106,                                  /* 106 */
-  TAPI_OP_GEN_ERR_GPRS_SVC_NOT_ALLOWED,                                        /* 107 */
-  TAPI_OP_GEN_ERR_PLMN_NOT_ALLOWED     = 111,                          /* 111 */
-  TAPI_OP_GEN_ERR_LOCATION_AREA_NOT_ALLOWED,                           /* 112 */
-  TAPI_OP_GEN_ERR_ROAMING_NOT_ALLOWED_IN_THIS_LOCATION_AREA,/* 113 */
-
-  /* Errors related to a failure to Activate a Context */
-  TAPI_OP_GEN_ERR_SVC_OPT_NOT_SUPPORTED        = 132,                  /* 132 */
-  TAPI_OP_GEN_ERR_REQ_SVC_OPT_NOT_SUBSCRIBED,                          /* 133 */
-  TAPI_OP_GEN_ERR_SVC_OPT_TEMPORARILY_OUT_OF_ORDER,            /* 134 */
-  TAPI_OP_GEN_ERR_UNSPECIFIED_GPRS_ERR = 148,                  /* 148 */
-  TAPI_OP_GEN_ERR_PDP_AUTHENTICATION_FAILURE,                          /* 149 */
-  TAPI_OP_GEN_ERR_INVALID_MOBILE_CLASS,                                        /* 150 */
-
-  /* VBS / VGCS and eMLPP -related errors */
-  TAPI_OP_GEN_ERR_VBS_VGCS_NOT_SUPPORTED_BY_THE_NET    = 151,  /* 151 */
-  TAPI_OP_GEN_ERR_NO_SVC_SUBSCRIPTION_ON_SIM,                          /* 152 */
-  TAPI_OP_GEN_ERR_NO_SUBSCRIPTION_FOR_GROUP_ID,                        /* 153 */
-  TAPI_OP_GEN_ERR_GROUP_ID_NOT_ACTIVATED_ON_SIM,                       /* 154 */
-  TAPI_OP_GEN_ERR_NO_MATCHING_NOTI     = 155,                          /* 155 */
-  TAPI_OP_GEN_ERR_VBS_VGCS_CALL_ALREADY_PRESENT,                       /* 156 */
-  TAPI_OP_GEN_ERR_CONGESTION,                                                          /* 157 */
-  TAPI_OP_GEN_ERR_NET_FAILURE,                                                 /* 158 */
-  TAPI_OP_GEN_ERR_UPLINK_BUSY,                                                 /* 159 */
-  TAPI_OP_GEN_ERR_NO_ACCESS_RIGHTS_FOR_SIM_FILE        = 160,  /* 160 */
-  TAPI_OP_GEN_ERR_NO_SUBSCRIPTION_FOR_PRIORITY,                        /* 161 */
-  TAPI_OP_GEN_ERR_OPER_NOT_APPLICABLE_OR_NOT_POSSIBLE, /* 162 */
-
-
-  TAPI_OP_GEN_ERR_NONE = 0x8000,                               /* 0x8000 : No Errors */
-
-  /* General Common Errors : 0x8000 - 0x80FF */
-  TAPI_OP_GEN_ERR_INVALID_IPC,                                                 /* 0x8001 : Invalid IPC_GSM Parameter or Format */
-  TAPI_OP_GEN_ERR_PHONE_OFFLINE,                                                       /* 0x8002 : */
-  TAPI_OP_GEN_ERR_CMD_NOT_ALLOWED,                                             /* 0x8003 : */
-  TAPI_OP_GEN_ERR_PHONE_IS_INUSE,                                                      /* 0x8004 : */
-  TAPI_OP_GEN_ERR_INVALID_STATE        = 0x8005,                                       /* 0x8005 : */
-
-  TAPI_OP_GEN_ERR_NO_BUFFER,                                                           /* 0x8006 :  No internal free buffers */
-  TAPI_OP_GEN_ERR_OPER_REJ,                                                            /* 0x8007 :  Operation Rejected */
-  TAPI_OP_GEN_ERR_INSUFFICIENT_RESOURCE,                                       /* 0x8008 : insufficient resource */
-  TAPI_OP_GEN_ERR_NET_NOT_RESPOND,                                             /* 0x8009 : Network not responding */
-  TAPI_OP_GEN_ERR_SIM_PIN_ENABLE_REQ   = 0x800A,                       /* 0x800A : SIM Pin Enable Required */
-  TAPI_OP_GEN_ERR_SIM_PERM_BLOCKED,                                    /* 0x800B : SIM Permanent Blocked */
-  TAPI_OP_GEN_ERR_SIM_PHONEBOOK_RESTRICTED,                            /*0x800C: SIM Phonebook Restricted*/
-  TAPI_OP_GEM_ERR_FIXED_DIALING_NUMBER_ONLY,                           /*0x800D: Restricted By FDN Mode */
-
-  /* Reserved : 0x800E ~ 0x80FF */
-  TAPI_OP_GEN_ERR_800E_RESERVED_START  = 0x800E,                       /* 0x800E */
-
-  TAPI_OP_GEN_ERR_80FF_RESERVED_END    = 0x80ff,                               /* 0x80FF */
-
-  /* the other errors */
-  TAPI_OP_GEN_ERR_OTHERS                               = 0xFFFE,                                 /* 0xFFFE */
-
-  TAPI_OP_GEN_ERR_MAX                                  = 0xFFFF
-
-}tapi_phone_err_t;
-
-typedef enum {
-       TAPI_PDP_FAILURE_CAUSE_NORMAL                                           = 0x00,           // 0x00 : Normal Process ( no problem )
-       TAPI_PDP_FAILURE_CAUSE_REL_BY_USER                                      = 0x01,           // Call Released by User
-       TAPI_PDP_FAILURE_CAUSE_REGULAR_DEACTIVATION                     = 0x02,           // Regular de-activation
-       TAPI_PDP_FAILURE_CAUSE_LLC_SNDCP                                        = 0x03,           // LLC SNDCP failure
-       TAPI_PDP_FAILURE_CAUSE_INSUFFICIENT_RESOURCE            = 0x04,           // Insufficient resources
-       TAPI_PDP_FAILURE_CAUSE_UNKNOWN_APN                                      = 0x05,           // Missing or unknown APN
-       TAPI_PDP_FAILURE_CAUSE_UNKNOWN_PDP_ADDRESS                      = 0x06,           // Unknown PDP address or type
-       TAPI_PDP_FAILURE_CAUSE_USER_AUTH_FAILED                         = 0x07,           // Unknown PDP address or type
-       TAPI_PDP_FAILURE_CAUSE_ACT_REJ_GGSN                                     = 0x08,           // Unknown PDP address or type
-       TAPI_PDP_FAILURE_CAUSE_ACT_REJ_UNSPECIFIED                      = 0x09,           // Unknown PDP address or type
-       TAPI_PDP_FAILURE_CAUSE_SVC_OPTION_NOT_SUPPORTED         = 0x0A,           // Service option not supported
-       TAPI_PDP_FAILURE_CAUSE_SVC_NOT_SUBSCRIBED                       = 0x0B,           // Requested service option not subscribed
-       TAPI_PDP_FAILURE_CAUSE_SVC_OPT_OUT_ORDER                        = 0x0C,           // Service out of order
-    TAPI_PDP_FAILURE_CAUSE_NSAPI_USED                                  = 0x0D,           // NSAPI already used
-       TAPI_PDP_FAILURE_CAUSE_QOS_NOT_ACCEPTED                         = 0x0E,           // QoS not accepted
-       TAPI_PDP_FAILURE_CAUSE_NETWORK_FAILURE                          = 0x0F,           // Network Failure
-    TAPI_PDP_FAILURE_CAUSE_REACT_REQUIRED                              = 0x10,           // Reactivation Required
-       TAPI_PDP_FAILURE_CAUSE_FEATURE_NOT_SUPPORTED            = 0x11,           // Feature not supported
-       TAPI_PDP_FAILURE_CAUSE_TFT_FILTER_ERROR                         = 0x12,           // TFT or filter error
-       TAPI_PDP_FAILURE_CAUSE_UNKOWN_PDP_CONTEXT                       = 0x13,           // Unknown PDP context
-       TAPI_PDP_FAILURE_CAUSE_INVALID_MSG                                      = 0x14,           // Invalid MSG
-       TAPI_PDP_FAILURE_CAUSE_PROTOCOL_ERROR                           = 0x15,           // Protocol error
-       TAPI_PDP_FAILURE_CAUSE_MOBILE_FAILURE_ERROR                     = 0x16,           // Mobile failure error
-       TAPI_PDP_FAILURE_CAUSE_TIMEOUT_ERROR                            = 0x17,           // Timeout error
-       TAPI_PDP_FAILURE_CAUSE_UNKNOWN_ERROR                            = 0x18,           // Unknown error
-       TAPI_PDP_FAILURE_CAUSE_MAX ,
-} tapi_pdp_err_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _TEL_ERR_H_
-
-/**
-* @}
-*/
diff --git a/include/common/TelMisc.h b/include/common/TelMisc.h
deleted file mode 100644 (file)
index 8e4a8c4..0000000
+++ /dev/null
@@ -1,349 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup            TelephonyAPI
- * @addtogroup MISC_TAPI       MISC
- * @{
- *
- * @file TelMisc.h
-
- @brief This file serves as a "C" header file defines structures for Tapi Misc Services. \n
- It contains a sample set of constants, enums, structs that would be required by applications.
-
- */
-
-#ifndef _TEL_MISC_H_
-#define _TEL_MISC_H_
-
-#include <sys/time.h>
-#include <TelDefines.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
-
-/**
- * @enum TelMiscApplicationKey_t
- * This enumeration defines mmi check key values
- */
-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,   //
-
-       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
-} TelMiscMMICHECK_t;
-
-/**
- * @enum TelMiscApplicationKey_t
- * This enumeration defines application key type
- */
-typedef enum {
-       KEY_EXT_DIAL_0 = 0,
-       KEY_EXT_DIAL_1,
-       KEY_EXT_DIAL_2,
-       KEY_EXT_DIAL_3,
-       KEY_EXT_DIAL_4,
-       KEY_EXT_DIAL_5,
-       KEY_EXT_DIAL_6,
-       KEY_EXT_DIAL_7,
-       KEY_EXT_DIAL_8,
-       KEY_EXT_DIAL_9,
-       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,
-
-       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
-} TelMiscApplicationKey_t;
-
-/**
- * @enum TelMiscDiagTouchEventType_t
- * This enumeration defines the touch event type
- */
-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;
-
-/**
- * @enum  TelMiscAlarmMode_t
- * Enum type for Validity of the Alarm booting
- */
-typedef enum {
-       TAPI_MISC_ALARMBOOT_INACTIVATE, /**< 0x00: Inactivated */
-       TAPI_MISC_ALARMBOOT_ACTIVATE /**< 0x00: Activated */
-} 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`s 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;
-
-/**
- * NAM Information MASK fiel
- */
-typedef enum {
-       TAPI_MISC_NAM_INFO_MASK_TOTAL                   = 0x0001,
-       TAPI_MISC_NAM_INFO_MASK_CURRENT_INDEX   = 0x0002,
-       TAPI_MISC_NAM_INFO_MASK_REQUEST_INDEX   = 0x0004,
-       TAPI_MISC_NAM_INFO_MASK_AUTONAM         = 0x0008,
-       TAPI_MISC_NAM_INFO_MASK_MCC                     = 0x0010,
-       TAPI_MISC_NAM_INFO_MASK_MNC                     = 0x0020,
-       TAPI_MISC_NAM_INFO_MASK_MIN                     = 0x0040,
-       TAPI_MISC_NAM_INFO_MASK_MDN                     = 0x0080,
-       TAPI_MISC_NAM_INFO_MASK_NAM_NAME                = 0x0100,
-       TAPI_MISC_NAM_INFO_MASK_NAM_CHANGE              = 0x0200,
-       TAPI_MISC_NAM_INFO_MASK_NAM_NUM         = 0x0400,
-       TAPI_MISC_NAM_INFO_MASK_ALL                     = 0x8000
-} TelMiscNamInfoMaskType_t;
-
-/**
- * NAMIndex Field
- */
-typedef enum {
-       TAPI_MISC_NAM_1 = 0x00,
-       TAPI_MISC_NAM_2,
-       TAPI_MISC_NAM_3,
-       TAPI_MISC_NAM_4,
-       TAPI_MISC_NAM_5
-} TelMiscNamIndex_t;
-
-
-/**
- * @enum  tapi_misc_nitz_dayofweek_t
- * Enum type for day of week
- */
-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;
-
-/**
- * @enum  tapi_misc_nitz_daylight_t
- * Enum type for daylight
- */
-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;
-
-/**
- * @enum  tapi_misc_nitz_timeinfo_t
- * Enum type for types of data
- */
-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;
-
-/**
- * Mobile Equipment Version Information
- */
-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 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 */
-       unsigned char szProductCode[TAPI_MISC_PRODUCT_CODE_LEN_MAX]; /**< product code, null termination */
-       unsigned char szModelId[TAPI_MISC_MODEL_ID_LEN_MAX]; /**< model id (only for CDMA), null termination */
-       unsigned char prl_nam_num; /**< number of PRL NAM fields */
-       unsigned char szPrlVersion[TAPI_MISC_PRL_ERI_VER_LEN_MAX * 3];/**< prl version (only for CDMA), null termination */
-       unsigned char eri_nam_num; /**< number of PRL NAM fields */
-       unsigned char szEriVersion[TAPI_MISC_PRL_ERI_VER_LEN_MAX * 3];/**< eri version (only for CDMA), null termination */
-} TelMiscVersionInformation;
-
-/**
- * Mobile Equipment Serial Number Information
- */
-typedef struct {
-       TelMiscSNIndexType_t sn_index; /**< serial number index */
-       int sn_len; /**< Length */
-       unsigned char szNumber[TAPI_MISC_ME_SN_LEN_MAX]; /**< Number */
-} TelMiscSNInformation;
-
-/**
- * Event delivery - event type
- */
-typedef struct {
-       struct timeval time; /**< Time information */
-       unsigned short type; /**< Type of event */
-       unsigned short code; /**< Code */
-       long value; /**< Value */
-} input_event_t;
-
-/**
- * Diagnostic Key Code Information
- */
-typedef struct {
-       unsigned char keycode; /**< Key Code */
-       unsigned char keyhold; /**< Key Hold */
-} TelMiscDiagKeyCodeInfomation;
-
-/**
- * Struct for alarm info
- */
-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 week */
-} TelMiscAlarmInfo_t;
-
-/**
- * Struct for alarm response
- */
-typedef struct {
-       TelMiscAlarmMode_t validity; /**< validity */
-       TelMiscAlarmInfo_t alarm_info; /**< alarm info */
-} TelMiscAlarmStatus_t;
-
-/**
- * @struct  TelMiscNamInfo_t
- * struct type for nam info
- */
-typedef struct {
-       unsigned short nam_info_mask;
-       unsigned char nam_total; // this field is not used in case of nam set req.
-       unsigned char nam_current_index;
-       unsigned char nam_req_index;
-       unsigned char nam_auto;
-       unsigned char nam_mcc[TAPI_MISC_MCC_LEN_MAX+1];
-       unsigned char nam_mnc[TAPI_MISC_MCC_LEN_MAX+1];
-       unsigned char nam_min[TAPI_MISC_MIN_LEN_MAX+1];
-       unsigned char nam_mdn[TAPI_MISC_MDN_LEN_MAX+1];
-       unsigned char nam_name[TAPI_MISC_NAME_LEN_MAX+1];
-} TelMiscNamInfo_t;
-
-/**
- * Struct for time info
- */
-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 week */
-       unsigned long plmn; /**< day of week */
-} tapi_misc_time_zone_info_type;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _TEL_MISC_H_
-/**
- *  @}
- */
diff --git a/include/common/TelNetText.h b/include/common/TelNetText.h
deleted file mode 100644 (file)
index 8bed006..0000000
+++ /dev/null
@@ -1,752 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
-* @open
-* @ingroup             TelephonyAPI
-* @addtogroup  NetText_TAPI    NetText(SMS)
-* @{
-*
-* @file TelNetText.h
-
-     @brief This file serves as a "C" header file defines structures for Tapi Network Text Services. \n
-      It contains a sample set of constants, enums, structs that would be required by applications.
-
- */
-#ifndef _TEL_NETTEXT_H_
-#define _TEL_NETTEXT_H_
-
-#include <TelSim.h>
-#include <TapiCommon.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/* NetText */
-#define TAPI_NETTEXT_MSG_SIZE_MAX              918 /**< Maximum Message Size */
-#define TAPI_NETTEXT_CB_SIZE_MAX                       93 /** Maximum CB Message Size */
-#define TAPI_NETTEXT_ADDRESS_LEN_MAX   20 /* Nettext Address Length */
-#define TAPI_NETTEXT_SCADDRESS_LEN_MAX 18 /* SC Address Length */
-
-#define TAPI_NETTEXT_CB_PAGE_SIZE_MAX                           93    /**< CB maximum page size*/
-#define TAPI_NETTEXT_GSM_SMS_MSG_NUM_MAX                 90    /**< Maximum GSM SMS message number*/
-#define TAPI_NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX      50    /**< Maximum GSM SMS CBMI list size*/
-#define TAPI_NETTEXT_SMDATA_SIZE_MAX                           165  /**< Maximum SMS data size that can be stored*/
-#define TAPI_NETTEXT_MAX_SMS_SERVICE_CENTER_ADDR   12    /**<Maximum SMS service center address*/
-#define TAPI_NETTEXT_MAX_INDEX                                        255 /**< Maximum index value for SMS */
-
-#define TAPI_NETTEXT_SMSP_PARAMS_MAX_LEN               28
-
-// ************************  CDMA Features  **************************//
-#define TAPI_NETTEXT_PARAM_TELESERVICE_MASK                    1 << 0                          /**< Teleservice parameter bit position */
-#define TAPI_NETTEXT_PARAM_SERVICE_CATEGORY_MASK               1 << 1                          /**< Service Category parameter bit position */
-#define TAPI_NETTEXT_PARAM_ADDRESS_MASK                                1 << 2                          /**< Address parameter bit position */
-#define TAPI_NETTEXT_PARAM_SUBADDRESS_MASK                     1 << 3                          /**< Subaddress parameter bit position */
-#define TAPI_NETTEXT_PARAM_BEARER_REPLY_MASK                   1 << 4                          /**< Bearer reply parameter bit position */
-#define TAPI_NETTEXT_PARAM_CAUSE_CODES_MASK                    1 << 5                          /**< Cause Code parameter bit position */
-#define TAPI_NETTEXT_PARAM_MESSAGE_ID_MASK                     1 << 6                          /**< Message ID parameter bit position */
-#define TAPI_NETTEXT_PARAM_USER_DATA_MASK                      1 << 7                          /**< User Data parameter bit position */
-#define TAPI_NETTEXT_PARAM_USER_RESPONSE_CODE_MASK             1 << 8                          /**< User Response Code parameter bit position */
-#define TAPI_NETTEXT_PARAM_MC_TIME_STAMP_MASK                  1 << 9                          /**< Message Center Timestamp parameter bit position */
-#define TAPI_NETTEXT_PARAM_VALIDITY_PERIOD_ABS_MASK            1 << 10                         /**< Valid period Absolute parameter bit position */
-#define TAPI_NETTEXT_PARAM_VALIDITY_PERIOD_REL_MASK                    1 << 11                         /**< Valid period Relative parameter bit position */
-#define TAPI_NETTEXT_PARAM_DEFERRED_DELIVERY_ABS_MASK          1 << 12                         /**< Deferred delivery absolute parameter bit position */
-#define TAPI_NETTEXT_PARAM_DEFERRED_DELIVERY_REL_MASK          1 << 13                         /**< Deferred delivery relative parameter bit position */
-#define TAPI_NETTEXT_PARAM_PRIORITY_MASK                               1 << 14                         /**< Priority parameter bit position */
-#define TAPI_NETTEXT_PARAM_PRIVACY_MASK                                1 << 15                         /**< Privacy parameter bit position */
-#define TAPI_NETTEXT_PARAM_REPLY_OPTION_MASK                   1 << 16                         /**< Reply Option parameter bit position */
-#define TAPI_NETTEXT_PARAM_NUMBER_OF_MESSAGE_MASK              1 << 17                         /**< Number of message parameter bit position */
-#define TAPI_NETTEXT_PARAM_ALERT_ON_DELIVERY_MASK                      1 << 18                         /**< Alert on delivery parameter bit position */
-#define TAPI_NETTEXT_PARAM_LANGUAGE_MASK                       1 << 19                         /**< Language parameter bit position */
-#define TAPI_NETTEXT_PARAM_CALLBACK_MASK                               1 << 20                         /**< Callback Number parameter bit position */
-#define TAPI_NETTEXT_PARAM_DISPLAY_MODE_MASK                   1 << 21                         /**< Display mode parameter bit position */
-#define TAPI_NETTEXT_PARAM_MULTI_ENCODING_USER_DATA_MASK       1 << 22                         /**< Multi Encoding user data parameter bit position */
-
-#define TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA                                160                                     /**< Maximum MT user data  size*/
-#define TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA                                160                                     /**< Maximum MO user data  size*/
-
-#define TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS                                             32                                      /**< MAX sms destination(or origination ) address /call back number */
-
-#define TAPI_NETTEXT_ERR_CLASS0_STATUS_SEND_OK                                                         0       /**< send success */
-#define TAPI_NETTEXT_ERR_CLASS23_ADDRESS_VACANT                                                                0       /**< address vacant */
-#define TAPI_NETTEXT_ERR_CLASS23_ADDRESS_TRANSLATION_FAILURE                                   1       /**< address translation failure */
-#define TAPI_NETTEXT_ERR_CLASS23_NETWORK_RESOURCE_SHORTAGE                                     2       /**< network resource shortage */
-#define TAPI_NETTEXT_ERR_CLASS23_NETWORK_FAILURE                                                               3       /**< network failure */
-#define TAPI_NETTEXT_ERR_CLASS23_INVALID_TELESERVICE_ID                                                        4       /**< invalid teleservice id */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM                                         5       /**< other network problem */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM_MORE_FIRST                      6       /**< other network problem more first */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM_MORE_LAST                       31      /**< other network problem more last */
-#define TAPI_NETTEXT_ERR_CLASS23_NO_PAGE_RESPONSE                                                              32      /**< no page response */
-#define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_BUSY                                                              33      /**< destination busy */
-#define TAPI_NETTEXT_ERR_CLASS23_NO_ACK                                                                                        34      /**< no ack */
-#define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_RESOURCE_SHORTAGE                         35      /**< destination resource shortage */
-#define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED                                                36      /**< sms delivery postponed */
-#define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_OUT_OF_SERVICE                                    37      /**< destination out of service */
-#define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_NO_LONGER_AT_THIS_ADDRESS         38      /**< destination no longer at this address */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM                                                39      /**< other terminal problem */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM_MORE_FIRST                     40      /**< other terminal problem more first */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM_MORE_LAST                      47      /**< other terminal problem more last */
-#define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED_MORE_FIRST                     48      /**< sms delivery postpone more first */
-#define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED_MORE_LAST                      63      /**< sms delivery postpone more last */
-#define TAPI_NETTEXT_ERR_CLASS23_RADIO_IF_RESOURCE_SHORTAGE                                    64      /**< radio interface resource shortage */
-#define TAPI_NETTEXT_ERR_CLASS23_RADIO_IF_INCOMPATIBLE                                                 65      /**< radio interface incompatible */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM                                                66      /**< other radio interface problem */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM_MORE_FIRST                     67      /**< other radio interface problem more first */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM_MORE_LAST                      95      /**< other radio interface problem more last */
-#define TAPI_NETTEXT_ERR_CLASS23_UNEXPECTED_PARM_SIZE                                                  96      /**< unexpected parameter size */
-#define TAPI_NETTEXT_ERR_CLASS23_SMS_ORIGINATION_DENIED                                                97      /**< sms origination denied */
-#define TAPI_NETTEXT_ERR_CLASS23_SMS_TERMINATION_DENIED                                                98      /**< sms termination denied */
-#define TAPI_NETTEXT_ERR_CLASS23_SUPPL_SERVICE_NOT_SUPPORTED                                   99      /**< supplementary service not supported */
-#define TAPI_NETTEXT_ERR_CLASS23_SMS_NOT_SUPPORTED                                                             100     /**< sms not supported */
-#define TAPI_NETTEXT_ERR_CLASS23_RESERVED_101                                                                  101     /**< reserved 101 */
-#define TAPI_NETTEXT_ERR_CLASS23_MISSING_EXPECTED_PARM                                         102     /**< missing expected parameter */
-#define TAPI_NETTEXT_ERR_CLASS23_MISSING_MANDATORY_PARM                                                103     /**< missing mandatory parameter value */
-#define TAPI_NETTEXT_ERR_CLASS23_UNRECOGNIZED_PARM_VALUE                                               104     /**< unrecognized parameter value */
-#define TAPI_NETTEXT_ERR_CLASS23_UNEXPECTED_PARM_VALUE                                         105     /**< unexpected parameter value */
-#define TAPI_NETTEXT_ERR_CLASS23_USER_DATA_SIZE_ERROR                                                  106     /**< user data size error */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS                                                107     /**< other general problem */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS_MORE_FIRST                     108     /**< other general problem first */
-#define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS_MORE_LAST                      255     /**< other general problem last */
-
-#define TAPI_NETTEXT_ERR_CLASS4_WAITING_FOR_TL_ACK                                                             1       /**< waiting for transport ack */
-#define TAPI_NETTEXT_ERR_CLASS4_OUT_OF_RESOURCES                                                               2       /**< out of resource */
-#define TAPI_NETTEXT_ERR_CLASS4_ACCESS_TOO_LARGE                                                               3       /**< access to large */
-#define TAPI_NETTEXT_ERR_CLASS4_DTC_TOO_LARGE                                                          4       /**< DTC too large */
-#define TAPI_NETTEXT_ERR_CLASS4_DTC_CONNECTED                                                                  5       /**< DTC connected */
-#define TAPI_NETTEXT_ERR_CLASS4_NETWORK_NOT_READY                                                              6       /**< network not ready */
-#define TAPI_NETTEXT_ERR_CLASS4_NO_SVC                                                                                 7       /**< no service */
-#define TAPI_NETTEXT_ERR_CLASS4_PHONE_NOT_READY                                                                8       /**< phone not ready */
-#define TAPI_NETTEXT_ERR_CLASS4_NOT_ALLOWED_IN_AMPS                                                    9       /**< fail to allowed in amps */
-#define TAPI_NETTEXT_ERR_CLASS4_CANNOT_SEND_BROADCAST                                                  10      /**< fail to send broadcast */
-#define TAPI_NETTEXT_ERR_CLASS4_INVALID_TRANSACTION_ID
-// ********************************************************************//
-
-/**
- * @enum TelSmsMsgStatus_t
- * This enumeration defines the network text status type.
- */
-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;
-
-/**
- * @enum TelSmsMemStatusType
- * This enumeration defines the memory status type.
- */
-typedef enum
-{
-       TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE                = 0x01, /**< PDA Memory Available */
-       TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL                     = 0x02,  /**< PDAMemory is Full */
-       TAPI_NETTEXT_PHONE_MEMORY_STATUS_AVAILABLE      = 0x03, /**< Phone memory Available */
-       TAPI_NETTEXT_PHONE_MEMORY_STATUS_FULL                   = 0x04, /**< phone memory is full */
-}TelSmsMemStatusType;
-
-/**
- * @enum TelSmsBearerType_t
- * This enum defines the different bearer types
- */
-typedef enum
-{
-       TAPI_NETTEXT_BEARER_PS_ONLY = 0x01,       /**< Send SMS only on PS Bearer */
-       TAPI_NETTEXT_BEARER_CS_ONLY,                  /**< Send SMS only on CS Bearer */
-       TAPI_NETTEXT_BEARER_PS_PREFERRED,        /**<Send SMS preferably on PS Bearer*/
-       TAPI_NETTEXT_BEARER_CS_PREFERRED ,       /**<Send SMS preferably on CS Bearer*/
-       TAPI_NETTEXT_NO_PREFERRED_BEARER         /**<SMS is sent based on default preferred bearer set at OEM based on vendor/operator preference*/
-} TelSmsBearerType_t;
-
-
-/**
-* @enum TelSmsCbMsgType_t
-* This enumeration defines the different CB message types.
-*/
-typedef enum
-{
-          TAPI_NETTEXT_CB_MSG_CBS = 1,             /**< Cell broadcast message */
-          TAPI_NETTEXT_CB_MSG_SCHEDULE,            /**< CB Schedule message  */
-          TAPI_NETTEXT_CB_MSG_CBS41,               /**< CBS41 type message  */
-          TAPI_NETTEXT_CB_MSG_INVALID            /**< Invalid  CB message */
-} TelSmsCbMsgType_t;
-
-
-/**
- * @enum TelSmsResponse_t
- * This enum defines the different response types that come in the
- * sent status acknowledgement/notification after sending a message to the network
- */
-typedef enum
-{
-       TAPI_NETTEXT_SENDSMS_SUCCESS = 0x00,     /**<Message send success*/
-       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 a operation already done*/
-       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 happened*/
-       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;
-
- /** @enum  TelSmsCause_t
- * This enum defines the different cause types that come in the
- * sent status acknowledgement/notification after sending a message to the network
- */
-
-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 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 allocation of memory for SMS operation.*/
-  TAPI_NETTEXT_OPERATION_NOT_SUPPORTED      /**< operation not allowed/supported*/
-}  TelSmsCause_t;
-
-/**
- * @enum TelSmsSetResponse
- * This defines the response values
- */
-typedef enum
-{
-       TAPI_NETTEXT_CBSETCONFIG_RSP,     /**<  cellbroadcast 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;
-
-// ************************  CDMA Features  **************************//
- /** @enum  TelSmsIs637AlertPriority_t
- * This enum defines the type of alerts used to distinguish different priorities
- * of the message
- */
-typedef enum{
-  TAPI_NETTEXT_ALERT_PRIORITY_DEFAULT = 0,     /**< Mobile default alert */
-  TAPI_NETTEXT_ALERT_PRIORITY_LOW,                     /**< Low priority alert */
-  TAPI_NETTEXT_ALERT_PRIORITY_MEDIUM,          /**< Medium priority alert */
-  TAPI_NETTEXT_ALERT_PRIORITY_HIGH,                    /**< High priority alert */
-} TelSmsIs637AlertPriority_t;
-
- /** @enum  TelSmsIs637Privacy_t
- * This enum defines the desired privacy level of the message
- */
-typedef enum{
-  TAPI_NETTEXT_PRIVACY_NOT_RESTRICTED = 0,     /**< Not restricted */
-  TAPI_NETTEXT_PRIVACY_RESTRICTED,                     /**< Restricted */
-  TAPI_NETTEXT_PRIVACY_CONFIDENTIAL,                   /**< Confidential */
-  TAPI_NETTEXT_PRIVACY_SECRET,                         /**< Secret */
-} TelSmsIs637Privacy_t;
-
- /** @enum  TelSmsIs637Priority_t
- * This enum defines the priority level of the message
- */
-typedef enum{
-  TAPI_NETTEXT_PRIORITY_NORMAL = 0,                    /**< Normal */
-  TAPI_NETTEXT_PRIORITY_INTERACTIVE,                   /**< Interactive */
-  TAPI_NETTEXT_PRIORITY_URGENT,                                /**< Urgent */
-  TAPI_NETTEXT_PRIORITY_EMERGENCY,                     /**< Emergency */
-} TelSmsIs637Priority_t;
-
- /** @enum  TelSmsIs637LangIndicator_t
- * This enum defines the language of the message so that the receiving mobile station can
- * discard those messages that are not in the user's preferred language
- */
-typedef enum{
-  TAPI_NETTEXT_LANG_UNKNOWN = 0x0,                     /**< Unknown or unspecified */
-  TAPI_NETTEXT_LANG_ENGLISH,                                   /**< English */
-  TAPI_NETTEXT_LANG_FRENCH,                                    /**< French */
-  TAPI_NETTEXT_LANG_SPANISH,                                   /**< Spanish */
-  TAPI_NETTEXT_LANG_JAPANESE,                                  /**< Japanese */
-  TAPI_NETTEXT_LANG_KOREAN,                                    /**< Korean */
-  TAPI_NETTEXT_LANG_CHINESE,                                   /**< Chinese */
-  TAPI_NETTEXT_LANG_HEBREW,                                    /**< Hebrew */
-} TelSmsIs637LangIndicator_t;
-
- /** @enum  TelSmsIs637MsgDisplayMode_t
- * This enum defines the display mode to the mobile station when to display the received message
- */
-typedef enum{
-  TAPI_NETTEXT_MSG_DISPLAY_IMMEDIATE = 0x0,    /**< The mobile station is to display the received message as soon as possible */
-  TAPI_NETTEXT_MSG_DISPLAY_DEFAULT,                    /**< he mobile station is to display the received message based on a pre-defined mode in the mobile station. */
-  TAPI_NETTEXT_MSG_DISPLAY_USER_INVOKE = 0x3, /**< The mobile station is to display the received message based on the mode selected by the user. */
-  TAPI_NETTEXT_MSG_DISPLAY_RESERVED,                   /**< Reserved */
-} TelSmsIs637MsgDisplayMode_t;
-
- /** @enum  TelSmsIs637ErrorClass_t
- * This enum defines the error report class
- */
-typedef enum{
-  TAPI_NETTEXT_MSG_ERROR_CLASS_NONE = 0x0,                                     /**< None error(for SMS ack) */
-  TAPI_NETTEXT_MSG_ERROR_CLASS_TEMPORARY_ERROR = 0x2,          /**< Temporary error(for SMS ack) */
-  TAPI_NETTEXT_MSG_ERROR_CLASS_PERMANENT_ERROR = 0x3,          /**< Permanent error(for SMS ack) */
-  TAPI_NETTEXT_MSG_ERROR_CLASS_PHONE_INTERNAL_ERROR = 0x4,     /**< Phone Internal Status (for Send status) */
-} TelSmsIs637ErrorClass_t;
-
- /** @enum  TelSmsBroadCastCategory_t
- * This enum defines the Broadcast Service Category
- */
-typedef enum{
-  TAPI_NETTEXT_CATEGORY_UNKNOWN                        = 0x00,                 /**< Unknown category */
-  TAPI_NETTEXT_CATEGORY_EMERGENCY                      = 0x01,                 /**< Emergency category */
-  TAPI_NETTEXT_CATEGORY_ADMIN                          = 0x02,                 /**< Admin category */
-  TAPI_NETTEXT_CATEGORY_MAINTENANCE            = 0x03,                 /**< Maintenance category */
-  TAPI_NETTEXT_CATEGORY_GEN_NEWS_LOC           = 0x04,                 /**< General News(Local) category */
-  TAPI_NETTEXT_CATEGORY_GEN_NEWS_REG           = 0x05,                 /**< General News(Regional) category */
-  TAPI_NETTEXT_CATEGORY_GEN_NEWS_NAT           = 0x06,                 /**< General News(National) category */
-  TAPI_NETTEXT_CATEGORY_GEN_NEWS_INT           = 0x07,                 /**< General News(International) category */
-  TAPI_NETTEXT_CATEGORY_FIN_NEWS_LOC           = 0x08,                 /**< Business/Financial News(Local) category */
-  TAPI_NETTEXT_CATEGORY_FIN_NEWS_REG           = 0x09,                 /**< Business/Financial News(Regional) category */
-  TAPI_NETTEXT_CATEGORY_FIN_NEWS_NAT           = 0x0A,                 /**< Business/Financial News(National) category */
-  TAPI_NETTEXT_CATEGORY_FIN_NEWS_INT           = 0x0B,                 /**< Business/Financial News(International) category */
-  TAPI_NETTEXT_CATEGORY_SPT_NEWS_LOC           = 0x0C,                 /**< Sports News(Local) category */
-  TAPI_NETTEXT_CATEGORY_SPT_NEWS_REG           = 0x0D,                 /**< Sports News(Regional) category */
-  TAPI_NETTEXT_CATEGORY_SPT_NEWS_NAT           = 0x0E,                 /**< Sports News(National) category */
-  TAPI_NETTEXT_CATEGORY_SPT_NEWS_INT           = 0x0F,                 /**< Sports News(International) category */
-  TAPI_NETTEXT_CATEGORY_ENT_NEWS_LOC           = 0x10,                 /**< Entertainment News(Local) category */
-  TAPI_NETTEXT_CATEGORY_ENT_NEWS_REG           = 0x11,                 /**< Entertainment News(Regional) category */
-  TAPI_NETTEXT_CATEGORY_ENT_NEWS_NAT           = 0x12,                 /**< Entertainment News(National) category */
-  TAPI_NETTEXT_CATEGORY_ENT_NEWS_INT           = 0x13,                 /**< Entertainment News(International) category */
-  TAPI_NETTEXT_CATEGORY_LOC_WEATHER            = 0x14,                 /**< Local Weather category */
-  TAPI_NETTEXT_CATEGORY_AREA_TRAFFIC           = 0x15,                 /**< Area Traffic Reports category */
-  TAPI_NETTEXT_CATEGORY_AIRPORT_SCHED          = 0x16,                 /**< Local Airport Flight Schedules category */
-  TAPI_NETTEXT_CATEGORY_RESTAURANTS            = 0x17,                 /**< Restaurants category */
-  TAPI_NETTEXT_CATEGORY_LODGINGS                       = 0x18,                 /**< Lodgings category */
-  TAPI_NETTEXT_CATEGORY_RETAILS                        = 0x19,                 /**< Retail Directory category */
-  TAPI_NETTEXT_CATEGORY_ADS                            = 0x1A,                 /**< Advertisements category */
-  TAPI_NETTEXT_CATEGORY_STOCK_QUOTES           = 0x1B,                 /**< Stock Quotes category */
-  TAPI_NETTEXT_CATEGORY_JOBS                           = 0x1C,                 /**< Employment Opportunities category */
-  TAPI_NETTEXT_CATEGORY_MEDICAL                        = 0x1D,                 /**< Medical/Health/Hospitals category */
-  TAPI_NETTEXT_CATEGORY_TECH_NEWS                      = 0x1E,                 /**< Technology News category */
-  TAPI_NETTEXT_CATEGORY_MULTI                          =  0x1F,                        /**< Multi-category */
-} TelSmsBroadCastCategory_t;
-
-/** @enum  TelSmsMsgType_t
- * This enum defines the type of IS637 message
- */
-typedef enum{
-  TAPI_NETTEXT_MESSAGETYPE_DELIVER = 0x01,                                     /**< sms deliver message  */
-  TAPI_NETTEXT_MESSAGETYPE_SUBMIT = 0x02,                                      /**< sms submit message  */
-  TAPI_NETTEXT_MESSAGETYPE_CANCEL = 0x03,                                      /**< sms cancellation message  */
-  TAPI_NETTEXT_MESSAGETYPE_DELIVERY_ACK = 0x04,                                /**< sms delivery acknowledgment message  */
-  TAPI_NETTEXT_MESSAGETYPE_USER_ACK = 0x05,                                    /**< sms user acknowledgment message  */
-} TelSmsMsgType_t;
-
-/** @enum  TelSmsIs637DigitMode_t
- * This enum defines the type of address whether it is 4-bit mode or 8-bit mode
- */
-typedef enum{
-  TAPI_NETTEXT_DIGITMODE_4BITDTMF      = 0x00,                                 /**< 4-bit mode  */
-  TAPI_NETTEXT_DIGITMODE_8BITCODE      = 0x01,                                 /**< 8-bit mode  */
-} TelSmsIs637DigitMode_t;
-
-/** @enum  TelSmsIs637NumberMode_t
- * This enum defines the mode of address number to indicate whether the address type is as defined in ANSI TI.607 or is a data network address
- */
-typedef enum{
-  TAPI_NETTEXT_NUMMODE_NONE_DATANETWORK =      0x00,           /**< in ANSI TI.607 */
-  TAPI_NETTEXT_NUMMODE_DATANETWORK = 0x01,                                     /**< in Data Network */
-} TelSmsIs637NumberMode_t;
-
-/** @enum  TelSmsIs637NumberType_t
- * This enum defines the type of address
- */
-typedef enum{
-  TAPI_NETTEXT_NUMBER_TYPE_UNKNOWN          = 0x00,                            /**<  Unknown */
-  TAPI_NETTEXT_NUMBER_TYPE_INTERNATIONAL    = 0x01,                    /**<  International number*/
-  TAPI_NETTEXT_NUMBER_TYPE_NATIONAL         = 0x02,                            /**<  National number */
-  TAPI_NETTEXT_NUMBER_TYPE_NETWORK          = 0x03,                            /**<  Abbreviated number */
-  TAPI_NETTEXT_NUMBER_TYPE_SUBSCRIBER       = 0x04,                    /**< Abbreviated number */
-  TAPI_NETTEXT_NUMBER_TYPE_RESERVED_5       = 0x05,                    /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_TYPE_ABBREVIATED       = 0x06,                   /**<  Abbreviated number */
-  TAPI_NETTEXT_NUMBER_TYPE_RESERVED_7       = 0x07,                    /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_TYPE_IP                      = 0x11,                     /**<  Internet Protocol(RFC 791) */
-  TAPI_NETTEXT_NUMBER_TYPE_EMAILADDR       = 0x12,                     /**<  Internet Email Address(RFC 822) */
-} TelSmsIs637NumberType_t;
-
-/** @enum  TelSmsIs637NumberPlan_t
- * This enum defines the plan of address
- */
-typedef enum{
-  TAPI_NETTEXT_NUMBER_PLAN_UNKNOWN                         = 0x00,             /**<  Unknown */
-  TAPI_NETTEXT_NUMBER_PLAN_TELEPHONY               = 0x01,             /**< ISDN/Telephony numbering plan */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_2              = 0x02,             /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_DATA                                = 0x03,                 /**< Data numbering plan */
-  TAPI_NETTEXT_NUMBER_PLAN_TELEX                             = 0x04,           /**< CTelex numbering plan */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_5              = 0x05,             /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_6              = 0x06,             /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_7              = 0x07,             /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_8              = 0x08,             /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_PRIVATE                         = 0x09,             /**<  Private numbering plan */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_10           = 0x0A,                       /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_11           = 0x0B,                       /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_12           = 0x0C,                       /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_13           = 0x0D,                       /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_14           = 0x0E,                       /**<  Reserved */
-  TAPI_NETTEXT_NUMBER_PLAN_RESERVED_15           = 0x0F,                       /**<  Reserved */
-} TelSmsIs637NumberPlan_t;
-
-/** @enum  TelSmsIs637SubAddressType_t
- * This enum defines the plan of address
- */
-typedef enum{
-  TAPI_NETTEXT_SUBADDR_NSAP                                      = 0x00,       /**< NSAP ( CCITT Recommendation X.213 or ISO 8348 AD2 ) */
-  TAPI_NETTEXT_SUBADDR_USER_SPECIFIED              = 0x01,     /**<  User-specified */
-} TelSmsIs637SubAddressType_t;
-
-// ********************************************************************//
-
-/**
- * This structure defines the different parameters of  CB configuration
- */
-typedef struct {
-       int bCBEnabled; /**< CB service state. If cb_enabled is true then cell broadcast service will be enabled and underlying modem will enable CB Channel to receiving CB messages. Otherwise CB service will be disabled, underlying modem will deactivate the CB channel. (enabled/disabled) */
-       unsigned char SelectedId; /**< CBMI Identifier selected (all or some)  */
-       unsigned char MsgIdMaxCount; /**< CB Channel List Max Count */
-       int MsgIdCount; /**< CB message ID count */
-       unsigned short MsgIDs[TAPI_NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX]; /**< CB message ID information */
-} TelSmsCbConfig_t;
-
-/**
- * This structure defines the properties of a dialing number
- * Type of Number, Numbering Plan Indicator, length and the actual number.
- */
-typedef struct {
-       unsigned int DialNumLen; /**< length of address. If Service center address is not set, then this will be zero */
-       TelSimTypeOfNum_t Ton; /**< Type of number*/
-       TelSimNumberingPlanIdentity_t Npi; /**<Numbering plan identification*/
-       unsigned char szDiallingNum[TAPI_SIM_SMSP_ADDRESS_LEN + 1]; /**< destination address. If Address not set, then set to 0xFF */
-} TelSmsAddressInfo_t;
-
-/**
- * This structure defines different fields involved in setting the parameters of
- * a particular sms in EFsmsp.
- */
-typedef struct {
-
-       unsigned char RecordIndex; /**< Index*/
-       unsigned char RecordLen; /**< SMS Parameter Record length*/
-       unsigned long AlphaIdLen; /**< Alpha id length */
-       char szAlphaId[TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX + 1]; /**< Alpha id .It is a unique identifier for each row/record in EFsmsp */
-       unsigned char ParamIndicator; /**< SMS parameter indicator is a 1 byte value. Each bit in this value indicates the presence/absence of the sms header parameters.If the parameter is present the corresponding bit value is set to 0.If the parameter is absent then it is set as 1.Refer 3GPP TS 31.02 :4.4.23 */
-       TelSmsAddressInfo_t TpDestAddr; /**< TP-destination address (TP-DA) */
-       TelSmsAddressInfo_t TpSvcCntrAddr; /**< TP-service center address */
-       unsigned short TpProtocolId; /**< TP-protocol Id */
-       unsigned short TpDataCodingScheme; /**< TP-data coding scheme */
-       unsigned short TpValidityPeriod; /**< TP-validity period */
-} TelSmsParams_t;
-
-/**
- * This structure defines the fields related to an Sms like SIM index, TPDU  and length
- */
-typedef struct {
-       unsigned char Sca[TAPI_SIM_SMSP_ADDRESS_LEN]; /**< Service Centre address - an optional parameter. If this parameter is not present, then this field will be Null.If present, the valid service centre address information is filled as per 3GPP TS23.040 9.1.2.5 Address fields */
-       int MsgLength; /**< Size of array szData (which is actual TPDU message) */
-       unsigned char szData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1]; /**<SMS TPDU message */
-} TelSmsDatapackageInfo_t;
-
-/**
- *This structure defines the data Related to SimIndex,MessageStatus and SMS Data Stored.
- */
-typedef struct {
-       int SimIndex; /**< Index where SMS is stored. */
-       TelSmsMsgStatus_t MsgStatus; /**< Message status.*/
-       TelSmsDatapackageInfo_t SmsData; /**<SMS message */
-} TelSmsData_t;
-
-/**
- * This structure defines the different parameters that are related to the message count
- *in a particular memory(Phone/SIM)
- */
-typedef struct {
-       unsigned int TotalCount; /**< Total count of messages stored in SIM*/
-       int UsedCount; /**< Stored message count in SIM in SIM*/
-       int IndexList[TAPI_NETTEXT_GSM_SMS_MSG_NUM_MAX]; /**< Message index list stored in SIM. And the maximum size of this array can be of totalCount.This array contains the list of index values in which the messages are stored.i.e. index_list[totalcount] = [2,3] denotes that indexs 2 and 3 are stored(valid) and others not(empty).*/
-} TelSmsStoredMsgCountInfo_t;
-
-/**
- * This structure defines a cell broadcast message.
- */
-typedef struct {
-
-       TelSmsCbMsgType_t CbMsgType; /**< Cell Broadcast  message type */
-       unsigned short Length; /**<Size of array szMsgData (which is actual TPDU message) */
-       char szMsgData[TAPI_NETTEXT_CB_PAGE_SIZE_MAX + 1]; /**<Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1]*/
-} TelSmsCbMsg_t;
-
-// ************************  CDMA Features  **************************//
-/**
- *  This structure defines cause code as an indication whether an SMS error has occurred and
- *  if so, whether the condition is considered temporary or permanent
- **/
-typedef struct {
-       unsigned char ReplySeqNumber; /**< Reply sequence number */
-       TelSmsIs637ErrorClass_t ErrClass; /**< Error report class */
-       unsigned char Cause; /**< Error cause identifier */
-} TelSmsIs637CauseCode_t;
-
-/**
- * This structure defines the parameters of address and its type
- */
-typedef struct {
-       TelSmsIs637DigitMode_t Digit; /**< Digit mode indicator (0x00:4bit_dtmf, 0x01:8bit_code) */
-       TelSmsIs637NumberMode_t NumberMode; /**< Number mode indicator (0x00:ANSI TI607, 0x01:Data network) */
-       TelSmsIs637NumberType_t NumberType; /**< Type of number */
-       TelSmsIs637NumberPlan_t NumberPlan; /**< Numbering plan */
-       unsigned char szAddrLength; /**< The number of CHARi */
-       unsigned char szAddress[TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS]; /**< The address digit or character */
-} TelSmsIs637Address_t;
-
-/**
- * This structure defines the parameters of subaddress of originator and destination
- */
-typedef struct {
-       TelSmsIs637SubAddressType_t SubType; /**< Subaddress type */
-       unsigned char Odd; /**< Odd/even indicator */
-       unsigned char szAddrLength; /**< The number of CHARi */
-       unsigned char szAddress[TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS]; /**< A subaddress octet */
-} TelSmsIs637SubAddress_t;
-
-/**
- * This structure defines the message center time stamp may be include
- * with SMS message sent from a message center
- */
-typedef struct {
-       unsigned int year; /**< Year - if the year is 2002, the year field contains 0x02 */
-       unsigned int month; /**< Month (1 ~ 12) */
-       unsigned int day; /**< Day (1 ~ 31) */
-       unsigned int hours; /**< Hours (0 ~ 23) */
-       unsigned int minutes; /**< Minute (0 ~ 59) */
-       unsigned int seconds; /**< Seconds (0 ~ 59) */
-} TelSmsTimeStamp_t;
-
-/**
- * The structure defines the parameter of SMS submit message
- */
-typedef struct {
-       TelSmsIs637Address_t DstAddr; /**< Destination address */
-       TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
-       unsigned short TeleService; /**< Teleservice Identifier */
-       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
-       unsigned char ReplySeqNumber; /**< Reply sequence number */
-       unsigned short MsgId; /**< Message identifier */
-       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
-       unsigned short MsgLength; /**< Message length */
-       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA]; /**< SMS user data */
-       TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute (not supported) */
-       unsigned char ValidityPeriodRel; /**< Validity period - Relative (not supported) */
-       TelSmsTimeStamp_t DeferredDelTimeAbs; /**< Deferred delivery time - Absolute */
-       unsigned char DeferredDelTimeRel; /**< Deferred delivery time - Relative */
-       TelSmsIs637Priority_t Priority; /**< Priority indicator */
-       TelSmsIs637Privacy_t Privacy; /**< Privacy indicator */
-       int bUserAckRequest; /**< User acknowledge request */
-       int bDeliveryAckRequest; /**< Delivery acknowledge request */
-       TelSmsIs637AlertPriority_t AlertPriority; /**< Alert priority of message */
-       TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
-       TelSmsIs637Address_t CallBackNumber; /**< Callback number address */
-} TelSmsIs637OutSubmit_t;
-
-/**
- * The structure defines the parameter of SMS acknowledgement message for submit
- */
-typedef struct {
-       TelSmsIs637Address_t DstAddr; /**< Destination address */
-       TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
-       unsigned short TeleService; /**< Teleservice Identifier */
-       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
-       unsigned char ReplySeqNumber; /**< Reply sequence number */
-       unsigned short MsgId; /**< Message identifier */
-       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
-       unsigned short MsgLength; /**< Message length */
-       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA]; /**< SMS user data */
-       unsigned char UserResponseCode; /**< User response code */
-} TelSmsIs637OutAck_t;
-
-/**
- * The structure defines the parameter of SMS cancellation message
- */
-typedef struct {
-       TelSmsIs637Address_t DstAddr; /**< Destination address */
-       TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
-       unsigned short TeleService; /**< Teleservice Identifier */
-       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
-       unsigned char ReplySeqNumber; /**< Reply sequence number */
-       unsigned short MsgId; /**< Message identifier */
-} TelSmsIs637OutCancel_t;
-
-/**
- * The structure defines the parameter of SMS devivery message
- */
-typedef struct {
-       TelSmsIs637Address_t OrigAddr; /**< Origination address */
-       TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
-       unsigned short TeleService; /**< Teleservice Identifier */
-       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
-       unsigned char ReplySeqNumber; /**< Reply sequence number */
-       unsigned short MsgId; /**< Message identifier */
-       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
-       unsigned short MsgLength; /**< Message length */
-       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
-       TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
-       TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute */
-       unsigned char ValidityPeriodRel; /**< Validity period - Relative */
-       TelSmsTimeStamp_t DeferredDelTimeAbs; /**< Deferred delivery time - Absolute (not supported) */
-       unsigned char DeferredDelTimeRel; /**< Deferred delivery time - Relative (not supported) */
-       TelSmsIs637Priority_t Priority; /**< Priority indicator */
-       TelSmsIs637Privacy_t Privacy; /**< Privacy indicator */
-       unsigned char NumMsg; /**< Number of voice mail (0-99) */
-       int bUserAckRequest; /**< User acknowledge request */
-       int bDeliveryAckRequest; /**< Delivery acknowledge request */
-       TelSmsIs637AlertPriority_t AlertPriorty; /**< Alert priority of message */
-       TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
-       TelSmsIs637Address_t CallBackNumer; /**< Callback number address */
-       TelSmsIs637MsgDisplayMode_t Display; /**< Message display mode */
-} TelSmsIs637InDeliver_t;
-
-/**
- * The structure defines the parameter of SMS acknowledge message for deliver
- */
-typedef struct {
-       TelSmsIs637Address_t OrigAddr; /**< Origination address */
-       TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
-       unsigned short TeleService; /**< Teleservice Identifier */
-       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
-       unsigned char ReplySeqNumber; /**< Reply sequence number */
-       unsigned short MsgId; /**< Message identifier */
-       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
-       unsigned short MsgLength; /**< Message length */
-       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
-       unsigned char UserResponseCode; /**< User response code */
-       TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
-} TelSmsIs637InAck_t;
-
-/**
- * The structure defines the parameter of SMS acknowledge message from message center
- */
-typedef struct {
-       TelSmsIs637Address_t OrigAddr; /**< Origination address */
-       TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
-       unsigned short TeleService; /**< Teleservice Identifier */
-       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
-       unsigned char ReplySeqNumber; /**< Reply sequence number */
-       unsigned short MsgId; /**< Message identifier */
-       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
-       unsigned short MsgLength; /**< Message length */
-       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
-       TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
-} TelSmsIs637InDeliverAck_t;
-
-/**
- * The structure defines the parameter of SMS broadcast message
- */
-typedef struct {
-       TelSmsBroadCastCategory_t ServiceCategory; /**< Broadcast service category */
-       unsigned short MsgId; /**< Message identifier */
-       int bBearerReplySeqRequest; /**< Bearer reply sequence request */
-       unsigned char ReplySeqNumber; /**< Reply sequence number */
-       unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
-       unsigned short MsgLength; /**< Message length */
-       unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
-       TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
-       TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute */
-       unsigned char ValidityPeriodRel; /**< Validity period - Relative */
-       TelSmsIs637Priority_t Priority; /**< Priority indicator */
-       TelSmsIs637AlertPriority_t AlertPriorty; /**< Alert priority of message */
-       TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
-       TelSmsIs637MsgDisplayMode_t Display; /**< Message display mode */
-} TelSmsIs637InBroadCast_t;
-
-/**
- * The structure defines the type of SMS message as union
- */
-typedef union {
-       TelSmsIs637OutSubmit_t OutSubmit; /**< Outgoing Submit message */
-       TelSmsIs637OutAck_t OutAck; /**< Outgoing Acknowledge message */
-       TelSmsIs637OutCancel_t OutCancel; /**< Outgoing Cancel message */
-       TelSmsIs637InDeliver_t InDeliver; /**< Incoming Delivery message */
-       TelSmsIs637InAck_t InAck; /**< Incoming Acknowledge message */
-       TelSmsIs637InDeliverAck_t InDeliverAck; /**< Incoming Delivery Acknowledge message */
-       TelSmsIs637InBroadCast_t InBc; /**< Incoming Broadcast message */
-} TelSmsMessage_t;
-
-/**
- * The structure defines the parameter of entire SMS message of each type
- */
-typedef struct {
-       int ParamMask; /**< Parameter ID mask */
-       TelSmsMsgType_t MsgType; /**< Message type */
-       TelSmsMessage_t MsgData; /**< Message data */
-} TelSmsMsgInfo_t;
-// ********************************************************************//
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif  // _TEL_NETTEXT_H_
-
-/**
- * @}
-*/
diff --git a/include/common/TelNetwork.h b/include/common/TelNetwork.h
deleted file mode 100644 (file)
index e439cc2..0000000
+++ /dev/null
@@ -1,586 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
-* @open
-* @ingroup     TelephonyAPI
-* @addtogroup  Network_TAPI    Network
-* @{
-*
-* @file TelNetwork.h
-
-     @brief This file serves as a "C" header file and defines structures for Tapi Network Services\n
-      It contains a sample set of constants, enums, structs that would be required by applications.
- */
-
-#ifndef _TEL_NETWORK_H_
-#define _TEL_NETWORK_H_
-
-#include <TapiCommon.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-#define TAPI_NETWORK_ORDER_MAX                                 5               /**< Maximum network order */
-#define TAPI_NETWORK_LIST_MAX                                  15              /**< Maximum network list */
-#define TAPI_NETWORK_NAME_LEN_MAX                              40              /**< Maximum network name or PLMN name length*/
-#define TAPI_NETWORK_SPN_LEN_MAX                               20              /**< Maximum network service provider name length */
-#define TAPI_PREFERRED_PLMN_RECORDS_MAX                        150             /**< Maximum record length for preferred plmn list*/
-#define TAPI_NETWORK_DISPLAY_INFO_ELEMENTS             4               /**< Maximum network Display info element length */
-#define TAPI_NETWORK_HOMEZONE_TAG_MAX_LEN              13              /**< Maximum Network  Home zone tag  length */
-#define TAPI_NETWORK_CS_DISP_INDEX                             0               /**< Maximum   Network CS display index length */
-#define TAPI_NETWORK_PS_DISP_INDEX                             1               /**< Maximum  Network PS display index  length */
-#define TAPI_NETWORK_SVC_DISP_INDEX                            2               /**< Maximum  Network SVC display index length */
-#define TAPI_NETWORK_ROAM_DISP_INDEX                   3               /**< Maximum  Network roaming display index length */
-#define TAPI_NETWORK_SUBS_SVC_NUM_MAX                  6               /**< Maximum number of the Subscriber's services */
-#define TAPI_NETWORK_SUBS_NUM_LEN_MAX                  40              /**< Maximum Subscriber Number Length */
-#define TAPI_NETWORK_SUBS_ALPHA_LEN_MAX                        16              /**< Maximum Subscriber Name Length */
-
-/**
- * @enum TelNetworkSelectionMode_t
- *  This enumeration defines the network selection modes.
- */
-typedef enum
-{
-       TAPI_NETWORK_SELECTIONMODE_AUTOMATIC,                           /**< Network selection is in Automatic selection mode*/
-       TAPI_NETWORK_SELECTIONMODE_MANUAL,                              /**< Network selection is in Manual selection mode */
-       TAPI_NETWORK_SELECTIONMODE_GLOBAL_AUTOMAITIC,   /**<Global Automatic */
-       TAPI_NETWORK_SELECTIONMODE_CDMA                 /**<CDMA selection*/
-} TelNetworkSelectionMode_t;
-
-/**
- * @enum TelNetworkSystemIdFormat_t
- * This enumeration defines the System ID Formats.
- */
-typedef enum
-{
-       TAPI_NETWORK_SYSID_FORMAT_SID,          /**< System ID - Format used  in CDMA. */
-       TAPI_NETWORK_SYSID_FORMAT_PLMN          /**< PLMN id - Format used in GSM/3G */
-}TelNetworkSystemIdFormat_t;
-
-/**
- * @enum TelNetworkServiceDomain_t
- * This enumeration defines the network service domains .
- */
-typedef enum
-{
-       TAPI_NETWORK_SERVICE_DOMAIN_COMBINED,           /**< This member sets the Circuit switch   and Packet Switch domain */
-       TAPI_NETWORK_SERVICE_DOMAIN_PS,                         /**< This member sets the Packet Switch service domain */
-       TAPI_NETWORK_SERVICE_DOMAIN_CS,                         /**< This member sets the Circuit Switch service domain */
-       TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC           /**< This member sets the service domain to Circuit Switch and Packet Switch or Circuit Switch or Packet Switch domain */
-} TelNetworkServiceDomain_t;
-
-/**
- * @enum TelNetworkMode_t
- * This enumeration defines the network modes.
- */
-typedef enum
-{
-       TAPI_NETWORK_MODE_NONE,                 /**< This member sets the emergency network mode */
-       TAPI_NETWORK_MODE_EMERGENCY,    /**< This member sets the emergency network mode*/
-       TAPI_NETWORK_MODE_AUTOMATIC,    /**< This member sets the automatic network mode. Based on OEM priority, network mode preference will be used */
-       TAPI_NETWORK_MODE_CDMA,                 /**< This member sets the network mode to CDMA */
-       TAPI_NETWORK_MODE_GSM,                  /**< This member sets the network mode to GSM */
-       TAPI_NETWORK_MODE_WCDMA,                /**< This member sets the network mode to WCDMA  */
-       TAPI_NETWORK_MODE_WLAN                  /**< This member sets the network mode to WLAN */
-}TelNetworkMode_t;
-
-/**
- * @enum TelNetworkServiceLevel_t
- * This enumeration defines the status of network service.
- */
-typedef enum
-{
-       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 */
-}TelNetworkServiceLevel_t;
-
-/**
- * @enum TelNetworkServiceLevel_t
- * This enumeration defines the service types of TAPI.
- */
-typedef enum
-{
-       TAPI_NETWORK_SERVICE_TYPE_NO_SVE,               /**< No service  (This enumeration is not applicable for OEM_TAPI_NW_select_network_req API) */
-       TAPI_NETWORK_SERVICE_TYPE_LIMITED,              /**< Limited service available in the camped network  (This enumeration is not applicable for OEM_TAPI_NW_select_network_req API) */
-       TAPI_NETWORK_SERVICE_TYPE_CS,                   /**< CS service available in the camped network */
-       TAPI_NETWORK_SERVICE_TYPE_PS,                   /**< PS service available in the camped network */
-       TAPI_NETWORK_SERVICE_TYPE_COMBINED              /**< Both CS and PS services available in the camped network */
-}TelNetworkServiceType_t;
-
-/**
- * @enum TelNetworkSystemType_t
- * This enumeration defines the system types of TAPI.
- */
-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 */
-       TAPI_NETWORK_SYSTEM_1X_EVDO_REV_A_HYBRID, /**< Available service is 1X and EV-DO revA */
-       TAPI_NETWORK_SYSTEM_EVDV,               /**< Available service is EV-DV */
-} TelNetworkSystemType_t;
-
-/**
- *  @enum TelNetworkBandPreferred_t
- * This enumeration defines the operations that can be done on network Band.
- */
-typedef enum
-{
-       TAPI_NETWORK_BAND_MODE_PREFERRED = 0x01,                 /**<  Preferred band. (If preferred Band is not available, then underlying modem can search on other bands) */
-       TAPI_NETWORK_BAND_MODE_ONLY = 0x02,                              /**<   This allows only particular band. */
-} TelNetworkBandPreferred_t;
-
-/**
- * @enum TelNetworkBand_t
- * This enumeration defines different network Bands.
- */
-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_GSM_850_1900     /**< This member sets the band to GSM 850_1900 */
-} TelNetworkBand_t;
-
-/**
- * @enum TelNetworkOperationCause_t
- * This enumeration defines different network operation cause.
- */
-typedef enum
-{
-       TAPI_NETWORK_NO_ERR = 0x00,                                     /**< There is no error for any network operation.  */
-       TAPI_NETWORK_OPERATION_FAILED,                          /**< There is an error for any network operation.  */
-       TAPI_NETWORK_PHONE_IN_USE_ERR,                          /**< This error will be returned when any network operation is tried while 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 any network option is tried when phone is in offline mode */
-       TAPI_NETWORK_CONFIG_SETTINGS_FAILURE_ERR,       /**< This error is sent when modem is unable to process the config settings information. */
-       TAPI_NETWORK_INTERNAL_FAILURE_ERR,                      /**< This error to indicate internal failure */
-       TAPI_NETWORK_MEMORY_FULL_ERR                            /**< This error is caused by memory full */
-} TelNetworkOperationCause_t;
-
-/**
-* @enum TelNetworkDayLightSavingAdj_t
-* This enumeration defines the day light saving adjustment time.
-*/
-typedef enum
-{
-       TAPI_NETWORK_DLS_ADJ_NO_ADJUSTMENT,             /**< No adjustment specified on day light saving */
-       TAPI_NETWORK_DLS_ADJ_PLUS_ONE_HOUR,             /**< Day light saving adjusted for one hour */
-       TAPI_NETWORK_DLS_PLUS_TWO_HOUR                  /**< Day light saving adjusted for two hours */
-}TelNetworkDayLightSavingAdj_t;
-
-
-/**
- * @enum TelNetworkPowerOnAttach_t
- * This enumeration defines operation that can be done on power on attach.
- */
-typedef enum
-{
-       TAPI_NETWORK_POWERON_ATTACH_DISABLE = 0x00,             /**< Network Power on attach  disable */
-       TAPI_NETWORK_POWERON_ATTACH_ENABLE = 0x01,              /**< Network Power on attach enable */
-} TelNetworkPowerOnAttach_t;
-
-/**
- * @enum TelNetworkPrefferedPlmnOp_t
- * This enumeration defines the operation that can be done on preferred PLMN.
- */
-typedef enum
-{
-       TAPI_NETWORK_PREF_PLMN_ADD=0x01,                        /**< Addition to  Network Preferred Plmn list*/
-       TAPI_NETWORK_PREF_PLMN_EDIT,                            /**< Edit the network Preferred Plmn list */
-       TAPI_NETWORK_PREF_PLMN_DELETE                           /**< Delete the entry to network Preferred Plmn list*/
-}TelNetworkPrefferedPlmnOp_t;
-
-typedef enum
-{
-       TAPI_NETWORK_NUM_TYPE_UNKNOWN,
-       TAPI_NETWORK_NUM_TYPE_INTERNATIONAL,
-       TAPI_NETWORK_NUM_TYPE_NATIONAL,
-       TAPI_NETWORK_NUM_TYPE_NETWORK,
-       TAPI_NETWORK_NUM_TYPE_DEDICATE,
-       TAPI_NETWORK_NUM_TYPE_OTHER = 0xFF
-}TelNetworkSubsNumType_t;
-
-typedef enum
-{
-       TAPI_NETWORK_NUM_PLAN_UNKNOWN = 0x00,
-       TAPI_NETWORK_NUM_PLAN_ISDN = 0x01,
-       TAPI_NETWORK_NUM_PLAN_DATA = 0x03,
-       TAPI_NETWORK_NUM_PLAN_TELEX = 0x04,
-       TAPI_NETWORK_NUM_PLAN_NATIONAL = 0x08,
-       TAPI_NETWORK_NUM_PLAN_PRIVATE = 0x09,
-       TAPI_NETWORK_NUM_PLAN_RSVD_CTS = 0x0B,
-       TAPI_NETWORK_NUM_PLAN_RSVD_EXT = 0x0F,
-       TAPI_NETWORK_NUM_PLAN_OTHER = 0xFF
-}TelNetworkSubsNumPlan_t;
-
-/**
- * @enum TelNetworkPowerOnAttach_t
- * This enumeration defines operation that can be done on power on attach.
- * It is used on CDMA.
- */
-typedef enum
-{
-       TAPI_NETWORK_SERVING_CARRIER_TEST = 0x00,                       /**< TestBed */
-       TAPI_NETWORK_SERVING_CARRIER_SKT,                                       /**< Korea SKT */
-       TAPI_NETWORK_SERVING_CARRIER_KTF,                                       /**< Korea KTF */
-       TAPI_NETWORK_SERVING_CARRIER_LGT,                                       /**< Korea LGT */
-       TAPI_NETWORK_SERVING_CARRIER_VERIZON = 0x11,            /**< US VERIZON */
-       TAPI_NETWORK_SERVING_CARRIER_SPRINT,                            /**< US SPRINT */
-       TAPI_NETWORK_SERVING_CARRIER_ALLTEL,                            /**< US ALLTEL */
-       TAPI_NETWORK_SERVING_CARRIER_METRO_PCS,                 /**< US METRO_PCS */
-       TAPI_NETWORK_SERVING_CARRIER_CELLULAR,                          /**< US CELLULAR */
-       TAPI_NETWORK_SERVING_CARRIER_CRIKET,                            /**< US CRIKET */
-       TAPI_NETWORK_SERVING_CARRIER_TELUS = 0x21,                      /**< CANADA TELUS */
-       TAPI_NETWORK_SERVING_CARRIER_BMC,                                       /**< CANADA BMC */
-       TAPI_NETWORK_SERVING_CARRIER_BWA,                                       /**< CANADA BWA */
-       TAPI_NETWORK_SERVING_CARRIER_CTC = 0x31,                        /**< CHINA CTC */
-       TAPI_NETWORK_SERVING_CARRIER_UNKNOWN = 0xFF             /**< SERVING NETWORK UNKNOWN */
-} TelNetworkServCarrierType_t;
-
-/**
- * @enum TelNetworkPlmnType_t
- * This structure defines Network Plmn type.
- */
-typedef enum
-{
-       TAPI_UNKNOWN_PLMN=0,                            /**< Network Plmn type Unknown */
-       TAPI_HOME_PLMN ,                                        /**< Network Plmn type Home Plmn */
-       TAPI_AVAILABLE_PLMN,                            /**< Network Plmn Available */
-       TAPI_FORBIDDEN_PLMN,                            /**< Network Plmn Forbidden */
-}TelNetworkPlmnType_t;
-
-/**
- * @enum TelNetworkHomeZoneCommand_t
- * This enumeration defines network home zone command.
- */
-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;
-
-/**
- * @enum TelNetworkHomeZone_t
- * This enumeration defines network home zone type.
- */
-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;
-
-/**
- * @enum TelNetworkNameDispCondition_t
- * This enumeration defines network name display condition type.
- */
-typedef enum
-{
-       TAPI_NETWORK_DISP_INVALID= 0x00,
-       TAPI_NETWORK_DISP_SPN = 0x01,
-       TAPI_NETWORK_DISP_PLMN = 0x02,
-       TAPI_NETWORK_DISP_SPN_PLMN = 0x03,
-}TelNetworkNameDispCondition_t;
-
-/**
- * @enum TelNetworkPrefNetType_t
- * This enumeration defines CDMA Preferred Network Type(CDMA only).
- */
-typedef enum
-{
-    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC = 0x01,               /**< 0x01 : AUTOMATIC */
-    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_A,                    /**<  0x02 : AUTOMATIC A */
-    TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_B,                    /**<  0x03 : AUTOMATIC B */
-    TAPI_NETWORK_PREF_NET_TYPE_HOME_ONLY,                      /**<  0x04 : HOME ONLY */
-    TAPI_NETWORK_PREF_NET_TYPE_ROAM_ONLY,                      /**<  0x05 : ROAM ONLY */
-} TelNetworkPrefNetType_t;
-
-/**
- * @enum TelNetworkPrlPrefOnly_t
- * This enumeration defines CDMA PRL Preferred Only field stored in the PRL(CDMA only).
- */
-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 Preferred Only Option */
-} TelNetworkPrlPrefOnly_t;
-
-/**
- * @enum TelNetworkCDMAHybridMode_t
- * This enumeration defines CDMA Hybrid Mode State(CDMA only).
- */
-typedef enum
-{
-    TAPI_NETWORK_CDMA_HYBRID = 0x01,   /**< 0x01 : HYBRID(1X + EVDO) */
-    TAPI_NETWORK_CDMA_1X_ONLY,         /**< 0x02 : 1X ONLY */
-    TAPI_NETWORK_CDMA_EVDO_ONLY,               /**< 0x03 : EVDO ONLY */
-}TelNetworkCDMAHybridMode_t;
-
-/**
- * This structure defines the network time and zone information.
- */
-typedef struct {
-       unsigned short Year; /**< Year information  */
-       unsigned short Month; /**< Month information */
-       unsigned short Day; /**< Day */
-       unsigned short Hour; /**< Hour */
-       unsigned short Minute; /**< Minute */
-       unsigned short Second; /**< Second */
-       unsigned short TimeZone; /**< Network time zone */
-       TelNetworkDayLightSavingAdj_t DaylightSave; /**< day light saving adjustment time */
-} TelNetworkTimeAndZone_t;
-
-/**
- * This structure defines the network system information.
- */
-typedef struct {
-       TelNetworkSystemType_t SystemType; /**< Network system technologies like GSM, CDMA, WCDMA, WLAN etc */
-       TelNetworkServiceType_t ServiceType; /**< Network service type - Cs, Ps or combined */
-       TelNetworkSystemIdFormat_t SysIdFormat; /**< SID or PLMN based on system type */
-       TelNetworkMode_t NetworkMode; /**< Network mode Information */
-       unsigned long SysId; /**< PLMN Information */
-       int bPlmnForbidden; /**< Forbidden PLMN or Not */
-       int bHome; /**< Home PLMN Or not */
-       int bEquivalentPlmn; /**< Equivalent PLMN Or not */
-       int bNetworkIdentityAvail; /**< Network Identity Available or not */
-       int bNetworkTimeAvail; /**< Network Time Available or not */
-       int bNetworkTimeZoneAvail; /**< Network Timezone Available or not */
-       int bNetworkDlsAvail; /**< Network DLS available or not */
-       char szSystemName[TAPI_NETWORK_NAME_LEN_MAX]; /**< PLMN Name or Network Name (Null terminated string) */
-       char szSpn[TAPI_NETWORK_SPN_LEN_MAX]; /**< Service Provider Name (Null Terminated string) */
-       TelNetworkTimeAndZone_t NetworkTimeZone; /**< If NetwotkTimezone present, then timezone value */
-       int bMncIncludesPcsDigit; /**< To determine whether PLMN is US PLMN or not */
-} TelNetworkSystemId_t;
-
-/**
- * This structure has information related to cdma system.
- */
-typedef struct {
-       TelNetworkServCarrierType_t carrier; /**< for CDMA, Optional */
-       unsigned short system_id; /**< for CDMA, Mandatory */
-       unsigned short network_id; /**< for CDMA, Mandatory */
-       unsigned short base_station_id; /**< for CDMA, Mandatory */
-       unsigned short base_station_latitude; /**< for CDMA, Mandatory */
-       unsigned short base_station_longitude; /**< for CDMA, Mandatory */
-       unsigned short registration_zone; /**< for CDMA, Optional */
-       unsigned short pilot_offset; /**< for CDMA, Optional */
-} TelNetworkCDMASysInfo_t;
-
-/**
- * This structure has network information.
- */
-typedef struct {
-       TelNetworkServiceLevel_t ServiceLevel; /**< Service level available( Full Service or Limited service etc) */
-       TelNetworkSystemId_t SysId; /**< System ID information */
-       int bRoaming; /**< Roaming PLMN or not*/
-       int bDisplaySpn; /**< Service Provider Name should be displayed or not */
-       int bDisplayRplmn; /**< Display of Registered PLMN required or not. */
-       unsigned short lac; /**< Location Area Code */
-       TelNetworkCDMASysInfo_t CdmaSysInfo; /**< CDMA System Information */
-} TelNetworkInfo_t;
-
-/**
- * This structure defines the network list.
- */
-typedef struct {
-       unsigned int NumOfNwAvailable; /**< Count for Network list */
-       TelNetworkSystemId_t SystemList[TAPI_NETWORK_LIST_MAX]; /**< List of Networks available */
-} TelNetworkList_t;
-
-/**
- * This structure defines the Radio information.
- */
-typedef struct {
-       unsigned short RxLevel; /**< Received radio signal level from the wireless stack.Radio signal strength indicator (RSSI) level.RSSI in positive dBm i.e. 75 means -75dBm.The valid range for AMPS:-110 to -89 dBm800 CDMA:-105 to -90 dBm1900 CDMA: -108 to -93 dBm GSM/WCDMA: -105 to -60 dBm */
-       unsigned short RxQuality; /**< Radio signal quality received from the wireless stack.  */
-       unsigned short RssiBar; /**< Signal bars stating the signal strength */
-} TelNetworkRadioInfo_t;
-
-/**
- * This structure defines the subscriber number information.
- */
-typedef struct {
-       TelNetworkSubsNumType_t type;
-       TelNetworkSubsNumPlan_t plan;
-       char number[TAPI_NETWORK_SUBS_NUM_LEN_MAX];
-       char name[TAPI_NETWORK_SUBS_ALPHA_LEN_MAX];
-} TelNetworkSubscriber_t;
-
-/**
- * This structure defines the subscriber number list.
- */
-typedef struct {
-       unsigned int NumOfService; /**< Count for Network list */
-       TelNetworkSubscriber_t SubsList[TAPI_NETWORK_SUBS_SVC_NUM_MAX]; /**< List of Networks available */
-} TelNetworkSubscriberList_t;
-
-/**
- *
- * This structure defines the preferred plmn information.
- */
-typedef struct {
-       unsigned char Index; /**< Network Preferred Plmn list index */
-       unsigned char Plmn[6]; /**< Network Preferred Plmn */
-       char network_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network Name  */
-       char service_provider_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Service provider name */
-       TelNetworkSystemType_t SystemType; /**< Network system type */
-} TelNetworkPrefferedPlmnInfo_t;
-
-/**
- *
- * This structure defines the preferred plmn list.
- */
-typedef struct {
-       unsigned int NumOfPreffPlmns; /**< Number of preferred plmns in the list */
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnRecord[TAPI_PREFERRED_PLMN_RECORDS_MAX]; /**< preferred plmns list */
-} TelNetworkPrefferedPlmnList_t;
-
-/**
- * This structure defines the network & time zone information.
- */
-typedef struct {
-       int bNetworkIdentityAvail; /* if network name is carried in mm information, this shall be set as TRUE */
-       int bNetworkTimeAvail; /* if this is TURE, networkTime&Zone has a meaning, otherwise it can be ignore */
-       int bNetworkTimeZoneAvail; /* if this is TRUE, only network timezone has a meaning, otherwise it can be ignore*/
-       int bNetworkDlsAvail; /* if true, Daylight saving adjustment is valid */
-       char ShortName[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network short name */
-       char LongName[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network Long name*/
-       TelNetworkTimeAndZone_t NetworkTimeZone; /**< Network Time Zone */
-       unsigned long SysId; /**< PLMN Information */
-} TelNetworkNitzInfo_t;
-
-/**
- *
- * This structure defines the location area code and cell id.
- */
-typedef struct {
-       unsigned short LocationAreaCode; /**< Network Location area code */
-       unsigned long CellId; /**< Network Cell Id */
-} TelNetworkLocationCellInfo_t;
-
-/**
- *
- * This structure defines the network status .
- */
-typedef struct {
-       unsigned char svctype; /**< Network svc type  */
-       unsigned char roaming; /**< Network roaming  */
-} TelNetworkStatus_t;
-
-/**
- *
- * This structure defines the network Cs,Ps status.
- */
-typedef struct {
-       unsigned char cstype; /**< Network Cs type  */
-       unsigned char pstype; /**< Network Ps type  */
-} TelNetworkCsPsStatus_t;
-
-/**
- *   TelNetworkIdentity_t
- * This structure defines the network identity.
- */
-typedef struct {
-       char network_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network Name  */
-       char service_provider_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Service provider name */
-       unsigned int plmn_id; /**< PLMN ID */
-       TelNetworkPlmnType_t type_of_plmn; /**< PLMN type */
-       TelNetworkSystemType_t access_technology; /**< Access technology  */
-} TelNetworkIdentity_t;
-
-/**
- *
- * This structure defines the network Plmn list.
- */
-typedef struct {
-       char networks_count; /**< Network Plmn count  */
-       TelNetworkIdentity_t network_list[TAPI_NETWORK_LIST_MAX]; /**< Network list  */
-} TelNetworkPlmnList_t;
-
-/**
- *
- * This structure defines the network display info.
- */
-typedef struct {
-       int DisplayInfo[TAPI_NETWORK_DISPLAY_INFO_ELEMENTS]; /**< Network display info  */
-} TelNetworkDisplayInfo_t;
-
-typedef struct {
-       TelNetworkNameDispCondition_t DispCondition; /*Display condition of SPN & PLMN*/
-       unsigned char Spn[TAPI_NETWORK_SPN_LEN_MAX + 1]; /*Spn value*/
-       unsigned char Plmn[TAPI_NETWORK_NAME_LEN_MAX + 1]; /*PLMN value,  In 2G case if DispPlmn is true and the PLMN value is null then Network module has to display registered PLMN*/
-} TelNetworkSpnPlmnDisplayInfo_t;
-
-/**
- *  * @struct TelNetworkSpnMccMncInfo_t
- * This structure defines the network Spn, Mcc and Mnc info.
- */
-typedef struct {
-       int mcc; /**< Network mcc  */
-       int mnc; /**< Network Mnc  */
-       char bDispCondition; /**<Display condition */
-       char short_network_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network short Name  */
-       char spn_name[TAPI_NETWORK_NAME_LEN_MAX]; /**< Network spn Name  */
-} TelNetworkSpnMccMncInfo_t;
-
-/**
- * @struct TelNetworkPrlPrefOnly_t
- * This structure defines CDMA Preferred Network Setting(CDMA only).
- */
-typedef struct {
-       TelNetworkPrefNetType_t pref_net_type; /**< CDMA Network Preferred Type */
-       TelNetworkPrlPrefOnly_t prl_pref_only; /**< CDMA PRL Preferred Only */
-} TelNetworkRoamingMode_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _TEL_NETWORK_H_
-
-/**
-* @}
-*/
diff --git a/include/common/TelPower.h b/include/common/TelPower.h
deleted file mode 100644 (file)
index ccb02ea..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup            TelephonyAPI
- * @addtogroup         POWER_TAPI      POWER
- * @{
- *
- * These APIs allow an application to accomplish the following services: @n
- * - Get current phone power status,  @n
- * - Reset the phone power (on / off), @n
- * - Get the Display Icon Information. @n
- */
-
-#ifndef _TEL_POWER_H_
-#define _TEL_POWER_H_
-
-#include <TelDefines.h>
-#include <TelUtility.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * This defines the phone power reset commands.
- */
-typedef enum {
-       TAPI_PHONE_POWER_OFF = 0, TAPI_PHONE_POWER_ON, TAPI_PHONE_POWER_RESET,
-} tapi_power_phone_cmd_t;
-
-/**
- * This defines the phone power status values.
- */
-typedef enum {
-       TAPI_PHONE_POWER_STATUS_OFF = 0, TAPI_PHONE_POWER_STATUS_ON
-} tapi_power_phone_power_status_t;
-
-/**
- * Use to Enter or Leave Flight Mode.
- *
- */
-typedef enum {
-       TAPI_POWER_FLIGHT_MODE_ENTER = 0x01, /**< ONLINE OFF */
-       TAPI_POWER_FLIGHT_MODE_LEAVE, /**< ONLINE ON */
-       TAPI_POWER_FLIGHT_MODE_MAX
-} tapi_power_flight_mode_type_t;
-
-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
-} tapi_power_flight_mode_resp_type_t;
-
-/**
- * This enum defines the phone battery status levels.
- *
- * 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
- */
-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
-
-#endif /* _TEL_POWER_H_ */
-
-/**
- * @}
- */
diff --git a/include/common/TelSat.h b/include/common/TelSat.h
deleted file mode 100644 (file)
index 505ed28..0000000
+++ /dev/null
@@ -1,768 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
-* @open
-* @ingroup             TelephonyAPI
-* @addtogroup  SAT_TAPI        SAT
-* @{
-*
-* @file TelSat.h
-
-     @brief This file serves as a "C" header file defines structures for Telephony SAT Services. \n
-      It contains a sample set of constants, enums, structs that would be required by applications.
-
-
- */
-
-#ifndef _TEL_SAT_H_
-#define _TEL_SAT_H_
-
-#include <TelDefines.h>
-#include <TelCall.h>
-#include <TelSs.h>
-#include <TelSatObj.h>
-#include <TelSatProactvCmd.h>
-#include <TelSatEnvelope.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-#define TAPI_SAT_DEF_TITLE_LEN_MAX                     50 /**< max length for Menu Title */
-#define TAPI_SAT_DEF_ITEM_STR_LEN_MAX          50 /**< max length for Menu Item  */
-#define TAPI_SAT_DEF_TEXT_STRING_LEN_MAX       500 /**< max length for Text String  */
-#define TAPI_SAT_DEF_BIT_MASK_CONTACT          0x01 /**< Bit Mask for Contact */
-#define TAPI_SAT_DEF_BIT_MASK_MSG                      0x02 /**< Bit Mask for Msg */
-#define TAPI_SAT_DEF_BIT_MASK_OTHER                    0x04 /**< Bit Mask for Psh */
-#define TAPI_SAT_REFRESH_FILE_LIST                     20 /**< Refresh File List*/
-#define TAPI_SAT_DEF_SS_LEN_MAX             250
-#define TAPI_SAT_DEF_USSD_LEN_MAX           250
-
-//     Telephony UI USER CONFIRM TYPE
-/**
- * @enum TelSatUiUserConfirmType_t
- * This enumeration defines the UI User Confirm Type.
- */
-typedef enum
-{
-       TAPI_SAT_USER_CONFIRM_YES,                                              /**<This Enum Informs That user confirms yes */
-       TAPI_SAT_USER_CONFIRM_NO_OR_CANCEL,                             /**<This enum informs that user confirms no/cancel */
-       TAPI_SAT_USER_CONFIRM_HELP_INFO,                                /**<This enum informs that user wants help information */
-       TAPI_SAT_USER_CONFIRM_END,                                              /**<This enum informs that user confirms end */
-       TAPI_SAT_USER_CONFIRM_TIMEOUT,                                  /**<This enum informs that user did not respond */
-}TelSatUiUserConfirmType_t;
-
-//     Telephony UI INKEY TYPE
-/**
- * @enum TelSatUiInkeyYesNoCaseType_t
- * This enumeration defines the UI Inkey Type Yes or No.
- */
-typedef enum
-{
-       TAPI_SAT_INKEY_CONFIRM_NO                               = 0x00,                 /**<No*/
-       TAPI_SAT_INKEY_CONFIRM_YES                              = 0x01,                 /**<Yes*/
-}TelSatUiInkeyYesNoCaseType_t;
-
-//     Telephony UI DISPLAY STATUS
-/**
- * @enum TelSatUiDisplayStatusType_t
- * This enumeration defines the UI Display Status.
- */
-typedef enum
-{
-       TAPI_SAT_DISPLAY_SUCCESS                                = 0x00,                                 /**<This enum informs  UI display success*/
-       TAPI_SAT_DISPLAY_FAIL                                   = 0x01,                                 /**<This enum informs  UI display failure*/
-}TelSatUiDisplayStatusType_t;
-
-//     TELEPHONY REFRESH APPLICATION TYPE
-/**
- * @enum TelSatRefreshAppType_t
- * This enumeration defines the Refresh Application Type.
- */
- 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
-/**
- * @enum TelSatCommandPerformResultType_t
- * This enumeration defines the Result of Proactive Command execution.
- */
-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
-/**
- * @enum TelSatCallCtrlType_t
- * This enumeration defines Call Control Type.
- */
-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
-/**
- * This structure defines the user confirmation data.
- */
-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
-/**
- * This structure defines the character data for sat engine data structure.
- */
-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
-/**
- * This structure defines the main menu title to check sat menu.
- */
-typedef struct
-{
-       int                             bIsMainMenuPresent;             /**<flag to check sat main menu existence*/
-       TelSatTextInfo_t        mainMenuTitle;                  /**<main menu title data*/
-}TelSatMainMenuTitleInfo_t;
-
-//     Telephony DISPLAY TEXT DATA
-/**
- * This structure defines the display text proactive command for sat ui.
- */
-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 display */
-       int                                                     bIsPriorityHigh;                        /**<indicates whether the text is to be displayed if some other app is using the screen.*/
-       int                                                     bIsUserRespRequired;            /**<indicates whether user response required or Not*/
-       TelSatIconIdentifierInfo_t      iconId;                                         /**< Icon Identifier */
-}TelSatDisplayTextInd_t;
-
-//     Telephony INKEY DATA
-/**
- * This structure defines the get inkey proactive command data for sat ui.
- */
-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 screen*/
-       unsigned int                                    duration;                               /**<the duration of display*/
-       TelSatIconIdentifierInfo_t              iconId;                                 /**<Icon Identifier*/
-}TelSatGetInkeyInd_t;
-
-//     Telephony GET INPUT DATA
-/**
- * This structure defines the get input proactive command data for sat ui.
- */
-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;   /**<flag for help info request */
-       int                                                     bIsEchoInput;                   /**<indicates whether to show input data on screen or not*/
-       TelSatTextInfo_t                                text;                                   /**<character data to display on 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
-/**
- * This structure defines the play tone proactive command data for application.
- */
-typedef struct
-{
-       int                                             commandId;      /**<Proactive Command Number sent by USIM*/
-       TelSatTextInfo_t                        text;           /**<character data to display on screen*/
-       TelSatToneInfo_t                        tone;           /**<tone info   */
-       TelSatDurationInfo_t            duration;       /**<the duration for playing tone*/
-       TelSatIconIdentifierInfo_t      iconId;         /**<Icon Identifier*/
-}TelSatPlayToneInd_t;
-
-//     Telephony SEND SMS DATA
-/**
- * This structure defines the send sms proactive command data for sat ui.
- */
-typedef struct
-{
-       int                                             commandId;              /**<Proactive Command Number sent by USIM*/
-       TelSatTextInfo_t                        text;                   /**<character data to display on screen*/
-       TelSatIconIdentifierInfo_t      iconId;                 /**<Icon Identifier*/
-}TelSatSendSmsIndUiInfo_t;
-
-//     Telephony  SEND SS DATA
-/**
- * This structure defines the send ss proactive command data for sat ui.
- */
-typedef struct
-{
-       int                                             commandId;              /**<Proactive Command Number sent by USIM*/
-       TelSatTextInfo_t                        text;                   /**<character data to display on screen*/
-       TelSatIconIdentifierInfo_t      iconId;                 /**<Icon Identifier*/
-} TelSatSendSsIndUiInfo_t;
-
-//     Telephony SEND USSD DATA
-/**
- * This structure defines the send ussd proactive command data for sat ui.
- */
-typedef struct
-{
-       int                                             commandId;              /**<Proactive Command Number sent by USIM*/
-       TelSatTextInfo_t                        text;                   /**<character data to display on screen*/
-       TelSatIconIdentifierInfo_t      iconId;                 /**<Icon Identifier*/
-}TelSatSendUssdIndUiInfo_t;
-
-//     Telephony SEND DTMF DATA
-/**
- * This structure defines the send dtmf proactive command data for sat ui.
- */
-typedef struct
-{
-       int                                             commandId;              /**<Proactive Command Number sent by USIM*/
-       TelSatTextInfo_t                        text;                   /**<character data to display on screen*/
-       TelSatIconIdentifierInfo_t      iconId;                 /**<Icon Identifier*/
-}TelSatSendDtmfIndUiInfo_t;
-
-//     Telephony LAUNCH BROWSER  DATA
-/**
- * This structure defines the launch browser proactive command data for sat ui.
- */
-typedef struct
-{
-       int                                             commandId;              /**<Proactive Command Number sent by USIM*/
-       TelSatTextInfo_t                        text;                   /**<character data to display on screen*/
-       TelSatIconIdentifierInfo_t      iconId;                 /**<Icon Identifier*/
-}TelSatLaunchBrowserIndUiInfo_t;
-
-//     Telephony SETUP CALL DATA
-/**
- * This structure defines the setup call proactive command data for sat ui.
- */
-typedef struct
-{
-       int                                             commandId;              /**<Proactive Command Number sent by USIM*/
-       TelSatTextInfo_t                        text;                   /**<character data to display on screen*/
-       TelSatIconIdentifierInfo_t      iconId;                 /**<Icon Identifier*/
-} TelSatSetupCallIndUiInfo_t;
-
-//     Telephony MENU ITEM DATA FOR SETUP MENU
-/**
- * This structure defines the menu item info for setup menu.
- */
-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 user selected*/
-}TelSatMenuInfo_t;
-
-//     Telephony SETUP MENU INFO
-/**
- * This structure defines the sat main menu info.
- */
-typedef struct
-{
-       int commandId;  /**<Proactive Command Number sent by USIM*/
-       int     bIsMainMenuPresent;
-       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 help information request */
-       int     bIsUpdatedSatMainMenu;
-       TelSatIconIdentifierInfo_t iconId;      /**<Icon Identifier*/
-       TelSatIconIdentifierListInfo_t iconIdList;      /**<List of Icon Identifiers*/
-}TelSatSetupMenuInfo_t;
-
-//     Telephony SELECT ITEM DATA
-/**
- * This structure defines the select item proactive command data for sat ui.
- */
-typedef struct
-{
-       int                                                     commandId;                                                                      /**<Proactive Command Number sent by USIM*/
-       int                                                     bIsHelpInfoAvailable;                                           /**<flag for help information request*/
-       TelSatTextInfo_t                                text;                                                                           /**<menu title text*/
-       char                                                    defaultItemIndex;                                                       /**<selected default item - default value is 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
-/**
- * This structure defines the setup idle mode text proactive command for idle application.
- */
-typedef struct
-{
-       int                                             commandId;                      /**<Proactive Command Number sent by USIM*/
-       TelSatTextInfo_t                        text;                           /**<character data to display on screen*/
-       TelSatIconIdentifierInfo_t      iconId;
-} TelSatSetupIdleModeTextInd_t;
-
-//     Telephony REFRESH DATA
-/**
- * This structure defines the refresh proactive command data for sat ui.
- */
-typedef struct
-{
-       int                                                     commandId;                      /**<Proactive Command Number sent by USIM*/
-       TelSatCmdQualiRefresh_t         refreshType;            /**<refresh mode*/
-}TelSatRefreshIndUiInfo_t;
-
-//     Telephony REFRESH DATA
-/**
- * This structure defines the refresh proactive command data for applications which are concerned with files resident on USIM .
- */
-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
-/**
- * This structure defines the data objects to indicate to sat ui, the end of execution of a specific proactive command by other application.
- */
-typedef struct
-{
-       int                                                                     commandId;                      /**<Proactive Command Number sent by USIM*/
-       char                                                                    commandType;            /**< Command Type*/
-       TelSatCommandPerformResultType_t                result;                         /**<result of command execution by application*/
-}TelSatProactiveCmdEndIndInfo_t;
-
-//     Telephony SEND SMS DATA
-/**
- * This structure defines the send sms proactive command data for sms application.
- */
-typedef struct
-{
-       int                                     commandId;                              /**<Proactive Command Number sent by USIM*/
-       int                                     bIsPackingRequired;             /**<flag to check if packing required for sms tpdu*/
-       TelSatAddressInfo_t     address;                                /**<destination address*/
-       TelSatSmsTpduInfo_t     smsTpdu;                                /**<SMS TPDU data*/
-} TelSatSendSmsIndSmsData_t;
-
-//     Telephony SEND SS DATA
-/**
- * This structure defines the send ss proactive command data for ss application.
- */
-typedef struct
-{
-       int                                     commandId;              /**<Proactive Command Number sent by USIM*/
-       unsigned short          ssStringLen;
-       unsigned char           ssString[TAPI_SAT_DEF_SS_LEN_MAX+1];
-}TelSatSendSsIndSsData_t;
-
-//     Telephony USSD DATA
-/**
- * This structure defines the send ussd proactive command data for ussd application.
- */
-typedef struct
-{
-       int                     commandId;              /**<Proactive Command Number sent by USIM*/
-       unsigned char           rawDcs;                 /**<data coding scheme*/
-       unsigned short          ussdStringLen;
-       unsigned char           ussdString[TAPI_SAT_DEF_USSD_LEN_MAX+1];
-}TelSatSendUssdIndUssdData_t;
-
-//     Telephony SEND DTMF DATA
-/**
- * This structure defines the send dtmf proactive command data for dtmf application.
- */
-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
-/**
- * This structure defines the setup call proactive command data for call application.
- */
-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 call application*/
-}TelSatSetupCallIndCallData_t;
-
-//     Telephony LAUNCH BROWSER DATA
-/**
- * This structure defines the launch browser proactive command data for browser application.
- */
-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, etc*/
-}TelSatLaunchBrowserIndBrowserData_t;
-
-//     Telephony PROVIDE LOCAL INFO DATA
-/**
- * This structure defines the provide local info proactive command data for application.
- */
-typedef struct
-{
-       int commandId;                                                                          /**<Proactive Command Number sent by USIM*/
-       TelSatCmdQualiProvideLocalInfo_t localInfoType;         /**<Provide Local Information Type*/
-}TelSatProvideLocalInfoInd_t;
-
-//     Telephony LANGUAGE NOTIFICATION DATA
-/**
- * This structure defines the language notification proactive command data for application.
- */
-typedef struct
-{
-       int                                                     commandId;                                              /**<Proactive Command Number sent by USIM*/
-       int                                                     bSpecificLanguageNotification;  /**<flag for checking specific language notification. if FALSE, non-specific language notification      */
-       TelSatLanguageInfo_t                    language;                                       /**<language info from USIM application */
-}TelSatLanguageNotiInfoInd_t;
-
-//     Telephony PLAY TONE RETURN INFO
-/**
- * This structure defines the return result data for Play Tone proactive command.
- */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**<result response value*/
-}TelSatSetupMenuRetInfo_t;
-
-//     Telephony REFRESH RETURN INFO
-/**
- * This structure defines the return result data for refresh proactive command.
- */
-typedef struct
-{
-       TelSatRefreshAppType_t  appType;                        /**<application type*/
-       TelSatResultType_t              resp;                           /**<result response value*/
-}TelSatRefreshRetInfo_t;
-
-//     Telephony CALL RETURN INFO
-/**
- * This structure defines the return result data for setup call proactive command.
- */
-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
-/**
- * This structure defines the return result data for send ss proactive command.
- */
-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
-/**
- * This structure defines the return result data for send ussd proactive command.
- */
-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
-/**
- * This structure defines the return result data for send sms proactive command.
- */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**<result response value*/
-}TelSatSmsRetInfo_t;
-
-//     Telephony DTMF RETUEN INFO
-/**
- * This structure defines the return result data for send dtmf proactive command.
- */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**<result response value*/
-}TelSatDtmfRetInfo_t;
-
-//     Telephony BROWSER RETURN INFO
-/**
- * This structure defines the return result data for launch browser proactive command.
- */
-typedef struct
-{
-       TelSatResultType_t                                      resp;                   /**<result response value*/
-       TelSatLaunchBrowserProblemType_t    browserProblem;     /**<specific browser problem*/
-}TelSatBrowserRetInfo_t;
-
-//     Telephony SETUP IDLE MODE TEXT RETURN INFO
-/**
- * This structure defines the return result data for setup idle mode text proactive command.
- */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**<result response value*/
-}TelSatIdleTextRetInfo_t;
-
-//     Telephony PLAY TONE RETURN INFO
-/**
- * This structure defines the return result data for Play Tone proactive command.
- */
-typedef struct
-{
-       TelSatResultType_t      resp;                   /**<result response value*/
-}TelSatPlayToneRetInfo_t;
-
-//     Telephony  PROVIDE LOCAL INFO RETURN INFO
-/**
- * This structure defines the return result data for setup idle mode text proactive command.
- */
-typedef struct
-{
-       TelSatResultType_t                                      resp;                   /**<result response value*/
-       int                                                             bOtherInfo;             /**<flag to check whether other information are required or not */
-       TelSatCmdQualiProvideLocalInfo_t        infoType;               /**<local info type - e.g. time zone or language info, etc      */
-       union
-       {
-               TelSatDataTimeZoneInfo_t                timeZoneInfo;   /**<    current time zone info  */
-               TelSatLanguageInfo_t                    languageInfo;   /**<    current ME language setting info        */
-       }u;                                                                                                     /**<    Union*/
-}TelSatProvideLocalRetInfo_t;
-
-//     Telephony LANGUAGE NOTI RETURN INFO
-/**
- * This structure defines the return result data for setup idle mode text proactive command.
- */
-typedef struct
-       {
-               TelSatResultType_t               resp;                          /**<result response value*/
-       }TelSatLanguageNotiRetInfo_t;
-
-//     Telephony DISPLAY TEXT RETURN INFO
-/**
- * This structure defines the return result data for setup idle mode text proactive command.
- */
-typedef struct
-       {
-               TelSatResultType_t               resp;                          /**<result response value*/
-               TelSatMeProblemType_t    meProblem;                     /**<Me Problem Type */
-       }TelSatDiplayTextRetInfo_t;
-
-//     Telephony APPLICATIONS RETURN DATA
-/**
- * This structure defines the common return result data for applications proactive command.
- */
-typedef struct
-{
-       TelSatCommandType_t     commandType;                                            /**<Proactive Command type*/
-       int commandId;                                                                                  /**<Proactive Command Number sent by USIM*/
-       union
-               {
-                       TelSatSetupMenuRetInfo_t        setupMenu;                      /**<result response value for setup menu*/
-                       TelSatRefreshRetInfo_t          refresh;                                /**<result response value for refresh*/
-                       TelSatCallRetInfo_t                     setupCall;                              /**<result response value for setup call*/
-                       TelSatSsRetInfo_t                       sendSs;                                 /**<result response value for send ss*/
-                       TelSatUssdRetInfo_t                     sendUssd;                               /**<result response value for send ussd*/
-                       TelSatSmsRetInfo_t                      sendSms;                                /**<result response value for send sms*/
-                       TelSatDtmfRetInfo_t                     sendDtmf;                               /**<result response value for send dtmf*/
-                       TelSatBrowserRetInfo_t          launchBrowser;                  /**<result response value for launch browser*/
-                       TelSatIdleTextRetInfo_t         setupIdleModeText;              /**<result response value for setup idle mode text*/
-                       TelSatLanguageNotiRetInfo_t     languageNoti;                   /**<result response value for language notification*/
-                       TelSatProvideLocalRetInfo_t provideLocalInfo;           /**<result response value for provide local info*/
-                       TelSatDiplayTextRetInfo_t   displayText;                        /**<result response value for dsiplay text*/
-                       TelSatPlayToneRetInfo_t     playTone;                           /**<result response value for play tone*/
-               }appsRet;                                                                                               /**< common union result value */
-}TelSatAppsRetInfo_t;
-
-//     Telephony CALL CONTROL CONFIRM  DATA FOR CALL
-/**
- * This structure defines the call control confirm data for call.
- */
-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
-/**
- * This structure defines the call control confirm data for ss.
- */
-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
-/**
- * This structure defines the call control confirm data for ussd.
- */
-typedef struct
-{
-       TelSatTextInfo_t                ussdString;                     /**< ussd destination address*/
-} TelSatCallCtrlIndUssdData_t;
-
-//     Telephony READ FILE REQUEST DATA
-/**
- * This structure defines the common call control confirm data.
- */
-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*/
-} TelSatCallCtrlIndData_t;
-
-//     Telephony MO SMS CONTROL CONFIRMATION DATA
-/**
- * This structure defines the mo sms control confirm data.
- */
-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
-/**
- * This structure defines the Event List Info.
- */
-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;
-
-/**
- * This is the structure to be used by the Application to send envelope/event download data.
- * This contains the data structures to be used to send any envelope/event download data.
- */
-typedef struct
-{
-       TelSatEventDownloadType_t                                       eventDownloadType;                              /**<    eventDownload Type      */
-
-       union
-       {
-               int                                                                     bIdleScreenAvailable;                   /**<flag to specify whether Idle Screen is Available or not*/
-               TelSatLanguageSelectionEventReqInfo_t   languageSelectionEventReqInfo;  /**<Selected Language Information*/
-               TelSatBrowserTerminationEventReqInfo_t  browserTerminationEventReqInfo; /**<BrowserTermination Event Information        */
-               TelSatDataAvailableEventReqInfo_t               dataAvailableEventReqInfo;              /**<dataAvailableEventReqInfo   */
-               TelSatChannelStatusEventReqInfo_t               channelStatusEventReqInfo;              /**<channelStatusEventReqInfo   */
-       } u;                                                                                                                                            /**<Union*/
-} TelSatEventDownloadReqInfo_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TEL_SAT_H_ */
-
-/**
-* @}
-*/
diff --git a/include/common/TelSatEnvelope.h b/include/common/TelSatEnvelope.h
deleted file mode 100644 (file)
index 0232bff..0000000
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
-* @open
-* @ingroup             TelephonyAPI
-* @addtogroup  SAT_TAPI        SAT
-* @{
-*
-* @file TelSatEnvelope.h
-
-     @brief This file serves as a "C" header file defines structures for Tapi Sat envelope command Services. \n
-      It contains a sample set of constants, enums, structs that would be required by applications.
- */
-
-#ifndef _TEL_SAT_ENVELOPE_H_
-#define _TEL_SAT_ENVELOPE_H_
-
-#include <TelSatObj.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @enum TelSatCallType_t
- * This enum indicates the SAT call type
- */
-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;
-
-/**
- * @enum TelSatCallCtrlResultType_t
- * This enum indicates the result of call control by SIM.
- */
-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;
-
-/**
- * @enum TelSatEnvelopeResp_t
- * This enum indicates the general result of sending an envelope command to USIM.
- */
-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;
-
-//     8.      MENU SELECTION
-/**
- * This structure contains the data objects for MENU SELECTION envelope.
- */
-typedef struct
-{
-       unsigned char           itemIdentifier;         /**<    menu selection item identifier  */
-       int                             bIsHelpRequested;       /**<    flag to check whether help information required or not  */
-} TelSatMenuSelectionReqInfo_t;
-
-//     9.1 CALL CONTROL BY SIM
-/**
- * This struct contains the data objects for Call Control result data sent by USIM.
- */
-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 parameter1     */
-       TelSatCapaConfigParamInfo_t             ccp2;                           /**<    capability configuration parameter2     */
-}TelSatVoiceCallCtrlIndInfo_t;
-
-/**
- * This struct contains SAT ss control result data sent by USIM.
- */
-typedef struct
-{
-       TelSatSsStringInfo_t                    ssString;                       /**<    ss number       */
-       TelSatSubAddressInfo_t                  subAddress;                     /**<    ss sub address */
-       TelSatBcRepeatIndicatorType_t   bcRepeatIndicator;      /**<    bc repeat indicator     */
-       TelSatCapaConfigParamInfo_t             ccp1;                           /**<    capability configuration parameter1     */
-       TelSatCapaConfigParamInfo_t             ccp2;                           /**<    capability configuration parameter2     */
-}TelSatSsCtrlIndInfo_t;
-
-/**
- * This struct contains SAT mo SMS control configuration data
- */
-typedef struct
-{
-       TelSatAddressInfo_t             rpDestAddress;  /**<    sms control rp destination address      */
-       TelSatAddressInfo_t             tpDestAddress;  /**<    sms control tp destination address      */
-} TelSatMoSmsCtrlIndInfo_t;
-
-/**
- * This struct contains SAT call control configuration data
- */
-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           */
-} TelSatCallCtrlIndInfo_t;
-
-//     9.2 MO SHORT MESSAGE CONTROL BY SIM RESULT
-/**
- * This struct contains SAT mo ss control request data
- */
- 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
-/**
- * This struct contains SAT user activity event request data
- */
-typedef struct
-{
-       TelSatEventListInfo_t                           eventList;                      /**<    event List      */
-       TelSatDeviceIdentitiesInfo_t            deviceIdentities;       /**<    device identities info  */
-
-} TelSatUserActivityEventReqInfo_t;
-
-//     11.6 EVENT DOWNLOAD - IDLE SCREEN AVAILABLE EVENT
-/**
- * This structure contains the data objects for IDLE SCREEN AVAILABLE event download.
- */
-typedef struct
-{
-       TelSatEventDownloadType_t       eventData;      /**<    event type      */
-} TelSatIdleScreenAvailableEventReqInfo_t;
-
-//     11.8 EVENT DOWNLOAD - LANGUAGE SELECTION EVENT
-/**
- * This structure contains the data objects for LANGUAGE SELECTION event download.
- */
-typedef struct
-{
-       TelSatLanguageType_t     language;              /**<    selected language info  */
-} TelSatLanguageSelectionEventReqInfo_t;
-
-//     11.9 EVENT DOWNLOAD - BROWSER TERMINATION EVENT
-/**
- * This structure contains the data objects for BROWSER TERMINATION event download.
- */
-typedef struct
-{
-       TelSatBrowserTerminationCauseType_t             browserTerminationCause;        /**<    browser Termination Cause       */
-} TelSatBrowserTerminationEventReqInfo_t;
-
-//     11.10 EVENT DOWNLOAD - DATA AVAILABLE EVENT
-/**
- * This struct contains SAT data available event request data
- */
-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
-/**
- * This struct contains SAT channel status even request data
- */
-typedef struct
-{
-       TelSatEventListInfo_t                   eventList;                      /**<    event list      */
-       TelSatDeviceIdentitiesInfo_t    deviceIdentities;       /**<    device identities info  */
-       TelSatChannelStatusInfo_t               channelStatus;          /**<    channel Status  */
-} TelSatChannelStatusEventReqInfo_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TEL_SAT_ENVELOPE_H_ */
-
-/**
- * @}
- */
diff --git a/include/common/TelSatObj.h b/include/common/TelSatObj.h
deleted file mode 100644 (file)
index 43e95db..0000000
+++ /dev/null
@@ -1,1399 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup         SAT_TAPI        SAT
- * @{
- *
- * @file TelSatObj.h
-
- @brief This file serves as a "C" header file defines structures for Telephony SAT Services. \n
- It contains a sample set of constants, enums, structs that would be required by applications.
- */
-
-#ifndef _TEL_SAT_OBJ_H_
-#define _TEL_SAT_OBJ_H_
-
-#include <TelDefines.h>
-#include <TelSim.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-#define EXTENDED_ASCII 1
-
-#define TAPI_SAT_DIALLING_NUMBER_LEN_MAX                               200      /**<   max length of dialing number            */
-#define TAPI_SAT_ALPHA_ID_LEN_MAX                                              255      /**<   max length of  alpha identifier         */
-#define TAPI_SAT_TEXT_STRING_LEN_MAX                                   500      /**<   max length of text string -when the string data is in 7Bit packed format, this length is not enough to support the maximum size so should increase the value to a value > 275 */
-#define TAPI_SAT_SUB_ADDR_LEN_MAX                                              30       /**<   max length of sub address               */
-#define TAPI_SAT_CCP_DATA_LEN_MAX                                              30       /**<   max length of ccp data          */
-#define TAPI_SAT_ITEM_TEXT_LEN_MAX                                             45       /**<   max length of item text                 */
-#define TAPI_SAT_SMS_TPDU_SMS_DATA_LEN_MAX                             175      /**<   max length of sms tpdu data             */
-#define TAPI_SAT_SS_STRING_LEN_MAX                                             160      /**<   max length of ss string         */
-#define TAPI_SAT_USSD_STRING_LEN_MAX                                   255      /**<   max length of ussd string               */
-#define TAPI_SAT_FILE_ID_LIST_MAX_COUNT                                        255      /**<   max count of file id list               */
-#define TAPI_SAT_ITEMS_NEXT_ACTION_INDI_LIST_MAX_COUNT 50       /**<   max count of items next action indication list  */
-#define TAPI_SAT_EVENT_LIST_MAX_COUNT                                  17       /**<   max count of sat event list             */
-#define TAPI_SAT_IMG_INSTANT_RAW_DATA_LEN_MAX                  256      /**<   max length of image instant raw         */
-#define TAPI_SAT_CLUT_DATA_LEN_MAX                                             256      /**<   max length of clut data                 */
-#define TAPI_SAT_IMG_DATA_FILE_PATH_LEN_MAX                            50       /**<   max length of image data file name (Icon, CLUT)         */
-#define TAPI_SAT_ICON_LIST_MAX_COUNT                                   50       /**<   max count of icon list          */
-#define TAPI_SAT_DTMF_STRING_LEN_MAX                                   30       /**<   max length of dtmf string               */
-#define TAPI_SAT_DATE_TIME_AND_TIME_ZONE_LEN                   7        /**<   max length of date time and time zone           */
-#define TAPI_SAT_URL_LEN_MAX                                                   129      /**<   max length of url               */
-#define TAPI_SAT_BEARER_LIST_MAX_COUNT                                 50       /**<   max count of bearer list                */
-#define TAPI_SAT_PROVISIONING_FILE_PATH_LEN_MAX                        50       /**<   max length of provisioning file path    */
-#define TAPI_SAT_BEARER_PARAMS_LEN_MAX                                 10       /**<   max length of bearer parameters                 */
-#define TAPI_SAT_CHANNEL_DATA_STRING_LEN_MAX                   255      /**<   max length of channel data string               */
-#define TAPI_SAT_CHANNEL_STATUS_LEN                                            2        /**<   max length of channel status            */
-#define TAPI_SAT_CHANNEL_ID_LEN                                                        3        /**<   max length of channel id                */
-#define TAPI_SAT_OTHER_ADDR_LEN_MAX                                            30       /**<   max length of other address             */
-#define TAPI_SAT_PORT_NUMBER_LEN                                               2        /**<   max length of port number               */
-#define TAPI_SAT_NET_ACC_NAM_LEN_MAX                                   30       /**<   max length of net acc name              */
-#define TAPI_SAT_AID_LEN_MAX                                                   128      /**<   max length of aid               */
-#define TAPI_SAT_REMOTE_ENTITY_ADDR_LEN_MAX                            50       /**<   max length of remote entity address     */
-#define TAPI_SAT_ITEM_TEXT_ATTRIBUTES_LIST_MAX_COUNT   50       /**<   max count of item text attributes list          */
-#define TAPI_SAT_MCC_CODE_LEN                                                  3        /**<   max length of mcc               */
-#define TAPI_SAT_MNC_CODE_LEN                                                  3        /**<   max length of mnc               */
-#define TAPI_SAT_LAC_CODE_LEN                                                  2        /**<   max length of lac               */
-#define TAPI_SAT_CELL_ID_LEN                                                   2        /**<   max length of cell id   */
-
-/**
- * @enum TelSatAlphabetFormatType_t
- * This enum lists the Alphabet Format.
- */
-typedef enum {
-       TAPI_SAT_ALPHABET_FORMAT_SMS_DEFAULT = 0x00, /**<       ALPHABET FROMAT SMS DEFAULT             */
-       TAPI_SAT_ALPHABET_FORMAT_8BIT_DATA = 0x01, /**< ALPHABET FROMAT 8BIT DATA               */
-       TAPI_SAT_ALPHABET_FORMAT_UCS2 = 0x02, /**<      ALPHABET FROMAT UCS2            */
-       TAPI_SAT_ALPHABET_FORMAT_RESERVED = 0x03 /**<   ALPHABET FROMAT RESERVED                */
-} TelSatAlphabetFormatType_t;
-
-/**
- * @enum TelSatMsgClassType_t
- * This enum lists the message class.
- */
-typedef enum {
-       TAPI_SAT_MSG_CLASS_NONE = 0x00, /**<    none    */
-       TAPI_SAT_MSG_CLASS_0 = 0x01, /**<       class 0                 */
-       TAPI_SAT_MSG_CLASS_1, /**<      class 1 Default meaning:ME-specific             */
-       TAPI_SAT_MSG_CLASS_2, /**<      class 2 SIM specific message            */
-       TAPI_SAT_MSG_CLASS_3, /**<      class 3 Default meaning: TE specific            */
-       TAPI_SAT_MSG_CLASS_RESERVED = 0xFF /**< class reserved          */
-} TelSatMsgClassType_t;
-
-/**
- * @enum TelSatCommandType_t
- * This enum lists the type of command and the next action indicator.
- */
-typedef enum {
-       TAPI_SAT_CMD_TYPE_NONE = 0x00, /**<     command type - None             */
-
-       TAPI_SAT_CMD_TYPE_REFRESH = 0x01, /**<  command type - refresh          */
-       TAPI_SAT_CMD_TYPE_MORE_TIME = 0x02, /**<        command type - more time                */
-       TAPI_SAT_CMD_TYPE_SETUP_EVENT_LIST = 0x05, /**< command type - setup event list                 */
-       TAPI_SAT_CMD_TYPE_SETUP_CALL = 0x10, /**<       command type - setup call               */
-       TAPI_SAT_CMD_TYPE_SEND_SS = 0x11, /**<  command type - send ss          */
-       TAPI_SAT_CMD_TYPE_SEND_USSD = 0x12, /**<        command type - send ussd                */
-       TAPI_SAT_CMD_TYPE_SEND_SMS = 0x13, /**< command type - send sms                 */
-       TAPI_SAT_CMD_TYPE_SEND_DTMF = 0x14, /**<        command type - send dtmf                */
-       TAPI_SAT_CMD_TYPE_LAUNCH_BROWSER = 0x15, /**<   command type - launch browser           */
-       TAPI_SAT_CMD_TYPE_PLAY_TONE = 0x20, /**<        command type - play tone                */
-       TAPI_SAT_CMD_TYPE_DISPLAY_TEXT = 0x21, /**<     command type - display text             */
-       TAPI_SAT_CMD_TYPE_GET_INKEY = 0x22, /**<        command type - get inkey                */
-       TAPI_SAT_CMD_TYPE_GET_INPUT = 0x23, /**<        command type - get input                */
-       TAPI_SAT_CMD_TYPE_SELECT_ITEM = 0x24, /**<      command type - select item              */
-       TAPI_SAT_CMD_TYPE_SETUP_MENU = 0x25, /**<       command type - setup menu               */
-       TAPI_SAT_CMD_TYPE_PROVIDE_LOCAL_INFO = 0x26, /**<       command type - provide local info               */
-       TAPI_SAT_CMD_TYPE_SETUP_IDLE_MODE_TEXT = 0x28, /**<     command type - setup idle mode text             */
-       TAPI_SAT_CMD_TYPE_LANGUAGE_NOTIFICATION = 0x35, /**<    command type - language notification            */
-       TAPI_SAT_CMD_TYPE_OPEN_CHANNEL = 0x40, /**<     command type - open channel -class e            */
-       TAPI_SAT_CMD_TYPE_CLOSE_CHANNEL = 0x41, /**<    command type - close channel - class e          */
-       TAPI_SAT_CMD_TYPE_RECEIVE_DATA = 0x42, /**<     command type - receive data -class e            */
-       TAPI_SAT_CMD_TYPE_SEND_DATA = 0x43, /**<        command type - send data                */
-       TAPI_SAT_CMD_TYPE_GET_CHANNEL_STATUS = 0x44, /**<       command type - get channel status -class e              */
-       TAPI_SAT_CMD_TYPE_END_OF_APP_EXEC = 0xFD, /**<  inform to End the execution of a Proactive Command*/
-       TAPI_SAT_CMD_TYPE_END_PROACTIVE_SESSION = 0xFE, /**<    inform end proactive session            */
-       TAPI_SAT_CMD_TYPE_RESERVED = 0xFF /**<  command type - reserved         */
-} TelSatCommandType_t;
-
-/**
- * @enum TelSatCmdQualiRefresh_t
- * This enum lists the Command qualifier values for Refresh command.
- */
-typedef enum {
-       TAPI_SAT_REFRESH_SIM_INIT_AND_FULL_FCN = 0x00, /**<     command qualifier for REFRESH SIM INIT AND FULL FILE CHANGE_NOTIFICATION                */
-       TAPI_SAT_REFRESH_FCN = 0x01, /**<       command qualifier for REFRESH FILE CHANGE NOTIFICATION          */
-       TAPI_SAT_REFRESH_SIM_INIT_AND_FCN = 0x02, /**<  command qualifier for REFRESH SIM INIT AND FILE CHANGE NOTIFICATION             */
-       TAPI_SAT_REFRESH_SIM_INIT = 0x03, /**<  command qualifier for REFRESH SIM INIT          */
-       TAPI_SAT_REFRESH_SIM_RESET = 0x04, /**< command qualifier for REFRESH SIM RESET         */
-       TAPI_SAT_REFRESH_3G_APPLICATION_RESET = 0x05, /**<      command qualifier for REFRESH 3G APPLICATION RESET              */
-       TAPI_SAT_REFRESH_3G_SESSION_RESET = 0x06, /**<  command qualifier for REFRESH 3G SESSION RESET          */
-       TAPI_SAT_REFRESH_RESERVED = 0xFF /**<   command qualifier for REFRESH RESERVED          */
-} TelSatCmdQualiRefresh_t;
-
-/**
- * @enum TelSatCmdQualiSetupCall_t
- * This enum lists the Command qualifier values for setup call command.
- */
-typedef enum {
-       TAPI_SAT_SETUP_CALL_IF_ANOTHER_CALL_NOT_BUSY = 0x00, /**<       command qualifier for SETUP CALL IF ANOTHER CALL NOT BUSY               */
-       TAPI_SAT_SETUP_CALL_IF_ANOTHER_CALL_NOT_BUSY_WITH_REDIAL = 0x01, /**<   command qualifier for SETUP CALL IF ANOTHER CALL NOT BUSY WITH REDIAL           */
-       TAPI_SAT_SETUP_CALL_PUT_ALL_OTHER_CALLS_ON_HOLD = 0x02, /**<    command qualifier for SETUP CALL PUTTING ALL OTHER CALLS ON HOLD                */
-       TAPI_SAT_SETUP_CALL_PUT_ALL_OTHER_CALLS_ON_HOLD_WITH_REDIAL = 0x03, /**<        command qualifier for SETUP CALL PUTTING ALL OTHER CALLS ON HOLD WITH REDIAL            */
-       TAPI_SAT_SETUP_CALL_DISCONN_ALL_OTHER_CALLS = 0x04, /**<        command qualifier for SETUP CALL DISCONNECTING ALL OTHER CALLS          */
-       TAPI_SAT_SETUP_CALL_DISCONN_ALL_OTHER_CALLS_WITH_REDIAL = 0x05, /**<    command qualifier for SETUP CALL DISCONNECTING ALL OTHER CALLS WITH REDIAL              */
-       TAPI_SAT_SETUP_CALL_RESERVED = 0xFF /**<        command qualifier for SETUP CALL RESERVED               */
-} TelSatCmdQualiSetupCall_t;
-
-/**
- * @enum TelSatDisplayTextPriorityType_t
- * This is associated with the command qualifier for display text.
- */
-typedef enum {
-       TAPI_SAT_MSG_PRIORITY_NORMAL = 0, /**<  MSG PRIORITY NORMAL             */
-       TAPI_SAT_MSG_PRIORITY_HIGH = 1 /**<     MSG PRIORITY HIGH               */
-} TelSatDisplayTextPriorityType_t;
-
-/**
- * @enum TelSatDisplayTextMsgClearType_t
- * This is associated with the command qualifier for display text.
- */
-typedef enum {
-       TAPI_SAT_AUTO_CLEAR_MSG_AFTER_A_DELAY = 0, /**< message clear type -  AUTO CLEAR MSG AFTER A DELAY              */
-       TAPI_SAT_WAIT_FOR_USER_TO_CLEAR_MSG = 1 /**<    message clear type -  WAIT FOR USER TO CLEAR MSG                */
-} TelSatDisplayTextMsgClearType_t;
-
-/**
- * @enum TelSatInkeyType_t
- * This is associated with the command qualifier for get inkey.
- */
-typedef enum {
-       TAPI_SAT_INKEY_TYPE_CHARACTER_SET_ENABLED = 0, /**<     command qualifier for  INKEY TYPE CHARACTER SET ENABLED         */
-       TAPI_SAT_INKEY_TYPE_YES_NO_REQUESTED = 1 /**<   command qualifier for  INKEY TYPE YES NO REQUESTED              */
-} TelSatInkeyType_t;
-
-/**
- * @enum TelSatUseInputAlphabetType_t
- * This is associated with the command qualifier for get input.
- */
-typedef enum {
-       TAPI_SAT_USER_INPUT_ALPHABET_TYPE_SMS_DEFAULT = 1, /**< command qualifier for  ALPHABET TYPE SMS DEFAULT                */
-       TAPI_SAT_USER_INPUT_ALPHABET_TYPE_UCS2 = 2 /**< command qualifier for  ALPHABET TYPE UCS2               */
-} TelSatUseInputAlphabetType_t;
-
-/**
- * @enum TelSatDisplayVibrateAlertType_t
- * This is associated with the command qualifier for play tone command.
- */
-typedef enum {
-       TAPI_SAT_VIBRATE_ALERT_OPTIONAL = 0, /**<       VIBRATE ALERT UPTO THE TERMINAL         */
-       TAPI_SAT_VIBRATE_ALERT_REQUIRED = 1 /**<        VIBRATE, IF AVAILABLE, WITH TONE.               */
-} TelSatDisplayVibrateAlertType_t;
-
-/**
- * @enum TelSatPresentationType_t
- * This is associated with the command qualifier for select item command.
- */
-typedef enum {
-       TAPI_SAT_PRESENTATION_TYPE_NOT_SPECIFIED = 0x00, /**<   command qualifier for PRESENTATION TYPE NOT SPECIFIED */
-       TAPI_SAT_PRESENTATION_TYPE_DATA_VALUE = 0x01, /**<      command qualifier for PRESENTATION TYPE DATA VALUE              */
-       TAPI_SAT_PRESENTATION_TYPE_NAVIGATION_OPTION = 0x02 /**<        command qualifier for PRESENTATION TYPE NAVIGATION OPTION       */
-} TelSatPresentationType_t;
-
-/**
- * @enum TelSatSelectionPreferenceType_t
- * This is associated with the command qualifier for select item command.
- */
-typedef enum {
-       TAPI_SAT_SELECTION_PREFERENCE_NONE_REQUESTED = 0, /**<  command qualifier for SELECTION PREFERENCE NONE REQUESTED               */
-       TAPI_SAT_SELECTION_PREFERENCE_USING_SOFT_KEY = 1 /**<   command qualifier for SELECTION PREFERENCE USING SOFT KEY               */
-} TelSatSelectionPreferenceType_t;
-
-/**
- * @enum TelSatCmdQualiProvideLocalInfo_t
- * This enum defines the Command qualifier values for provide local info command.
- */
-typedef enum {
-       TAPI_SAT_PROVIDE_DATE_TIME_AND_TIME_ZONE = 0x03, /**<   command qualifier for PROVIDE DATE TIME AND TIME ZONE           */
-       TAPI_SAT_PROVIDE_LANGUAGE_SETTING = 0x04, /**<  command qualifier for PROVIDE LANGUAGE SETTING          */
-       TAPI_SAT_PROVIDE_IMEISV = 0x08, TAPI_SAT_PROVIDE_RESERVED = 0xFF /**<   reserved                */
-} TelSatCmdQualiProvideLocalInfo_t;
-
-/**
- * @enum TelSatCmdQualiLaunchBrowser_t
- * This enum defines the Command qualifier values for launch browser command.
- */
-typedef enum {
-       TAPI_SAT_LAUNCH_BROWSER = 0, /**<       command qualifier for  LAUNCH BROWSER           */
-       TAPI_SAT_NOT_USED = 1, /**<     command qualifier for  NOT USED         */
-       TAPI_SAT_USE_EXISTING_BROWSER = 2, /**< command qualifier for  USE EXISTING BROWSER if secure session, do not use it.           */
-       TAPI_SAT_CLOSE_AND_LAUNCH_NEW_BROWSER = 3, /**< command qualifier for CLOSE AND LAUNCH NEW BROWSER              */
-       TAPI_SAT_NOT_USED2 = 4, /**<    command qualifier for  NOT USED2                */
-       TAPI_SAT_LB_RESERVED = 0xFF /**<        reserved        */
-} TelSatCmdQualiLaunchBrowser_t;
-
-/**
- * @enum TelSatDeviceIdentitiesTagType_t
- * This enum lists the device identity tag value IDs.
- */
-typedef enum {
-       TAPI_SAT_DEVICE_ID_KEYPAD = 0x01, /**<  DEVICE ID KEYPAD                */
-       TAPI_SAT_DEVICE_ID_DISPLAY = 0x02, /**< DEVICE ID DISPLAY               */
-       TAPI_SAT_DEVICE_ID_EARPIECE = 0x03, /**<        DEVICE ID EARPIECE              */
-
-       TAPI_SAT_DEVICE_ID_SIM = 0x81, /**<     DEVICE ID SIM           */
-       TAPI_SAT_DEVICE_ID_ME = 0x82, /**<      DEVICE ID ME            */
-       TAPI_SAT_DEVICE_ID_NETWORK = 0x83, /**< DEVICE ID NETWORK               */
-
-       TAPI_SAT_DEVICE_ID_RESERVED = 0XFF /**< reserved        */
-} TelSatDeviceIdentitiesTagType_t;
-
-/**
- * @enum TelSatTimeUnitType_t
- * This enum lists the time units for the duration data object.
- */
-typedef enum {
-       TAPI_SAT_TIME_UNIT_MINUTES = 0x0, /**<  time unit - minutes             */
-       TAPI_SAT_TIME_UNIT_SECONDS = 0x01, /**< time unit - second              */
-       TAPI_SAT_TIME_UNIT_TENTHS_OF_SECONDS = 0x02, /**<       time unit - tenths of seconds           */
-       TAPI_SAT_TIME_UNIT_RESERVED = 0xFF /**< reserved        */
-} TelSatTimeUnitType_t;
-
-/**
- * @enum TelSatResultType_t
- * This enum lists the values for the RESULT data object - General Response.
- */
-typedef enum {
-       TAPI_SAT_R_SUCCESS = 0x0, /**<  command performed successfully */
-       TAPI_SAT_R_SUCCESS_WITH_PARTIAL_COMPREHENSION = 0x01, /**<      command performed with partial comprehension    */
-       TAPI_SAT_R_SUCCESS_WITH_MISSING_INFO = 0x02, /**<       command performed, with missing information     */
-
-       TAPI_SAT_R_REFRESH_PERFORMED_WITH_ADDITIONAL_EFS_READ = 0x03, /**<      REFRESH PERFORMED WITH ADDITIONAL EFS READ              */
-       TAPI_SAT_R_SUCCESS_BUT_REQUESTED_ICON_NOT_DISPLAYED = 0x04, /**<        command performed but REQUESTED ICON NOT DISPLAYED                      */
-       TAPI_SAT_R_SUCCESS_BUT_MODIFIED_BY_CALL_CONTROL_BY_SIM = 0x05, /**<     command performed but MODIFIED BY CALL CONTROL BY SIM           */
-       TAPI_SAT_R_SUCCESS_LIMITED_SERVICE = 0x06, /**< command performed with LIMITED SERVICE          */
-       TAPI_SAT_R_SUCCESS_WITH_MODIFICATION = 0x07, /**<       command performed with MODIFICATION             */
-       TAPI_SAT_R_REFRESH_PRFRMD_BUT_INDICATED_USIM_NOT_ACTIVE = 0x08, /**<    REFRESH PERFORMED BUT INDICATED USIM NOT ACTIVE                 */
-
-       TAPI_SAT_R_PROACTIVE_SESSION_TERMINATED_BY_USER = 0x10, /**<    proactive sim application session terminated by user            */
-       TAPI_SAT_R_BACKWARD_MOVE_BY_USER = 0x11, /**<   backward move in the proactive sim application session request by the user              */
-       TAPI_SAT_R_NO_RESPONSE_FROM_USER = 0x12, /**<   no response from user           */
-
-       TAPI_SAT_R_HELP_INFO_REQUIRED_BY_USER = 0x13, /**<      HELP INFO REQUIRED BY USER              */
-       TAPI_SAT_R_USSD_OR_SS_TRANSACTION_TERMINATED_BY_USER = 0x14, /**<       USSD OR SS TRANSACTION TERMINATED BY USER       */
-
-       TAPI_SAT_R_ME_UNABLE_TO_PROCESS_COMMAND = 0x20, /**<    ME currently unable to process command          */
-       TAPI_SAT_R_NETWORK_UNABLE_TO_PROCESS_COMMAND = 0x21, /**<       Network currently unable to process command             */
-       TAPI_SAT_R_USER_DID_NOT_ACCEPT_CALL_SETUP_REQ = 0x22, /**<      User did not accept call setup request          */
-       TAPI_SAT_R_USER_CLEAR_DOWN_CALL_BEFORE_CONN = 0x23, /**<        User cleared down call before connection or network released            */
-
-       TAPI_SAT_R_INTERACTION_WITH_CC_BY_SIM_IN_TMP_PRBLM = 0x25, /**< INTERACTION WITH CALL CONTROL BY SIM IN TEMPORARY PROBLEM               */
-       TAPI_SAT_R_LAUNCH_BROWSER_GENERIC_ERROR_CODE = 0x26, /**<       LAUNCH BROWSER GENERIC ERROR CODE               */
-
-       TAPI_SAT_R_BEYOND_ME_CAPABILITIES = 0x30, /**<  command beyond ME's capabilities                */
-       TAPI_SAT_R_COMMAND_TYPE_NOT_UNDERSTOOD_BY_ME = 0x31, /**<       command type not understood by ME               */
-       TAPI_SAT_R_COMMAND_DATA_NOT_UNDERSTOOD_BY_ME = 0x32, /**<       command data not understood by ME               */
-       TAPI_SAT_R_COMMAND_NUMBER_NOT_KNOWN_BY_ME = 0x33, /**<  command number not known by ME          */
-       TAPI_SAT_R_SS_RETURN_ERROR = 0x34, /**< SS return error         */
-       TAPI_SAT_R_SMS_RP_ERROR = 0x35, /**<    SMS rp-error            */
-       TAPI_SAT_R_ERROR_REQUIRED_VALUES_ARE_MISSING = 0x36, /**<       Error, required values are missing              */
-
-       TAPI_SAT_R_USSD_RETURN_ERROR = 0x37, /**<       USSD_RETURN_ERROR               */
-       TAPI_SAT_R_INTRCTN_WITH_CC_OR_SMS_CTRL_PRMNT_PRBLM = 0x39, /**< INTERACTION WITH CALL CONTROL OR SMS CONTROL PERMANENT PROBLEM          */
-       TAPI_SAT_R_BEARER_INDEPENDENT_PROTOCOL_ERROR = 0x3A, /**<       BEARER INDEPENDENT PROTOCOL ERROR               */
-       TAPI_SAT_R_FRAMES_ERROR = 0x3C /**<     FRAMES ERROR            */
-} TelSatResultType_t;
-
-/**
- * @enum TelSatMeProblemType_t
- * This enum lists the values for the Additional response for the RESULT object and specifies a particular ME PROBLEM.
- */
-typedef enum {
-       TAPI_SAT_ME_PROBLEM_NO_SPECIFIC_CAUSE = 0x0, /**<       ME problem with NO SPECIFIC CAUSE               */
-       TAPI_SAT_ME_PROBLEM_SCREEN_BUSY = 0x01, /**<    ME problem with SCREEN BUSY             */
-       TAPI_SAT_ME_PROBLEM_ME_BUSY_ON_CALL = 0x02, /**<        ME problem with ME BUSY ON CALL         */
-       TAPI_SAT_ME_PROBLEM_ME_BUSY_ON_SS = 0x03, /**<  ME problem with ME_BUSY ON SS           */
-       TAPI_SAT_ME_PROBLEM_NO_SERVICE = 0x04, /**<     ME problem with NO SERVICE              */
-       TAPI_SAT_ME_PROBLEM_ACCESS_CONTROL_CLASS_BAR = 0x05, /**<       ME problem with ACCESS CONTROL CLASS BAR                */
-       TAPI_SAT_ME_PROBLEM_RADIO_RES_NOT_GRANTED = 0x06, /**<  ME problem with RADIO RES NOT GRANTED           */
-       TAPI_SAT_ME_PROBLEM_NOT_IN_SPEECH_CALL = 0x07, /**<     ME problem with NOT IN SPEECH CALL      */
-       TAPI_SAT_ME_PROBLEM_ME_BUSY_ON_USSD = 0x08, /**<        ME problem with ME BUSY ON USSD         */
-       TAPI_SAT_ME_PROBLEM_ME_BUSY_ON_SEND_DTMF_CMD = 0x09, /**<       ME problem with ME BUSY ON SEND DTMF CMD        */
-       TAPI_SAT_ME_PROBLEM_NO_USIM_ACTIVE = 0x0A, /**< ME problem with NO USIM ACTIVE          */
-       TAPI_SAT_ME_PROBLEM_INVALID = 0xFF /**< ME problem with INVALID                 */
-} TelSatMeProblemType_t;
-
-/**
- * @enum TelSatNetworkProblemType_t
- * This enum lists the values for the Additional response for the RESULT object and specifies a particular network PROBLEM.
- */
-typedef enum {
-       TAPI_SAT_NETWORK_PROBLEM_NO_SPECIFIC_CAUSE = 0x0, /**<  Network problem with no specific cause          */
-       TAPI_SAT_NETWORK_PROBLEM_USER_BUSY = 0x91 /**<  Network problem with USER BUSY          */
-} TelSatNetworkProblemType_t;
-
-/**
- * @enum TelSatSsProblemType_t
- * This enum lists the values for the Additional response for the RESULT object related to SEND SS.
- */
-typedef enum {
-       TAPI_SAT_SS_PROBLEM_NO_SPECIFIC_CAUSE = 0, /**< SS problem with no specific cause               */
-       TAPI_SAT_SS_PROBLEM_FACILITY_NOT_SUPPORTED = 0x15 /**<  SS problem with FACILITY NOT SUPPORTED          */
-} TelSatSsProblemType_t;
-
-/**
- * @enum TelSatSmsProblemType_t
- * This enum lists the values for the Additional response for the RESULT object related to SEND SMS.
- */
-typedef enum {
-       TAPI_SAT_SMS_PROBLEM_NO_SPECIFIC_CAUSE = 0 /**< SMS problem with no specific cause              */
-} TelSatSmsProblemType_t;
-
-/**
- * @enum TelSatUssdProblemType_t
- * This enum lists the values for the Additional response for the RESULT object related to SEND USSD STRING.
- */
-typedef enum {
-       TAPI_SAT_USSD_PROBLEM_NO_SPECIFIC_CAUSE = 0, /**<       USSD problem with no specific cause             */
-       TAPI_SAT_USSD_PROBLEM_UNKNOWN_ALPHABET = 0x47 /**<      USSD problem with UNKNOWN ALPHABET              */
-} TelSatUssdProblemType_t;
-
-/**
- * @enum TelSatCallCtrlProblemType_t
- * This enum lists the values for the Additional response for the RESULT object related to CALL CONTROL or MO SMS CONTROL.
- */
-typedef enum {
-       TAPI_SAT_CC_PROBLEM_NO_SPECIFIC_CAUSE = 0, /**< Call Control problem with no specific cause             */
-       TAPI_SAT_CC_PROBLEM_ACTION_NOT_ALLOWED = 1, /**<        Call Control problem with action not allowed    */
-       TAPI_SAT_CC_PROBLEM_REQUEST_TYPE_HAS_CHANGED = 2 /**<   Call Control problem with request type has changed      */
-} TelSatCallCtrlProblemType_t;
-
-/**
- * @enum TelSatLaunchBrowserProblemType_t
- * This enum lists the values for the Additional response for the RESULT object related to LAUNCH BROWSER PROBLEM
- */
-typedef enum {
-       TAPI_SAT_BROWSER_PROBLEM_NO_SPECIFIC_CAUSE = 0, /**<    Browser problem with no specific cause          */
-       TAPI_SAT_BROWSER_PROBLEM_BEARER_UNAVAILABLE = 1, /**<   Browser problem with bearer unavailable         */
-       TAPI_SAT_BROWSER_PROBLEM_BROWSER_UNAVAILABLE = 2, /**<  Browser problem with browser unavailable                */
-       TAPI_SAT_BROWSER_PRBLM_ME_UNABLE_TO_READ_PROV_DATA = 3 /**<     Browser problem with ME unable to read provisioning data                */
-} TelSatLaunchBrowserProblemType_t;
-
-/**
- * @enum TelSatBipProblemType_t
- * This enum lists the values for the Additional response for the RESULT object.
- *  Permanent Problems  ::: 12.12.11 ADDITIONAL INFORMATION :  BEARER INDEPENDENT PROTOCOL
- */
-typedef enum {
-       TAPI_SAT_BIP_PROBLEM_NO_SPECIFIC_CAUSE = 0x00, /**<     BIP problem with no specific cause      */
-       TAPI_SAT_BIP_PROBLEM_NO_CHANNEL_AVAILABLE = 0x01, /**<  BIP problem with no channel available           */
-       TAPI_SAT_BIP_PROBLEM_CHANNEL_CLOSED = 0x02, /**<        BIP problem with channel closed                 */
-       TAPI_SAT_BIP_PROBLEM_CHANNEL_ID_NOT_VALID = 0x03, /**<  BIP problem with channel id not valid           */
-       TAPI_SAT_BIP_PROBLEM_BUF_SIZE_NOT_AVAILABLE = 0x04, /**<        BIP problem with buffer size not available              */
-       TAPI_SAT_BIP_PROBLEM_SECURITY_ERROR = 0x05, /**<        BIP problem with security error                 */
-       TAPI_SAT_BIP_PRBLM_SIM_ME_IF_TRNSPRT_LEVEL_NOT_AVL = 0x06, /**< BIP problem with SIM ME interface transport level not available         */
-       TAPI_SAT_BIP_REMOTE_DEV_NOT_REACHABLE = 0x07, /**<      BIP problem with remote device not reachable            */
-       TAPI_SAT_BIP_SERVICE_ERROR = 0x08, /**< BIP service error               */
-       TAPI_SAT_BIP_SERVICE_IDENTIFIER_UNKNOWN = 0x09 /**<     BIP service identifier unknown          */
-} TelSatBipProblemType_t;
-
-/**
- * @enum TelSatSmsTpduType_t
- * This enum lists the values for the SMS TPDU type.
- */
-typedef enum {
-       TAPI_SAT_SMS_TPDU_TYPE_DELIVER_TPDU = 0, /**<   sms tpdu type - DELIVER TPDU    */
-       TAPI_SAT_SMS_TPDU_TYPE_DELIVER_RPT = 1, /**<    sms tpdu type - DELIVER RPT     */
-       TAPI_SAT_SMS_TPDU_TYPE_SUBMIT_TPDU = 2, /**<    sms tpdu type - SUBMIT TPDU             */
-       TAPI_SAT_SMS_TPDU_TYPE_SUBMIT_RPT = 3, /**<     sms tpdu type - SUBMIT RPT      */
-       TAPI_SAT_SMS_TPDU_TYPE_STATUS_RPT = 4, /**<     sms tpdu type - STATUS RPT      */
-       TAPI_SAT_SMS_TPDU_TYPE_TPDU_CMD = 5 /**<        sms tpdu type - TPDU CMD        */
-} TelSatSmsTpduType_t;
-
-/**
- * @enum TelSatToneType_t
- * This enum lists the values tones type.
- */
-typedef enum {
-       // standard supervisory tones
-       TAPI_SAT_DIAL_TONE = 0x01, /**< TONE TYPE DIAL TONE             */
-       TAPI_SAT_CALLED_SUBSCRIBER_BUSY = 0x02, /**<    TONE TYPE CALLED SUBSCRIBER BUSY                */
-       TAPI_SAT_CONGESTION = 0x03, /**<        TONE TYPE CONGESTION    */
-       TAPI_SAT_RADIO_PATH_ACK = 0x04, /**<    TONE TYPE RADIO PATH ACK        */
-       TAPI_SAT_RADIO_PATH_NOT_AVAILABLE_CALL_DROPPED = 0x05, /**<     TONE TYPE RADIO PATH NOT AVAILABLE CALL DROPPED */
-       TAPI_SAT_ERR_SPECIAL_INFO = 0x06, /**<  TONE TYPE ERR SPECIAL INFO      */
-       TAPI_SAT_CALL_WAITING_TONE = 0x07, /**< TONE TYPE CALL WAITING TONE             */
-       TAPI_SAT_RINGING_TONE = 0x08, /**<      TONE TYPE RINGING TONE  */
-
-       // ME proprietary tones
-       TAPI_SAT_GENERAL_BEEP = 0x10, /**<      TONE TYPE GENERAL BEEP          */
-       TAPI_SAT_POSITIVE_ACK_TONE = 0x11, /**< TONE TYPE POSITIVE ACK TONE             */
-       TAPI_SAT_NEGATIVE_ACK_OR_ERROR_TONE = 0x12, /**<        TONE TYPE NEGATIVE ACK OR ERROR TONE            */
-       TAPI_SAT_RINGING_TONE_SLCTD_BY_USR_FOR_INCOM_SPEECH_CALL = 0x13, /**<   TONE TYPE RINGING TONE SELECTED BY USER FOR INCOMING SPEECH CALL                */
-       TAPI_SAT_ALERT_TONE_SELECTED_BY_USER_FOR_INCOMING_SMS = 0x14, /**<      TONE TYPE ALERT TONE SELECTED BY USER FOR INCOMING SMS          */
-       TAPI_SAT_CRITICAL_ALERT = 0x15, /**<    TONE TYPE CRITICAL ALERT                */
-
-       //Themed tones
-       TAPI_SAT_HAPPY_TONE = 0x30, /**<        TONE TYPE HAPPY TONE            */
-       TAPI_SAT_SAD_TONE = 0x31, /**<  TONE TYPE SAD TONE                      */
-       TAPI_SAT_URGENT_ACTION_TONE = 0x32, /**<        TONE TYPE URGENT ACTION TONE            */
-       TAPI_SAT_QUESTION_TONE = 0x33, /**<     TONE TYPE QUESTION TONE                 */
-       TAPI_SAT_MESSAGE_RECEIVED_TONE = 0x34, /**<     TONE TYPE MESSAGE RECEIVED TONE                 */
-
-       //Melody tones
-       TAPI_SAT_MELODY_1 = 0x40, /**<  TONE TYPE MELODY 1              */
-       TAPI_SAT_MELODY_2 = 0x41, /**<  TONE TYPE MELODY 2              */
-       TAPI_SAT_MELODY_3 = 0x42, /**<  TONE TYPE MELODY 3              */
-       TAPI_SAT_MELODY_4 = 0x43, /**<  TONE TYPE MELODY 4              */
-       TAPI_SAT_MELODY_5 = 0x44, /**<  TONE TYPE MELODY 5              */
-       TAPI_SAT_MELODY_6 = 0x45, /**<  TONE TYPE MELODY 6              */
-       TAPI_SAT_MELODY_7 = 0x46, /**<  TONE TYPE MELODY 7              */
-       TAPI_SAT_MELODY_8 = 0x47, /**<  TONE TYPE MELODY 8              */
-
-       TAPI_SAT_TONE_TYPE_RESERVED = 0xFF /**< TONE TYPE RESERVED              */
-} TelSatToneType_t;
-
-/**
- * @enum TelSatEventDownloadType_t
- * This enum lists event types required by ME to monitor and report to SIM.
- */
-typedef enum {
-       TAPI_EVENT_SAT_DW_TYPE_MT_CALL = 0,
-       TAPI_EVENT_SAT_DW_TYPE_CALL_CONNECTED = 1,
-       TAPI_EVENT_SAT_DW_TYPE_CALL_DISCONNECTED = 2,
-       TAPI_EVENT_SAT_DW_TYPE_LOCATION_STATUS = 3,
-       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,
-       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,
-       TAPI_EVENT_SAT_DW_TYPE_DISPLAY_PARAMETERS_CHANGED = 0x0C,
-       TAPI_EVENT_SAT_DW_TYPE_LOCAL_CONNECTION = 0x0D,
-       TAPI_EVENT_SAT_DW_TYPE_NW_SEARCH_MODE_CHANGED = 0X0E,
-       TAPI_EVENT_SAT_DW_TYPE_BROWSING_STATUS = 0X0F,
-       TAPI_EVENT_SAT_DW_TYPE_FRAMES_INFORMATION_CHANGED = 0X10,
-       TAPI_EVENT_SAT_DW_TYPE_RESERVED_FOR_3GPP = 0X11,
-       TAPI_EVENT_SAT_DW_TYPE_UNKNOWN = 0xFF /**<      data download type - unknown            */
-} TelSatEventDownloadType_t;
-
-/**
- * @enum TelSatImageCodingSchemeType_t
- * This enum lists image coding scheme types required by ME to show.
- */
-typedef enum {
-       TAPI_SAT_SIM_IMAGE_CODING_SCHEME_BASIC = 0x11, /**<     IMAGE CODING SCHEME BASIC               */
-       TAPI_SAT_SIM_IMAGE_CODING_SCHEME_COLOUR = 0x21, /**<    IMAGE CODING SCHEME COLOUR              */
-       TAPI_SAT_SIM_IMAGE_CODING_SCHEME_RESERVED = 0xFF /**<      RESERVED             */
-} TelSatImageCodingSchemeType_t;
-
-/**
- * @enum TelSatIconQualifierType_t
- * This enum defines the icon qualifier.
- */
-typedef enum {
-       TAPI_SAT_ICON_QUALI_SELF_EXPLANATORY = 0, /**<  ICON QUALI SELF EXPLANATORY     */
-       TAPI_SAT_ICON_QUALI_NOT_SELF_EXPLANATORY = 1, /**<      ICON QUALI NOT SELF EXPLANATORY         */
-       TAPI_SAT_ICON_QUALI_RESERVED = 0xFF /**<          RESERVED      */
-} TelSatIconQualifierType_t;
-
-/**
- * @enum TelSatBcRepeatIndicatorType_t
- * This enum defines the SIM ATK BC repeat indicator type.
- */
-typedef enum {
-       TAPI_SAT_BC_REPEAT_INDI_ALTERNATE_MODE = 0x01, /**<     BC REPEAT ALTERNATE MODE                */
-       TAPI_SAT_BC_REPEAT_INDI_SEQUENTIAL_MODE = 0x03, /**<    BC REPEAT SEQUENTIAL MODE               */
-       TAPI_SAT_BC_REPEAT_INDI_RESERVED = 0xFF /**<    RESERVED        */
-} TelSatBcRepeatIndicatorType_t;
-
-/**
- * @enum TelSatCallCtrlStringType_t
- * This enum defines call control string type.
- */
-typedef enum {
-       TAPI_SAT_CC_VOICE = 0x00, /**<  Call Control String Type - voice                */
-       TAPI_SAT_CC_SS = 0x01, /**<     Call Control String Type - ss           */
-       TAPI_SAT_CC_USSD = 0x02, /**<   Call Control String Type - ussd         */
-       TAPI_SAT_CC_NONE = 0xFF /**<    Call Control String Type - none                 */
-} TelSatCallCtrlStringType_t;
-
-/**
- * @enum TelSatLanguageType_t
- * This enum lists the language values.
- */
-typedef enum {
-       TAPI_SAT_LP_GERMAN = 0x00, /**< GERMAN          */
-       TAPI_SAT_LP_ENGLISH = 0x01, /**<        ENGLISH         */
-       TAPI_SAT_LP_ITALIAN = 0x02, /**<        ITALIAN         */
-       TAPI_SAT_LP_FRENCH = 0x03, /**< FRENCH          */
-       TAPI_SAT_LP_SPANISH = 0x04, /**<        SPANISH         */
-       TAPI_SAT_LP_DUTCH = 0x05, /**<  DUTCH           */
-       TAPI_SAT_LP_SWEDISH = 0x06, /**<        SWEDISH */
-       TAPI_SAT_LP_DANISH = 0x07, /**< DANISH  */
-       TAPI_SAT_LP_PORTUGUESE = 0x08, /**<     PORTUGUESE      */
-       TAPI_SAT_LP_FINNISH = 0x09, /**<        FINNISH */
-       TAPI_SAT_LP_NORWEGIAN = 0x0A, /**<      NORWEGIAN       */
-       TAPI_SAT_LP_GREEK = 0x0B, /**<  GREEK   */
-       TAPI_SAT_LP_TURKISH = 0x0C, /**<        TURKISH */
-       TAPI_SAT_LP_HUNGARIAN = 0x0D, /**<      HUNGARIAN       */
-       TAPI_SAT_LP_POLISH = 0x0E, /**< POLISH  */
-       TAPI_SAT_LP_LANG_UNSPECIFIED = 0x0F /**<        LANGUAGE UNSPECIFIED    */
-} TelSatLanguageType_t;
-
-/**
- * @enum TelSatBrowserIdentityType_t
- * This enum lists the SAT browser identity type.
- */
-typedef enum {
-       TAPI_SAT_BROWSER_ID_DEFAULT = 0x0, /**< DEFAULT BROWSER                 */
-       TAPI_SAT_BROWSER_ID_WML, /**<   BROWSER WML     */
-       TAPI_SAT_BROWSER_ID_HTML, /**<  BROWSER HTML    */
-       TAPI_SAT_BROWSER_ID_XHTML, /**< BROWSER XHTML   */
-       TAPI_SAT_BROWSER_ID_CHTML, /**< BROWSER CHTML   */
-       TAPI_SAT_BROWSER_ID_RESERVED = 0xFF /**<        RESERVED        */
-} TelSatBrowserIdentityType_t;
-
-/**
- * @enum TelSatBearerType_t
- * This enum lists the SAT bearer type.
- */
-typedef enum {
-       TAPI_SAT_BEARER_TYPE_SMS = 0x0, /**<    BEARER SMS              */
-       TAPI_SAT_BEARER_TYPE_CSD = 0x1, /**<    BEARER CSD              */
-       TAPI_SAT_BEARER_TYPE_USSD = 0x2, /**<   BEARER USSD             */
-       TAPI_SAT_BEARER_TYPE_GPRS = 0x3, /**<   BEARER GPRS             */
-       TAPI_SAT_BEARER_TYPE_RESERVED = 0xFF /**<       BEARER RESERVED         */
-} TelSatBearerType_t;
-
-/**
- * @enum TelSatBrowserTerminationCauseType_t
- * This enum lists the SAT browser termination cause type.
- */
-typedef enum {
-       TAPI_SAT_BROWSER_TERMINATED_BY_USER = 0, /**<   BROWSER TERMINATED BY USER              */
-       TAPI_SAT_BROWSER_TERMINATED_BY_ERROR = 1, /**<  BROWSER TERMINATED BY ERROR             */
-} TelSatBrowserTerminationCauseType_t;
-
-/**
- * @enum TelSatBearerDescType_t
- * This enum lists the SAT bearer destination type.
- */
-typedef enum {
-       TAPI_SAT_BEARER_CSD = 0x1, /**< BEARER DESC CSD                 */
-       TAPI_SAT_BEARER_GPRS = 0x2, /**<        BEARER DESC GPRS                */
-       TAPI_SAT_BEARER_DEFAULT_BEARER_FROM_TRANSPORT_LAYER = 0x3, /**< BEARER DESC DEFAULT BEARER FROM TRANSPORT LAYER         */
-       TAPI_SAT_BEARER_LOCAL_LINK_TECHNOLOGY_INDEPENDENT = 0x4, /**<   BEARER DESC LOCAL LINK TECHNOLOGY INDEPENDENT           */
-       TAPI_SAT_BEARER_BLUETOOTH = 0x5, /**<   BEARER DESC BLUETOOTH   */
-       TAPI_SAT_BEARER_IrDA = 0x6, /**<        BEARER DESC IrDA        */
-       TAPI_SAT_BEARER_RS232 = 0x7, /**<       BEARER DESC RS232       */
-       TAPI_SAT_BEARER_USB = 0x10, /**<        BEARER DESC USB */
-       TAPI_SAT_BEARER_RESERVED = 0xFF /**<    RESERVED        */
-} TelSatBearerDescType_t;
-
-/**
- * @enum TelSatBearerParamCsdDataRateType_t
- * This enum lists the SAT bearer parameter csd data rate. refer TS 27.007
- */
-typedef enum {
-       TAPI_SAT_BIP_DR_AUTOBAUDING = 0, /**<   CSD data rate - AUTOBAUDING             */
-       TAPI_SAT_BIP_DR_300BPS_V21 = 1, /**<    CSD data rate -300BPS V21               */
-       TAPI_SAT_BIP_DR_1200BPS_V22 = 2, /**<   CSD data rate - 1200BPS V22             */
-       TAPI_SAT_BIP_DR_1200_75BPS_V23 = 3, /**<        CSD data rate -1200 75BPS V23                   */
-       TAPI_SAT_BIP_DR_2400BPS_V22 = 4, /**<   CSD data rate -2400BPS V22              */
-       TAPI_SAT_BIP_DR_2400BPS_V26 = 5, /**<   CSD data rate - 2400BPS V26                     */
-       TAPI_SAT_BIP_DR_4800BPS_V32 = 6, /**<   CSD data rate - 4800BPS V32             */
-       TAPI_SAT_BIP_DR_9600BPS_V32 = 7, /**<   CSD data rate - 9600BPS V32             */
-       TAPI_SAT_BIP_DR_9600BPS_V34 = 12, /**<  CSD data rate - 9600BPS_V34             */
-       TAPI_SAT_BIP_DR_14400BPS_V34 = 14, /**< CSD data rate -14400BPS V34             */
-       TAPI_SAT_BIP_DR_19200BPS_V34 = 15, /**< CSD data rate -19200BPS V34             */
-       TAPI_SAT_BIP_DR_28800BPS_V34 = 16, /**< CSD data rate -28800BPS V34             */
-       TAPI_SAT_BIP_DR_33600BPS_V34 = 17, /**< CSD data rate -33600BPS V34             */
-       TAPI_SAT_BIP_DR_1200BPS_V120 = 34, /**< CSD data rate -1200BPS V120             */
-       TAPI_SAT_BIP_DR_2400BPS_V120 = 36, /**< CSD data rate -2400BPS V120             */
-       TAPI_SAT_BIP_DR_4800BPS_V120 = 38, /**< CSD data rate -4800BPS V120             */
-       TAPI_SAT_BIP_DR_9600BPS_V120 = 39, /**< CSD data rate -9600BPS V120             */
-       TAPI_SAT_BIP_DR_14400BPS_V120 = 43, /**<        CSD data rate -14400BPS V120            */
-       TAPI_SAT_BIP_DR_19200BPS_V120 = 47, /**<        CSD data rate -19200BPS V120            */
-       TAPI_SAT_BIP_DR_28800BPS_V120 = 48, /**<        CSD data rate -28800BPS V120            */
-       TAPI_SAT_BIP_DR_38400BPS_V120 = 49, /**<        CSD data rate -38400BPS V120            */
-       TAPI_SAT_BIP_DR_48000BPS_V120 = 50, /**<        CSD data rate -48000BPS V120            */
-       TAPI_SAT_BIP_DR_56000BPS_V120 = 51, /**<        CSD data rate -56000BPS V120            */
-       TAPI_SAT_BIP_DR_300BPS_V110 = 65, /**<  CSD data rate - 300BPS V110             */
-       TAPI_SAT_BIP_DR_1200BPS_V110 = 66, /**< CSD data rate -1200BPS V110             */
-       TAPI_SAT_BIP_DR_2400BPS_V110_OR_X31_FALG_STUFFING = 68, /**<    CSD data rate - 2400BPS V110 OR X31 FALG STUFFING               */
-       TAPI_SAT_BIP_DR_4800BPS_V110_OR_X31_FALG_STUFFING = 70, /**<    CSD data rate - 4800BPS V110 OR X31 FALG STUFFING               */
-       TAPI_SAT_BIP_DR_9600BPS_V110_OR_X31_FALG_STUFFING = 71, /**<    CSD data rate - 9600BPS V110 OR X31 FALG STUFFING               */
-       TAPI_SAT_BIP_DR_14400BPS_V110_OR_X31_FALG_STUFFING = 75, /**<   CSD data rate - 14400BPS V110 OR X31 FALG STUFFING              */
-       TAPI_SAT_BIP_DR_19200BPS_V110_OR_X31_FALG_STUFFING = 79, /**<   CSD data rate -19200BPS V110 OR X31 FALG STUFFING               */
-       TAPI_SAT_BIP_DR_28800BPS_V110_OR_X31_FALG_STUFFING = 80, /**<   CSD data rate -28800BPS V110 OR X31 FALG STUFFING               */
-       TAPI_SAT_BIP_DR_38400BPS_V110_OR_X31_FALG_STUFFING = 81, /**<   CSD data rate -38400BPS V110 OR X31 FALG STUFFING               */
-       TAPI_SAT_BIP_DR_48000BPS_V110_OR_X31_FALG_STUFFING = 82, /**<   CSD data rate -48000BPS V110 OR X31 FALG STUFFING               */
-       TAPI_SAT_BIP_DR_56000BPS_V110_OR_X31_FALG_STUFFING = 83, /**<   CSD data rate -56000BPS V110 OR X31 FALG STUFFING               */
-       TAPI_SAT_BIP_DR_64000BPS = 84, /**<     CSD data rate -64000BPS                 */
-       TAPI_SAT_BIP_DR_56000BPS_BIT_TRANSPERENT = 115, /**<    CSD data rate -56000BPS BIT TRANSPERENT                 */
-       TAPI_SAT_BIP_DR_64000BPS_BIT_TRANSPERENT = 116, /**<    CSD data rate -64000BPS BIT TRANSPERENT                 */
-       TAPI_SAT_BIP_DR_32000BPS_PIAFS32K = 120, /**<   CSD data rate -32000BPS PIAFS32K                */
-       TAPI_SAT_BIP_DR_64000BPS_PIAFS64K = 121, /**<   CSD data rate - 64000BPS PIAFS64K               */
-       TAPI_SAT_BIP_DR_28800BPS_MULTIMEDIA = 130, /**< CSD data rate -28800BPS MULTIMEDIA              */
-       TAPI_SAT_BIP_DR_32000BPS_MULTIMEDIA = 131, /**< CSD data rate -32000BPS MULTIMEDIA              */
-       TAPI_SAT_BIP_DR_33600BPS_MULTIMEDIA = 132, /**< CSD data rate - 33600BPS MULTIMEDIA             */
-       TAPI_SAT_BIP_DR_56000BPS_MULTIMEDIA = 133, /**< CSD data rate -56000BPS MULTIMEDIA              */
-       TAPI_SAT_BIP_DR_64000BPS_MULTIMEDIA = 134 /**<  CSD data rate -64000BPS MULTIMEDIA              */
-} TelSatBearerParamCsdDataRateType_t;
-
-/**
- * @enum TelSatBearerParamCsdBearerServiceType_t
- * This enum lists the SAT bearer parameter csd bearer service
- */
-typedef enum {
-       TAPI_SAT_BIP_CSD_BS_DATA_CIRCUIT_ASYNC_UDI = 0, /**<    CSD Bearer service - DATA CIRCUIT ASYNCHRONOUS UDI              */
-       TAPI_SAT_BIP_CSD_BS_DATA_CIRCUIT_SYNC = 1, /**< CSD Bearer service - DATA CIRCUIT SYNCHRONOUS UDI               */
-       TAPI_SAT_BIP_CSD_BS_PAD_ACCESS_ASYNC_UDI = 2, /**<      CSD Bearer service - PAD ACCESS ASYNCHRONOUS UDI                        */
-       TAPI_SAT_BIP_CSD_BS_PACKET_ACCESS_SYNC = 3, /**<        CSD Bearer service - PACKET ACCESS SYNCHRONOUS UDI              */
-       TAPI_SAT_BIP_CSD_BS_DATA_CIRCUIT_ASYNC_RDI = 4, /**<    CSD Bearer service - DATA CIRCUIT ASYNCHRONOUS RDI              */
-       TAPI_SAT_BIP_CSD_BS_DATA_CIRCUIT_SYNC_RDI = 5, /**<     CSD Bearer service - DATA CIRCUIT SYNCHRONOUS RDI               */
-       TAPI_SAT_BIP_CSD_BS_PAD_ACCESS_ASYNC_RDI = 6, /**<      CSD Bearer service - PAD ACCESS ASYNCHRONOUS RDI                */
-       TAPI_SAT_BIP_CSD_BS_PACKET_ACCESS_SYNC_RDI = 7 /**<     CSD Bearer service - PACKET ACCESS SYNCHRONOUS RDI              */
-} TelSatBearerParamCsdBearerServiceType_t;
-
-/**
- * @enum TelSatBearerParamCsdConnectionElementType_t
- * This enum lists the SAT bearer parameter csd connection element
- */
-typedef enum {
-       TAPI_SAT_BIP_CSD_CONN_ELEM_TRANSPARENT = 0, /**<        CSD connection element - TRANSPARENT            */
-       TAPI_SAT_BIP_CSD_CONN_ELEM_NON_TRANSPARENT = 1, /**<    CSD connection element - NON TRANSPARENT                */
-       TAPI_SAT_BIP_CSD_CONN_ELEM_BOTH_TRANSPARENT_PREF = 2, /**<      CSD connection element -BOTH TRANSPARENT PREFFERED              */
-       TAPI_SAT_BIP_CSD_CONN_ELEM_BOTH_NON_TRANSPARENT_PREF = 3 /**<   CSD connection element -  NON TRANSPARENT PREFFERED             */
-} TelSatBearerParamCsdConnectionElementType_t;
-
-/**
- * @enum TelSatBearerParamGprsPrecedenceClassType_t
- * This enum lists the SAT bearer parameter GPRS precedence class. refer  TS 23.107
- */
-typedef enum {
-       TAPI_SAT_BIP_GPRS_PRECED_CLASS_HIGH_PRIORITY = 0x01, /**<       GPRS precedence class -HIGH PRIORITY            */
-       TAPI_SAT_BIP_GPRS_PRECED_CLASS_NORM_PRIORITY = 0x02, /**<       GPRS precedence class -NORM PRIORITY            */
-       TAPI_SAT_BIP_GPRS_PRECED_CLASS_LOW_PRIORITY = 0x03 /**< GPRS precedence class - LOW PRIORITY            */
-} TelSatBearerParamGprsPrecedenceClassType_t;
-
-/**
- * @enum TelSatBearerParamGprsDelayClassType_t
- * This enum lists the SAT bearer parameter GPRS delay class.
- */
-typedef enum {
-       TAPI_SAT_BIP_GPRS_DELAY_CLASS_1 = 0x01, /**<    GPRS delay class - 1            */
-       TAPI_SAT_BIP_GPRS_DELAY_CLASS_2 = 0x02, /**<    GPRS delay class -      2       */
-       TAPI_SAT_BIP_GPRS_DELAY_CLASS_3 = 0x03, /**<    GPRS delay class -      3       */
-       TAPI_SAT_BIP_GPRS_DELAY_CLASS_4 = 0x04 /**<     GPRS delay class - 4            */
-} TelSatBearerParamGprsDelayClassType_t;
-
-/**
- * @enum TelSatBearerParamGprsReliabilityClassType_t
- * This enum lists the SAT bearer parameter GPRS Reliability class.
- */
-typedef enum {
-       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_1 = 0x01, /**<      GPRS Reliability class -1               */
-       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_2 = 0x02, /**<      GPRS Reliability class -2               */
-       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_3 = 0x03, /**<      GPRS Reliability class -3               */
-       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_4 = 0x04, /**<      GPRS Reliability class -4               */
-       TAPI_SAT_BIP_GPRS_RELIABILITY_CLASS_5 = 0x05 /**<       GPRS Reliability class -5               */
-} TelSatBearerParamGprsReliabilityClassType_t;
-
-/**
- * @enum TelSatBearerParamGprsPeakThroughputClassType_t
- * This enum lists the SAT bearer parameter GPRS peak throughput class.
- */
-typedef enum {
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_8KBPS = 0x01, /**< GPRS peak throughput class- UPTO 8KBPS          */
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_16KBPS = 0x02, /**<        GPRS peak throughput class- UPTO 16KBPS         */
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_32KBPS = 0x03, /**<        GPRS peak throughput class-UPTO 32KBPS          */
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_64KBPS = 0x04, /**<        GPRS peak throughput class-UPTO 64KBPS          */
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_128KBPS = 0x05, /**<       GPRS peak throughput class- UPTO 128KBPS                        */
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_256KBPS = 0x06, /**<       GPRS peak throughput class- UPTO 256KBPS                        */
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_512KBPS = 0x07, /**<       GPRS peak throughput class- UPTO 512KBPS                */
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_1024KBPS = 0x08, /**<      GPRS peak throughput class-UPTO 1024KBPS                */
-       TAPI_SAT_BIP_GPRS_PEAK_THROUGHPUT_CLASS_UPTO_2048KBPS = 0x09 /**<       GPRS peak throughput class- UPTO 2048KBPS               */
-} TelSatBearerParamGprsPeakThroughputClassType_t;
-
-/**
- * @enum TelSatBearerParamGprsMeanThroughputClassType_t
- * This enum lists the SAT bearer parameter GPRS mean throughput class.
- */
-typedef enum {
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_DOT_22_BPS = 0x01, /**< GPRS mean throughput class - DOT 22 BPS         */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_DOT_44_BPS = 0x02, /**< GPRS mean throughput class - DOT 44 BPS         */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_1_DOT_11_BPS = 0x03, /**<       GPRS mean throughput class -1 DOT 11 BPS                */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_2_DOT_2_BPS = 0x04, /**<        GPRS mean throughput class -2 DOT 2 BPS         */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_2_DOT_4_BPS = 0x05, /**<        GPRS mean throughput class -2 DOT 4 BPS                 */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_11_DOT_1_BPS = 0x06, /**<       GPRS mean throughput class - 11 DOT 1 BPS               */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_22BPS = 0x07, /**<      GPRS mean throughput class -22BPS               */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_44BPS = 0x08, /**<      GPRS mean throughput class - 44BPS              */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_111BPS = 0x09, /**<     GPRS mean throughput class - 111BPS             */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_DOT_22_KBPS = 0x0A, /**<        GPRS mean throughput class - DOT 22 KBPS                */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_DOT_44_KBPS = 0x0B, /**<        GPRS mean throughput class -DOT 44 KBPS                 */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_1_DOT_11_KBPS = 0x0C, /**<      GPRS mean throughput class -1 DOT 11 KBPS               */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_2_DOT_2_KBPS = 0x0D, /**<       GPRS mean throughput class -2 DOT 2 KBPS                */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_4_DOT_4_KBPS = 0x0E, /**<       GPRS mean throughput class - 4 DOT 4 KBPS               */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_11_DOT_1_KBPS = 0x0F, /**<      GPRS mean throughput class -11 DOT 1 KBPS               */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_22KBPS = 0x10, /**<     GPRS mean throughput class - 22KBPS             */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_44KBPS = 0x11, /**<     GPRS mean throughput class - 44KBPS             */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_111KBPS = 0x12, /**<    GPRS mean throughput class -111KBPS             */
-       TAPI_SAT_BIP_GPRS_MEAN_THROUGHPUT_CLASS_BEST_EFFORT = 0x13 /**< GPRS mean throughput class - BEST EFFORT                */
-} TelSatBearerParamGprsMeanThroughputClassType_t;
-
-/**
- * @enum TelSatBearerParamGprsPdpType_t
- * This enum lists the SAT bearer parameter GPRS pdp type.
- */
-typedef enum {
-       TAPI_SAT_BIP_GPRS_PDP_TYPE_IP = 0x02, /**<      bearer parameter GPRS pdp type - IP             */
-       TAPI_SAT_BIP_GPRS_PDP_TYPE_RESERVED = 0xff /**< reserved                */
-} TelSatBearerParamGprsPdpType_t;
-
-/**
- * @enum TelSatBearerParamLocalLinksServiceIdentityType_t
- * This enum lists the SAT bearer parameters local links service identity.
- */
-typedef enum {
-       TAPI_SAT_BIP_LL_SERVICE_IDENT_VALUE_ASSIGNED_BY_USIM = 0x00, /**<       local links service identity - value assigned by USIM           */
-       TAPI_SAT_BIP_LL_SERVICE_IDENT_VALUE_ASSIGNED_BY_REMOTED_DEVICE = 0xFF /**<      local links service identity - value assigned by remote service */
-} TelSatBearerParamLocalLinksServiceIdentityType_t;
-
-/**
- * @enum TelSatChannelStatusType_t
- * This enum lists the SAT channel status type.
- */
-typedef enum {
-       TAPI_SAT_CS_LINK_ESTABLISHED_OR_PDP_CTX_NOT_ACTIVATED, /**<     channel status type-CS LINK ESTABLISHED OR PDP CTX NOT ACTIVATED                */
-       TAPI_SAT_CS_LINK_ESTABLISHED_OR_PDP_CTX_ACTIVATED, /**< channel status type-CS LINK ESTABLISHED OR PDP CTX ACTIVATED            */
-       TAPI_SAT_UICC_SERVER_MODE_TCP_IN_CLOSED_STATE, /**<     channel status type-UICC SERVER MODE TCP IN CLOSED STATE                */
-       TAPI_SAT_UICC_SERVER_MODE_TCP_IN_LISTEN_STATE, /**<     channel status type-UICC SERVER MODE TCP IN LISTEN STATE                */
-       TAPI_SAT_UICC_SERVER_MODE_TCP_IN_ESTABLISHED_STATE, /**<        channel status type-UICC SERVER MODE TCP IN ESTABLISHED STATE           */
-       TAPI_SAT_UICC_SERVER_MODE_RESERVED /**< reserved                */
-} TelSatChannelStatusType_t;
-
-/**
- * @enum TelSatChannelStatusInfoType_t
- * This enum lists the SAT channel status info type.
- */
-typedef enum {
-       TAPI_SAT_CHANNEL_STATUS_NO_FURTHER_INFO_AVAILABLE = 0, /**<     CHANNEL STATUS NO FURTHER INFO AVAILABLE                */
-       TAPI_SAT_CHANNEL_STATUS_NOT_USED = 1, /**<      CHANNEL STATUS NOT USED                 */
-       TAPI_SAT_CHANNEL_STATUS_LINK_DROPPED = 5 /**<   CHANNEL STATUS LINK DROPPED     */
-} TelSatChannelStatusInfoType_t;
-
-/**
- * @enum TelSatAddressType_t
- * This enum lists the SAT address type.
- */
-typedef enum {
-       TAPI_SAT_ADDR_TYPE_IPv4 = 0x21, /**<    address type - IPv4     */
-       TAPI_SAT_ADDR_TYPE_IPv6 = 0x57, /**<    address type - IPv6     */
-       TAPI_SAT_ADDR_RESERVED = 0xFF /**<      reserved                */
-} TelSatAddressType_t;
-
-/**
- * @enum TelSatTransportProtocolType_t
- * This enum lists the SAT transport protocol type.
- */
-typedef enum {
-       TAPI_SAT_TP_TYPE_UDP_UICC_CLIENT = 0x01, /**<   transport protocol type- UDP UICC CLIENT        */
-       TAPI_SAT_TP_TYPE_TCP_UICC_CLIENT = 0x02, /**<   transport protocol type-TCP UICC CLIENT         */
-       TAPI_SAT_TP_TYPE_TCP_UICC_SERVER = 0x03 /**<    transport protocol type- TCP UICC SERVER        */
-} TelSatTransportProtocolType_t;
-
-/**
- * @enum TelSatRemoteEntityAddrCodingType_t
- * This enum lists the SAT remote entity address coding type.
- */
-typedef enum {
-       TAPI_SAT_REMOTE_ENTITY_ADDR_CODING_TYPE_IEEE802_48BIT = 0, /**< remote entity address coding type- IEEE802 48BIT                */
-       TAPI_SAT_REMOTE_ENTITY_ADDR_CODING_TYPE_IRDA_32BIT = 1, /**<    remote entity address coding type- IRDA 32BIT           */
-       TAPI_SAT_REMOTE_ENTITY_ADDR_CODING_TYPE_RESERVED = 0xFF /**<    reserved                */
-} TelSatRemoteEntityAddrCodingType_t;
-
-/**
- * This structure defines the Address data object.
- */
-typedef struct {
-       TelSimTypeOfNum_t ton; /**<     type of number          */
-       TelSimNumberingPlanIdentity_t npi; /**< number plan identity            */
-       unsigned char diallingNumberLen; /**<   dialing number length           */
-       char diallingNumber[TAPI_SAT_DIALLING_NUMBER_LEN_MAX]; /**<     dialing number  */
-} TelSatAddressInfo_t;
-
-/**
- * This structure defines the data coding scheme object.
- */
-typedef struct {
-       int bIsCompressedFormat; /**<   flag to verify compressed format        */
-       TelSatAlphabetFormatType_t alphabetFormat; /**< alphabet format Type            */
-       TelSatMsgClassType_t msgClass; /**<     Type of message class           */
-       unsigned char rawDcs; /**<      raw dcs info            */
-} TelSatDataCodingSchemeInfo_t;
-
-/**
- * This structure defines the Alpha ID data object.
- */
-typedef struct {
-       int bIsPresent; /**<    flag for checking existence of alpha identifier         */
-       TelSatDataCodingSchemeInfo_t dcs; /**<  dcs info                */
-       unsigned char stringLen; /**<   alpha identifier length                 */
-       char string[TAPI_SAT_ALPHA_ID_LEN_MAX]; /**<    alpha identifier info   */
-} TelSatAlphaIdentifierInfo_t;
-
-/**
- * This structure defines the Sub Address data object.
- */
-typedef struct {
-       unsigned char subAddressLen; /**<       sub address length              */
-       char subAddress[TAPI_SAT_SUB_ADDR_LEN_MAX]; /**<        sub address             */
-} TelSatSubAddressInfo_t;
-
-/**
- * This structure defines the Capability Configuration Parameters data object.
- */
-typedef struct {
-       unsigned char dataLen; /**<     capability configuration parameter length       */
-       char data[TAPI_SAT_CCP_DATA_LEN_MAX]; /**<      capability configuration parameter      */
-} TelSatCapaConfigParamInfo_t;
-
-/**
- * This struct defines the Command qualifier values for send SMS command.
- */
-typedef struct {
-       int bIsPackingByMeRequired; /**<        flag to verify packing requirement, if FALSE, packing by ME not required        */
-} TelSatCmdQualiSendSms_t;
-
-/**
- * This struct defines the Command qualifier values for display text command.
- */
-typedef struct {
-       TelSatDisplayTextPriorityType_t msgPriority; /**<       message priority                */
-       TelSatDisplayTextMsgClearType_t msgClear; /**<  message clear type              */
-} TelSatCmdQualiDisplayText_t;
-
-/**
- * This struct defines the Command qualifier values for get inkey command.
- */
-typedef struct {
-       TelSatInkeyType_t inkeyType; /**<       inkey type              */
-       int bIsUsingAlphabetSet; /**<   flag for checking whether using alphabet set or not. if FALSE, digits(0-9,*,#and+) only         */
-       TelSatUseInputAlphabetType_t alphabetType; /**< alphabet type           */
-       int bIsImmediateResponseRequired;/**<   flag for checking whether immediate response required or not            */
-       int bIsHelpInfoAvailable; /**<  flag for checking whether help info available or not. if FALSE, no help information available   */
-} TelSatCmdQualiGetInkey_t;
-
-/**
- * This struct defines the Command qualifier values for get input command.
- */
-typedef struct {
-       int bIsUsingAlphabetSet; /**<   flag for checking whether using alphabet set. if FALSE, digits(0-9,*,#and+) only        */
-       TelSatUseInputAlphabetType_t alphabetType; /**< alphabet type. only using alphabet set case.            */
-       int bIsMeEchoUserInput; /**<    flag for checking whether ME should echo user input. if FALSE, user input shall not be displayed*/
-       int bIsUserInputUnpackedFormat; /**<    flag for checking whether user input is in unpacked format or not.  if FALSE, user input in SMS packed format   */
-       int bIsHelpInfoAvailable; /**<  flag to verify if help info available or not. if FALSE, no help information available   */
-} TelSatCmdQualiGetInput_t;
-
-/**
- * This struct defines the Command qualifier values for play tone command.
- */
-typedef struct {
-       TelSatDisplayVibrateAlertType_t vibrateAlert; /**<      type of vibrate alert           */
-} TelSatCmdQualiPlayTone_t;
-
-/**
- * This struct defines the Command qualifier values for select item command.
- */
-typedef struct {
-       TelSatPresentationType_t presentationType; /**< type of presentation. only presentation type specified          */
-       TelSatSelectionPreferenceType_t selectionPreference; /**<       type of selection preference            */
-       int bIsHelpInfoAvailable; /**<  flag for checking whether help info available or not. if FALSE, no help information available   */
-} TelSatCmdQualiSelectItem_t;
-
-/**
- * This struct defines the Command qualifier values for setup menu command.
- */
-typedef struct {
-       TelSatSelectionPreferenceType_t selectionPreference; /**<       type of selection preference            */
-       int bIsHelpInfoAvailable; /**<  flag to verify help info available or not. if FALSE, no help information available      */
-} TelSatCmdQualiSetupMenu_t;
-
-/**
- * This struct defines the Command qualifier values for language notification command.
- */
-typedef struct {
-       int bSpecificLanguageNotification; /**< flag for specific language notification. if FALSE, non-specific language notification   */
-} TelSatCmdQualiLanguageNotification_t;
-
-/**
- * SAT command qualifier open channel
- */
-typedef struct {
-       int bIsEstablishImmediateLink; /**<     flag whether establishing immediate link or not. if FALSE, on demand link establishment */
-       int bIsAutomaticReconnection; /**<      flag whether automatic reconnection or not. if FALSE, no automatic reconnection */
-       int bIsModeBackground; /**<     flag whether background mode or not.            */
-} TelSatCmdQualiOpenChannel_t;
-
-/**
- * SAT command qualifier send data
- */
-typedef struct {
-       int bIsSendDataImmediately; /**<        flag whether to send data immediately or not. if FALSE, store data in Tx buffer*/
-} TelSatCmdQualiSendData_t;
-
-/**
- * This structure contains the command number, type and the qualifier objects of a SATK command.
- */
-typedef struct {
-       unsigned char commandNumber; /**< specific command number       */
-       TelSatCommandType_t commandType; /**<   proactive command type          */
-
-       union {
-               TelSatCmdQualiRefresh_t cmdQualiRefresh; /**<   refresh command qualifier info  */
-               TelSatCmdQualiSetupCall_t cmdQualiSetupCall; /**<       setup call command qualifier info       */
-               TelSatCmdQualiSendSms_t cmdQualiSendSms; /**<   send sms command qualifier info */
-               TelSatCmdQualiDisplayText_t cmdQualiDisplayText; /**<   display text command qualifier info     */
-               TelSatCmdQualiGetInkey_t cmdQualiGetInkey; /**< get inkey command qualifier info        */
-               TelSatCmdQualiGetInput_t cmdQualiGetInput; /**< get input command qualifier info        */
-               TelSatCmdQualiPlayTone_t cmdQualiPlayTone; /**< play tone command qualifier info        */
-               TelSatCmdQualiSelectItem_t cmdQualiSelectItem; /**<     select item command qualifier info      */
-               TelSatCmdQualiSetupMenu_t cmdQualiSetupMenu; /**<       setup menu command qualifier info       */
-               TelSatCmdQualiProvideLocalInfo_t cmdQualiProvideLocalInfo;/**<  provide local info command qualifier info       */
-               TelSatCmdQualiLanguageNotification_t cmdQualiLanguageNotification;/**<  language notification command qualifier info    */
-               TelSatCmdQualiLaunchBrowser_t cmdQualiLaunchBrowser; /**<       launch Browser command qualifier info   */
-               TelSatCmdQualiOpenChannel_t cmdQualiOpenChannel; /**<   Open channel command qualifier info     */
-               TelSatCmdQualiSendData_t cmdQualiSendData; /**< send data command qualifier info        */
-       } u; /**<       Union   */
-} TelSatCommandDetailInfo_t;
-
-/**
- * This struct defines the device identity values.
- */
-typedef struct {
-       TelSatDeviceIdentitiesTagType_t source; /**<    device identity tag for source  */
-       TelSatDeviceIdentitiesTagType_t destination; /**<       device identity for destination */
-} TelSatDeviceIdentitiesInfo_t;
-
-/**
- * This structure defines the Duration data object.
- */
-typedef struct {
-       TelSatTimeUnitType_t timeUnit; /**<     time units for the duration data                */
-       unsigned char timeInterval; /**<        time interval           */
-} TelSatDurationInfo_t;
-
-/**
- * This structure defines the menu item data object.
- */
-typedef struct {
-       unsigned char itemId; /**<      item identifier                 */
-       unsigned char textLen; /**<     text length             */
-       unsigned char text[TAPI_SAT_ITEM_TEXT_LEN_MAX + 1]; /**<        text information                */
-} TelSatMenuItemInfo_t;
-
-/**
- * This structure defines the item identifier object.
- */
-typedef struct {
-       unsigned char selectedItemIdentifier; /**<      selected item identifier                */
-} TelSatItemIdentifierInfo_t;
-
-/**
- * This structure defines expected user response length.
- */
-typedef struct {
-       unsigned char min; /**< user response length minimum value              */
-       unsigned char max; /**< user response length maximum value              */
-} TelSatRespLenInfo_t;
-
-/**
- * This structure defines RESUlT data object.
- */
-typedef struct {
-       TelSatResultType_t generalResult; /**<  general result  */
-       TelSatMeProblemType_t meProblem; /**<   additional information on general result        */
-} TelSatResultInfo_t;
-
-/**
- * This structure defines RESUlT data object.
- */
-typedef struct {
-       TelSatSmsTpduType_t tpduType; /**<      SMS TPDU TYPE   */
-       unsigned char dataLen; /**<     SMS TPDU DATA LENGTH    */
-       unsigned char data[TAPI_SAT_SMS_TPDU_SMS_DATA_LEN_MAX]; /**< SMS TPDU DATA*/
-} TelSatSmsTpduInfo_t;
-
-/**
- * This structure defines SS STRING data object.
- */
-typedef struct {
-       TelSimTypeOfNum_t ton; /**<     type of number  */
-       TelSimNumberingPlanIdentity_t npi; /**< number plan identity    */
-       unsigned char stringLen; /**<   ss string length        */
-       char string[TAPI_SAT_SS_STRING_LEN_MAX]; /**<   ss string       */
-} TelSatSsStringInfo_t;
-
-/**
- * This structure defines TEXT STRING data object.
- */
-typedef struct {
-       int bIsDigitOnly; /**<  flag for checking whether only digits used or not       */
-       TelSatDataCodingSchemeInfo_t dcs; /**<  data coding scheme              */
-       unsigned short stringLen; /**<  text length             */
-       char string[TAPI_SAT_TEXT_STRING_LEN_MAX + 1]; /**<     text string     */
-} TelSatTextTypeInfo_t;
-
-/**
- * This structure defines menu item text object.
- */
-typedef struct {
-       int bIsDigitOnly; /**<  flag for checking whether only digits used or not       */
-       TelSatDataCodingSchemeInfo_t dcs; /**<  data coding scheme              */
-       unsigned char stringLen; /**<   menu item string length */
-       char* pString; /**<     Menu Item String */
-} TelSatMenuItemTextInfo_t;
-
-/**
- * This structure defines tone object.
- */
-typedef struct {
-       TelSatToneType_t type; /**<     tone type       */
-} TelSatToneInfo_t;
-
-/**
- * This structure defines USSD string data object.
- */
-typedef struct {
-       TelSatDataCodingSchemeInfo_t dcs; /**<  data coding scheme      */
-       unsigned char ussdStringLen; /**<       ussd string length      */
-       char ussdString[TAPI_SAT_USSD_STRING_LEN_MAX]; /**<     ussd string     */
-} TelSatUssdStringInfo_t;
-
-/**
- * This structure defines File list data object.
- */
-typedef struct {
-       unsigned char fileCount; /**<   file count      */
-       TelSimFileName_t fileId[TAPI_SAT_FILE_ID_LIST_MAX_COUNT]; /**<  file identifier */
-} TelSatFileListInfo_t;
-
-/**
- * This structure defines default text data object.
- */
-typedef struct {
-       int bIsPresent; /**<    flag for checking whether default text exists or not    */
-       int bIsDigitOnly; /**<  flag for checking whether only digits used or not       */
-       TelSatDataCodingSchemeInfo_t dcs; /**<  data coding scheme      */
-       unsigned char stringLen; /**<   default text string length              */
-       char string[TAPI_SAT_TEXT_STRING_LEN_MAX]; /**< default text    */
-} TelSatDefaultTextInfo_t;
-
-/**
- * This structure defines Next Action Indicator List data object.
- */
-typedef struct {
-       unsigned char listCount; /**<   next action identifier count    */
-       unsigned char list[TAPI_SAT_ITEMS_NEXT_ACTION_INDI_LIST_MAX_COUNT]; /**<        next action identifier list     */
-} TelSatItemsNextActionIndiListInfo_t;
-
-/**
- * This structure defines event list data object.
- */
-typedef struct {
-       unsigned char eventListCount; /**<      event list count        */
-       TelSatEventDownloadType_t list[TAPI_SAT_EVENT_LIST_MAX_COUNT]; /**<     event list */
-} TelSatEventListInfo_t;
-
-/**
- * This structure defines icon info object.
- */
-typedef struct {
-       unsigned char width; /**<       icon width              */
-       unsigned char height; /**<      icon height     */
-       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];
-       char clutFile[TAPI_SAT_IMG_DATA_FILE_PATH_LEN_MAX];
-} TelSatIconInfo_t;
-
-/**
- * This structure defines icon data object.
- */
-typedef struct {
-       int bIsPresent; /**<    flag for checking whether icon identifier exists or not         */
-       TelSatIconQualifierType_t iconQualifier; /**<   icon qualifier type             */
-       unsigned char iconIdentifier; /**<      icon identifier         */
-       TelSatIconInfo_t iconInfo; /**< icon info       */
-} TelSatIconIdentifierInfo_t;
-
-/**
- * This structure defines icon identifier data object.
- */
-typedef struct {
-       int bIsPresent; /**<    flag for checking whether icon identifier exists or not */
-       TelSatIconQualifierType_t iconListQualifier; /**<       icon list qualifier     */
-       unsigned char iconCount; /**<   icon count      */
-       unsigned char iconIdentifierList[TAPI_SAT_ICON_LIST_MAX_COUNT]; /**<    icon identifier list    */
-       TelSatIconInfo_t iconInfo[TAPI_SAT_ICON_LIST_MAX_COUNT]; /**<   icon list info  */
-} TelSatIconIdentifierListInfo_t;
-
-/**
- * This structure defines SAT bc repeat indicator Info
- */
-typedef struct {
-       TelSatBcRepeatIndicatorType_t indType; /**<     bc repeat indicator type        */
-} TelSatBcRepeatIndicatorInfo_t;
-
-/**
- * This structure defines call control strings.
- */
-typedef struct {
-       TelSatCallCtrlStringType_t callCtrlStringType; /**<     call control type       */
-       union {
-               TelSatAddressInfo_t voiceString; /**<   voice call string       */
-               TelSatSsStringInfo_t ssString; /**<     ss string       */
-               TelSatUssdStringInfo_t ussdString; /**< ussd string     */
-       } u; /**<       Union   */
-} TelSatCallCtrlAddressStringInfo_t;
-
-/**
- * This structure defines the Action requested call control data.
- */
-typedef struct {
-       TelSatCallCtrlAddressStringInfo_t callCtrlAddString; /**< Call control address string */
-       TelSatCapaConfigParamInfo_t ccp1; /**< Capability configuration parameter 1 */
-       TelSatSubAddressInfo_t subAddress; /**< Subaddress */
-       TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier */
-       TelSatBcRepeatIndicatorInfo_t bcRepeatIndicator; /**< Bc repeat indicator */
-       TelSatCapaConfigParamInfo_t ccp2; /**< Capability configuration parameter 2 */
-} TelSatCallCtrlRequestedActionInfo_t;
-
-/**
- * This structure defines dtmf string data object.
- */
-typedef struct {
-       unsigned char stringLen; /**<   dtmf string lengh       */
-       char dtmfTone[TAPI_SAT_DTMF_STRING_LEN_MAX]; /**<       dtmf tone data  */
-} TelSatDtmfStringInfo_t;
-
-/**
- * This structure defines language data object.
- */
-typedef struct {
-       TelSatLanguageType_t language; /**<     language type   */
-} TelSatLanguageInfo_t;
-
-/**
- * This structure defines date time and time zone data object.
- */
-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 timeZone; /**<    timeZone        */
-} TelSatDataTimeZoneInfo_t;
-
-/**
- * This structure defines SAT browser identities.
- */
-typedef struct {
-       TelSatBrowserIdentityType_t browserIdentity; /**<       browser identity        */
-} TelSatBrowserIdentitiesInfo_t;
-
-/**
- * This structure defines SAT browser URL Data Object.
- */
-typedef struct {
-       char string[TAPI_SAT_URL_LEN_MAX + 1]; /**<     url string      */
-} TelSatUrlInfo_t;
-
-/**
- * This structure defines SAT bearer type.
- */
-typedef struct {
-       unsigned char listLen; /**<     bearer list length      */
-       TelSatBearerType_t bearerList[TAPI_SAT_BEARER_LIST_MAX_COUNT]; /**<     bearer list     */
-} TelSatBearerInfo_t;
-
-/**
- * This structure defines SAT provisioning reference.
- */
-typedef struct {
-       char provisioningFilePath[TAPI_SAT_PROVISIONING_FILE_PATH_LEN_MAX]; /**<        provisioning file path  */
-} TelSatProvisioningRefInfo_t;
-
-/**
- * This structure defines SAT browser termination cause.
- */
-typedef struct {
-       TelSatBrowserTerminationCauseType_t cause; /**< browser termination cause       */
-} TelSatBrowserTerminationCauseInfo_t;
-
-/**
- * This structure defines SAT Csd bearer parameters .
- */
-typedef struct {
-       TelSatBearerParamCsdDataRateType_t dataRate; /**<       bearer csd data rate    */
-       TelSatBearerParamCsdBearerServiceType_t bearerService; /**<     bearer csd service type */
-       TelSatBearerParamCsdConnectionElementType_t connectionElement; /**<     bearer connection element type  */
-} TelSatBearerParametersCsdInfo_t;
-
-/**
- * This structure defines SAT bearer parameters GPRS.
- */
-typedef struct {
-       TelSatBearerParamGprsPrecedenceClassType_t precedenceClass; /**<        bearer gprs     precedence class        */
-       TelSatBearerParamGprsDelayClassType_t delayClass; /**<  bearer gprs delay       */
-       TelSatBearerParamGprsReliabilityClassType_t reliabilityClass; /**<      bearer gprs reliability */
-       TelSatBearerParamGprsPeakThroughputClassType_t peakThroughputClass;/**< bearer gprs peak throughput     */
-       TelSatBearerParamGprsMeanThroughputClassType_t meanThroughputClass;/**< bearer gprs mean throughput     */
-       TelSatBearerParamGprsPdpType_t pdpType; /**<    bearer gprs pdp type    */
-} TelSatBearerParametersGprsInfo_t;
-
-/**
- * This structure defines SAT bearer parameters local links.
- */
-typedef struct {
-       TelSatBearerParamLocalLinksServiceIdentityType_t serviceIdentifier; /**<        bearer local link service identifier            */
-       char serviceRecord[TAPI_SAT_BEARER_PARAMS_LEN_MAX]; /**<        bearer local link service record        */
-} TelSatBearerParametersLocalLinksInfo_t;
-
-/**
- * This structure defines SAT bearer description.
- */
-typedef struct {
-       TelSatBearerDescType_t bearerType; /**< bearer type     */
-       union {
-               TelSatBearerParametersCsdInfo_t bearerParamsCsd; /**<   csd     */
-               TelSatBearerParametersGprsInfo_t bearerParamsGprs; /**< gprs    */
-               TelSatBearerParametersLocalLinksInfo_t bearerParamsLocalLinks; /**<     local link      */
-       } bearer_params; /**<Union */
-} TelSatBearerDescriptionInfo_t;
-
-/**
- * This structure defines SAT channel data.
- */
-typedef struct {
-       unsigned char channelDataStringLen; /**<        channel data length     */
-       char channelDataString[TAPI_SAT_CHANNEL_DATA_STRING_LEN_MAX]; /**<      channel data    */
-} TelSatChannelDataInfo_t;
-
-/**
- * This structure defines SAT channel data length.
- */
-typedef struct {
-       unsigned char channelDataLen; /**<      channel data length     */
-} TelSatChannelDataLengthInfo_t;
-
-/**
- * This structure defines SAT buffer size.
- */
-typedef struct {
-       unsigned char bufferSize[2]; /**<       channel data buffer size        */
-} TelSatBufferSizeInfo_t;
-
-/**
- * This structure defines SAT channel status.
- */
-typedef struct {
-       unsigned char channelId; /**<   channel id      */
-       TelSatChannelStatusType_t status; /**<  channel status          */
-       TelSatChannelStatusInfoType_t channelInfo; /**< channel status info     */
-} TelSatChannelStatusInfo_t;
-
-/**
- * This structure defines SAT other address.
- */
-typedef struct {
-       TelSatAddressType_t addressType; /**<   channel address type    */
-       unsigned char addressLen; /**<  channel address length  */
-       char address[TAPI_SAT_OTHER_ADDR_LEN_MAX]; /**< channel address */
-} TelSatOtherAddressInfo_t;
-
-/**
- * This structure defines SIM me interface transport level.
- */
-typedef struct {
-       TelSatTransportProtocolType_t transportProtocolType; /**<       transport protocol type */
-       unsigned short portNumber; /**< port number     */
-} TelSatSimMeInterfaceTransportLevelInfo_t;
-
-/**
- * This structure defines SAT network access name.
- */
-typedef struct {
-       unsigned char length; /**<      network access name length      */
-       unsigned char netAccName[TAPI_SAT_NET_ACC_NAM_LEN_MAX]; /**<    network access name     */
-} TelSatnetworkAccessNameInfo_t;
-
-/**
- * This structure defines SAT aid.
- */
-typedef struct {
-       char aid[TAPI_SAT_AID_LEN_MAX]; /**<    application Id  */
-} TelSatAidInfo_t;
-
-/**
- * This structure defines SAT remote entity address.
- */
-typedef struct {
-       TelSatRemoteEntityAddrCodingType_t codingType; /**<     remote entity address coding type       */
-       unsigned short length; /**<     remote entity address length    */
-       unsigned char remoteEntityAddress[TAPI_SAT_REMOTE_ENTITY_ADDR_LEN_MAX]; /**<    remote entity address data      */
-} TelSatRemoteEntityAddressInfo_t;
-
-/**
- * This structure defines SAT text attribute.
- */
-typedef struct {
-       unsigned char textFormatting[4]; /**<   text attribute -e.g. bold, center align, etc    */
-} TelSatTextAttributeInfo_t;
-
-/**
- * This structure defines SAT text attribute list.
- */
-typedef struct {
-       unsigned int listCount; /**<    text attribute list count               */
-       TelSatTextAttributeInfo_t list[TAPI_SAT_ITEM_TEXT_ATTRIBUTES_LIST_MAX_COUNT]; /**<      text attribute list info        */
-} TelSatTextAttributeListInfo_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TEL_SAT_OBJ_H_ */
-
-/**
- * @}
- */
diff --git a/include/common/TelSatProactvCmd.h b/include/common/TelSatProactvCmd.h
deleted file mode 100644 (file)
index 86ad042..0000000
+++ /dev/null
@@ -1,704 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup SAT_TAPI        SAT
- * @{
- *
- * @file TelSatProactvCmd.h
-
- @brief This file serves as a "C" header file defines structures for Tapi SAT Proactive commands and terminal response Services. \n
- It contains a sample set of constants, enums, structs that would be required by applications.
- */
-
-#ifndef _TEL_SAT_PROACTV_CMD_H_
-#define _TEL_SAT_PROACTV_CMD_H_
-
-#include <TelSatObj.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-#define TAPI_SAT_MENU_ITEM_COUNT_MAX                   40      /**<    max count of sat menu items     */
-#define TAPI_SAT_PROVISIONING_REF_MAX_COUNT            10      /**<    max count of sat provisioning reference */
-
-/**
- * This structure contains the data objects for DISPLAY TEXT proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-} TelSatMoreTimeIndInfo_t;
-
-/**
- * This structure contains the data objects for DISPLAY TEXT proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatTextTypeInfo_t text; /**< display text info       */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       int bImmediateRespRequested; /**<       flag for checking whether immediate response required or not    */
-       TelSatDurationInfo_t duration; /**<     duration for which text should be displayed     */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatDisplayTextIndInfo_t;
-
-/**
- * This structure contains the data objects for GET INKEY proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatTextTypeInfo_t text; /**< display text info       */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatDurationInfo_t duration; /**<     duration for which text should be displayed     */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatGetInkeyIndInfo_t;
-
-/**
- * This structure contains the data objects for GET INPUT proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatTextTypeInfo_t text; /**< display text info       */
-       TelSatRespLenInfo_t respLen; /**<       input response length   */
-       TelSatTextTypeInfo_t defaultText; /**<  default text info       */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatGetInputIndInfo_t;
-
-/**
- * This structure contains the data objects for PLAY TONE proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatToneInfo_t tone; /**<     tone info       */
-       TelSatDurationInfo_t duration; /**<     duration for which tone should be played        */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatPlayToneIndInfo_t;
-
-/**
- * This structure contains the data objects for SETUP MENU proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       unsigned char menuItemCount; /**<       count of menu items     */
-       TelSatMenuItemInfo_t menuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX]; /**<       menu item data  */
-       TelSatItemsNextActionIndiListInfo_t itemNextActionIndList; /**< next action indication list     */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatIconIdentifierListInfo_t iconIdList; /**< icon identifier list info       */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-       TelSatTextAttributeListInfo_t itemTextAttributeList; /**<       item text attribute list        */
-} TelSatSetupMenuIndInfo_t;
-
-/**
- * This structure contains the data objects for SELECT ITEM proactive command indication data.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatItemsNextActionIndiListInfo_t itemNextActionIndList; /**< next action indication list     */
-       unsigned char defaultItemIdentifier; /**<       default item identifier(default selected item id)       */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatIconIdentifierListInfo_t iconIdList; /**< icon identifier list info       */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-       TelSatTextAttributeListInfo_t itemTextAttributeList; /**<       item text attribute list        */
-       unsigned char menuItemCount; /**<       count of menu items     */
-       TelSatMenuItemInfo_t menuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX]; /**<       menu item data  */
-} TelSatSelectItemIndInfo_t;
-
-/**
- * This structure contains the data objects for SEND SHORT MESSAGE proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatAddressInfo_t address; /**<       address for sending sms */
-       TelSatSmsTpduInfo_t smsTpdu; /**<       sms tpdu info   */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatSendSmsIndInfo_t;
-
-/**
- * This structure contains the data objects for SEND SS proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatSsStringInfo_t ssString; /**<     ss string       */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatSendSsIndInfo_t;
-
-/**
- * This structure contains the data objects for SEND USSD proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatUssdStringInfo_t ussdString; /**< ussd string info        */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatSendUssdIndInfo_t;
-
-/**
- * This structure contains the data objects for SETUP CALL proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAddressInfo_t address; /**<       setup call address info*/
-       TelSatCapaConfigParamInfo_t ccp; /**<   capability configuration parameter      */
-       TelSatSubAddressInfo_t subAddress; /**< setup call sub address  */
-       TelSatDurationInfo_t duration; /**<     command execution time duration */
-       TelSatAlphaIdentifierInfo_t userConfirmPhaseAlphaId;/**<        user Confirmation Phase AlphaId */
-       TelSatAlphaIdentifierInfo_t callSetupPhaseAlphaId; /**< call Setup Phase AlphaId        */
-       TelSatIconIdentifierInfo_t userConfirmPhaseIconId; /**< user Confirmation Phase IconId  */
-       TelSatIconIdentifierInfo_t callSetupPhaseIconId; /**<   call Setup Phase IconId */
-       TelSatTextAttributeInfo_t userConfirmPhaseTextAttribute; /**<   user Confirmation Phase Text Attribute  */
-       TelSatTextAttributeInfo_t callSetupPhaseTextAttribute; /**<     call Setup PhaseText Attribute  */
-} TelSatSetupCallIndInfo_t;
-
-/**
- * This structure contains the data objects for REFRESH proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatFileListInfo_t fileList; /**<     file list for refresh   */
-       TelSatAidInfo_t aid; /**<       application Id  */
-} TelSatRefreshIndInfo_t;
-
-/**
- * This structure contains the data objects for PROVIDE LOCAL INFO proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-
-} TelSatProvideLocalInfoIndInfo_t;
-
-/**
- * This structure contains the data objects for SETUP EVENT LIST proactive command indication data.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatEventListInfo_t eventList; /**<   event list contains events which are required by USIM application       */
-
-} TelSatSetupEventListIndInfo_t;
-
-/**
- * This structure contains the data objects for SETUP IDLE MODE TEXT proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatTextTypeInfo_t text; /**< text to be shown on idle screen */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatSetupIdleModeTextIndInfo_t;
-
-/**
- * This structure contains the data objects for SEND DTMF COMMAND proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatDtmfStringInfo_t dtmfString; /**< dtmf string     */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatSendDtmfIndInfo_t;
-
-/**
- * This structure contains the data objects for LANGUAGE NOTIFICATION proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatLanguageInfo_t language; /**<     language info from USIM application     */
-} TelSatLanguageNotificationIndInfo_t;
-
-/**
- * This structure contains the data objects for LAUNCH BROWSER proactive command indication.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatBrowserIdentitiesInfo_t browserId; /**<   browser identity        */
-       TelSatUrlInfo_t url; /**<       url     */
-       TelSatBearerInfo_t bearer; /**< bearer which is used by browser */
-       unsigned char provisioningRefCount; /**<        provisioning reference count    */
-       TelSatProvisioningRefInfo_t provisioningRef[TAPI_SAT_PROVISIONING_REF_MAX_COUNT]; /**<  provisioning reference data     */
-       TelSatTextTypeInfo_t text; /**< display text info       */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatLaunchBrowserIndInfo_t;
-
-/**
- * This structure contains the data objects for OPEN CHANNEL CSB proactive command indication data.
- */
-typedef struct {
-       TelSatAddressInfo_t address; /**<       channel address */
-       TelSatSubAddressInfo_t subAddress; /**< channel sub address     */
-       TelSatDurationInfo_t duration1; /**<    connection require time */
-       TelSatDurationInfo_t duration2; /**<    connection require time2        */
-       TelSatBearerParametersCsdInfo_t bearerParamsCsd; /**<   csd info        */
-       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
-       TelSatOtherAddressInfo_t otherAddress; /**<     otherAddress    */
-       TelSatTextTypeInfo_t userLogin; /**<    userLogin       */
-       TelSatTextTypeInfo_t userPassword; /**< userPassword    */
-       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     simMeInterfaceTransportLevel    */
-       TelSatOtherAddressInfo_t dataDestinationAddress; /**<   dataDestinationAddress  */
-} TelSatOpenChannelCsbInfo_t;
-
-/**
- * This structure contains the data objects for OPEN CHANNEL (packet) proactive command indication data.
- */
-typedef struct {
-       TelSatBearerParametersGprsInfo_t bearerParamsGprs; /**< gprs info       */
-       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
-       TelSatnetworkAccessNameInfo_t networkAccessName; /**<   networkAccessName       */
-       TelSatOtherAddressInfo_t otherAddress; /**<     otherAddress    */
-       TelSatTextTypeInfo_t userLogin; /**<    userLogin       */
-       TelSatTextTypeInfo_t userPassword; /**< userPassword    */
-       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     simMeInterfaceTransportLevel    */
-       TelSatOtherAddressInfo_t dataDestinationAddress; /**<   dataDestinationAddress  */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatOpenChannelpdbInfo_t;
-
-/**
- * This structure contains the data objects for OPEN CHANNEL LOCAL LINK proactive command indication data.
- */
-typedef struct {
-       TelSatDurationInfo_t duration1; /**<    command execution time duration1        */
-       TelSatDurationInfo_t duration2; /**<    command execution time duration2        */
-       TelSatBearerParametersLocalLinksInfo_t bearerParamsLocalLinks; /**<     local link info */
-       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
-       TelSatTextTypeInfo_t userPassword; /**< userPassword    */
-       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     simMeInterfaceTransportLevel    */
-       TelSatOtherAddressInfo_t dataDestinationAddress; /**<   dataDestinationAddress  */
-       TelSatRemoteEntityAddressInfo_t remoteEntityAddress; /**<       remoteEntityAddress     */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatOpenChannelLocalBearerInfo_t;
-
-/**
- * This structure contains the data objects for OPEN CHANNEL (DEFAULT BEARER) proactive command indication data.
- */
-typedef struct {
-       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
-       TelSatOtherAddressInfo_t otherAddress; /**<     otherAddress    */
-       TelSatTextTypeInfo_t userLogin; /**<    userLogin       */
-       TelSatTextTypeInfo_t userPassword; /**< userPassword    */
-       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel;/**<      simMeInterfaceTransportLevel    */
-       TelSatOtherAddressInfo_t dataDestinationAddress; /**<   dataDestinationAddress  */
-} TelSatOpenChannelDefaultBearerInfo_t;
-
-/**
- * This structure contains the data objects for OPEN CHANNEL (UICC Server Mode) proactive command indication data.
- */
-typedef struct {
-       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
-       TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     simMeInterfaceTransportLevel    */
-} TelSatOpenChannelUiccServerModeInfo_t;
-
-/**
- * This structure contains the data objects for OPEN CHANNEL proactive command indication data.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       int bIsUiccServerMode; /**<     flag whether UICC server mode or not    */
-       TelSatBearerDescType_t bearerType; /**< bearer destination type */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       union {
-               TelSatOpenChannelCsbInfo_t csBearer; /**<       cs info */
-               TelSatOpenChannelpdbInfo_t pdBearer; /**<       pbd info        */
-               TelSatOpenChannelLocalBearerInfo_t locBearer; /**<      local link info */
-               TelSatOpenChannelDefaultBearerInfo_t defaultBearer; /**<        defaultBearer   */
-               TelSatOpenChannelUiccServerModeInfo_t uiccServerMode; /**<      uiccServerMode  */
-       } details; /**< Open Channel Details */
-} TelSatOpenChannelIndInfo_t;
-
-/**
- * This structure contains the data objects for CLOSE CHANNEL proactive command indication data.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatTextAttributeInfo_t textAttribute; /**<   text attribute info -e.g. bold, center align    */
-} TelSatCloseChannelIndInfo_t;
-
-/**
- * This structure contains the data objects for RECEIVE DATA proactive command indication data.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatChannelDataLengthInfo_t channelDataLen; /**<      channel data length     */
-} TelSatReceiveDataIndInfo_t;
-
-/**
- * This structure contains the data objects for SEND DATA proactive command indication data.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-       TelSatAlphaIdentifierInfo_t alphaId; /**<       alpha identifier(string) info   */
-       TelSatIconIdentifierInfo_t iconId; /**< icon identifier info    */
-       TelSatChannelDataInfo_t channel_data; /**<      channel data for sending        */
-} TelSatSendDataIndInfo_t;
-
-/**
- * This structure contains the data objects for GET CHANNEL STATUS proactive command indication data.
- */
-typedef struct {
-       TelSatCommandDetailInfo_t commandDetail; /**<   command detail info. includes command number, type, qualifier   */
-       TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     device identities info. includes source and destination devices */
-} TelSatGetChannelStatusIndInfo_t;
-
-/**
- * This structure contains the data object for END PROACTIVE SESSION command indication.
- */
-typedef struct {
-       TelSatCommandType_t commandType; /**<   proactive command type  */
-} TelSatEndProactiveSessionIndInfo_t;
-
-/**
- * This structure contains the data objects for PROACTIVE command indication union data.
- */
-typedef struct {
-       union {
-               TelSatMoreTimeIndInfo_t moreTime;
-               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        */
-               TelSatPlayToneIndInfo_t playTone; /**<  Parsed proactive command info from TLV to Telephony data type - play tone       */
-               TelSatSetupMenuIndInfo_t setupMenu; /**<        Parsed proactive command info from TLV to Telephony data type - setup menu      */
-               TelSatSelectItemIndInfo_t selectItem; /**<      Parsed proactive command info from TLV to Telephony data type - select item     */
-               TelSatSendSmsIndInfo_t sendSms; /**<    Parsed proactive command info from TLV to Telephony data type - send sms        */
-               TelSatSendSsIndInfo_t sendSs; /**<      Parsed proactive command info from TLV to Telephony data type - send ss */
-               TelSatSendUssdIndInfo_t sendUssd; /**<  Parsed proactive command info from TLV to Telephony data type - send  ussd      */
-               TelSatSetupCallIndInfo_t setupCall; /**<        Parsed proactive command info from TLV to Telephony data type - setup call      */
-               TelSatRefreshIndInfo_t refresh; /**<    Parsed proactive command info from TLV to Telephony data type - refresh */
-               TelSatProvideLocalInfoIndInfo_t provideLocInfo; /**<    Parsed proactive command info from TLV to Telephony data type - provide local info      */
-               TelSatLaunchBrowserIndInfo_t launchBrowser; /**<        Parsed proactive command info from TLV to Telephony data type - launch browser  */
-               TelSatSetupIdleModeTextIndInfo_t idleText; /**< Parsed proactive command info from TLV to Telephony data type - setup idle mode text    */
-               TelSatSendDtmfIndInfo_t sendDtmf; /**<  Parsed proactive command info from TLV to Telephony data type - send dtmf       */
-               TelSatLanguageNotificationIndInfo_t languageNotification;/**<   Parsed proactive command info from TLV to Telephony data type - language notification   */
-               TelSatSetupEventListIndInfo_t setupEventList; /**<      Parsed proactive command info from TLV to Telephony data type - setup event list        */
-               TelSatOpenChannelIndInfo_t openChannel; /**<    Parsed proactive command info from TLV to Telephony data type - open channel    */
-               TelSatCloseChannelIndInfo_t closeChannel; /**<  Parsed proactive command info from TLV to Telephony data type - close channel   */
-               TelSatReceiveDataIndInfo_t receiveData; /**<    Parsed proactive command info from TLV to Telephony data type - receive data    */
-               TelSatSendDataIndInfo_t sendData; /**<  Parsed proactive command info from TLV to Telephony data type - send data       */
-               TelSatGetChannelStatusIndInfo_t getChannelStatus; /**<  Parsed proactive command info from TLV to Telephony data type - get channel status      */
-       } cmdInfo; /**< Union   */
-} TelSatProactiveCmdData_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of DISPLAY TEXT proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatDisplayTextRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of GET INKEY proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       TelSatTextTypeInfo_t text; /**< inserted key info       */
-       TelSatDurationInfo_t duration;
-} TelSatGetInkeyRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of PLAY TONE proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatPlayToneRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of MORE TIME proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatMoreTimeRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SETUP MENU proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatSetupMenuRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of GET INPUT proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       TelSatTextTypeInfo_t text; /**< inserted string info    */
-} TelSatGetInputRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SELECT ITEM proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       int bOtherInfo; /**<    flag to check whether other information is required or not      */
-       unsigned char itemIdentifier; /**<      item identifier */
-} TelSatSelectItemRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of PROVIDE LOCAL INFORMATION proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       int bOtherInfo; /**<    flag to check whether other information is required or not      */
-       TelSatCmdQualiProvideLocalInfo_t infoType; /**< local info type - e.g. time zone or language info, etc  */
-       union {
-               TelSatDataTimeZoneInfo_t timeZoneInfo; /**<     current time zone info  */
-               TelSatLanguageInfo_t languageInfo; /**< current ME language setting info        */
-       } u; /**<       Union   */
-} TelSatProvideLocalInfoRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SETUP EVENT LIST proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatSetupEventListRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SEND SMS proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< call control problem    */
-} TelSatSendSmsRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SET UP CALL proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       int bOtherInfo; /**<    flag to check whether other information are required or not     */
-       TelSatNetworkProblemType_t networkProblem; /**< network problem during setup call       */
-       TelSatCallCtrlProblemType_t permanentCallCtrlProblem; /**<      permanent call control problem  */
-       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**<       call control requested action info      */
-       TelSatResultInfo_t result2; /**<        additional response on general result   */
-       TelSatTextTypeInfo_t text; /**< text string info        */
-       int bIsTapiCause; /**<  flag to check whether tapi makes problem or not */
-       unsigned long tapiCause; /**<   tapi call level cause   */
-       unsigned long tapiSsCause; /**< tapi ss level cause     */
-} TelSatSetupCallRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SEND SS proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       int bOtherInfo; /**<    flag to check whether whether other information is required or not      */
-       TelSatSsProblemType_t additionalSsProblemInfo; /**<     additional ss problem */
-       TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< additional call control problem */
-       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**<       call control requested action info      */
-       TelSatResultInfo_t result2; /**<        additional response on general result   */
-       TelSatTextTypeInfo_t text; /**< text string info        */
-} TelSatSendSsRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SEND USSD proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       int bOtherInfo; /**<    flag to check whether other information is required or not      */
-       TelSatUssdProblemType_t additionalUssdProblemInfo; /**< additional ussd problem */
-       TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< additional call control problem */
-       int bCallCtrlHasModification; /**<      flag to check whether modification happens during call control  */
-       TelSatTextTypeInfo_t text; /**< text string info        */
-       TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**<       call control requested action info      */
-       TelSatResultInfo_t result2; /**<        additional response on general result   */
-       TelSatTextTypeInfo_t text2; /**<        text string info        */
-} TelSatSendUssdRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of REFRESH proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatRefreshRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of GET CHANNEL STATUS proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       int bOtherInfo; /**<    flag whether other information are required or not      */
-       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
-       TelSatChannelStatusInfo_t channelStatus; /**<   channel Status  */
-} TelSatGetChannelStatusRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of CLOSE CHANNEL proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
-} TelSatCloseChannelRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of OPEN CHANNEL proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       int bOtherInfo; /**<    flag whether other information are required or not */
-       TelSatBearerDescriptionInfo_t bearerDescription; /**<   bearerDescription       */
-       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
-       TelSatChannelStatusInfo_t channelStatus; /**<   channelStatus   */
-       TelSatBufferSizeInfo_t bufferSize; /**< bufferSize      */
-} TelSatOpenChannelRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of LANGAUGE NOTIFICATION proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatLanguageNotificationRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of LAUNCH BROWSER proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       TelSatLaunchBrowserProblemType_t additionalProblemInfo; /**<    browser specific problem info   */
-} TelSatLaunchBrowserRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of RECEIVE DATA proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
-       int bOtherInfo; /**<    flag whether other information are required or not      */
-       TelSatChannelDataInfo_t channel_data; /**<      channel data    */
-       unsigned char channelDataLen; /**<      channel data length     */
-} TelSatReceiveDataRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SEND DATA proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-       TelSatBipProblemType_t additionalProblemInfo; /**<      bip specific problem info       */
-       unsigned char channelDataLen; /**<      channel data length     */
-} TelSatSendDataRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SETUP IDLE MODE TEXT proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatSetupIdlemodeTextRespInfo_t;
-
-/**
- * This structure contains the data objects for the Terminal Response of SEND DTMF proactive command.
- */
-typedef struct {
-       TelSatResultInfo_t result; /**< result whether current proactive command request was executed successfully or not       */
-} TelSatSendDtmfRespInfo_t;
-
-/**
- * This contains the data structures to be used to send proactive command response.
- */
-typedef struct {
-       unsigned char commandNumber; /**<         proactive command number      */
-       TelSatCommandType_t commandType; /**<     proactive command type        */
-       union {
-               TelSatMoreTimeRespInfo_t moreTime;
-               TelSatDisplayTextRespInfo_t displayText; /**<   terminal response info from displayText proactive command       */
-               TelSatGetInkeyRespInfo_t getInkey; /**< terminal response info from getInkey proactive command  */
-               TelSatGetInputRespInfo_t getInput; /**< terminal response info from getInput proactive command  */
-               TelSatPlayToneRespInfo_t playTone; /**< terminal response info from playTone proactive command  */
-               TelSatSetupMenuRespInfo_t setupMenu; /**<       terminal response info from setupMenu proactive command */
-               TelSatSelectItemRespInfo_t selectItem; /**<     terminal response info from selectItem proactive command        */
-               TelSatSendSmsRespInfo_t sendSms; /**<   terminal response info from sendSms proactive command   */
-               TelSatSendSsRespInfo_t sendSs; /**<     terminal response info from sendSs proactive command    */
-               TelSatSendUssdRespInfo_t sendUssd; /**< terminal response info from sendUssd proactive command  */
-               TelSatSetupCallRespInfo_t setupCall; /**<       terminal response info from setupCall proactive command */
-               TelSatRefreshRespInfo_t refresh; /**<   terminal response info from refresh proactive command   */
-               TelSatProvideLocalInfoRespInfo_t provideLocInfo; /**<   terminal response info from provide Local Info proactive command        */
-               TelSatLaunchBrowserRespInfo_t launchBrowser; /**<       terminal response info from launch Browser proactive command    */
-               TelSatSetupIdlemodeTextRespInfo_t idleText; /**<        terminal response info from setup idle mode text proactive command      */
-               TelSatSendDtmfRespInfo_t sendDtmf; /**< terminal response info from send Dtmf proactive command */
-               TelSatLanguageNotificationRespInfo_t languageNotification; /**< terminal response info from language Notification proactive command     */
-               TelSatSetupEventListRespInfo_t setupEventList; /**<     terminal response info from setup Event List proactive command  */
-               TelSatOpenChannelRespInfo_t openChannel; /**<   terminal response info from openChannel proactive command       */
-       } terminalRespInfo; /**<        Union   */
-} TelSatRespInfo_t;
-
-/*
- *SAT Icon Data
- */
-
-typedef struct {
-       unsigned char iconId;
-       unsigned char imgType;
-       unsigned char imgLen;
-       unsigned char imgData[256];
-} TelSatIconDataResp_t;
-
-typedef struct {
-       unsigned char iconId;
-       unsigned char imgType;
-       unsigned char fileId[2];
-       unsigned char reqDataLen[2];
-       unsigned char offset[2];
-} TelsatIconDataGet_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TEL_SAT_PROACTV_CMD_H_ */
-
-/**
- * @}
- */
diff --git a/include/common/TelSim.h b/include/common/TelSim.h
deleted file mode 100644 (file)
index 84812a1..0000000
+++ /dev/null
@@ -1,1901 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup SIM_TAPI        SIM
- * @{
- *
- * @file TelSim.h
-
- @brief This file serves as a "C" header file defines structures for Tapi SIM Services. \n
- It contains a sample set of constants, enums, structs that would be required by applications.
- */
-
-#ifndef _TELSIM_H_
-#define _TELSIM_H_
-
-#include <TelDefines.h>
-#include <TapiCommon.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/** max length for PIN */
-#define TAPI_SIM_PIN_LENGTH    8
-
-/** maximum MCC code length*/
-#define TAPI_SIM_MCC_CODE_LEN  3
-
-/** maximum MNC Code length*/
-#define TAPI_SIM_MNC_CODE_LEN  2
-
-/** Maximum MSIN code length */
-#define TAPI_SIM_MSIN_CODE_LEN 10
-
-/** Maximum ICCID Length */
-#define TAPI_SIM_ICCID_LEN_MAX 20
-
-/** Maximum Text length for number */
-#define TAPI_SIM_NUM_TEXT_LEN_MAX      256
-
-/** Maximum ECC code length */
-#define TAPI_SIM_ECC_CODE_LEN  3
-
-/** Maximum ECC Alpha string length */
-#define TAPI_SIM_ECC_ALPHA_STRING_LEN_MAX      50
-
-/** Maximum Language indication length */
-#define TAPI_SIM_LP_LEN_MAX    30
-
-/** Maximum group identifier length */
-#define TAPI_SIM_GROUP_IDENTIFIER_LEN_MAX      10
-
-/** Maximum UECC Record count */
-#define TAPI_SIM_UECC_RECORD_COUNT_MAX 15
-
-/** Defines the maximum number of 3G phone book records at a time  */
-#define TAPI_SIM_3G_PB_MAX_RECORD_COUNT 10
-
-/** SIM 3G Phone book EF Max count */
-#define TAPI_SIM_PB_3G_FILE_MAX_COUNT 13
-
-/** Operator Name max length */
-#define TAPI_SIM_CPHS_OPERATOR_NAME_LEN_MAX 25
-
-/** Operator Name short form max length */
-#define TAPI_SIM_CPHS_OPERATOR_NAME_SHORT_FORM_LEN_MAX 10
-
-/** Alpha Id  max length */
-#define TAPI_SIM_XDN_ALPHA_ID_MAX_LEN 30
-
-/** Dialing number max length */
-#define TAPI_SIM_XDN_DIALING_NUMBER_LEN        20
-
-/** CSP profile entry count max length */
-#define TAPI_SIM_CPHS_CUSTOMER_SERVICE_PROFILE_ENTRY_COUNT_MAX 11
-
-/** Authentication code max length */
-#define TAPI_SIM_AUTH_MAX_REQ_DATA_LEN 256
-
-/** Authentication response data max length */
-#define TAPI_SIM_AUTH_MAX_RESP_DATA_LEN 128
-
-/** SAP Answer to Reset data max length */
-#define TAPI_SIM_SAP_ATR_DATA  256
-
-/** SAP APDU max length */
-#define TAPI_SIM_APDU_MAX_LEN 256+2 // to be fine tuned according to lower layers, 2bytes for SW1 & SW2 should be added
-/** EF-SMSP digit length */
-#define TAPI_SIM_SMSP_ADDRESS_LEN 20
-
-/** EF-SMSP alpha id length */
-#define TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX  128
-
-/**< Maximum OPLMNWACT length*/
-#define TAPI_SIM_OPLMNWACT_MAX_LEN 100
-
-/**< Maximum rsim access data length for 1 time*/
-#define TAPI_SIM_DATA_LEN_MAX  256
-
-/** Request Id for Notification */
-#define TAPI_SIM_REQUEST_ID_FOR_NOTI   0xFF
-
-/**< Event status for operation timeout */
-#define TAPI_SIM_OPERATION_TIMEOUT  1234
-
-#define TAPI_SIM_LOCK_TYPE_INFO_MAX  8
-
-/**
- * @enum TelSimCardType_t
- * This enumeration defines the card type.
- */
-typedef enum {
-       TAPI_SIM_CARD_TYPE_UNKNOWN, /**< Unknown card */
-       TAPI_SIM_CARD_TYPE_GSM, /**< SIm(GSM) card*/
-       TAPI_SIM_CARD_TYPE_USIM, /**< USIM card */
-} TelSimCardType_t;
-
-/**
- * @enum TelSimFileName_t
- * This enumeration defines the file id.
- */
-typedef enum {
-       /* common Elementary files */
-       TAPI_SIM_EFILE_DIR = 0x2F00, /**< Root Directory for the USIM */
-       TAPI_SIM_EFILE_ICCID = 0x2FE2, /**< the ICC Identification file */
-       TAPI_SIM_EFILE_ADN = 0x6F3A, /**< the Abbrv. Dialing Number file */
-       TAPI_SIM_EFILE_FDN = 0x6F3B, /**< the Fixed Dialing Number file  */
-       TAPI_SIM_EFILE_SMS = 0x6F3C, /**< the Short Messages file      */
-       TAPI_SIM_EFILE_CCP = 0x6F3D, /**< the Capab. Config Parameters file */
-       TAPI_SIM_EFILE_IMSI = 0x6F07, /**< the IMSI file                */
-       TAPI_SIM_EFILE_SST = 0x6F38, /**< the SIM Service Table file   */
-       TAPI_SIM_EFILE_EST = 0x6F56, /**< the Enabled Service Table file   */
-       TAPI_SIM_EFILE_ACM = 0x6F39, /**< the Accumul. Call Meter file */
-       TAPI_SIM_EFILE_OPLMN_ACT = 0x6F61, /**< the OPLMN List file*/
-       TAPI_SIM_EFILE_MBDN = 0x6FC7, /** < SIM Mail Box Dialing Number file */
-
-       TAPI_SIM_EFILE_GID1 = 0x6F3E, /**< the Group Identifier Level 1 */
-       TAPI_SIM_EFILE_GID2 = 0x6F3F, /**< the Group Identifier Level 2 */
-
-       /* For PHASE 2 only */
-       TAPI_SIM_EFILE_MSISDN = 0x6F40, /**< the MSISDN file              */
-       TAPI_SIM_EFILE_SMSP = 0x6F42, /**< the Short Msg Srv. Parameters file*/
-       TAPI_SIM_EFILE_SMSS = 0x6F43, /**< the SMS Status               */
-       TAPI_SIM_EFILE_EXT1 = 0x6F4A, /**< the Extension 1 file         */
-       TAPI_SIM_EFILE_EXT2 = 0x6F4B, /**< the Extension 2 file         */
-       TAPI_SIM_EFILE_ELP = 0x2F05, /**< the Extended Language Preference file */
-       TAPI_SIM_EFILE_LP = 0x6F05, /**< SIM: Language preference */
-       TAPI_SIM_EFILE_ACM_MAX = 0x6F37, /**< the ACM maximum value file   */
-       TAPI_SIM_EFILE_PUCT = 0x6F41, /**< the Price per Unit and. file */
-       TAPI_SIM_EFILE_CBMI = 0x6F45, /**< the Cell Brd msg Id sel file */
-       TAPI_SIM_EFILE_PHASE = 0x6FAE, /**< the PHASE identification file*/
-
-       /* For Phase 2+ */
-       TAPI_SIM_EFILE_SDN = 0x6F49, /**< the Service Dialing Numbers */
-       TAPI_SIM_EFILE_EXT3 = 0x6F4C, /**< the Extension 3 file         */
-       TAPI_SIM_EFILE_BDN = 0x6F4D, /**< the BDN file                 */
-       TAPI_SIM_EFILE_EXT4 = 0x6F4E, /**< the Extension 4 file         */
-       TAPI_SIM_EFILE_ECC = 0x6FB7, /**< the Emergency Call Codes     */
-       TAPI_SIM_EFILE_SPN = 0x6F46, /**< the Service Provider Name    */
-       TAPI_SIM_EFILE_SPDI = 0x6FCD, /**< the Service provider display information*/
-       TAPI_SIM_EFILE_PNN = 0x6FC5, /**< the PLMN Network Name File*/
-       TAPI_SIM_EFILE_OPL = 0x6FC6, /**< the Operator PLMN List File*/
-
-       /* Contents of files at the DF GRAPHICS level */
-       TAPI_SIM_EFILE_IMG = 0x4F20, /**< image */
-
-       /* 4.2 Contents of files at the SIM ADF (Application DF) level */
-       TAPI_SIM_EFILE_USIM_LI = 0x6A05, /**< USIM: Language Indication */
-       TAPI_SIM_EFILE_USIM_PL = 0x2A05, /**< the Language Preference file of USIM */
-       TAPI_SIM_EFILE_USIM_IMSI = 0x6A07, /**< IMSI */
-       TAPI_SIM_EFILE_USIM_ACM_MAX = 0x6A37, /**< ACM maximum value */
-       TAPI_SIM_EFILE_USIM_UST = 0x6A38, /**< USIM Service Table */
-       TAPI_SIM_EFILE_USIM_ACM = 0x6A39, /**< Accumulated Call Meter */
-       TAPI_SIM_EFILE_USIM_SPN = 0x6A46, /**< Service Provider Name */
-       TAPI_SIM_EFILE_USIM_PUCT = 0x6A41, /**< Price per Unit and Currency Table */
-       TAPI_SIM_EFILE_USIM_CBMI = 0x6A45, /**< Cell Broadcaster Message Identifier selection */
-       TAPI_SIM_EFILE_USIM_ECC = 0x6AB7, /**< Emergency Call Codes */
-       TAPI_SIM_EFILE_USIM_FDN = 0x6A3B, /**< Fixed Dialing Number */
-       TAPI_SIM_EFILE_USIM_SMS = 0x6A3C, /**< SMS */
-       TAPI_SIM_EFILE_USIM_MSISDN = 0x6A40, /**< My own number */
-       TAPI_SIM_EFILE_USIM_SMSP = 0x6A42, /** < SMS parameter */
-       TAPI_SIM_EFILE_USIM_SMSS = 0x6A43, /** < SMS status */
-       TAPI_SIM_EFILE_USIM_SDN = 0x6A49, /** < Service dialing number */
-       TAPI_SIM_EFILE_USIM_EXT1 = 0X6A4A, /** < EXT1 record file */
-       TAPI_SIM_EFILE_USIM_EXT2 = 0x6A4B, /** < EXT2 record file */
-       TAPI_SIM_EFILE_USIM_EXT3 = 0x6A4C, /** < EXT3 record file */
-       TAPI_SIM_EFILE_USIM_EXT4 = 0x6A55, /** < EXT4 record file */
-       TAPI_SIM_EFILE_USIM_EXT5 = 0x6A4E, /** < EXT5 record file */
-       TAPI_SIM_EFILE_USIM_EXT6 = 0x6FC8, /** < EXT6 record file */
-       TAPI_SIM_EFILE_USIM_EXT7 = 0x6FCC, /** < EXT7 record file */
-
-       TAPI_SIM_EFILE_USIM_CCP2 = 0x6A4F, /**< Capability Configuration Parameters 2 */
-       TAPI_SIM_EFILE_USIM_HIDDEN_KEY = 0x6FC3, /**< Key for hidden phonebook entries */
-       TAPI_SIM_EFILE_USIM_BDN = 0x6A4D, /**< Barred Dialing Numbers */
-
-       TAPI_SIM_EFILE_USIM_MBDN = 0x6FC7, /** < Mailbox dialing number -linear fixed*/
-       TAPI_SIM_EFILE_USIM_MBI = 0x6FC9, /** < Mailbox Identifier -linear fixed*/
-
-       TAPI_SIM_EFILE_USIM_MWIS = 0x6FCA, /** < Message Waiting Indication Status -linear fixed*/
-       TAPI_SIM_EFILE_USIM_CFIS = 0x6FCB, /** < Call forward indication status -linear fixed*/
-
-       TAPI_SIM_EFILE_USIM_APN_ACL = 0x6F57, /** < Access point name control list */
-
-       /* Contents of files at USIM ADF PHONEBOOK level */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_PBR = 0x4FF0, /**< Phonebook Reference File */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_CCP1 = 0x4FFE, /**< Capability Configuration Parameters 1 */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_UID = 0x4FF8, /**< unique identifier */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_PSC = 0x4FFF, /**< phonebook synchronization counter */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_CC = 0x4FEF, /**< change counter */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_PUID = 0x4FEE, /**< previous unique identifier */
-
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ADN = 0x4FF1, /**< Abbreviated Dialing Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_IAP = 0x4FF2, /**< Index Administration Phonebook */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_PBC = 0x4FF3, /**< Phonebook Control */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_EXT1 = 0x4FFB, /**< Extension 1 */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_GRP = 0x4FF7, /**< Grouping File */
-
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_AAS = 0x4FFC, /**< Additional number Alpha String */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_AAS1 = 0x4FFD, /**< Additional number Alpha String */
-
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_GAS = 0x4F0E, /**< Additional Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_GAS1 = 0x4F0F, /**< Second Name Entry */
-
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ANR = 0x4FF4, /**< Additional Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_SNE = 0x4FF9, /**< Second Name Entry */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_EMAIL = 0x4FFA, /**< e-mail address */
-
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ANRA = 0x4F13, /**< Additional Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ANRB = 0x4F14, /**< Additional Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ANRC = 0x4F15, /**< Additional Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ANR1 = 0x4F16, /**< Additional Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ANRA1 = 0x4F17, /**< Additional Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ANRB1 = 0x4F18, /**< Additional Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ANRC1 = 0x4F21, /**< Additional Number */
-
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_ADN1 = 0x4F1A, /**< Abbreviated Dialing Number */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_PBC1 = 0x4F1B, /**< Phonebook Control */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_GRP1 = 0x4F1C, /**< Grouping File */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_SNE1 = 0x4F1D, /**< Second Name Entry */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_UID1 = 0x4F1E, /**< unique identifier */
-
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_EMAIL1 = 0x4F1F, /**< e-mail address */
-       TAPI_SIM_EFILE_USIM_PHONEBOOK_IAP1 = 0x4FF5, /**< Index Administration Phonebook */
-
-       /* Contents of files at TELECOM DF PHONEBOOK level */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_PBR = 0x4F30, /**< Phonebook Reference File */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_PBR1 = 0x4F29, /**< Phonebook Reference File 1 */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_PBR2 = 0x4F28, /**< Phonebook Reference File 1 */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_CCP1 = 0x4F3D, /**< Capability Configuration Parameters 1 */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_UID = 0x4F00, /**< unique identifier */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_PSC = 0x4F22, /**< Phonebook synchronization counter */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_CC = 0x4F23, /**< change counter */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_PUID = 0x4F24, /**< previous unique identifier */
-
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ADN = 0x4F3A, /**< Abbreviated Dialing Number */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_IAP = 0x4F25, /**< Index Administration Phonebook */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_PBC = 0x4F09, /**< Phonebook Control */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_EXT1 = 0x4F4A, /**< Extension 1 */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_GRP = 0x4F26, /**< Grouping File */
-
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_AAS = 0x4F4B, /**< Additional number Alpha String */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_GAS = 0x4F4C, /**< Additional Number */
-
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ANR = 0x4F11, /**< Additional Number */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_SNE = 0x4F19, /**< Second Name Entry */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_EMAIL = 0x4F50, /**< e-mail address */
-
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ANRA = 0x4F31, /**< Additional Number */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ANRB = 0x4F32, /**< Additional Number */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ANRC = 0x4F40, /**< Additional Number */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ANR1 = 0x4F33, /**< Additional Number */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ANRA1 = 0x4F34, /**< Additional Number */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ANRB1 = 0x4F35, /**< Additional Number */
-
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_ADN1 = 0x4F36, /**< Abbreviated Dialing Number */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_PBC1 = 0x4F37, /**< Phonebook Control */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_GRP1 = 0x4F38, /**< Grouping File */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_SNE1 = 0x4F39, /**< Second Name Entry */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_UID1 = 0x4F3B, /**< unique identifier */
-
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_EMAIL1 = 0x4F3C, /**< e-mail address */
-       TAPI_SIM_EFILE_TELECOM_PHONEBOOK_IAP1 = 0x4F3E, /**< Index Administration Phonebook */
-
-       TAPI_SIM_EFILE_MSG_WAITING_INDICATION_STATUS = 0x6FCA, /** < MSG waiting indication  */ //WILL BE REMOVED
-
-       /* CPHS FILE ID */
-       TAPI_SIM_EFILE_CPHS_VOICE_MSG_WAITING = 0x6F11, /** < CPHS voice MSG waiting indication  */
-       TAPI_SIM_EFILE_CPHS_SERVICE_STRING_TABLE = 0x6F12, /** < CPHS service string table  */
-       TAPI_SIM_EFILE_CPHS_CALL_FORWARD_FLAGS = 0x6F13, /** < CPHS call forward flags  */
-       TAPI_SIM_EFILE_CPHS_OPERATOR_NAME_STRING = 0x6F14, /** < CPHS operator name string  */
-       TAPI_SIM_EFILE_CPHS_CUSTOMER_SERVICE_PROFILE = 0x6F15, /** < CPHS customer service profile  */
-       TAPI_SIM_EFILE_CPHS_CPHS_INFO = 0x6F16, /** < CPHS information  */
-       TAPI_SIM_EFILE_CPHS_MAILBOX_NUMBERS = 0x6F17, /** < CPHS mail box numbers  */
-       TAPI_SIM_EFILE_CPHS_OPERATOR_NAME_SHORT_FORM_STRING = 0x6F18, /** < CPHS operator name short form string  */
-       TAPI_SIM_EFILE_CPHS_INFORMATION_NUMBERS = 0x6F19, /** < CPHS information numbers  */
-
-       /*  CPHS ALS FILE ID */
-       TAPI_SIM_CPHS_DYNAMICFLAGS = 0x6F9F, /** < CPHS Dynamics flags  */
-       TAPI_SIM_CPHS_DYNAMIC2FLAG = 0x6F92, /** < CPHS Dynamics2 flags  */
-       TAPI_SIM_CPHS_CUSTOMER_SERVICE_PROFILE_LINE2 = 0x6F98, /** < CPHS CSP2  */
-
-       /* ISIM files */
-       TAPI_SIM_EFILE_ISIM_IMPI = 0x6F02, /** < IMS private user identity   */
-       TAPI_SIM_EFILE_ISIM_DOMAIN = 0x6F03, /** < IMS Home Network Domain Name   */
-       TAPI_SIM_EFILE_ISIM_IMPU = 0x6F04, /** < IMS public user identity    */
-       TAPI_SIM_EFILE_ISIM_AD = 0x6FAD, /** < Administrative data     *//* NOT implemented */
-       TAPI_SIM_EFILE_ISIM_ARR = 0x6F06, /** < Access control file     *//* NOT implemented */
-
-       /* ID clashes with IMSI file Id so changed to  6FFF - actual Id is 0x6F07 *//* modem no support ?*/
-       TAPI_SIM_EFILE_ISIM_IST = 0x6FFF, /** <ISIM keys     */
-       TAPI_SIM_EFILE_ISIM_KEYS = 0x6F08, /** < Access control file     */
-       TAPI_SIM_EFILE_ISIM_PCSCF = 0x6F09, /** < PCSCF address     */
-       TAPI_SIM_EFILE_ISIM_GBABP = 0x6FD5, /* support from IPC - NO RSIM access */
-
-       /* Root Certificates */
-       TAPI_SIM_EFILE_CA_TOKENINFO = 0x5032,
-       TAPI_SIM_EFILE_CA_ODF = 0x5031,
-       TAPI_SIM_EFILE_CA_CDFTRUSTED = 0x4404,
-       TAPI_SIM_EFILE_CA_TRUSTCERT1 = 0x4424,
-       TAPI_SIM_EFILE_CA_TRUSTCERT2 = 0x4425,
-       TAPI_SIM_EFILE_CA_TRUSTCERT3 = 0x4426,
-       TAPI_SIM_EFILE_CA_DODFPROV = 0x4407,
-       TAPI_SIM_EFILE_CA_BOOTSTRAP = 0x4440,
-       TAPI_SIM_EFILE_CA_CONFIG1 = 0x4441,
-
-       /* Invalid File ID, All the file ID are less than this Value*/
-       TAPI_SIM_EFILE_INVALID = 0xFFFF, /**< Invalid file.*/
-       TAPI_SIM_EFILE_OTHERS, /**< Element to indicate an unknown file.*/
-} TelSimFileName_t;
-
-/**
- * @enum TelSimPinStatus_t
- * This enumeration defines the pin status.
- */
-typedef enum {
-       TAPI_SIM_PIN_STATUS_DISABLED = 0x00, /**< Pin1 or Pin2 Disabled */
-       TAPI_SIM_PIN_STATUS_ENABLED = 0x01, /**< Pin1 or Pin2 Enabled */
-       TAPI_SIM_PIN_STATUS_BLOCKED = 0x02, /**< SIM is present, but PIN1 or PIN2  is blocked. need unblocking by PUK or PUK2 */
-       TAPI_SIM_PIN_STATUS_PUK_BLOCKED = 0x03, /**< SIM is present, but PUK is blocked. */
-       TAPI_SIM_PIN_STATUS_UNKNOWN = 0xFF /**< SIM is in unknown state */
-} TelSimPinStatus_t;
-
-/**
- * @enum TelSimPinOperationResult_t
- * This enumeration defines the pin operation result from the lower layers.
- */
-typedef enum {
-       TAPI_SIM_PIN_OPERATION_SUCCESS, /**< Operation involving PIN (verification/change/enable/disable, etc) is successful.  */
-       TAPI_SIM_BUSY, /**< SIM is busy  */
-       TAPI_SIM_CARD_ERROR, /**< SIM card error - Permanently blocked and general errors   */
-       TAPI_SIM_INCOMPATIBLE_PIN_OPERATION, /**< SIM Incompatible pin operation that is in case when invalid SIM command is given or incorrect parameters are supplied to the SIM. */
-       TAPI_SIM_PIN_INCORRECT_PASSWORD, /**< SIM PIN  Incorrect password */
-       TAPI_SIM_PUK_INCORRECT_PASSWORD, /**< SIM PUK Incorrect Password */
-       TAPI_SIM_PUK_REQUIRED, /**< PUK Required */
-       TAPI_SIM_PIN_REQUIRED, /**< PIN Required */
-       TAPI_SIM_NCK_REQUIRED, /**< Network Control Key Required */
-       TAPI_SIM_NSCK_REQUIRED, /**< Network Subset Control Key Required */
-       TAPI_SIM_SPCK_REQUIRED, /**< Service Provider Control Key Required */
-       TAPI_SIM_CCK_REQUIRED, /**< Corporate Control Key Required */
-       TAPI_SIM_LOCK_REQUIRED, /**<  PH-SIM (phone-SIM) locked state **/
-} TelSimPinOperationResult_t;
-
-/**
- * @enum TelSimAccessResult_t
- * This enumeration defines the SIM access result from the lower layers.
- */
-typedef enum {
-       TAPI_SIM_ACCESS_SUCCESS, /**< Access to file successful.  */
-       TAPI_SIM_ACCESS_CARD_ERROR, /**< SIM card error    */
-       TAPI_SIM_ACCESS_FILE_NOT_FOUND, /**< File not found  */
-       TAPI_SIM_ACCESS_ACCESS_CONDITION_NOT_SATISFIED, /**< Access condition is not fulfilled  */
-       TAPI_SIM_ACCESS_FAILED, /**< Access failed.  */
-} TelSimAccessResult_t;
-
-/**
- * @enum TelSimPinType_t
- * This enumeration defines the pin type.
- */
-typedef enum {
-       TAPI_SIM_PTYPE_PIN1 = 0x00, /**< PIN 1 code */
-       TAPI_SIM_PTYPE_PIN2 = 0x01, /**< PIN 2 code */
-       TAPI_SIM_PTYPE_PUK1 = 0x02, /**< PUK 1 code */
-       TAPI_SIM_PTYPE_PUK2 = 0x03, /**< PUK 2 code */
-       TAPI_SIM_PTYPE_UPIN = 0x04, /**< Universal PIN - Unused now */
-       TAPI_SIM_PTYPE_ADM = 0x05, /**< Administrator - Unused now */
-       TAPI_SIM_PTYPE_SIM = 0x06 /**< SIM Lock code */
-} TelSimPinType_t;
-
-/**
- * @enum TelSimPersType_t
- *     This structure gives security lock type information enum values
- */
-typedef enum {
-       TAPI_SIM_PERS_NET = 0x00, /**< Network Lock */
-       TAPI_SIM_PERS_NS = 0x01, /**< Network Subset Lock */
-       TAPI_SIM_PERS_SP = 0x02, /**< Service Provider Lock */
-       TAPI_SIM_PERS_CP = 0x03, /**< Corporate Lock */
-} TelSimPersType_t;
-
-/**
- * @enum TelSimTypeOfNum_t
- * This enumeration defines the type of number.
- */
-typedef enum {
-       TAPI_SIM_TON_UNKNOWN = 0, /**< unknown */
-       TAPI_SIM_TON_INTERNATIONAL = 1, /**< international number */
-       TAPI_SIM_TON_NATIONAL = 2, /**< national number */
-       TAPI_SIM_TON_NETWORK_SPECIFIC = 3, /**< network specific number */
-       TAPI_SIM_TON_DEDICATED_ACCESS = 4, /**< subscriber number */
-       TAPI_SIM_TON_ALPHA_NUMERIC = 5, /**< alphanumeric, GSM 7-bit default alphabet) */
-       TAPI_SIM_TON_ABBREVIATED_NUMBER = 6, /**< abbreviated number */
-       TAPI_SIM_TON_RESERVED_FOR_EXT = 7 /**< reserved for extension */
-} TelSimTypeOfNum_t;
-
-/**
- *  @enum TelSimTextEncrypt_t
- *   This enumeration defines the text encryption types
- */
-typedef enum {
-       TAPI_SIM_TEXT_ENC_ASCII, /**< ASCII Encoding */
-       TAPI_SIM_TEXT_ENC_GSM7BIT, /**< GSM 7 Bit Encoding */
-       TAPI_SIM_TEXT_ENC_UCS2, /**< UCS2 Encoding */
-       TAPI_SIM_TEXT_ENC_HEX, /**< HEX Encoding */
-} TelSimTextEncrypt_t;
-
-/**
- * @enum TelSimPbFileType_t
- * This enumeration defines  different storage types to be selected in SIM or USIM
- */
-typedef enum {
-       TAPI_SIM_PB_FDN, /**< Fixed Dialing Number */
-       TAPI_SIM_PB_LDN, /**< last dialed number  - WILL BE REMOVED */
-       TAPI_SIM_PB_MSISDN, /**< my own number - MSISDN list */
-       TAPI_SIM_PB_ADN, /**< SIM - ADN  */
-       TAPI_SIM_PB_SDN, /**< Service Dialing Number  */
-       TAPI_SIM_PB_EN, /**< Emergency number  - WILL BE REMOVED*/
-       TAPI_SIM_PB_3GSIM, /**< USIM - 3G phone book */
-       TAPI_SIM_PB_AAS, /**< Additional number Alpha String */
-       TAPI_SIM_PB_GAS, /**< Grouping identifier Alpha String */
-       TAPI_SIM_PB_UNKNOWNN = 0xFF, /**< Unknown file type */
-} TelSimPbFileType_t;
-
-/**
- * @enum tapi_pb_storage_field_tag_type_t
- *  This enumeration defines the different storage field types in 3G Phone book.
- */
-typedef enum {
-       /* for 3G phone storage field type */
-       TAPI_PB_3G_NAME = 0x01, /**< Name */
-       TAPI_PB_3G_NUMBER, /**< Number */
-       TAPI_PB_3G_ANR, /**< Another number */
-       TAPI_PB_3G_EMAIL, /**< Email */
-       TAPI_PB_3G_SNE, /**< Second name entry */
-       TAPI_PB_3G_GRP, /**< Group file */
-       TAPI_PB_3G_PBC, /** <1 byte control info and 1 byte hidden info*/
-       TAPI_PB_3G_ANRA, /**< Another number */
-       TAPI_PB_3G_ANRB, /**< Another number */
-} TelSimPb3GFileType_t;
-
-/**
- * @enum TelSimNumberingPlanIdentity_t
- * This enumeration defines the numbering plan identifier.
- */
-typedef enum {
-       TAPI_SIM_NPI_UNKNOWN = 0, /**< Unknown */
-       TAPI_SIM_NPI_ISDN_TEL = 1, /**< ISDN/Telephone numbering plan */
-       TAPI_SIM_NPI_DATA_NUMBERING_PLAN = 3, /**< Data numbering plan */
-       TAPI_SIM_NPI_TELEX = 4, /**< Telex numbering plan */
-       TAPI_SIM_NPI_SVC_CNTR_SPECIFIC_PLAN = 5, /**< Service Center Specific plan */
-       TAPI_SIM_NPI_SVC_CNTR_SPECIFIC_PLAN2 = 6, /**< Service Center Specific plan */
-       TAPI_SIM_NPI_NATIONAL = 8, /**< National numbering plan */
-       TAPI_SIM_NPI_PRIVATE = 9, /**< Private numbering plan */
-       TAPI_SIM_NPI_ERMES_NUMBERING_PLAN = 10, /**< ERMES numbering plan */
-       TAPI_SIM_NPI_RESERVED_FOR_EXT = 0xF /**< Reserved for extension */
-} TelSimNumberingPlanIdentity_t;
-
-/**
- * @enum TelSimEccEmergencyServiceInfo_t
- * This enumeration defines the emergency service type.
- */
-typedef enum {
-       TAPI_SIM_ECC_ESC_POLICE = 0x01, /**< Police */
-       TAPI_SIM_ECC_ESC_AMBULANCE = 0x02, /**< Ambulance */
-       TAPI_SIM_ECC_ESC_FIREBRIGADE = 0x04, /**< Fire brigade */
-       TAPI_SIM_ECC_ESC_MARAINEGUARD = 0x08, /**< Marine guard */
-       TAPI_SIM_ECC_ESC_MOUTAINRESCUE = 0x10, /**< Mountain rescue */
-       TAPI_SIM_ECC_ESC_SPARE = 0x00 /**< Spare */
-} TelSimEccEmergencyServiceInfo_t;
-
-/**
- * @enum TelSimPbAccessResult_t
- * This enumeration defines the Phone book access result
- */
-typedef enum {
-       TAPI_SIM_PB_SUCCESS, /**< SIM phonebook operation successful. */
-       TAPI_SIM_PB_FAIL, /**< SIM phonebook operation failure. */
-       TAPI_SIM_PB_INVALID_INDEX, /**< The index passed was not a valid index. */
-       TAPI_SIM_PB_INVALID_NUMBER_LENGTH, /**< The number length is exceeds the max length allowed (or 0). */
-       TAPI_SIM_PB_INVALID_NAME_LENGTH, /**< The name length is exceeds the max length allowed (or 0). */
-       TAPI_SIM_PB_ACCESS_CONDITION_NOT_SATISFIED, /**< Access condition for PB file is not satisfied. */
-} TelSimPbAccessResult_t;
-
-/**
- * @enum TelSimLanguagePreferenceCode_t
- * This enumeration defines the language indication code.
- */
-typedef enum {
-       TAPI_SIM_LP_GERMAN = 0x00, /**< German */
-       TAPI_SIM_LP_ENGLISH = 0x01, /**< English */
-       TAPI_SIM_LP_ITALIAN = 0x02, /**< Italian */
-       TAPI_SIM_LP_FRENCH = 0x03, /**< French */
-       TAPI_SIM_LP_SPANISH = 0x04, /**< Spanish */
-       TAPI_SIM_LP_DUTCH = 0x05, /**< Dutch */
-       TAPI_SIM_LP_SWEDISH = 0x06, /**< Swedish */
-       TAPI_SIM_LP_DANISH = 0x07, /**< Danish */
-       TAPI_SIM_LP_PORTUGUESE = 0x08, /**< Portuguese */
-       TAPI_SIM_LP_FINNISH = 0x09, /**< Finnish */
-       TAPI_SIM_LP_NORWEGIAN = 0x0A, /**< Norwegian */
-       TAPI_SIM_LP_GREEK = 0x0B, /**< Greek */
-       TAPI_SIM_LP_TURKISH = 0x0C, /**< Turkish */
-       TAPI_SIM_LP_HUNGARIAN = 0x0D, /**< Hungarian */
-       TAPI_SIM_LP_POLISH = 0x0E, /**< Polish */
-       TAPI_SIM_LP_KOREAN = 0x0F, /**< Korean */
-       TAPI_SIM_LP_CHINESE = 0x10, /**< Chinese */
-       TAPI_SIM_LP_RUSSIAN = 0x11, /**< Russian */
-       TAPI_SIM_LP_JAPANESE = 0x12, /**< Japanese */
-       TAPI_SIM_LP_LANG_UNSPECIFIED = 0xFF /**< Unspecified */
-} TelSimLanguagePreferenceCode_t;
-
-/**
- * @enum TelSimAccessType_t
- * This enumeration defines the access type information.
- */
-typedef enum {
-       TAPI_SIM_READ_BINARY, /**< Read binary file */
-       TAPI_SIM_READ_RECORD, /**< Read record */
-       TAPI_SIM_READ_FILE_RAW, /**< Read file and return raw data */
-       TAPI_SIM_GET_RESPONSE, /**< Get response */
-       TAPI_SIM_UPDATE_BINARY, /**< Update binary */
-       TAPI_SIM_UPDATE_RECORD, /**< Update record */
-} TelSimAccessType_t;
-
-/**
- * @enum TelSimCardStatus_t
- * This enumeration defines the SIM card status
- */
-typedef enum {
-       TAPI_SIM_STATUS_CARD_ERROR = 0x00, /**< Bad card / On the fly SIM gone bad **/
-       TAPI_SIM_STATUS_CARD_NOT_PRESENT = 0x01, /**<  Card not present **/
-       TAPI_SIM_STATUS_SIM_INITIALIZING = 0x02, /**<  SIM is Initializing state **/
-       TAPI_SIM_STATUS_SIM_INIT_COMPLETED = 0x03, /**<  SIM Initialization ok **/
-       TAPI_SIM_STATUS_SIM_PIN_REQUIRED = 0x04, /**<  PIN  required state **/
-       TAPI_SIM_STATUS_SIM_PUK_REQUIRED = 0x05, /**<  PUK required state **/
-       TAPI_SIM_STATUS_CARD_BLOCKED = 0x06, /**<  PIN/PUK blocked(permanently blocked- All the attempts for PIN/PUK failed) **/
-       TAPI_SIM_STATUS_SIM_NCK_REQUIRED = 0x07, /**<  Network Control Key required state **/
-       TAPI_SIM_STATUS_SIM_NSCK_REQUIRED = 0x08, /**<  Network Subset Control Key required state **/
-       TAPI_SIM_STATUS_SIM_SPCK_REQUIRED = 0x09, /**<  Service Provider Control Key required state **/
-       TAPI_SIM_STATUS_SIM_CCK_REQUIRED = 0x0a, /**<  Corporate Control Key required state **/
-       TAPI_SIM_STATUS_CARD_REMOVED = 0x0b, /**<  Card removed **/
-       TAPI_SIM_STATUS_SIM_LOCK_REQUIRED = 0x0c /**<  PH-SIM (phone-SIM) locked state **/
-} TelSimCardStatus_t;
-
-/**
- * @enum TelSimCphsPhaseType_t
- * This enum gives the current CPHS phase of SIM card.
- */
-typedef enum {
-       TAPI_SIM_CPHS_PHASE1 = 0x01, /**< phase1  */
-       TAPI_SIM_CPHS_PHASE2 = 0x02, /**< phase2  */
-       TAPI_SIM_CPHS_PHASE_RFU = 0xff /**< RFU  */
-} TelSimCphsPhaseType_t;
-
-/**
- * @enum TelSimCphsIndexLevelIndicator_t
- * This struct gives CPHS index level indication.
- */
-typedef enum {
-       TAPI_SIM_CPHS_INDEX_LEVEL_ONE = 0x01, /**< SIM cphs index level one */
-       TAPI_SIM_CPHS_INDEX_LEVEL_TWO = 0x02, /**< SIM cphs index level two */
-       TAPI_SIM_CPHS_INDEX_LEVEL_THREE = 0x03, /**< SIM cphs index level three */
-       TAPI_SIM_CPHS_INDEX_LEVEL_RFU = 0xff /**< SIM cphs index level rfu */
-} TelSimCphsIndexLevelIndicator_t;
-
-/**
- * @enum TelSimCphsCustomerServiceGroup_t
- * This struct gives CPHS group service type information .
- */
-typedef enum {
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CALL_OFFERING = 0x01, /**< Group csp offering*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CALL_RESTRICTION = 0x02, /**< Group csp restriction*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_OTHER_SUPP_SERVICES = 0x03, /**< Group csp supplementary services*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CALL_COMPLETION = 0x04, /**< Group csp completion*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_TELESERVICES = 0x05, /**< Group csp teleservices*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CPHS_TELESERVICES = 0x06, /**< Group csp cphs teleservies*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_CPHS_FEATURES = 0x07, /**< Group csp cphs features*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_NUMBER_IDENTIFIERS = 0x08, /**< Group csp number identifiers*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_PHASE_SERVICES = 0x09, /**< Group csp phase services*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_VALUE_ADDED_SERVICES = 0xC0, /**< Group csp value added services*/
-       TAPI_SIM_CPHS_CSP_SERVICE_GROUP_INFORMATION_NUMBERS = 0xD5 /**< Group csp information numbers*/
-} TelSimCphsCustomerServiceGroup_t;
-
-/**
- * @enum TelSimIndicationStatusType_t
- * This struct gives SIM Indication service information.
- */
-typedef enum {
-       TAPI_SIM_INDICATION_MW = 0x00, /**< Message Waiting indication status */
-       TAPI_SIM_INDICATION_CF = 0x01, /**< Call Forwarding indication status */
-} TelSimIndicationStatusType_t;
-
-/**
- * @enum TelSimMsgWaitingGroup_t
- * This struct gives message waiting group type for mailbox,mwis and cfis.
- */
-typedef enum {
-       TAPI_SIM_MWG_NONE = 0x00, /**< none*/
-       TAPI_SIM_MWG_VOICE = 0x01, /**< voice*/
-       TAPI_SIM_MWG_FAX = 0x02, /**< fax*/
-       TAPI_SIM_MWG_EMAIL = 0x03, /**< email*/
-       TAPI_SIM_MWG_OTHER = 0x04, /**< other*/
-       TAPI_SIM_MWG_VIDEO = 0x05, /**< video*/
-       TAPI_SIM_MWG_RFU = 0xff /**< rfu*/
-} TelSimMsgWaitingGroup_t;
-
-/**
- * @enum TelSimCallForwardUiIndicatorStatus_t
- * This struct gives call forward ui indicator status.
- */
-typedef enum {
-       TAPI_SIM_CFIS_NONE = 0x00, /**< CFIS none*/
-       TAPI_SIM_CFIS_VOICE = 0x01, /**< CFIS voice*/
-       TAPI_SIM_CFIS_FAX = 0x02, /**< CFIS fax*/
-       TAPI_SIM_CFIS_DATA = 0x04, /**< CFIS data*/
-       TAPI_SIM_CFIS_RFU = 0x08 /**< CFIS rfu*/
-} TelSimCallForwardUiIndicatorStatus_t;
-
-/**
- * @enum TelSimDynamicFlagsSelectedLineId_t
- * This enum gives dynamics flag selected line  information.
- */
-typedef enum {
-       TAPI_SIM_DYNAMIC_FLAGS_LINE1 = 0x01, /**< line 1 */
-       TAPI_SIM_DYNAMIC_FLAGS_LINE2 = 0x00, /**< line 2*/
-       TAPI_SIM_DYNAMIC_FLAGS_RFU = 0xff /**< rfu*/
-} TelSimDynamicFlagsSelectedLineId_t;
-
-/**
- * @enum tapi_sim_dynamic2_flag_als_status_t
- * This enum gives dynamics2 flag selected line  information.
- */
-typedef enum {
-       TAPI_SIM_PIN2_ACCESSIBLE_FLAGS_LOCKED = 0x01, /**< Dynamic flags locked */
-       TAPI_SIM_PIN2_ACCESSIBLE_FLAGS_UNLOCKED = 0x00, /**< Dynamic flags unlocked */
-       TAPI_SIM_PIN2_ACCESSIBLE_FLAGS_RFU = 0xff /**< rfu */
-} TelSimDynamic2FlagAlsStatus_t;
-
-/**
- * @enum TelSimSapMsgId_t
- * This enum gives the SAP message Ids between SAP client and SAP server.
- */
-typedef enum {
-       TAPI_SIM_SAP_CONNECT_REQ = 0x00, /**< SAP connect request from client to server*/
-       TAPI_SIM_SAP_CONNECT_RESP = 0x01, /**< SAP connect response from server to client*/
-       TAPI_SIM_SAP_DISCONNECT_REQ = 0x02, /**< SAP disconnect request from client to server */
-       TAPI_SIM_SAP_DISCONNECT_RESP = 0x03, /**< SAP disconnect response from server to client */
-       TAPI_SIM_SAP_DISCONNECT_IND = 0x04, /**< SAP disconnect indication from server to client */
-       TAPI_SIM_SAP_TRANSFER_APDU_REQ = 0x05, /**< SAP transfer APDU(application protocol data unit) from client to server */
-       TAPI_SIM_SAP_TRANSFER_APDU_RESP = 0x06, /**< SAP response of transfer APDU */
-       TAPI_SIM_SAP_TRANSFER_ATR_REQ = 0x07, /**< SAP Client request about Transfer ATR(Answer to Reset) procedure */
-       TAPI_SIM_SAP_TRANSFER_ATR_RESP = 0x08, /**< SAP Server response after execution of ATR */
-       TAPI_SIM_SAP_POWER_SIM_OFF_REQ = 0x09, /**< SAP Client request about power SIM off in Server */
-       TAPI_SIM_SAP_POWER_SIM_OFF_RESP = 0x0A, /**< SAP Server response the result about power SIM off in Server */
-       TAPI_SIM_SAP_POWER_SIM_ON_REQ = 0x0B, /**< SAP Client request about power SIM on in Server */
-       TAPI_SIM_SAP_POWER_SIM_ON_RESP = 0x0C, /**< SAP Server response the result about power SIM on in Server */
-       TAPI_SIM_SAP_RESET_SIM_REQ = 0x0D, /**< SAP Client request about SIM reset in Server */
-       TAPI_SIM_SAP_RESET_SIM_RESP = 0x0E, /**< SAP Server response the result about SIM reset in Server */
-       TAPI_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ = 0x0F, /**< SAP request current status about card reader(Client or Server) */
-       TAPI_SIM_SAP_TRANSFER_CARD_READER_STATUS_RESP = 0x10, /**< SAP response current status about card reader(Client or Server) */
-       TAPI_SIM_SAP_STATUS_IND = 0x11, /**< SAP indication of Server`s current status*/
-       TAPI_SIM_SAP_ERROR_RESP = 0x12, /**< SAP Server send error message when error occur */
-       TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_REQ = 0x13, /**< SAP Client request Transport Protocol type(T0 or T1)*/
-       TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_RESP = 0x14 /**< SAP Server response the result after changing Transport Protocol*/
-} TelSimSapMsgId_t;
-
-/**
- * @enum TelSimSapConnectionStatus_t
- * This enum gives the SAP connection status information .
- */
-typedef enum {
-       TAPI_SIM_SAP_CONNECTION_STATUS_OK = 0x00, /**< connect successfully */
-       TAPI_SIM_SAP_CONNECTION_STATUS_UNABLE_TO_ESTABLISH, /**< unable to establish connection */
-       TAPI_SIM_SAP_CONNECTION_STATUS_NOT_SUPPORT_MAX_SIZE, /**< when server does not support message length that client want send */
-       TAPI_SIM_SAP_CONNECTION_STATUS_TOO_SMALL_MAX_SIZE /**< when client want to connect with very small message length which is not supported by Server */
-} TelSimSapConnectionStatus_t;
-
-/**
- * @enum TelSimSapDissconnectType_t
- * This enum gives the SAP  disconnect type information.
- */
-typedef enum {
-       TAPI_SIM_SAP_DISCONNECT_TYPE_GRACEFUL = 0x00, /**< disconnection procedure ends after finishing current work */
-       TAPI_SIM_SAP_DISCONNECT_TYPE_IMMEDIATE /**<  disconnection procedure ends immediately*/
-} TelSimSapDissconnectType_t;
-
-/**
- * @enum TelSimSapStatusInfo_t
- * This enum gives the SAP current connection status information
- */
-typedef enum {
-       TAPI_SIM_SAP_STATUS_UNKNOWN = 0x00, /**<  SAP server connection status - unknown*/
-       TAPI_SIM_SAP_STATUS_NO_SIM, /**<  SAP server connection status - no SIM*/
-       TAPI_SIM_SAP_STATUS_NOT_READY, /**<  SAP server connection status - not ready*/
-       TAPI_SIM_SAP_STATUS_READY, /**<  SAP server connection status - ready*/
-       TAPI_SIM_SAP_STATUS_CONNECTED /**<  SAP server connection status - connected*/
-} TelSimSapStatusInfo_t;
-
-/**
- * @enum TelSimSapCardStatus_t
- * This enum gives the SIM card status if server`s status changed about connection with subscription module
- */
-typedef enum {
-       TAPI_SIM_SAP_CARD_STATUS_UNKNOWN = 0x00, /**<  SAP server status(card reader status) - unknown*/
-       TAPI_SIM_SAP_CARD_STATUS_RESET, /**<  SAP server status(card reader status) - reset*/
-       TAPI_SIM_SAP_CARD_STATUS_NOT_ACCESSIBLE, /**<  SAP server status(card reader status) - not accessible*/
-       TAPI_SIM_SAP_CARD_STATUS_REMOVED, /**<  SAP server status(card reader status) - removed*/
-       TAPI_SIM_SAP_CARD_STATUS_INSERTED, /**<  SAP server status(card reader status) - inserted*/
-       TAPI_SIM_SAP_CARD_STATUS_RECOVERED /**<  SAP server status(card reader status) - recovered*/
-} TelSimSapCardStatus_t;
-
-/**
- * @enum TelSimSapResultCode_t
- * This enum gives the SAP result information.
- */
-typedef enum {
-       TAPI_SIM_SAP_RESULT_CODE_OK = 0x00, /**<  SAP operation result - ok*/
-       TAPI_SIM_SAP_RESULT_CODE_NO_REASON, /**<  SAP operation result - no reason*/
-       TAPI_SIM_SAP_RESULT_CODE_CARD_NOT_ACCESSIBLE, /**<  SAP operation result - not accessible*/
-       TAPI_SIM_SAP_RESULT_CODE_CARD_ALREADY_POWER_OFF, /**<  SAP operation result - card already power off*/
-       TAPI_SIM_SAP_RESULT_CODE_CARD_REMOVED, /**<  SAP operation result - card removed*/
-       TAPI_SIM_SAP_RESULT_CODE_CARD_ALREADY_POWER_ON, /**<  SAP operation result - card already power on*/
-       TAPI_SIM_SAP_RESULT_CODE_DATA_NOT_AVAILABLE, /**<  SAP operation result - data not available*/
-       TAPI_SIM_SAP_RESULT_CODE_NOT_SUPPORT /**<  SAP operation result - not support*/
-} TelSimSapResultCode_t;
-
-/**
- * @enum TelSimSapProtocol_t
- * This enum gives SAP transport protocol type
- */
-typedef enum {
-       TAPI_SIM_SAP_PROTOCOL_T0, /**< T = 0, character*/
-       TAPI_SIM_SAP_PROTOCOL_T1 /**< T = 1, block*/
-} TelSimSapProtocol_t;
-
-/**
- * @enum TelSimAuthenticationType_t
- * This is used for Authentication Procedure by using SIM.
- */
-typedef enum {
-       TAPI_SIM_AUTH_TYPE_IMS = 0x00, /**< IMS Authentication */
-       TAPI_SIM_AUTH_TYPE_GSM, /**< GSM Authentication */
-       TAPI_SIM_AUTH_TYPE_3G, /**< 3G Authentication */
-       TAPI_SIM_AUTH_TYPE_MAX /**< TBD */
-} TelSimAuthenticationType_t;
-
-/**
- * @enum TelSimAuthenticationResult_t
- * This is used for Authentication Procedure.
- */
-typedef enum {
-       TAPI_SIM_AUTH_NO_ERROR = 0x00, /**< ISIM no error */
-       TAPI_SIM_AUTH_CANNOT_PERFORM, /**< status - can't perform authentication */
-       TAPI_SIM_AUTH_SKIP_RESPONSE, /**< status - skip authentication response */
-       TAPI_SIM_AUTH_MAK_CODE_FAILURE, /**< status - MAK(Multiple Activation Key) code failure */
-       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 */
-} TelSimAuthenticationResult_t;
-
-/**
- * @enum TelSimFileType_t
- * This enumeration defines the file type.
- */
-typedef enum {
-       TAPI_SIM_FTYPE_DEDICATED = 0x00, /**< Dedicated */
-       TAPI_SIM_FTYPE_TRANSPARENT = 0x01, /**< Transparent -binary type*/
-       TAPI_SIM_FTYPE_LINEAR_FIXED = 0x02, /**< Linear fixed - record type*/
-       TAPI_SIM_FTYPE_CYCLIC = 0x04, /**< Cyclic - record type*/
-       TAPI_SIM_FTYPE_INVALID_TYPE = 0xFF /**< Invalid type */
-} TelSimFileType_t;
-
-/**
- * @enum TelSimLockType_t
- *     This structure gives security lock type enum values
- */
-typedef enum {
-       TAPI_SIM_LOCK_READY = 0x00, /**< ME Not locked - No pin verifications for any lock*/
-
-       TAPI_SIM_LOCK_PS, /** < PH-SIM (phone-SIM) locked.Lock Phone to SIM/UICC card
-        *      (MT asks password when other than current SIM/UICC card inserted;
-        *      MT may remember certain amount of previously used cards thus not
-        *      requiring password when they are inserted
-        */
-
-       TAPI_SIM_LOCK_PF, /** < PH-FSIM (phone-first-SIM) Lock Phone to the very
-        * First inserted SIM/UICC card(MT asks password when other than the first SIM/UICC
-        * card is inserted
-        */
-
-       TAPI_SIM_LOCK_SC, /** < SIM Lock (PIN, PIN2, PUK, PUK2) Lock SIM/UICC card ( SIM asks password in ME power-up and
-        *      when this command is issued
-        */
-
-       TAPI_SIM_LOCK_FD, /** < FDN - SIM card or active application in the UICC (GSM or USIM)
-        *      fixed dialing memory feature */
-       TAPI_SIM_LOCK_PN, /**< Network Personalization */
-       TAPI_SIM_LOCK_PU, /** < network subset Personalization */
-       TAPI_SIM_LOCK_PP, /** < service Provider Personalization */
-       TAPI_SIM_LOCK_PC, /** < Corporate Personalization */
-       TAPI_SIM_LOCK_SC2, /**< PIN2 lock*/
-       TAPI_SIM_LOCK_SCPUK2 = 0x0A, /** < PIN2 Unblocking Key */
-       TAPI_SIM_LOCK_ACL = 0x0B, /** < ACL lock */
-
-       TAPI_SIM_NO_SIM = 0x80, /**< SIM not inserted */
-       TAPI_SIM_UNAVAIL = 0x81, /** < SIM interface error - SIM inserted but cannot communicate */
-       TAPI_SIM_INIT_COMPLETE = 0x82, /** < SIM initialization completed */
-       TAPI_SIM_PB_INIT_COMPLETE = 0x83, /**< PB initialization completed */
-} TelSimLockType_t;
-
-/**
- *     This will be used to get or set locks - PIN, FDN etc.
- */
-typedef enum {
-       TAPI_SIM_LOCK_MODE_UNLOCK, /**< unlock */
-       TAPI_SIM_LOCK_MODE_LOCK, /**< lock */
-       TAPI_SIM_LOCK_MODE_GET /**< get */
-} tapi_sim_sec_lock_mode_t;
-
-/**
- * @enum tapi_sim_acl_t
- * This enumeration defines the ACL( Access Condition Level).
- */
-typedef enum {
-       TAPI_SIM_ACL_ALW = 0x00, /**< Allowed */
-       TAPI_SIM_ACL_PIN1 = 0x01, /**< CHV 1 */
-       TAPI_SIM_ACL_PIN2 = 0x02, /**< CHV 2 */
-       TAPI_SIM_ACL_RFU = 0x04, /**< RFU */
-       TAPI_SIM_ACL_ADM = 0x08, /**< Administration */
-       TAPI_SIM_ACL_NEVER = 0xFF /** Never */
-} TelSimAcl_t;
-
-/**
- * @enum TelSimRecordMode_t
- * This enumeration defines the record mode.
- */
-typedef enum {
-       TAPI_SIM_RECORD_NONE = 0x00, /**< N/A, meaning the target file isn't a record type */
-       TAPI_SIM_RECORD_ABSOLUTE = 0x01, /**< The specified record will be read or updated */
-       TAPI_SIM_RECORD_CURRENT = 0x02, /**< The current record will be read or updated */
-       TAPI_SIM_RECORD_NEXT = 0x03, /**< The next record will be read or updated */
-       TAPI_SIM_RECORD_PREVIOUS = 0x04, /**< The previous record will be read or updated */
-       TAPI_SIM_RECORD_TO_THE_LAST = 0x05, /**< All records from the record specified by record index to the last one will be read to the last */
-       TAPI_SIM_RECORD_FROM_THE_FIRST = 0x06 /**< All records from the first record to the one specified by record_index will be read from the first */
-} TelSimRecordMode_t;
-
-/**
- * @enum TelSimLockKey_t
- *     This structure gives security lock key information enum values
- */
-typedef enum {
-       TAPI_SIM_LOCK_KEY_NOT_NEED = 0x00, /**< key not need */
-       TAPI_SIM_LOCK_KEY_PIN = 0x01, /**< PIN required */
-       TAPI_SIM_LOCK_KEY_PUK = 0x02, /**< PUK required */
-       TAPI_SIM_LOCK_KEY_PIN2 = 0x03, /**< PIN2 required */
-       TAPI_SIM_LOCK_KEY_PUK2 = 0x04, /**< PUK2 required */
-       TAPI_SIM_LOCK_PERM_BLOCKED = 0x05, /**< Permanent block SIM */
-       TAPI_SIM_LOCK_DISABLE = 0x06, /**< Lock disable */
-       TAPI_SIM_LOCK_KEY_SIMLOCK = 0x07, /**< SIM Lock key required */
-} TelSimLockKey_t;
-
-/**
- * @enum TelSimPbAccessMode_t
- * This enumeration defines  modes to add, delete, edit for phone book access
- */
-typedef enum {
-       TAPI_SIM_PB_ACCESS_MODE_ADD = 0x01, /**< Phone Book Access mode - Add entry */
-       TAPI_SIM_PB_ACCESS_MODE_DEL = 0x02, /**< Phone Book Access mode - Delete entry */
-       TAPI_SIM_PB_ACCESS_MODE_EDIT = 0x03, /**< Phone Book Access mode - edit entry */
-} TelSimPbAccessMode_t;
-
-
-/**
- * This structure contains information about pin data.
- * SIM PIN DATA. For PIN handling (Change, UnBlock) & for Type of PIN information.
- */
-typedef struct {
-       TelSimPinType_t type; /**< Pin type */
-       unsigned char* pw; /**< PIN code */
-       unsigned int pw_len; /**< PIN code length*/
-} TelSimSecPw_t;
-
-/**
- * This structure contains information about personalization data.
- */
-typedef struct {
-       TelSimPersType_t type; /**< Personalization type */
-       unsigned char* pw; /**< Password */
-       unsigned int pw_len; /**< Password length*/
-} TelSimPersPw_t;
-
-/**
- * This data structure defines the data for the Read file result information.
- */
-typedef struct {
-       TelSimFileName_t file_id; /**< rsim access : SIM file id to access */
-       TelSimAccessType_t rsim_cmd; /**< rsim access : get response, read, update available*/
-       unsigned char p1; /**< rsim access : offset(bin), record num(record)*/
-       unsigned char p2; /**< rsim access : offset low(bin), mode(record)*/
-       unsigned char p3; /**< Number of bytes to be read(read case) or Length of the subsequent data field(update case) */
-       char* data; /**< Only update case. Optional*/
-} TelSimRSimReq_t;
-
-/**
- * This data structure defines the data for the Read file with raw format.
- */
-typedef struct {
-       unsigned short file_id;
-       char data_len;
-       unsigned char pData[1];
-} TelSimReadFileRawData_t;
-
-/**
- * This data structure defines the data for the Response of request raw format it.
- */
-typedef struct {
-       unsigned char sw1;
-       unsigned char sw2;
-       unsigned char data_len;
-       unsigned char *pData;
-} TelSimReadFileRawResonse_t;
-
-/**
- * This data structure defines the data for the apdu.
- */
-typedef struct {
-       unsigned char apdu_len;
-       unsigned char* apdu;
-} TelSimApdu_t;
-
-/**
- * This data structure defines the data for the Response of sending apdu.
- */
-typedef struct {
-       unsigned char apdu_resp_len;
-       unsigned char apdu_resp[TAPI_SIM_APDU_MAX_LEN];
-} TelSimApduResp_t;
-
-/**
- * This data structure defines the data for the Response of sending apdu.
- */
-typedef struct {
-       unsigned char atr_resp_len;
-       unsigned char atr_resp[TAPI_SIM_APDU_MAX_LEN];
-} TelSimAtrResp_t;
-
-/**
- * This structure contains information about File name and path.
- */
-typedef struct {
-       TelSimFileName_t FileName; /**< Elementary FileName enumeration */
-       unsigned char szPath[128]; /**< Absolute szPath of the elementary file. [Null Terminated] */
-} TelSimFileID_t;
-
-/**
- * This data structure defines the response for SIM update file.
- */
-typedef struct {
-       TelSimFileID_t FileId; /**< SIM file ID */
-       TelSimAccessType_t AccessType; /**< Access type */
-} TelSimFileAccessGeneralResp_t;
-
-/**
- * This structure defines the SIM device Elementary file information read
- */
-typedef struct {
-       int bValid; /**< Valid or not */
-       TelSimFileID_t FileId; /**< File identifier */
-       TelSimFileType_t FileType; /**< File type and structure */
-       TelSimAcl_t AcRead; /**< Access condition for read operation */
-       TelSimAcl_t AcUpdate; /**< Access condition for update operation */
-       TelSimAcl_t AcInvalidate; /**< Access condition for invalidate operation */
-       TelSimAcl_t AcRehabilitate; /**< Access condition for rehabilitate operation */
-       unsigned long RecordLen; /**< Length of one record in file */
-       unsigned long RecordCount; /**< Number of records in file */
-       unsigned long FileSize; /**< File size */
-} TelSimFileInfo_t;
-
-/**
- * This data structure defines the data for the Read file result information.
- */
-typedef struct {
-       TelSimFileID_t FileID; /**< SIM file id to read */
-       TelSimFileType_t FileType; /**< SIM file type */
-       unsigned long Offset; /**< Offset if read binary */
-       unsigned long RecordIndex; /**< record index if read record */
-       unsigned long RecordIndexFrom; /**< start index from */
-       unsigned long RecordIndexTo; /**< end index to */
-       TelSimRecordMode_t RecordMode; /**< record mode if read record */
-       unsigned long DataLength; /**< data length to read */
-} TelSimReadFileRequestData_t;
-
-/*
- * This is the RAW data sent to Porting Layer after converting it to SIM specific data by Codecs
- */
-typedef struct {
-       TelSimFileID_t file_id; /* SIM file id to update */
-       TelSimFileType_t file_type; /* SIM file type */
-       unsigned long offset; /* offsset if update binary */
-       unsigned long record_index; /* record index if update record */
-       TelSimRecordMode_t record_mode; /* record mode if update record */
-       unsigned long data_len; /* data length to update */
-       unsigned char pData[1];
-} TelSimUpdateFileReqRawData_t;
-
-/**
- *This data structure defines the data which is provided a unique identification number for the (U)ICC.
- */
-typedef struct {
-       int icc_length; /**< Integrated Circuit Card number length */
-       char icc_num[TAPI_SIM_ICCID_LEN_MAX]; /**< Integrated Circuit Card number */
-} TelSimIccIdInfo_t;
-
-/**
- * This data structure defines the data for the Imsi information.
- */
-typedef struct {
-       int bValid; /**< Valid(ACTIVATE) IMSI (TRUE) or Deactivated (FALSE) */
-       char szMcc[TAPI_SIM_MCC_CODE_LEN + 1]; /**< mobile country code */
-       char szMnc[TAPI_SIM_MNC_CODE_LEN + 1]; /**< mobile network code */
-       char szMsin[TAPI_SIM_MSIN_CODE_LEN + 1]; /**< mobile station identification number */
-} TelSimImsiInfo_t;
-
-/**
- * This data structure defines the data for the PIN Information.
- */
-typedef struct {
-       TelSimPinType_t type; /**< Specifies the PIN or PUK type.*/
-       int retry_count; /**< Number of attempts remaining for PIN/PUK verification.*/
-} TelSimSecResult_t;
-
-/**
- * This data structure defines the data for the PIN Information.
- */
-typedef struct {
-       TelSimPinType_t PinType; /**< Specifies the PIN or PUK type.*/
-       int RemainingAttempts; /**< Number of attempts remaining for PIN/PUK verification.*/
-} TelSimPinInfo_t;
-
-/**
- *
- *     This will be used to get / set lock status of PIN or FDN etc.
- */
-typedef struct {
-       TelSimLockType_t LockType;
-       tapi_sim_sec_lock_mode_t LockMode;
-} LockStatus_t;
-
-/**
- *
- * This structure is used to get information about LOCK_TYPE
- */
-typedef struct {
-       TelSimLockType_t LockType; /**< Lock type */
-       TelSimLockKey_t LockKey; /**< Lock key */
-       unsigned char RemainingAttempts; /**< retry counts */
-} TelSimLockInfoElement_t;
-
-/**
- *
- *This structure is used to get information about LOCK_TYPE
- */
-typedef struct {
-       unsigned char LockCount; /**< requested lock count */
-       int ErrorCode; /**< error code */
-       TelSimLockInfoElement_t LockTypeInfo[TAPI_SIM_LOCK_TYPE_INFO_MAX]; /**< Lock info according to Requested Lock Count *//* max of 8 supported */
-} TelSimLockInfo_t;
-
-/**
- * This data structure gives the phone book availability of current SIM.
- */
-typedef struct {
-       int b_fdn; /**< Fixed Dialing Number */
-       int b_msisdn; /**< my own number - MSISDN list */
-       int b_adn; /**< SIM - ADN(2G phonebook   */
-       int b_sdn; /**< Service Dialing Number  */
-       int b_3g; /**< USIM - 3G phonebook */
-       int b_aas; /**< Additional number Alpha String phonebook */
-       int b_gas; /**< Grouping information Alpha String phonebook */
-} TelSimPbList_t;
-
-/**
- *  This data struture defines the 2G phone book data storage.
- */
-typedef struct {
-       unsigned short NumLen; /**< Number length*/
-       unsigned short NumType; /**< Number type [refer to TelSimTypeOfNum_t]*/
-       unsigned short NameLen; /**< Name string length*/
-       unsigned short NameEncryptType; /**< Name string encryption type [refer to TelSimTextEncrypt_t]*/
-       unsigned short Number[TAPI_SIM_NUM_TEXT_LEN_MAX]; /**< Number data*/
-       unsigned short Name[TAPI_SIM_NUM_TEXT_LEN_MAX]; /**< Name string*/
-} TelSimPb2GData_t;
-
-/**
- *
- *   This is union defines either type of number or defines the text encryption types
- */
-typedef union {
-       TelSimTypeOfNum_t NumType; /**< Type of number */
-       TelSimTextEncrypt_t EncryptionType; /**< Encryption type */
-} TelSimPbFileDataType_t;
-
-/**
- *
- *  if tapi_sim_pb_storage_type_t value is TAPI_SIM_PB_3GSIM(0x0C)
- *  SUB_PARAMETERs are as follows
- */
-typedef struct {
-       TelSimPb3GFileType_t FileType; /**< SM PB File */
-       TelSimPbFileDataType_t FileDataType; /**< Type of num or encryption type */
-       unsigned short FileDataLength; /**< Length of data*/
-       unsigned char AasRecordIdentifier; /**< To be used only for ANR tag type*/
-       unsigned char FileData[TAPI_SIM_NUM_TEXT_LEN_MAX]; /**< file data */
-} TelSimPb3GFileDataInfo_t;
-
-/**
- *
- * This structure is used for tapi_sim_pb_storage_type_t value is TAPI_SIM_PB_AAS(0x0F) or TAPI_SIM_PB_GAS(0x10)
- *  SUB PRAMETERs are as follows
- */
-typedef struct {
-       unsigned short TextLength; /**< text length */
-       TelSimTextEncrypt_t EncryptionType; /**< Encryption type */
-       unsigned char TextData[TAPI_SIM_NUM_TEXT_LEN_MAX]; /**< text data */
-} TelSimPbAdditionalNumString_t;
-
-/**
- *
- * This structure contains the information about 3g phonebook
- */
-typedef struct {
-       unsigned char FileTypeCount; /**<Number of SIM PB EFs */
-       TelSimPb3GFileDataInfo_t PbFileDataInfo[TAPI_SIM_PB_3G_FILE_MAX_COUNT]; /**< max of 13 array of structures */
-} TelSimPb3GData_t;
-
-/**
- *
- * This structure contains the information about phonebook contact
- */
-typedef union {
-       TelSimPb2GData_t Pb2GData; /**<2G PB*/
-       TelSimPb3GData_t Pb3GData; /**<3G PB*/
-       TelSimPbAdditionalNumString_t PbAdditionalNumStringData; /**<Additional number*/
-} TelSimPbContactInfo_t;
-
-/**
- *
- * This data structure defines the main structure for adding,edit, delete SIM phone book entry
- */
-typedef struct {
-       TelSimPbFileType_t StorageFileType; /**< Storage file type */
-       unsigned short Index; /**< Index of the record being read/updated. */
-       unsigned short NextIndex; /**<  used only in read; ignored for write */
-       TelSimPbContactInfo_t ContactInfo; /**< Contact Info can be 2G data or 3G data or AAS, GAS*/
-} TelSimPbRecordData_t;
-
-
-typedef struct {
-       TelSimPbFileType_t phonebook_type;
-       unsigned short index;
-       unsigned short next_index;
-
-       unsigned char name[60];
-       TelSimTextEncrypt_t dcs;
-
-       unsigned char number[40];
-       TelSimTypeOfNum_t ton;
-
-       /* following field is valid in only USIM*/
-       unsigned char anr1[40];
-       TelSimTypeOfNum_t anr1_ton;
-       unsigned char anr2[40];
-       TelSimTypeOfNum_t anr2_ton;
-       unsigned char anr3[40];
-       TelSimTypeOfNum_t anr3_ton;
-
-       unsigned char email1[60];
-       unsigned char email2[60];
-       unsigned char email3[60];
-       unsigned char email4[60];
-
-       unsigned short group_index; //GRP
-       unsigned short pb_control; //PBC
-} TelSimPbRecord_t;
-
-/**
- * This enumeration defines the Ecc information.
- */
-typedef struct {
-       char szEcc1[TAPI_SIM_ECC_CODE_LEN * 2 + 1]; /**< Emergency Call Code 1 info. ECC is coded in BCD format. Unused bytes is set to 0xFF. */
-       char szEcc2[TAPI_SIM_ECC_CODE_LEN * 2 + 1]; /**< Emergency Call Code  2 info ECC is coded in BCD format. Unused bytes is set to 0xFF. */
-       char szEcc3[TAPI_SIM_ECC_CODE_LEN * 2 + 1]; /**< Emergency Call Code  3 info ECC is coded in BCD format. Unused bytes is set to 0xFF. */
-       char szEcc4[TAPI_SIM_ECC_CODE_LEN * 2 + 1]; /**< Emergency Call Code  4 info ECC is coded in BCD format. Unused bytes is set to 0xFF. */
-       char szEcc5[TAPI_SIM_ECC_CODE_LEN * 2 + 1]; /**< Emergency Call Code  5 info ECC is coded in BCD format. Unused bytes is set to 0xFF. */
-} TelSimEccInfo_t;
-
-/**
- * This data structure defines the data for the USim emergency call code information.
- */
-typedef struct {
-       int bUsed; /**< Used or not */
-       char szEcc[TAPI_SIM_ECC_CODE_LEN * 2 + 1]; /**< Emergency Call Code info-ECC is coded in BCD format. Unused bytes is set to 0xFF.*/
-       unsigned short EccLen; /**< Ecc length */
-       char szEccAlphaIdentifier[TAPI_SIM_ECC_ALPHA_STRING_LEN_MAX]; /**< Alphabet identifier */
-       TelSimEccEmergencyServiceInfo_t EccEmergencyServiceInfo; /**< ECC emergency service information */
-} TelUsimEccInfo_t;
-
-/**
- *     This data structure defines the phone book storage count information.
- */
-typedef struct {
-       TelSimPbFileType_t StorageFileType; /**< Storage  file type */
-       unsigned short TotalRecordCount; /**< Total record count */
-       unsigned short UsedRecordCount; /**< Used record count */
-} TelSimPbStorageInfo_t;
-
-/**
- * This data structure gives the phone book entry information.
- */
-typedef struct {
-       TelSimPbFileType_t StorageFileType; /**< Storage  file type */
-       unsigned short PbIndexMin; /**< Phone book minimum index*/
-       unsigned short PbIndexMax; /**< Phone book maximum index */
-       unsigned short PbNumLenMax; /**< Phone number maximum length */
-       unsigned short PbTextLenMax; /**< Text maximum length */
-} TelSimPbEntryInfo_t;
-
-/**
- * This data structure gives the phone book update(add/edit/delete) response.
- */
-typedef struct {
-       TelSimPbStorageInfo_t PbStorageInfo; /**< Indicates the total and used phonebook entries for the updated storage type (ADN/FDN, etc). */
-       unsigned short PbIndex; /**< Phone book record index that was updated/deleted. */
-} TelSimPbUpdateResp_t;
-
-/**
- * This data structure defines the data for the Language information.
- */
-typedef struct {
-       unsigned long LpCount; /**< Language preference count; zero indicates that the LP file is not available or it doesn't have any data.*/
-       TelSimLanguagePreferenceCode_t Lp[TAPI_SIM_LP_LEN_MAX]; /**< Language preference code */
-} TelSimLanguageInfo_t;
-
-/**
- * This data structure defines the data for the group identifier information.
- */
-typedef struct {
-       unsigned short GroupIdentifierLen; /**< Group identifier length */
-       char szGroupIdentifier[TAPI_SIM_GROUP_IDENTIFIER_LEN_MAX]; /**< Group identifier */
-} TelSimGroupIdentifierInfo_t;
-
-/**
- * This data structure defines the data for the ECC information.
- */
-typedef struct {
-       TelUsimEccInfo_t UeccInfo[TAPI_SIM_UECC_RECORD_COUNT_MAX]; /**< USIM Emergency Call Code information structure*/
-       TelSimEccInfo_t EccInfo; /**< Emergency Call Code information*/
-} TelSimEccData_t;
-
-/**
- * This structure contains all read SIM elementary file information.
- */
-typedef struct {
-       unsigned char sw1;
-       unsigned char sw2;
-       unsigned char DataLen; /**<Data Length*/
-       unsigned char Data[TAPI_SIM_DATA_LEN_MAX];
-} TelSimReadFileRaw_t;
-
-/**
- *     This will be used to get / set lock status of PIN or FDN etc.
- */
-typedef struct {
-       TelSimPersType_t type;
-       int mode;
-} TelSimPersStatus_t;
-
-/**
- *
- This structure gives 3G phone book capability information.
- */
-typedef struct {
-       TelSimPb3GFileType_t FileType3G; /**< 3G phonebook file type */
-       unsigned short PbIndexMax; /**< max index */
-       unsigned short PbTextMax; /**< max text length */
-       unsigned short TotalRecordCount; /**< total record count */
-} TelSimPb3GFileTypeCapabiltyInfo_t;
-
-/**
- *
- * This data structure defines the data for the SIM PHONEBOOK & ITS CAPABILITIES information.
- * It refers to EF_PBR
- */
-typedef struct {
-       unsigned char FileTypeCount; /**< phonebook file type count */
-       TelSimPb3GFileTypeCapabiltyInfo_t FileTypeInfo[TAPI_SIM_PB_3G_FILE_MAX_COUNT]; /**< phonebook file type information */
-} TelSimPbCapabilityInfo_t;
-
-/**CPHS related structs **/
-
-/**
- *     This sturcture gives information of available optional CPHS SIM files.
- */
-typedef struct {
-       /* Byte 2 - bit1 & 2*/
-       int bCustomerServiceProfile; /**< Customer Service Profile (CSP)  */
-       /* Byte 2 - bit3 & 4*/
-       int bServiceStringTable; /**< Service String Table (SST) */
-       /* Byte 2 - bit5 & 6*/
-       int bMailBoxNumbers; /**< MailBoxNumbers */
-       /* Byte 2 - bit7 & 8*/
-       int bOperatorNameShortForm; /**< Short form of operator name */
-       /* Byte 3 - bit1 & 2*/
-       int bInformationNumbers; /**< Information numbers */
-} TelSimCphsServiceTable_t;
-
-/*
- These requirements are additional to the GSM 900 and DCS1800 recommendations.
- They apply to all products which are to be compliant with the CPHS specification.
-
- In addition to those SIM storage fields previously defined in DCS1800 to support
- existing MS features and services, the Association has defined the following fields  :-
-
- 1)    Call Forwarding flag                                            (mandatory)
- 2)    Voice message waiting flag                                      (mandatory)
- 3)    PLMN operator name                                              (mandatory)
- 4)    Customer Service Profile (CSP)                          (optional)
- 5)    CPHS Information                                                        (mandatory)
- 6)    Mailbox Numbers                                                 (optional)
- 7)    Information Numbers                                             (optional)
-
- */
-
-/*
- DATA FIELD - 6F 16: CPHS INFORMATION
- Access Conditions:
- READ  CHV1
- UPDATE        ADM
- */
-/**
- *
- *This structure gives CPHS information data.
- */
-typedef struct {
-       TelSimCphsPhaseType_t CphsPhase; /**< CPHS phase type */
-       TelSimCphsServiceTable_t CphsServiceTable; /**< CPHS service table */
-} TelSimCphsInfo_t;
-
-/*
- DATA FIELD - 6F 14: OPERATOR NAME STRING
- Access Conditions:
- READ  CHV1
- UPDATE        ADM
- */
-/**
- *
- * This struct gives CPHS operator name information.
- */
-typedef struct {
-       unsigned char NameLength; /**< CPHS operator name length */
-       unsigned char OperatorName[TAPI_SIM_CPHS_OPERATOR_NAME_LEN_MAX + 1]; /**< CPHS operator name */
-} TelSimCphsOperatorName_t;
-
-/*
- DATA FIELD - 6F 18: OPERATOR NAME SHORTFORM
- Access Conditions:
- READ  CHV1
- UPDATE        ADM
- */
-/**
- *
- * This struct gives CPHS operator short form name information.
- */
-typedef struct {
-       unsigned char ShortNameLength; /**< CPHS operator short name length */
-       unsigned char OperatorShortName[TAPI_SIM_CPHS_OPERATOR_NAME_SHORT_FORM_LEN_MAX + 1]; /**< CPHS short operator name */
-} TelSimCphsOperatorShortName_t;
-
-/*
- Data field 6F 17 in CPHS, 6F C7 in 3GPP : Mailbox Numbers
- Access Conditions:
- READ  CHV1
- UPDATE        CHV1
- */
-
-/**
- * This data structure defines the data for the dialing number information.
- */
-typedef struct {
-       int bUsed; /**< Used or not */
-       unsigned long AlphaIDMaxLength; /**< alpha max length in SIM - READ ONLY*/
-       unsigned long AlphaIdLength; /**< length of alpha identifier */
-       unsigned char AlphaId[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN + 1]; /**< Alpha Identifier */
-       unsigned long DiallingNumMaxLength; /**< max length of dialing number filed in SIM - READ ONLY */
-       unsigned long DiallingnumLength; /**< Length of BCD number/SSC contents */
-       TelSimTypeOfNum_t TypeOfNumber; /**< TON */
-       TelSimNumberingPlanIdentity_t NumberingPlanIdent; /**< NPI */
-       char DiallingNum[TAPI_SIM_XDN_DIALING_NUMBER_LEN + 1]; /**< Dialing Number/SSC String */
-       unsigned char CapaConfigId; /**< Capability/Configuration Identifier */
-       unsigned char Ext1RecordId; /**< Extensiion1 Record Identifier */
-} TelSimDialingNumberInfo_t;
-
-/**
- * This struct gives mailbox number(including CPHS case).
- */
-typedef struct {
-       int b_cphs; /**< current data is from CPHS SIM or not*/
-       TelSimDialingNumberInfo_t voice_line1; /**< voice line1 mailbox number */
-       TelSimDialingNumberInfo_t voice_line2; /**< voice line2 mailbox number (only available in CPHS)*/
-       TelSimDialingNumberInfo_t video; /**< video mailbox number */
-       TelSimDialingNumberInfo_t fax; /**< fax mailbox number */
-       TelSimDialingNumberInfo_t email; /**< email mailbox number */
-} TelSimMailboxNumbers_s;
-
-/*
- DATA FIELD -6F 11: Voice message waiting flag
- Access Conditions:
- READ  CHV1
- UPDATE        CHV1
- */
-/**
- *
- * This struct gives CPHS voice message waiting flag information .
- */
-typedef struct {
-       int bWaitVoiceMsgLine1; /**< VoiceMsgLine 1 */
-       int bWaitVoiceMsgLine2; /**< VoiceMsgLine 2 */
-       int bWaitFaxMsg; /**< FAX Msg */
-       int bWaitDataMsg; /**< Data Msg */
-} TelSimCphsVoiceMsgWaitFlagInfo_t;
-
-/*
- DATA FIELD -6F 13: Call forwarding flags
- Access Conditions:
- READ  CHV1
- UPDATE        CHV1
- */
-/**
- * This struct gives CPHS call forwarding flag information.
- */
-typedef struct {
-       int bCallForwardUnconditionalLine1; /**< CallForwardUnconditionalLine 1 */
-       int bCallForwardUnconditionalLine2; /**< CallForwardUnconditionalLine 2 */
-       int bCallForwardUnconditionalFax; /**< CallForwardUnconditional FAX */
-       int bCallForwardUnconditionalData; /**<CallForwardUnconditional data*/
-       int bCallForwardUnconditionalSms; /**< CallForwardUnconditional SMS */
-       int bCallForwardUnconditionalBearer; /**< CallForwardUnconditional bearer*/
-} TelSimCphsCallForwardingFlagInfo_t;
-
-/*
- DATA FIELD -6F 19: Information Numbers
- Access Conditions:
- READ  CHV1
- UPDATE        CHV1
- */
-/**
- * This struct gives CPHS information numbers data.
- */
-typedef struct {
-       int bUsed; /**< SIM CPHS index level one */
-       unsigned char AlphaIdLength; /**< length of alpha identifier */
-
-       TelSimCphsIndexLevelIndicator_t IndexLevelIndicator; /**< SIM CPHS index level one */
-       int PremiumServiceIndicator; /**< SIM CPHS index level one */
-       int NetworkSpecificIndicator; /**< SIM CPHS index level one */
-       unsigned char Alpha_id[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN + 1]; /**<  Alpha Identifier */
-
-       unsigned long DiallingnumLength; /**< Length of BCD number/SSC contents */
-       TelSimTypeOfNum_t TypeOfNumber; /**< TON */
-       TelSimNumberingPlanIdentity_t NumberingPlanIdentity; /**< NPI */
-       char DiallingNum[TAPI_SIM_XDN_DIALING_NUMBER_LEN + 1]; /**< dialing Number/SSC String */
-       unsigned char Ext1RecordId; /**< Extensiion1 Record Identifier */
-} TelSimCphsInformationNum_t;
-
-/*
- DATA FIELD- 6F 15: Customer Service Profile (Storing a list of service options which are relevant to that specific customer)
- Access Conditions:
- READ  CHV1
- UPDATE        CHV1
- */
-/**
- *
- * This struct gives CPHS service call offering information.
- */
-typedef struct {
-       int bCallForwardingUnconditional; /**< CallForwarding Unconditional */
-       int bCallForwardingOnUserBusy; /**< CallForwarding On UserBusy */
-       int bCallForwardingOnNoReply; /**< CallForwarding On NoReply */
-       int bCallForwardingOnUserNotReachable; /**< CallForwarding On User Not Reachable */
-       int bCallTransfer; /**< Call Transfer */
-} TelSimCphsServiceCallOffering_t;
-
-/**
- *
- * This struct gives CPHS service call restriction information.
- */
-typedef struct {
-       int bBarringOfAllOutgoingCalls; /**< Barring Of All Outgoing Calls*/
-       int bBarringOfOutgoingInternationalCalls; /**< Barring Of Outgoing International Calls */
-       int bBarringOfOutgoingInternationalCallsExceptHplmn; /**< Barring Of Outgoing International Calls Except HPLMN */
-       int bBarringOfAllIncomingCallsRoamingOutsideHplmn; /**< Barring Of All Incoming Calls Roaming Outside HPLMN */
-       int bBarringOfIncomingCallsWhenRoaming; /**< Barring Of IncomingCalls When Roaming */
-} TelSimCphsServiceCallRestriction_t;
-
-/**
- *
- * This struct gives CPHS service SS  information.
- */
-typedef struct {
-       int bMultiPartyService; /**< MultiPartyService*/
-       int bClosedUserGroup; /**< ClosedUserGroup*/
-       int bAdviceOfCharge; /**< AdviceOfCharge*/
-       int bPreferentialClosedUserGroup; /**< PreferentialClosedUserGroup*/
-       int bClosedUserGroupOutgoingAccess; /**< ClosedUserGroupOutgoingAccess*/
-} TelSimCphsServiceOtherSupplimentaryService_t;
-
-/**
- *
- * This struct gives CPHS service call complete information.
- */
-typedef struct {
-       int bCallHold; /**< Call Hold*/
-       int bCallWaiting; /**< Call Waiting*/
-       int bCompletionOfCallToBusySubscriber; /**< Completion Of Call To Busy Subscriber*/
-       int bUserUserSignalling; /**< User User Signaling*/
-} TelSimCphsServiceCallComplete_t;
-
-/**
- *
- * This struct gives CPHS service teleservices  information.
- */
-typedef struct {
-       int bShortMessageMobileOriginated; /**< Short Message Mobile Originated*/
-       int bShortMessageMobileTerminated; /**< Short Message Mobile Terminated*/
-       int bShortMessageCellBroadcast; /**< Short Message Cell Broadcast*/
-       int bShortMessageReplyPath; /**< Short  Message Reply Path*/
-       int bShortMessageDeliveryConf; /**< Short Message Delivery Conf*/
-       int bShortMessageProtocolIdentifier; /**< Short Message Protocol Identifier*/
-       int bShortMessageValidityPeriod; /**< Short Message Validity Period*/
-} TelSimCphsServiceTeleservices_t;
-
-/**
- *
- * This struct gives CPHS alternative line service  information.
- */
-typedef struct {
-       int bAlternativeLineService; /**< Alternative Line Service*/
-} TelSimCphsServiceCphsTeleservices_t;
-
-/**
- *
- * This struct gives CPHS string service table information.
- */
-typedef struct {
-       int bStringServiceTable; /**< String Service Table*/
-} TelSimCphsServiceCphsFeatures_t;
-
-/**
- *
- * This struct gives CPHS service number identifier  information.
- */
-typedef struct {
-       int bCallingLineIdentificationPresent; /**< Calling Line Identification Present*/
-       int bConnectedLineIdentificationRestrict; /**< Connected Line Identification Restrict*/
-       int bConnectedLineIdentificationPresent; /**< Connected Line Identification Present*/
-       int bMaliciousCallIdentifier; /**< Malicious Call Identifier*/
-       int bCallingLineIdentificationSend; /**< Calling Line Identification Send*/
-       int bCallingLineIdentificationBlock; /**< Calling Line Identification Block*/
-} TelSimCphsServiceNumberIdentifier_t;
-
-/**
- *
- * This struct gives CPHS service phase services information.
- */
-typedef struct {
-       int bMenuForGprs; /**< Menu For GPRS*/
-       int bMenuForHighSpeedCsd; /**< Menu For HighSpeedCsd*/
-       int bMenuForVoiceGroupCall; /**< Menu For VoiceGroupCall*/
-       int bMenuForVoiceBroadcastService; /**< Menu For VoiceBroadcastService*/
-       int bMenuForMultipleSubscriberProfile; /**< Menu For MultipleSubscriberProfile*/
-       int bMenuForMultipleBand; /**< Menu For MultipleBand*/
-} TelSimCphsServicePhaseServices_t;
-
-/**
- *
- * This struct gives CPHS value added service   information.
- */
-typedef struct {
-       int bRestrictMenuForManualSelection; /**< RestrictMenu For ManualSelection*/
-       int bRestrictMenuForVoiceMail; /**< RestrictMenu For VoiceMail*/
-       int bRestrictMenuForMoSmsAndPaging; /**< RestrictMenu For MoSmsAndPaging*/
-       int bRestrictMenuForMoSmsWithEmialType; /**< RestrictMenu For MoSmsWithEmialType*/
-       int bRestrictMenuForFaxCalls; /**< RestrictMenu For FaxCalls*/
-       int bRestrictMenuForDataCalls; /**< RestrictMenu For DataCalls*/
-       int bRestrictMenuForChangeLanguage; /**< RestrictMenu For ChangeLanguage*/
-} TelSimCphsServiceValueAddedServices_t;
-
-/**
- *
- * This struct gives CPHS service information number data.
- */
-typedef struct {
-       int bInformationNumbers; /**< Information Numbers*/
-} TelSimCphsServiceInformationNumbers_t;
-
-/**
- *
- * This struct gives CPHS service profile entry  information.
- */
-typedef struct {
-       TelSimCphsCustomerServiceGroup_t CustomerServiceGroup; /**< customer service group*/
-       union {
-               TelSimCphsServiceCallOffering_t CallOffering; /**< call offering*/
-               TelSimCphsServiceCallRestriction_t CallRestriction; /**< call restriction*/
-               TelSimCphsServiceOtherSupplimentaryService_t OtherSuppServices; /**< other SS services*/
-               TelSimCphsServiceCallComplete_t CallComplete; /**< call complete*/
-               TelSimCphsServiceTeleservices_t Teleservices; /**< teleservices*/
-               TelSimCphsServiceCphsTeleservices_t CphsTeleservices; /**< CPHS teleservices*/
-               TelSimCphsServiceCphsTeleservices_t CphsFeatures; /**< CPHS features*/
-               TelSimCphsServiceNumberIdentifier_t NumberIdentifiers; /**< number identifiers*/
-               TelSimCphsServicePhaseServices_t PhaseServices; /**< phase services*/
-               TelSimCphsServiceValueAddedServices_t ValueAddedServices; /**< value added services*/
-               TelSimCphsServiceInformationNumbers_t InformationNumbers; /**< information numbers*/
-       } u;
-} TelSimCphsCustomerServiceProfileEntry_t;
-
-/**
- *
- * This struct gives CPHS service profile information.
- */
-typedef struct {
-       TelSimCphsCustomerServiceProfileEntry_t ServiceProfileEntry[TAPI_SIM_CPHS_CUSTOMER_SERVICE_PROFILE_ENTRY_COUNT_MAX]; /**< service profile entry*/
-} TelSimCphsCustomerServiceProfileInfo_t;
-
-/*
- Identifier: '6FCA'    Structure: linear fixed Optional
- Record length: X bytes, X>=5  Update activity: low
- Access Conditions:
- READ  PIN
- UPDATE        PIN
- */
-/**
- *
- * This struct gives message waiting indication status information.
- */
-typedef struct {
-       unsigned char IndicatorType; /**< Indicator Type*/
-       unsigned char VoiceMailCount; /**< VoiceMail Count*/
-       unsigned char FaxCount; /**< FAX Count*/
-       unsigned char EmailCount; /**< Email Count*/
-       unsigned char OtherCount; /**< Other Count*/
-       unsigned char VideoMailCount; /**< VideoMail Count*/
-} TelSimMsgWaitingIndicationStatus_t;
-
-/*
- Identifier: '6FCB'    Structure: linear fixed Optional
- Record length: 16 bytes,      Update activity: low
- Access Conditions:
- READ  PIN
- UPDATE        PIN
- */
-/**
- *
- * This struct gives call forwarding indication  information.
- */
-typedef struct {
-       int bUsed; /**< used or not*/
-       unsigned char MspNumber; /**< MSP number*/
-       unsigned char Status; /**< call forwarding indication status*/
-       unsigned long DiallingnumLen; /**< Length of BCD number/SSC contents*/
-       TelSimTypeOfNum_t TypeOfNumber; /**< TON*/
-       TelSimNumberingPlanIdentity_t NumberingPlanIdent; /**< NPI*/
-       char DiallingNum[TAPI_SIM_XDN_DIALING_NUMBER_LEN + 1];/**< Dialing Number/SSC String*/
-} TelSimCallForwardingIndicationStatus_t;
-
-/**
- * This struct gives Call Forwarding Indication information including CPHS case.
- */
-typedef struct {
-       int b_cphs; /**< current data is from CPHS SIM or not*/
-       union {
-               TelSimCphsCallForwardingFlagInfo_t cphs_cf; /**< information from CPHS SIM*/
-               TelSimCallForwardingIndicationStatus_t cf; /**< information from 3GPP SIM*/
-       } cf_data_u;
-} TelSimCallForwarding_s;
-
-/**
- * This struct gives Message Waiting Indication information including CPHS case.
- */
-typedef struct {
-       int b_cphs; /**< current data is from CPHS SIM or not*/
-       union {
-               TelSimCphsVoiceMsgWaitFlagInfo_t cphs_mw; /**< information from CPHS SIM*/
-               TelSimMsgWaitingIndicationStatus_t mw; /**< information from 3GPP SIM*/
-       } mw_data_u;
-} TelSimMessageWaiting_s;
-
-/**
- *
- * This struct gives dynamics flag selected line  information.
- */
-typedef struct {
-       TelSimDynamicFlagsSelectedLineId_t DynamicFlags; /**< Dynamic flags information */
-} TelSimDynamicFlagsInfo_t;
-
-/**
- *
- * This struct gives dynamics flag selected line  information.
- */
-typedef struct {
-       TelSimDynamic2FlagAlsStatus_t Dynamic2Flag; /**< Dynamic flags status */
-} TelSimDynamic2FlagsInfo_t;
-
-/**
- *     This data structure represents the CPHS specific information
- */
-typedef struct {
-       int b_used; /**< used or not */
-       TelSimCphsInfo_t cphsinfo; /**< CPHS information */
-       TelSimCphsCustomerServiceProfileInfo_t csp; /**< customer service profile */
-       TelSimCphsInformationNum_t infn; /**< information numbers */
-       TelSimCphsOperatorName_t opname; /**< operator name */
-       TelSimCphsOperatorShortName_t opshortform; /**< operator short form */
-       TelSimDynamicFlagsInfo_t dflagsinfo; /**< Dynamic flags */
-       TelSimDynamic2FlagsInfo_t d2flagsinfo; /**< Dynamic2 flags */
-} TelSimCphsLocalInfo_t;
-
-/**
- *     This data structure represents MSISDN information
- */
-typedef struct {
-       char num[TAPI_SIM_XDN_DIALING_NUMBER_LEN + 1]; /**< MSISDN number. If not exist, Null string will be returned*/
-       char name[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN + 1]; /**< MSISDN name. If not exist, Null string will be returned*/
-} TelSimSubscriberInfo_t;
-
-/**
- *This is used for authentication request procedure.
- */
-typedef struct {
-       TelSimAuthenticationType_t auth_type; /**< Authentication type */
-       int rand_length; /**< the length of RAND */
-       int autn_length; /**< the length of AUTN. it is not used in case of GSM AUTH */
-       char rand_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN]; /**< RAND data */
-       char autn_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN]; /**< AUTN data. it is not used in case of GSM AUTH */
-} TelSimAuthenticationData_t;
-
-/**
- * This is used for result data of authentication.
- */
-typedef struct {
-       TelSimAuthenticationType_t auth_type; /**< authentication type */
-       TelSimAuthenticationResult_t auth_result; /**< authentication result */
-       int resp_length; /**< response length. IMS and 3G case, it stands for RES_AUTS. GSM case, it stands for SRES. */
-       char resp_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< response data. IMS and 3G case, it stands for RES_AUTS. GSM case, it stands for SRES. */
-       int authentication_key_length; /**< the length of authentication key, Kc*/
-       char authentication_key[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< the data of of authentication key, Kc*/
-       int cipher_length; /**< the length of cipher key length */
-       char cipher_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< cipher key */
-       int integrity_length; /**< the length of integrity key length */
-       char integrity_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< integrity key */
-} TelSimAuthenticationResponse_t;
-
-/**OPLMN list**/
-typedef struct {
-       char szMcc[TAPI_SIM_MCC_CODE_LEN + 1]; /**< mobile country code */
-       char szMnc[TAPI_SIM_MNC_CODE_LEN + 1]; /**< mobile network code */
-
-} TelSimOplmnlistInfo_t;
-
-/*OPLMN Access technology Identifiers*/
-typedef struct {
-       int bACT_RFU1; /**<act rfu1 */
-       int bACT_RFU2; /**<act rfu2 */
-       int bACT_RFU3; /**<act rfu3 */
-       int bACT_RFU4; /**<act rfu4 */
-       int bACT_RFU5; /**<act rfu5 */
-       int bACT_RFU6; /**<act rfu6 */
-       int bACT_RFU7; /**<act rfu7 */
-       int bACT_UTRAN; /**<act UTRAN */
-       int bACT_RFU9; /**<act rfu9 */
-       int bACT_RFU10; /**<act rfu10 */
-       int bACT_RFU11; /**<act rfu11 */
-       int bACT_RFU12; /**<act rfu12 */
-       int bACT_RFU13; /**<act rfu13 */
-       int bACT_RFU15; /**<act rfu15 */
-       int bACT_GSMCOMPACT; /**<act GSM compact */
-       int bACT_GSM; /**<act GSM */
-} TelSimOplmnActInfo_t;
-
-/*OpLMNWACT  File data*/
-typedef struct {
-       TelSimOplmnlistInfo_t OplmnList; /**<oplmn list information */
-       TelSimOplmnActInfo_t ActIdentifier; /**<act identifier*/
-} TelSimOplmnWactInfo_t;
-
-/* OPLMNWACT  list */
-typedef struct {
-       TelSimOplmnWactInfo_t OplmnList[TAPI_SIM_OPLMNWACT_MAX_LEN]; /**<oplmnwact list information */
-       int OplmnListCnt; /**<oplmnwact list count */
-} TelSimOplmnWactList_t;
-
-/* SAP (SIM Access Profile) related interface structures and enum */
-/**
- *
- * This struct gives the SAP ATR response data information.
- */
-typedef struct {
-       TelSimSapResultCode_t AtrResult; /**<  SAP result of transfer ATR request */
-       unsigned long AtrLength; /**<  SAP ATR response data length */
-       unsigned char AtrData[TAPI_SIM_SAP_ATR_DATA]; /**<  SAP ATR response data */
-} TelSimSapAtrInfo_t;
-
-/**
- *
- * This data structure gives the SAP ATR response data information.
- */
-
-typedef struct {
-       TelSimSapMsgId_t MsgId; /**< connect or disconnect request /response *//* 1 byte  at lower level */
-       TelSimSapConnectionStatus_t ConnectionStatus; /**< used only in response from tapi */
-       unsigned short MaxMsgSize; /**< request from app or set by lower layer*/
-
-} TelSimSapConnect_t;
-
-/* SAP transfer APDU request */
-
-/**
- *
- * This data structure gives the SAP APDU data information.
- */
-typedef struct {
-       unsigned char ApduLength; /**<  SAP APDU length */
-       unsigned char Apdu[TAPI_SIM_APDU_MAX_LEN]; /**<  SAP APDU data */
-} TelSimSapApduData_t;
-
-/**
- *
- * This data structure gives SAP SIM power response
- */
-typedef struct {
-       TelSimSapMsgId_t MsgId; /**<  SAP operation Id */
-       TelSimSapResultCode_t SimPowerResult; /**<  SAP result of operation */
-} TelSimSapPower_t;
-
-/**
- *
- * This data structure gives SAP SIM card reader status
- */
-typedef struct {
-       TelSimSapResultCode_t CardReaderResult; /**< SAP result of operation */
-       char CardReaderStatus; /**< bit wise encoded information */
-} TelSimCardReaderStatus_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _TELSIM_H_
-/**
- * @}
- */
diff --git a/include/common/TelSs.h b/include/common/TelSs.h
deleted file mode 100644 (file)
index 4e097a1..0000000
+++ /dev/null
@@ -1,543 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup  SS_TAPI        SS(Supplementary services)
- * @{
- *
- * @file TelSs.h
-
- @brief This file serves as a "C" header file and defines structures for Tapi Supplementary Services\n
- It contains a sample set of constants, enums, structs that would be required by applications.
- */
-
-#ifndef _TEL_SS_H_
-#define _TEL_SS_H_
-
-#include <TelDefines.h>
-#include <TelErr.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/** maximum length of barring password */
-#define TAPI_SS_GSM_BARR_PW_LEN_MAX                            4 /**<Maximum length of barring password */
-
-/** maximum length of dial digit */
-#define TAPI_CALL_DIALDIGIT_LEN_MAX                            82 /**<maximum length of dial digit *///( To Accommodate Unpacked string length, which will be greater than 182, 182* 8 /7 = 208, Packed len = 182* 7/8 = 160)
-#define TAPI_SS_USSD_DATA_SIZE_MAX                             208      /**<User-to-user data maximum size */
-#define TAPI_SS_RECORD_NUM_MAX                                 5 /**< SS record maximum size */
-#define TAPI_SS_AOC_CURRENCY_LEN_MAX                   3 /**< maximum length of AOC currency */
-
-/* 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
-
-/**
- *  This enumeration defines the call forwarding flavor.
- */
-typedef enum {
-       TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV, /**< Unconditional */
-       TAPI_SS_FORWARD_WHEN_BUSY_EV, /**< When Busy */
-       TAPI_SS_FORWARD_WHEN_NO_ANSWER_EV, /**< When No Reply */
-       TAPI_SS_FORWARD_WHEN_NOT_REACHABLE_EV, /**< When Not Reachable */
-       TAPI_SS_FORWARD_WHEN_ALL_FORWARDING_EV, /**< Forward All Calls */
-       TAPI_SS_FORWARD_WHEN_ALL_CONDITIONAL_EV, /**< Conditional */
-} TelSsForwardWhen_t;
-
-/**
- * The various types of call barring. Note, only one type of incoming barring and only one type of outgoing barring may be active at any time.
- */
-typedef enum {
-       TAPI_CALL_BARRING_ALL, /**< Barring all outgoing and incoming calls */
-       TAPI_CALL_BARRING_OUTGOING, /**< Barring outgoing call */
-       TAPI_CALL_BARRING_ALL_OUTGOING_CALLS, /**< Barring all outgoing calls */
-       TAPI_CALL_BARRING_ALL_OUTGOING_INTERN_CALL, /**< Barring all outgoing international calls */
-       TAPI_CALL_BARRING_ALL_OUTGOING_INTERN_CALL_EXCEPT, /**< Barring all international outgoing */
-       TAPI_CALL_BARRING_INCOMING, /**< Barring the incoming call */
-       TAPI_CALL_BARRING_ALL_INCOMING_CALLS, /**< Barring all incoming calls */
-       TAPI_CALL_BARRING_ALL_INCOMING_CALLS_ROAMING, /**< Barring all incoming calls while roaming */
-       TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM, /**< Barring Incoming Calls from numbers which is not stored in the SIM memory */
-} TelSsCallBarType_t;
-
-/*
- * The types of telecommunication services are used for setting the statuses of supplementary services.
- * They are typically not supported in IS-2000 or IS-136. See GSM 02.30 Annex C and GSM 22.030 Annex C.
- */
-typedef enum {
-       TAPI_SS_TS_NONE = 0x00, /**< Teleservice None*/
-
-       TAPI_SS_TS_ALL_TELESERVICES, /**< All Teleservices */
-       TAPI_SS_TS_ALL_SPEECH, /**< All Speech Services */
-       TAPI_SS_TS_ALL_DATA_TELESERVICES, /**< All Data Teleservices */
-       TAPI_SS_TS_FACS, /**< All Fax Service */
-       TAPI_SS_TS_SMS, /**< SMS service         */
-
-       TAPI_SS_TS_ALL_TELESERVICES_EXCEPT_SMS, /**< All teleservice except SMS */
-       TAPI_SS_TS_ALL_PLMN_SPEC_TELE, /**< PLMN specific teleservices*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_1, /**< PLMN specific teleservice 1*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_2, /**< PLMN specific teleservice 2*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_3, /**< PLMN specific teleservice 3*/
-
-       TAPI_SS_TS_PLMN_SPEC_TELE_4, /**< PLMN specific teleservice 4*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_5, /**< PLMN specific teleservice 5*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_6, /**< PLMN specific teleservice 6*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_7, /**< PLMN specific teleservice 7*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_8, /**< PLMN specific teleservice 8*/
-
-       TAPI_SS_TS_PLMN_SPEC_TELE_9, /**< PLMN specific teleservice 9*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_A, /**< PLMN specific teleservice 10*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_B, /**< PLMN specific teleservice 11*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_C, /**< PLMN specific teleservice 12*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_D, /**< PLMN specific teleservice 13*/
-
-       TAPI_SS_TS_PLMN_SPEC_TELE_E, /**< PLMN specific teleservice 14*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_F, /**< PLMN specific teleservice 15*/
-       TAPI_SS_TS_PLMN_SPEC_TELE_, /**< PLMN specific teleservice*/
-       TAPI_SS_BS_ALL_BEARER_SERVICES, /**< All PLMN specific bearer services*/
-       TAPI_SS_BS_ALL_DATA_CDA, /**< All Data CDA*/
-
-       TAPI_SS_BS_ALL_DATA_CDS, /**< All Data CDS*/
-       TAPI_SS_BS_ALL_ASYNCHRONOUS, /**< All  Asynchronous */
-       TAPI_SS_BS_ALL_SYNCHRONOUS, /**< All  Synchronous */
-       TAPI_SS_BS_DATA_CIRCUIT_SYNC, /**< All Data Circuit Synchronous */
-       TAPI_SS_BS_DATA_CIRCUIT_ASYNC, /**< All Data Circuit Asynchronous */
-
-       TAPI_SS_BS_DATA_ALL_PDS, /**< All Data PDS */
-       TAPI_SS_BS_ALL_DATA_PADCA, /**< All Data PADCA */
-       TAPI_SS_BS_ALL_PLMN_SPEC_BS, /**< All PLMN SPEC BS */
-       TAPI_SS_BS_PLMN_SPEC_TELE_1, /**< PLMN specific bearer service 1*/
-       TAPI_SS_BS_PLMN_SPEC_TELE_2, /**< PLMN specific bearer service 2*/
-
-       TAPI_SS_BS_PLMN_SPEC_TELE_3, /**< PLMN specific bearer service 3*/
-       TAPI_SS_BS_PLMN_SPEC_TELE_4, /**< PLMN specific bearer service 4*/
-       TAPI_SS_BS_PLMN_SPEC_TELE_5, /**< PLMN specific bearer service 5*/
-       TAPI_SS_BS_PLMN_SPEC_TELE_6, /**< PLMN specific bearer service 6*/
-       TAPI_SS_BS_PLMN_SPEC_TELE_7, /**< PLMN specific bearer service 7*/
-
-       TAPI_SS_BS_PLMN_SPEC_TELE_8, /**< PLMN specific bearer service 8*/
-       TAPI_SS_BS_PLMN_SPEC_TELE_9, /**< PLMN specific bearer service 9*/
-       TAPI_SS_BS_PLMN_SPEC_TELE_A, /**< PLMN specific bearer service 10*/
-       TAPI_SS_BS_PLMN_SPEC_TELE_B, /**< PLMN specific bearer service 11 */
-       TAPI_SS_BS_PLMN_SPEC_TELE_C, /**< PLMN specific bearer service 12 */
-
-       TAPI_SS_BS_PLMN_SPEC_TELE_D, /**< PLMN specific bearer service 13 */
-       TAPI_SS_BS_PLMN_SPEC_TELE_E, /**< PLMN specific bearer service 14 */
-       TAPI_SS_BS_PLMN_SPEC_TELE_F, /**< PLMN specific bearer service 15*/
-       TAPI_SS_TS_ALL_DATA, /**< All Data*/
-       TAPI_SS_TS_DATA_CIRCUIT_SYNC, /**< Data Circuit Sync*/
-
-       TAPI_SS_TS_MULTIPLE, /**< multiple*/
-       TAPI_SS_TS_TELEPHONY, /**< Telephony */
-       TAPI_SS_TS_DATA_CIRCUIT_ASYNC, /**< Data Circuit Async */
-       TAPI_SS_TS_DATA_PACKET, /**< Data packet */
-
-       /* CPHS - AUXILIARY SERVICE */
-       TAPI_SS_TS_AUX_VOICE, /**< All Auxiliary Voice ( Auxiliary telephony ) */
-
-       TAPI_SS_ALL_TELE_BEARER, /**< all tele and bearer services */
-       TAPI_SS_TS_ALL_TELE_AND_BEARER_SERVICES, /**< Teleservices & Bearer Services */
-} TelSsTeleService_t;
-
-/**
- * This enumeration defines the ussd response type
- */
-typedef enum {
-       TAPI_USSD_RES_UNKNOWN_ALPHABET, /**< USSD data is unknown */
-       TAPI_USSD_RES_DISPL_BUSY, /**< USSD Data response is display busy  */
-       TAPI_USSD_RES_OK, /**< USSD Data is encoded and properly propagated */
-       TAPI_USSD_RES_NONE /**< NO USSD Response from client */
-} TelSsUssdRespType_t;
-
-/**
- * This enumeration defines the ussd Indication Type
- */
-typedef enum {
-       TAPI_USSD_IND_NOTIFY = 0x00, /**< notify : to display USSD data to user */
-       TAPI_USSD_IND_NO_ACTION_REQUIRE = 0x01, /**< No further user action required */
-       TAPI_USSD_IND_ACTION_REQUIRE = 0x02, /**< Further user action required*/
-       TAPI_USSD_IND_TERMINATED_BY_NET = 0x03, /**< 0x03 : USSD terminated by network */
-       TAPI_USSD_IND_OTHER_CLIENT = 0x04, /**< 0x04 : other local client has responded */
-       TAPI_USSD_IND_NOT_SUPPORT = 0x05, /**< 0x05 : operation not supported */
-       TAPI_USSD_IND_TIME_OUT = 0x06 /**< 0x06 : Time out when there is no response from network */
-} TelSsUssdIndType_t;
-
-/**
- *
- * This enum defines the values for USSD type.
- */
-typedef enum {
-       TAPI_USSD_USER_INIT = 0x01, /**< USSD request type User Initiated. */
-       TAPI_USSD_USER_RSP, /**< USSD request type User Response. */
-       TAPI_USSD_USER_REL /**< USSD request type User Release. */
-} TelSsUssdType_t;
-
-/**
- *  This enumeration defines the call barring operation mode .
- */
-typedef enum {
-       TAPI_SS_CALL_BAR_ACTIVATE, /**< Activate call barring  */
-       TAPI_SS_CALL_BAR_DEACTIVATE, /**< De Activate call barring */
-} TelSsCallBarOperationMode_t;
-
-/**
- *  This enumeration defines the call barring operation mode .
- */
-typedef enum {
-       TAPI_SS_CW_ACTIVATE, /**< Activate call barring  */
-       TAPI_SS_CW_DEACTIVATE, /**< De Activate call barring */
-} TelSsCallWaitOperationMode_t;
-
-/**
- *  This enumeration defines the call type .
- */
-typedef enum {
-       TAPI_CALL_TYPE_VOICE_EV, /**< Voice Call */
-       TAPI_CALL_TYPE_DATA_EV, /**< Data Call */
-       TAPI_CALL_TYPE_FAX_EV, /**< FAX   Call */
-       TAPI_CALL_TYPE_SHORT_MESS_EV, /**< Short Message */
-       TAPI_CALL_TYPE_ALL_ASYNC_EV, /**< All Async services */
-       TAPI_CALL_TYPE_ALL_SYNC_EV, /**< All sync services */
-       TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV, /**< Data Circuit Sync */
-       TAPI_CALL_TYPE_ALL_TELE_BEARER, /**< all tele and bearer services */
-       TAPI_CALL_TYPE_ALL_TELE, /**< All tele services */
-} TelSsCallType_t;
-
-/**
- *  This enumeration defines the forward mode .
- */
-typedef enum {
-       TAPI_CALL_FORWARD_MODE_DISABLE_EV, /**< Deactivate call forwarding  */
-       TAPI_CALL_FORWARD_MODE_ENABLE_EV, /**< Activate call forwarding */
-       TAPI_CALL_FORWARD_MODE_REGISTRATION_EV, /**< Register Call forwarding  */
-       TAPI_CALL_FORWARD_MODE_ERASURE_EV, /**< De-register call forwarding */
-} TelSsForwardMode_t;
-
-/**
- *  This enumeration defines the forward type .
- */
-typedef enum {
-       TAPI_CS_FORWARD_TYPE_VOICE_EV = 0, /**< Voice call forward */
-       TAPI_CS_FORWARD_TYPE_ALL_ASYNC_EV, /**< All Async services */
-       TAPI_CS_FORWARD_TYPE_ALL_SYNC_EV, /**< All sync services */
-       TAPI_CS_FORWARD_TYPE_DATA_EV, /**< Data call forward */
-       TAPI_CS_FORWARD_TYPE_FAX_EV, /**< Fax call forward */
-       TAPI_CS_FORWARD_TYPE_ALL_TELE_BEARER, /**< All tele and bearer services */
-       TAPI_CS_FORWARD_TYPE_ALL_TELE, /**< All tele services */
-       TAPI_CS_FORWARD_TYPE_AUX_VOICE, /**< AUX Voice */
-} TelSsForwardType_t;
-
-typedef enum {
-       TAPI_SS_CF_NO_REPLY_TIME_5_SECS = 5, /**< Timer value set to 5secs*/
-       TAPI_SS_CF_NO_REPLY_TIME_10_SECS = 10, /**< Timer value set to 10secs*/
-       TAPI_SS_CF_NO_REPLY_TIME_15_SECS = 15, /**< Timer value set to 15secs*/
-       TAPI_SS_CF_NO_REPLY_TIME_20_SECS = 20, /**< Timer value set to 20secs*/
-       TAPI_SS_CF_NO_REPLY_TIME_25_SECS = 25, /**< Timer value set to 25secs*/
-       TAPI_SS_CF_NO_REPLY_TIME_30_SECS = 30, /**< Timer value set to 30secs*/
-} TelSsNoReplyTime_t;
-
-/**
- *  This enumeration type defines the Supplementary service types
- */
-typedef enum {
-       TAPI_SS_TYPE_BARRING, /**< Barring SS */
-       TAPI_SS_TYPE_FORWARDING, /**<  Forward SS  */
-       TAPI_SS_TYPE_WAITING, /**<  Waiting SS */
-       TAPI_SS_TYPE_IDENTIFICATION, /**< Identification SS  */
-       TAPI_SS_TYPE_CNAP, /**< CNAP SS */
-       TAPI_SS_TYPE_USSD, /**<  Unstructured supplementary data SS  */
-       TAPI_SS_TYPE_AOC, /**< AOC SS*/
-} TelSsType_t;
-
-/**
- *  Describes whether a supplementary service request was a success or a failure; and if it failed, why.
- */
-typedef enum {
-       TAPI_SS_SUCCESS, /**<  SS operation was successful */
-       TAPI_SS_TIMEREXPIRE, /**< SS operation timer expired on network. */
-       TAPI_SS_UNKNOWNSUBSCRIBER, /**< SS error indicating unknown/illegal subscriber.  */
-       TAPI_SS_BEARERSERVICENOTPROVISIONED, /**<The network returns this error when it is requested to  @n
-        perform an operation on a supplementary service  */
-       TAPI_SS_TELESERVICENOTPROVISIONED, /**<The network returns this error when it is requested to perform  @n
-        an operation on a supplementary service  */
-       TAPI_SS_ILLEGALSSOPERATION, /**<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, /**<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, /**< SS not available in network */
-       TAPI_SS_SUBSCRIPTIONVIOLATION, /**< SS service subscription violation. */
-       TAPI_SS_INCOMPATIBILITY, /**< This error is returned by the network when it is requested for a supplementary service operation incompatible with the @n
-        status of another supplementary service or with the teleservice or bearer service for which the operation is requested */
-       TAPI_SS_SYSTEMFAILURE, /**< This error is returned by the network, when it cannot perform an operation because of a failure in the network */
-       TAPI_SS_DATAMISSING, /**< 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, /**< SS error indicating unexpected data value on network side *//**< SS operation barred.  */
-       TAPI_SS_PWREGISTRATIONFAILURE, /**< SS error indicating change password failure. */
-       TAPI_SS_NEGATIVEPWCHECK, /**< SS error indicating negative password check.  */
-       TAPI_SS_FACILITYNOTSUPPORTED, /**< SS service facility not supported  */
-       TAPI_SS_RESOURCESNOTAVAILABLE, /**< SS error indicating resources not available in network.  */
-       TAPI_SS_MAXNOMPTYEXCEEDED, /**< SS error indicating Maximum MPTY is reached.  */
-       TAPI_SS_CALLBARRED, /**< This error is returned by the network to the MS when call independent subscriber control procedures are barred by the operator */
-       TAPI_SS_NUMBEROFPWATTEMPTSVIOLATION, /**< SS error indicating barring password attempts violated.  */
-       TAPI_SS_ABSENTSUBSCRIBER, /**< This error is returned when the subscriber has activated the detach service or the system detects the absence condition */
-       TAPI_SS_ILLEGALSUBSCRIBER, /**<This error is returned when illegality of the access has been @n
-        established by use of authentication procedure. */
-       TAPI_SS_ILLEGALEQUIPMENT, /**<This error is returned when the IMEI check procedure has shown that  @n
-        the IMEI is blacklisted or not whitelisted  */
-       TAPI_SS_USSDBUSY, /**< SS error indicating USSD Busy(Already SS / USSD is ongoing).  */
-       TAPI_SS_UNKNOWNALPHABET, /**< SS error indicating unknown SS data coding of alphabet */
-       TAPI_SS_INVALIDDEFLECTEDTONUMBER, /**< SS error indicating the invalid deflected to number.  */
-       TAPI_SS_DEFLECTIONTOSERVEDSUBSCRIBER, /**< This error is returned if a diversion to the served  @n
-        subscriber's number was requested.  */
-       TAPI_SS_SPECIALSERVICECODE, /**< This error is returned if diversion to a special service code was requested.  */
-       TAPI_SS_REJECTEDBYUSER, /**< SS operation rejected by user.  */
-       TAPI_SS_REJECTEDBYNETWORK, /**< SS operation rejected by network.  */
-       TAPI_SS_NET_NOT_ALLOWED_EMERGENCY_CALLS_ONLY, /**< SS operation is not allowed by network.  */
-       TAPI_SS_UNKNOWNERROR, /**< SS error indicating unknown error  */
-       TAPI_SS_OEM_NOT_SUPPORTED /**< If oem do not support any of SS requests, then this error will be returned back */
-} TelSsCause_t;
-
-/**
- *   The status of a supplementary service feature (e.g. Call Forwarding or Call Barring). @n
- *   These enumerated values should be used as masks
- */
-typedef enum {
-       TAPI_SS_STATUS_ACTIVE, /**< Provisioned & registered & active */
-       TAPI_SS_STATUS_REGISTERED, /**< Provisioned & registered (but not active/active-quiescent */
-       TAPI_SS_STATUS_PROVISIONED, /**<Provisioned but not registered (or active/active-quiescent) */
-       TAPI_SS_STATUS_QUIESCENT, /**< Provisioned & registered & active but quiescent */
-       TAPI_SS_STATUS_NOTHING /**< Not provisioned */
-} TelSsStatus_t;
-
-/**
- * These are the four types of identity presentation / restriction services.
- */
-typedef enum {
-       TAPI_CALLING_LINE_IDENTITY_PRESENTATION, /**< 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 */
-       TAPI_CONNECTED_LINE_IDENTITY_RESTRICTION, /**< restrict yourself from being identified by incoming calls, such as forwarded calls */
-       TAPI_CALLED_LINE_IDENTITY_PRESENTATION, /**< Called line identity presentation  */
-       TAPI_CALLING_NAME_PRESENTATION /**< Calling Name Presentation */
-} TelSsLineIdentificationType_t;
-
-/**
- *  This enumeration defines the cli service status .
- */
-typedef enum {
-       TAPI_CLI_STATUS_NOT_PROVISONED = 0x01, /**<Service not provided by the service provider */
-       TAPI_CLI_STATUS_PROVISIONED, /**<Service is provided by the service provider */
-       TAPI_CLI_STATUS_ACTIVATED, /**<Service is activated at the network */
-       TAPI_CLI_STATUS_UNKOWN, /**<Service status is unknown*/
-       TAPI_CLI_STATUS_TEMP_RESTRICTED, /**<Service is temporarily restricted */
-       TAPI_CLI_STATUS_TEMP_ALLOWED /**<Service is temporarily allowed */
-} TelSsCliStatus_t;
-
-/**
- *  This enumeration defines the values for Cli service type .
- */
-typedef enum {
-       TAPI_SS_CLI_CLIP = 0x01, /**< Calling Line Identification Presentation. */
-       TAPI_SS_CLI_CLIR = 0x02, /**<  Calling Line Identification Restriction. */
-       TAPI_SS_CLI_COLP = 0x03, /**<  Connected Line Identification Presentation. */
-       TAPI_SS_CLI_COLR = 0x04, /**<  Connected Line Identification Restriction. */
-       TAPI_SS_CLI_CDIP = 0x05, /**<  Called Line Identification Presentation. */
-       TAPI_SS_CLI_CNAP = 0x06, /**<  Calling Name Presentation.*/
-} TelSsCliType_t;
-
-/**
- * This enum defines the values for AOC type.
- */
-typedef enum {
-       TAPI_SS_AOC_TYPE_RESET = 0x00, /**< Specifies the Reset MAXACM Value. */
-       TAPI_SS_AOC_TYPE_ACM = 0x01, /**< Specifies the Accumulated call meter. */
-       TAPI_SS_AOC_TYPE_CCM = 0x02, /**< Specifies the Current call meter. */
-       TAPI_SS_AOC_TYPE_MAXACM = 0x04, /**< Specifies the Max accumulated call meter. */
-       TAPI_SS_AOC_TYPE_PUC = 0x08 /**< Specifies the Price per unit and currency.*/
-} TelSsAocType_t;
-
-/**
- *  This structure  defines the different parameters related to forward info.
- */
-typedef struct {
-       TelSsForwardMode_t Mode; /**< Forward Mode */
-       TelSsForwardType_t Type; /**< Forward Type */
-       TelSsForwardWhen_t Condition; /**< Forward Condition */
-       char szPhoneNumber[TAPI_CALL_DIALDIGIT_LEN_MAX]; /**< Phone Number*/
-       TelSsNoReplyTime_t NoReplyConditionTimer; /**< No reply wait time 5-30 secs in intervals of 5. */
-} TelSsForwardInfo_t;
-
-/**
- *  This structure defines the values for USSD request type.
- */
-typedef struct {
-       int UssdStringLength; /**< USSD  String Length */
-       char szUssdString[TAPI_SS_USSD_DATA_SIZE_MAX]; /**< USSD  String */
-} TelSsUssdMsgInfo_t;
-
-/**
- *This structure defines the UssdMessageResponse Information
- */
-typedef struct {
-       TelSsUssdRespType_t SsRespType; /**< USSD Response Type*/
-       TelSsUssdIndType_t IndType; /**< USSD Indication Type*/
-       TelSsUssdMsgInfo_t UssdInfo; /**< USSD Data*/
-} TelSsUssdMsgRspInfo_t;
-
-typedef struct {
-       TelSsUssdIndType_t IndType; /**< USSD Indication Type*/
-       TelSsUssdMsgInfo_t UssdInfo; /**< USSD Data */
-} TelSsUssdMsgIndInfo_t;
-
-/**
- *  This structure  defines the different parameters related to call barring.
- */
-typedef struct {
-       TelSsCallBarOperationMode_t Mode; /**< Barring mode  */
-       TelSsCallBarType_t Type; /**< Barring type */
-       TelSsCallType_t CallType; /**< Call type */
-       char szPassword[TAPI_SS_GSM_BARR_PW_LEN_MAX]; /**< password */
-} TelSsCallBarringInfo_t;
-
-/**
- *  This structure  defines the different parameters related to call waiting.
- */
-typedef struct {
-       TelSsCallWaitOperationMode_t Mode; /**< Waiting mode  */
-       TelSsCallType_t CallType; /**< Call type */
-} TelSsWaitingInfo_t;
-
-/**
- * This structure defines the values for Calling line identity service
- */
-typedef struct {
-       TelSsLineIdentificationType_t IdentificationType; /**< Various line identification types */
-       TelSsCliStatus_t CliStatus; /**< Line identification status from network */
-} TelSsCliRecord_t;
-
-/**
- * This structure defines the release complete message notification type.
- */
-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. */
-} TelSsRelCompMsgInfo_t;
-
-/**
- * This structure defines the values for AOC request type.
- */
-
-typedef struct {
-       float PPM;
-       unsigned char CharTypeOfCurrency;
-       unsigned char szCurrency[TAPI_SS_AOC_CURRENCY_LEN_MAX];
-} TelAocPucInfo_t;
-
-typedef struct {
-       TelSsAocType_t AocType; /**< Specifies the AOC type. */
-       unsigned int ACM; /**< Specifies the accumulated call meter value. */
-       unsigned int MaxAcm; /**< Specifies the maximum value of ACM . */
-       float CCM; /**< Specifies the Current call meter value. */
-       float PPM; /**< Specifies the Price per unit value. */
-       unsigned char CharTypeOfCurrency; /**< Specifies the Char type of currency. */
-       unsigned char szCurrency[TAPI_SS_AOC_CURRENCY_LEN_MAX]; /**< Specifies the Currency characters. */
-} TelCallAocInfo_t;
-
-/**
- * This structure defines the values for ss call barring record
- */
-typedef struct {
-       struct {
-               TelSsStatus_t Status; /**< SS status  */
-               TelSsCallBarType_t Flavour; /**< Call barring types providing various barring conditions on that basis call be barred */
-               TelSsTeleService_t TeleCommService; /**<  Teleservice */
-       } rec_class[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the  Maximum of TAPI_SS_RECORD_NUM_MAX records. */
-} TelSsCallBarringRecord_t;
-
-/**
- * This structure defines the values for ss call forwarding record
- */
-typedef struct {
-       struct {
-               TelSsStatus_t Status; /**< Call forwarding SS status */
-               TelSsForwardWhen_t ForwardCondition; /**< Call forward types providing various conditions when call can be forwarded */
-               TelSsTeleService_t TeleCommService; /**< Teleservice type */
-               int bCallForwardingNumberPresent; /**< Call forwarding number present or not */
-               unsigned char NoReplyWaitTime;
-               unsigned char szCallForwardingNumber[TAPI_CALL_DIALDIGIT_LEN_MAX]; /**< forwarded number.[Null Terminated string]*/
-       } rec_class[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the  Maximum of TAPI_SS_RECORD_NUM_MAX records. */
-
-} TelSsForwardRecord_t;
-
-/**
- * This structure defines the values for ss call waiting record
- */
-typedef struct {
-       struct {
-               TelSsStatus_t Status; /**< SS status */
-               TelSsTeleService_t TeleCommService; /**< Teleservice */
-       } rec_class[TAPI_SS_RECORD_NUM_MAX]; /**< Specifies the  Maximum of TAPI_SS_RECORD_NUM_MAX records. */
-} TelSsCallWaitingRecord_t;
-
-/**
- *This structure defines the parameters for SS record type
- */
-typedef union {
-       TelSsCallWaitingRecord_t WaitingRecord; /**< Call waiting information */
-       TelSsCallBarringRecord_t BarringRecord; /**< Call barring information*/
-       TelSsCliRecord_t CliRecord; /**< Line identification information */
-       TelSsForwardRecord_t ForwardingRecord; /**< Call forward record information */
-} TelSsRecord_t;
-
-/**
- * related all kind of SS information
- */
-typedef struct {
-       TelSsType_t SsType; /**< Supplementary service type */
-       TelSsStatus_t SsStatus; /**<SS status information */
-       unsigned int NumberOfRecords; /**< Number of records present for Call Barring / Call forwarding / Call waiting. In case of any error, this parameter value will be set to zero.*/
-       TelSsRecord_t SsRecord; /**< SS record (Union of Call Barring / Call Forwarding/Call waiting / line identification information). This structure can be Null when number_of_records parameter is zero.*/
-       TelSsTeleService_t SsTeleserviceType; /**< Teleservice type */
-} TelSsInfo_t;
-
-typedef struct {
-       float PPM; /**< Specifies the Price per unit value. */
-       unsigned char CharTypeOfCurrency; /**< Specifies the Char type of currency. */
-       unsigned char szCurrency[TAPI_SS_AOC_CURRENCY_LEN_MAX]; /**< Specifies the Currency characters. */
-} TelSsAoc_ppm_info_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _TEL_SS_H_
-/**
- * @}
- */
diff --git a/include/common/TelUtility.h b/include/common/TelUtility.h
deleted file mode 100644 (file)
index 77cefdc..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup COMMON_TAPI     COMMON
- * @{
- *
- * @file TelUtility.h
-
- @brief This file serves as a "C" header file defines structures for Utility Services. \n
- It contains a sample set of constants, enums, structs that would be required by applications.
- */
-
-#ifndef _TEL_UTILITY_H_
-#define _TEL_UTILITY_H_
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-#define INVALID_REQUEST_ID     -1    /**< Invalid RequestId Value */
-
-/**
- * @enum TapiResult_t
- * Below enumerations are the return codes of TAPI API's
- */
-typedef enum {
-       TAPI_API_SUCCESS = 0, /**<No Error occurred */
-       TAPI_API_INVALID_INPUT = -1, /**<input values are not correct in TAPI Library */
-       TAPI_API_INVALID_PTR = -2, /**<invalid pointer */
-       TAPI_API_NOT_SUPPORTED = -3, /**<The feature corresponding to requested API is not supported. This may be due to market/network/vendor reasons such as the feature is not available in the network. */
-       TAPI_API_DEPRICATED = -4, /**<This API is deprecated and will be so in future also */
-       TAPI_API_SYSTEM_OUT_OF_MEM = -5, /**<Out of memory */
-       TAPI_API_SYSTEM_RPC_LINK_DOWN = -6, /**<RPC link down */
-       TAPI_API_SERVICE_NOT_READY = -7, /**<Phone was powered on, but yet to receive the power up completed notification */
-       TAPI_API_SERVER_FAILURE = -8, /**<error occurred in Telephony server  */
-       TAPI_API_OEM_PLUGIN_FAILURE = -9, /**<Plug-in layer failure */
-       TAPI_API_TRANSPORT_LAYER_FAILURE = -10, /**<Transport layer Failure*/
-       TAPI_API_INVALID_DATA_LEN = -11, /**<Invalid data length */
-       TAPI_API_REQUEST_MAX_IN_PROGRESS = -12, /**<Maximum number of API Request for the same service are already in progress */
-       TAPI_API_OFFLINE_MODE_ERROR = -13, /**<OEM Telephony Provider is in Offline mode. */
-       TAPI_EVENT_CLASS_UNKNOWN = -14, /**<Event class specified is not present in Event Class list. - 20*/
-       TAPI_EVENT_UNKNOWN = -15, /**<Event specified is not present in TAPI Unsolicited Event list. */
-       TAPI_REGISTRATION_OP_FAILED = -16, /**<Callback Registration/De-registration failed */
-       TAPI_API_OPERATION_FAILED = -17, /**<API operation failed*/
-       TAPI_API_INVALID_OPERATION = -18, /**<API Invalid Operation */
-
-       TAPI_API_SYSTEM_RPC_LINK_NOT_EST = -100, /**< RPC link down */
-       TAPI_API_API_NOT_SUPPORTED = -101, /**<API not supported */
-       TAPI_API_SERVER_LAYER_FAILURE = -102, /**< Server layer failure*/
-
-       /*      CALL */
-       TAPI_API_INVALID_CALL_ID = -200, /**< Invalid call ID*/
-       TAPI_API_CALL_CTXT_OVERFLOW = -201, /**<Call context overflow */
-       TAPI_API_COULD_NOT_GET_CALL_CTXT = -202, /**< Could not get call  context*/
-       TAPI_API_CTXT_SEARCH_RET_NON_CALL_CTXT = -203, /**< Context search returned non-call context*/
-       TAPI_API_COULD_NOT_DESTROY_CTXT = -204, /**< could not destroy context*/
-       TAPI_API_INVALID_LINE_ID = -205, /**< invalid line ID*/
-       TAPI_API_INVALID_CALL_HANDLE = -206, /**<Invalid call handle  - 35*/
-       TAPI_API_INVALID_CALL_STATE = -207, /**<Invalid call state- Newly added. Need to raise a CR for this */
-       TAPI_API_CALL_PRE_COND_FAILED = -208, /**<Pre condition like MO call can not be established now.*/
-       TAPI_API_CALL_SAME_REQ_PENDING = -209, /**<  Can not accept same request multiple times  */
-
-       /*      POWER   */
-       TAPI_API_MODEM_POWERED_OFF = -300, /**<The Modem is powered off */
-       TAPI_API_MODEM_ALREADY_ON = -301, /**<Modem already on */
-       TAPI_API_MODEM_ALREADY_OFF = -302, /**<Modem already off */
-
-       /* NETTEXT */
-       TAPI_API_NETTEXT_DEVICE_NOT_READY = -400, /**<Nettext device not ready */
-       TAPI_API_NETTEXT_SCADDR_NOT_SET = -401, /**<Nettext SCA address not set */
-       TAPI_API_NETTEXT_INVALID_DATA_LEN = -402, /**<Nettext Invalid data length */
-       TAPI_NETTEXT_SCADDRESS_NOT_SET = -403, /**<Nettext SCA address not set*/
-
-       /* SIM  */
-       TAPI_API_SIM_BUSY = -500, /**<SIM is busy  */
-       TAPI_API_SIM_CARD_PERMANENT_ERROR = -501, /**<SIM error/blocked state */
-       TAPI_API_SIM_NOT_INITIALIZED = -502, /**<SIM has not initialized yet (waiting for PIN verification, etc) */
-       TAPI_API_SIM_NOT_FOUND = -503, /**<SIM is not present / removed */
-       TAPI_API_SIM_SIM_SESSION_FULL = -504, /**< SIM session full*/
-       TAPI_API_SIM_INVALID_CARD_TYPE = -505, /**< SIM Invalid Application ID*/
-       TAPI_API_SIM_INVALID_SESSION = -506, /**<SIM Invalid Session */
-       TAPI_API_SIM_FILE_TYPE_WRONG = -507, /**<SIM file type wrong */
-       TAPI_API_SIM_FILE_ENCODE_FAIL = -508, /**<SIM file encode fail */
-       TAPI_API_SIM_FILE_DECODE_FAIL = -509, /**< SIM file decode fail*/
-       TAPI_API_SIM_FILE_INVALID_ENCODE_LEN = -510, /**< SIM invalid encode length*/
-       TAPI_API_SIM_INVALID_RECORD_NUM = -511, /**<SIM Invalid record number */
-       TAPI_API_SIM_CASE_NOT_HANDLED = -512, /**< SIM case not handled*/
-       TAPI_API_SIM_OEM_UNKNOWN_SIM_CARD = -513, /**<SIM OEM unknown SIM card */
-       TAPI_API_SIM_SEC_UKNOWN_PIN_TYPE = -514, /**<SIM unknown pin type */
-       TAPI_API_SIM_SEC_INVALID_PIN_TYPE = -515, /**<SIM invalid pin type */
-       TAPI_API_SIM_SEC_LOCK_PERS_ENABLED = -516, /**<SIM Lock Personalization status(PN/PU/PP/PC) */
-       TAPI_API_SIM_PB_INVALID_STORAGE_TYPE = -517, /**<SIM phonebook invalid storage type */
-
-       /* SAT  */
-       TAPI_API_SAT_INVALID_COMMAND_ID = -600, /**<Command Number Invalid      */
-       TAPI_API_SAT_COMMAND_TYPE_MISMATCH = -601, /**< Command Type Mismatch   */
-       TAPI_API_SAT_EVENT_NOT_REQUIRED_BY_USIM = -602, /**< Event Not Requested by USIM*/
-
-       /* Network */
-       TAPI_API_NETWORK_INVALID_CTXT = -700, /**< Network invalid context*/
-
-       /*Misc */
-       TAPI_API_MISC_RETURN_NULL = -800, /**< MISC return NULL*/
-       TAPI_API_MISC_VALIDITY_ERROR = -801, /**< MISC validity error*/
-       TAPI_API_MISC_INPUTPARM_ERROR = -802, /**< MISC input parameter error*/
-       TAPI_API_MISC_OUTPARAM_NULL = -803, /**< MISC output parameter null*/
-} TapiResult_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif //_TEL_UTILITY_H_
-/**
- * @}
- */
diff --git a/include/common/tel_cs_conn.h b/include/common/tel_cs_conn.h
deleted file mode 100644 (file)
index c741a50..0000000
+++ /dev/null
@@ -1,333 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 _TEL_CS_CONN_H_
-#define _TEL_CS_CONN_H_
-
-#include <TapiCommon.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define TAPI_CS_TYPE_ASYNC                                     (0 << 24)
-#define TAPI_CS_TYPE_SYNC                                      (1 << 24)
-
-#define        TAPI_CS_SERVICE_CALL                            TAPI_EVENT_CLASS_CALL_VOICE     // TAPI_EVENT_CLASS_CALL_DATA
-#define        TAPI_CS_SERVICE_SIM                                     TAPI_EVENT_CLASS_SIM
-#define        TAPI_CS_SERVICE_NETTEXT                         TAPI_EVENT_CLASS_NETTEXT
-#define        TAPI_CS_SERVICE_NETWORK                         TAPI_EVENT_CLASS_NETWORK
-#define        TAPI_CS_SERVICE_SS                                      TAPI_EVENT_CLASS_SS
-#define        TAPI_CS_SERVICE_SIMATK                          TAPI_EVENT_CLASS_SAT
-#define        TAPI_CS_SERVICE_GPRS                            TAPI_EVENT_CLASS_DATA
-#define        TAPI_CS_SERVICE_SOUND                           TAPI_EVENT_CLASS_SOUND
-#define        TAPI_CS_SERVICE_UTIL                            TAPI_EVENT_CLASS_UTIL
-
-// Voice Call/Data Call Service
-#define        TAPI_CS_CALL_SETUP                                      TAPI_EVENT_CALL_SETUP_CNF
-#define        TAPI_CS_CALL_ANSWER                                     TAPI_EVENT_CALL_ANSWER_CNF
-#define        TAPI_CS_CALL_RELEASE                            TAPI_EVENT_CALL_RELEASE_CNF
-#define        TAPI_CS_CALL_RELEASEALL                         TAPI_EVENT_CALL_RELEASE_ALL_CNF
-#define        TAPI_CS_CALL_RELEASEALL_ACTIVE          TAPI_EVENT_CALL_RELEASE_ALL_ACTIVE_CNF
-#define        TAPI_CS_CALL_RELEASEALL_HELD            TAPI_EVENT_CALL_RELEASE_ALL_HELD_CNF
-#define        TAPI_CS_CALL_DTMF                                       TAPI_EVENT_CALL_SEND_DTMF_CNF
-#define        TAPI_CS_CALL_ACTIVATE                           TAPI_EVENT_CALL_RETRIEVE_CNF
-#define        TAPI_CS_CALL_HOLD                                       TAPI_EVENT_CALL_HOLD_CNF
-#define        TAPI_CS_CALL_SWAP                                       TAPI_EVENT_CALL_SWAP_CNF
-#define        TAPI_CS_CALL_SETUPCONFCALL                      TAPI_EVENT_CALL_SETUPCONFERENCE_CNF
-#define        TAPI_CS_CALL_SPLITCONFCALL                      TAPI_EVENT_CALL_SPLITCONFERENCE_CNF
-#define        TAPI_CS_CALL_TRANSFERCALL                       TAPI_EVENT_CALL_TRANSFER_CNF
-#define        TAPI_CS_CALL_GETACTIVELINE                      TAPI_EVENT_CALL_GET_LINEID_CNF
-#define        TAPI_CS_CALL_SETACTIVELINE                      TAPI_EVENT_CALL_SET_LINEID_CNF
-#define        TAPI_CS_CALL_GETPRIVACYMODE                     TAPI_EVENT_CALL_GET_PRIVACYMODE_CNF
-#define        TAPI_CS_CALL_SETPRIVACYMODE                     TAPI_EVENT_CALL_SET_PRIVACYMODE_CNF
-#define        TAPI_CS_CALL_FLASHINFO                          TAPI_EVENT_CALL_FLASHINFO_CNF
-#define        TAPI_CS_CALL_EXITEMERGENCYMODE          TAPI_EVENT_CALL_EXIT_EMERGENCYMODE_CNF
-#define        TAPI_CS_CALL_GETCALLTIME                        TAPI_EVENT_CALL_TIME_CNF
-
-// should be confirm event
-#define        TAPI_CS_CALL_DEFLECT                            (TAPI_EVENT_CALL_CNF_MAX + 1) // ? undefined confirm
-#define        TAPI_CS_CALL_ACTIVATECCBS                       (TAPI_EVENT_CALL_CNF_MAX + 2) // undefiend confirm - ipc_rx_gencmd.c Not supported.
-// sync API
-#define        TAPI_CS_CALL_GETSTATUS                          (TAPI_CS_TYPE_SYNC+TAPI_EVENT_CALL_CNF_MAX + 3)
-#define        TAPI_CS_CALL_GETDURATION                        (TAPI_CS_TYPE_SYNC+TAPI_EVENT_CALL_CNF_MAX + 4)
-#define        TAPI_CS_CALL_GETCONFERENCELIST          (TAPI_CS_TYPE_SYNC+TAPI_EVENT_CALL_CNF_MAX + 5)
-
-// SIM Service
-#define        TAPI_CS_SIM_EVENT_MAX                           TAPI_EVENT_SIM_AUTHENTICATION_CNF
-#define        TAPI_CS_SIM_GETINDICATIONINFO           TAPI_EVENT_SIM_GET_INDICATION_CNF
-#define        TAPI_CS_SIM_SETINDICATIONINFO           TAPI_EVENT_SIM_SET_INDICATION_CNF
-#define        TAPI_CS_SIM_GETMAILBOXINFO                      TAPI_EVENT_SIM_GET_MAILBOX_CNF
-#define        TAPI_CS_SIM_SETMAILBOXINFO                      TAPI_EVENT_SIM_SET_MAILBOX_CNF
-#define        TAPI_CS_SIM_SETLANGUAGE                         TAPI_EVENT_SIM_SET_LANGUAGE_CNF
-#define        TAPI_CS_SIM_RSIMACCESS                          TAPI_EVENT_SIM_RSIM_ACCESS_CNF
-#define        TAPI_CS_SIM_VERIFYSEC                           TAPI_EVENT_SIM_VERIFY_SEC_CNF
-#define        TAPI_CS_SIM_VERIFYPUK                           TAPI_EVENT_SIM_VERIFY_PUK_CNF
-#define        TAPI_CS_SIM_CHANGEPIN                           TAPI_EVENT_SIM_CHANGE_PINS_CNF
-#define        TAPI_CS_SIM_DISABLESEC                          TAPI_EVENT_SIM_DISABLE_SEC_CNF
-#define        TAPI_CS_SIM_ENABLESEC                           TAPI_EVENT_SIM_ENABLE_SEC_CNF
-#define        TAPI_CS_SIM_GETPERSSTATUS                       TAPI_EVENT_SIM_PERS_STATUS_CNF
-#define        TAPI_CS_SIM_DISABLEPERS                         TAPI_EVENT_SIM_DISABLE_PERS_CNF
-#define        TAPI_CS_SIM_ENABLEPERS                          TAPI_EVENT_SIM_ENABLE_PERS_CNF
-#define        TAPI_CS_SIM_DISABLEFDN                          TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF
-#define        TAPI_CS_SIM_ENABLEFDN                           TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF
-#define        TAPI_CS_SIM_PB_GETCOUNT                         TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-#define        TAPI_CS_SIM_PB_GETMETAINFO                      TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-#define        TAPI_CS_SIM_PB_READRECORD                       TAPI_EVENT_SIM_PB_ACCESS_READ_CNF
-#define        TAPI_CS_SIM_PB_UPDATERECORD                     TAPI_EVENT_SIM_PB_UPDATE_CNF
-#define        TAPI_CS_SIM_PB_DELETERECORD                     TAPI_EVENT_SIM_PB_DELETE_CNF
-#define        TAPI_CS_SIM_GETPBCAPABILITYINFO         TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF
-#define        TAPI_CS_SIM_SAPCONNECTREQUEST           TAPI_EVENT_SIM_SAP_CONNECT_CNF
-#define        TAPI_CS_SIM_SAPCONNECTSTATUS            TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF
-#define        TAPI_CS_SIM_SAPATRREQUEST                       TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF
-#define        TAPI_CS_SIM_SAPTRANSFERAPDU                     TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF
-#define        TAPI_CS_SIM_SAPSETPROTOCOL                      TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF
-#define        TAPI_CS_SIM_SAPSETSIMPOWER                      TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF
-#define        TAPI_CS_SIM_SAPCARDREADERSTATUS         TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF
-#define        TAPI_CS_SIM_AUTHENTICATION              TAPI_EVENT_SIM_AUTHENTICATION_CNF
-#define TAPI_CS_SIM_APDU                                       TAPI_EVENT_SIM_APDU_CNF
-#define TAPI_CS_SIM_ATR                                                TAPI_EVENT_SIM_ATR_CNF
-
-// sync API
-#define        TAPI_CS_SIM_GETIMSIINFO                         (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 1)
-#define        TAPI_CS_SIM_GETFDNSTATUS                        (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 2)
-#define        TAPI_CS_SIM_GETECCINFO                          (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 3)
-#define        TAPI_CS_SIM_GETLANGUAGEINFO                     (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 4)
-#define        TAPI_CS_SIM_GETCARDTYPE                         (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 5)
-#define        TAPI_CS_SIM_GETSIMINITINFO                      (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 6)
-#define        TAPI_CS_SIM_GETSECSTATUS                        (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 7)
-#define        TAPI_CS_SIM_GETPBINITINFO                       (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 8)
-#define        TAPI_CS_SIM_GETICCIDINFO                        (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 9)
-#define        TAPI_CS_SIM_GETCFINFO                           (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 10)
-#define        TAPI_CS_SIM_GETMWINFO                           (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 11)
-#define        TAPI_CS_SIM_GETMBINFO                           (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 12)
-#define        TAPI_CS_SIM_GETCPHSINFO                         (TAPI_CS_TYPE_SYNC+TAPI_EVENT_SIM_CNF_MAX + 13)
-
-// SMS Service
-#define        TAPI_CS_NETTEXT_EVENT_MAX                       TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF
-#define        TAPI_CS_NETTEXT_SEND                            TAPI_EVENT_NETTEXT_SENTSTATUS_CNF
-#define        TAPI_CS_NETTEXT_READ                            TAPI_EVENT_NETTEXT_READ_SMS_CNF
-#define        TAPI_CS_NETTEXT_WRITE                           TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF
-#define        TAPI_CS_NETTEXT_DELETE                          TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF
-#define        TAPI_CS_NETTEXT_GETCOUNT                        TAPI_EVENT_NETTEXT_GET_COUNT_CNF
-#define        TAPI_CS_NETTEXT_GETSCA                          TAPI_EVENT_NETTEXT_GET_SCA_CNF
-#define        TAPI_CS_NETTEXT_GETCBCONFIG                     TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF
-#define        TAPI_CS_NETTEXT_GETPREFBEARER           TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF
-#define        TAPI_CS_NETTEXT_SETDELIVERREPORT        TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF
-#define        TAPI_CS_NETTEXT_GETPARAMS                       TAPI_EVENT_NETTEXT_GET_PARAM_CNF
-#define        TAPI_CS_NETTEXT_GETPARAMCNT                     TAPI_EVENT_NETTEXT_PARAM_COUNT_IND
-#define        TAPI_CS_NETTEXT_SEND_EX                         TAPI_EVENT_NETTEXT_SENTSTATUS_EX_CNF
-
-// Same response
-#define        TAPI_CS_NETTEXT_SETSCA                          (TAPI_EVENT_NETTEXT_CNF_MAX + 1)
-#define        TAPI_CS_NETTEXT_SETCBCONFIG                     (TAPI_EVENT_NETTEXT_CNF_MAX + 2)
-#define        TAPI_CS_NETTEXT_SETMEMSTATUS            (TAPI_EVENT_NETTEXT_CNF_MAX + 3)
-#define        TAPI_CS_NETTEXT_SETPREFBEARER           (TAPI_EVENT_NETTEXT_CNF_MAX + 4)
-#define        TAPI_CS_NETTEXT_SETMSGSTATUS            (TAPI_EVENT_NETTEXT_CNF_MAX + 5)
-#define        TAPI_CS_NETTEXT_SETPARAMS                       (TAPI_EVENT_NETTEXT_CNF_MAX + 6)
-
-// Network Service
-#define        TAPI_CS_NETWORK_EVENT_MAX                       TAPI_EVENT_NETWORK_GET_CDMA_HYBRID_MODE_CNF
-#define        TAPI_CS_NETWORK_SEARCH                          TAPI_EVENT_NETWORK_SEARCH_CNF
-#define        TAPI_CS_NETWORK_GETSELECTIONMODE        TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF
-#define        TAPI_CS_NETWORK_SETNETWORKBAND          TAPI_EVENT_NETWORK_SETNWBAND_CNF
-#define        TAPI_CS_NETWORK_GETNETWORKBAND          TAPI_EVENT_NETWORK_GETNWBAND_CNF
-#define        TAPI_CS_NETWORK_SETNETWORKMODE          TAPI_EVENT_NETWORK_SETNWMODE_CNF
-#define        TAPI_CS_NETWORK_GETNETWORKMODE          TAPI_EVENT_NETWORK_GETNWMODE_CNF
-#define        TAPI_CS_NETWORK_SETPREFPLMN                     TAPI_EVENT_NETWORK_SETPREFFEREDPLMN_CNF
-#define        TAPI_CS_NETWORK_GETPREFPLMN                     TAPI_EVENT_NETWORK_GETPREFFEREDPLMN_CNF
-#define        TAPI_CS_NETWORK_SETSERVICEDOMAIN        TAPI_EVENT_NETWORK_SETSERVICEDOMAIN_CNF
-#define        TAPI_CS_NETWORK_GETSERVICEDOMAIN        TAPI_EVENT_NETWORK_GETSERVICEDOMAIN_CNF
-#define        TAPI_CS_NETWORK_SETROAMINGMODE          TAPI_EVENT_NETWORK_SET_ROAMING_MODE_CNF
-#define        TAPI_CS_NETWORK_GETROAMINGMODE          TAPI_EVENT_NETWORK_GET_ROAMING_MODE_CNF
-#define        TAPI_CS_NETWORK_SETCDMAHYBRIDMODE       TAPI_EVENT_NETWORK_SET_CDMA_HYBRID_MODE_CNF
-#define        TAPI_CS_NETWORK_GETCDMAHYBRIDMODE       TAPI_EVENT_NETWORK_GET_CDMA_HYBRID_MODE_CNF
-// Same response
-#define        TAPI_CS_NETWORK_SELECT_AUTOMATIC        (TAPI_EVENT_NETWORK_CNF_MAX + 1)
-#define        TAPI_CS_NETWORK_SELECT_MANUAL           (TAPI_EVENT_NETWORK_CNF_MAX + 2)
-
-// SS Service
-#define        TAPI_CS_SS_EVENT_MAX                            TAPI_EVENT_SS_SET_AOC_CNF
-#define        TAPI_CS_SS_BARRSETREQ                           TAPI_EVENT_SS_BARRING_CNF
-#define        TAPI_CS_SS_BARRCHANGEPWDREQ                     TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF
-#define        TAPI_CS_SS_BARRQUERYSTATUSREQ           TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF
-#define        TAPI_CS_SS_FWDSETREQ                            TAPI_EVENT_SS_FORWARD_CNF
-#define        TAPI_CS_SS_FWDQUERYSTATUSREQ            TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF
-#define        TAPI_CS_SS_WAITSETREQ                           TAPI_EVENT_SS_WAITING_CNF
-#define        TAPI_CS_SS_WAITQUERYSTATUSREQ           TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF
-#define        TAPI_CS_SS_USSDSENDSTRINGREQ            TAPI_EVENT_SS_USSD_CNF
-#define        TAPI_CS_SS_USSDCANCEL                           TAPI_EVENT_SS_USSD_CANCEL_CNF
-#define        TAPI_CS_SS_CLIQUERYSTATUSREQ            TAPI_EVENT_SS_CLI_QUERYSTATUS_CNF
-#define        TAPI_CS_SS_GETCALLCOSTREQ                       TAPI_EVENT_SS_AOC_RSP
-#define        TAPI_CS_SS_SETCALLCOSTREQ                       TAPI_EVENT_SS_SET_AOC_CNF
-#define        TAPI_CS_SS_USSDRSP                                      TAPI_EVENT_SS_USSD_RSP_CNF
-// SAT Service
-#define        TAPI_CS_SIMATK_EVENT_MAX                                        TAPI_EVENT_SAT_MENU_SELECTION_CNF
-#define        TAPI_CS_SIMATK_SEND_MENU_SELECTION_ENVELOPE     TAPI_EVENT_SAT_MENU_SELECTION_CNF
-#define        TAPI_CS_SIMATK_SEND_EVENT_DOWNLOAD                      TAPI_EVENT_SAT_EVENT_DOWNLOAD_CNF
-#define        TAPI_CS_UI_DISPLAY_STATUS                                       (TAPI_EVENT_SAT_CNF_MAX + 1)
-#define        TAPI_CS_UI_USER_CONFIRM                                         (TAPI_EVENT_SAT_CNF_MAX + 2)
-#define        TAPI_CS_SIMATK_GET_MAIN_MENU_INFO                       (TAPI_EVENT_SAT_CNF_MAX + 3)
-#define        TAPI_CS_SIMATK_SEND_APP_EXEC_RESULT                     (TAPI_EVENT_SAT_CNF_MAX + 4)
-
-// GPRS Service
-#define        TAPI_CS_GPRS_EVENT_MAX                          TAPI_EVENT_PS_PDP_GET_PORTLIST_RSP
-#define        TAPI_CS_GPRS_STARTNETWORK                       TAPI_EVENT_PS_PDP_ACT_RSP
-#define        TAPI_CS_GPRS_PDP_DEACTIVATION_SET       TAPI_EVENT_PS_PDP_DEACT_RSP
-#define        TAPI_CS_GPRS_DATA_DORMANT                       TAPI_EVENT_PS_DATA_DORMANT_RESP
-#define        TAPI_CS_GPRS_PORT_LIST_SET                      TAPI_EVENT_PS_PDP_SET_PORTLIST_RSP
-#define        TAPI_CS_GPRS_PORT_LIST_GET                      TAPI_EVENT_PS_PDP_GET_PORTLIST_RSP
-#define        TAPI_CS_GPRS_BTDUN_PINCTRL_GET          (TAPI_EVENT_PS_CNF_MAX + 1)
-
-// Sound Service
-#define        TAPI_CS_SOUND_EVENT_MAX                         TAPI_EVENT_SOUND_AUDIOSOURCECTRL_NOTI
-#define        TAPI_CS_SOUND_VOLUME_GET                        TAPI_EVENT_SOUND_VOLUMECTRL_RSP
-#define        TAPI_CS_SOUND_MIC_MUTE_GET                      TAPI_EVENT_SOUND_MICMUTECTRL_RSP
-#define        TAPI_CS_SOUND_VOLUME_SET                        (TAPI_EVENT_SOUND_CNF_MAX + 1)
-#define        TAPI_CS_SOUND_MIC_MUTE_SET          (TAPI_EVENT_SOUND_CNF_MAX + 2)
-#define        TAPI_CS_SOUND_AUDIO_PATH_CTRL           (TAPI_EVENT_SOUND_CNF_MAX + 3)
-
-#define        TAPI_CS_UTIL_TUNNEL_REQ                         (TAPI_EVENT_UTIL_TUNNEL_CNF)
-
-// Internal
-#define TAPI_CS_INTERNAL                                               (1<<30)
-
-#define        TAPI_CS_SERVICE_DATA                                    TAPI_EVENT_CLASS_CDMA_DATA      //TAPI_EVENT_CLASS_CALL_DATA
-#define        TAPI_CS_SERVICE_MISC                                    TAPI_EVENT_CLASS_MISC
-#define        TAPI_CS_SERVICE_GPS                                             TAPI_EVENT_CLASS_GPS
-#define        TAPI_CS_SERVICE_POWER                                   TAPI_EVENT_CLASS_POWER
-#define        TAPI_CS_SERVICE_CFG                                             TAPI_EVENT_CLASS_CFG
-#define        TAPI_CS_SERVICE_OMADM                                   TAPI_EVENT_CLASS_OMADM
-#define        TAPI_CS_SERVICE_SVCMODE                                 TAPI_EVENT_CLASS_SVCMODE
-#define        TAPI_CS_SERVICE_IMEI                                    TAPI_EVENT_CLASS_IMEI
-#define        TAPI_CS_SERVICE_FACTORY                                 TAPI_EVENT_CLASS_FACTORY
-
-// SMS Service
-#define        TAPI_CS_NETTEXT_DEVICEREADY                             (TAPI_CS_INTERNAL|(TAPI_EVENT_NETTEXT_CNF_MAX+ 1))
-#define        TAPI_CS_NETTEXT_DEVICESTATUS                    (TAPI_CS_INTERNAL|(TAPI_EVENT_NETTEXT_CNF_MAX+ 2))
-
-// Network Service
-#define        TAPI_CS_NETWORK_SETNETWORKORDER                 (TAPI_CS_INTERNAL|(TAPI_CS_NETWORK_SELECT_MANUAL + 1))
-#define        TAPI_CS_NETWORK_GETNETWORKORDER                 (TAPI_CS_INTERNAL|(TAPI_CS_NETWORK_SELECT_MANUAL + 2))
-#define        TAPI_CS_NETWORK_SETPOWERONATTACH                (TAPI_CS_INTERNAL|(TAPI_CS_NETWORK_SELECT_MANUAL + 3))
-#define        TAPI_CS_NETWORK_GETPOWERONATTACH                (TAPI_CS_INTERNAL|(TAPI_CS_NETWORK_SELECT_MANUAL + 4))
-#define        TAPI_CS_NETWORK_CANCELMANUALSEARCH              (TAPI_CS_INTERNAL|(TAPI_CS_NETWORK_SELECT_MANUAL + 5))
-#define        TAPI_CS_NETWORK_CANCELMANUALSELECTION   (TAPI_CS_INTERNAL|(TAPI_CS_NETWORK_SELECT_MANUAL + 6))
-
-// Sound Service
-#define        TAPI_CS_SOUND_AUDIOLOOPBACK_SET                 (TAPI_CS_INTERNAL|(TAPI_EVENT_SOUND_CNF_MAX + 1))
-#define        TAPI_CS_SOUND_AUDIO_CLOCK_CTRL                  (TAPI_CS_INTERNAL|(TAPI_EVENT_SOUND_CNF_MAX + 2))
-#define        TAPI_CS_SOUND_VOICE_RECORDING_SET               (TAPI_CS_INTERNAL|(TAPI_EVENT_SOUND_CNF_MAX + 3))
-
-// CDMA Data Service
-#define        TAPI_CS_DATA_EVENT_MAX                                  (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_NAI_SETTING_MODE_SET_CNF))
-#define        TAPI_CS_DATA_MOBILE_IP_NAI_SET                  (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_MIP_NAI_SET_CNF))
-#define        TAPI_CS_DATA_MOBILE_IP_NAI_GET                  (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_MIP_NAI_GET_CNF))
-#define        TAPI_CS_DATA_CURRENT_NAI_INDEX_GET              (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_CURRENT_NAI_INDEX_GET_CNF))
-#define        TAPI_CS_DATA_TE2_STATUS_GET                             (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_TE2_STATUS_GET_CNF))
-#define        TAPI_CS_DATA_ROAM_GUARD_SET                             (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_ROAM_GUARD_SET_CNF))
-#define        TAPI_CS_DATA_ROAM_GUARD_GET                             (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_ROAM_GUARD_GET_CNF))
-#define        TAPI_CS_DATA_EVDO_REV_CONFIG_SET                (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_EVDO_REV_CONFIG_SET_CNF))
-#define        TAPI_CS_DATA_EVDO_REV_CONFIG_GET                (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_EVDO_REV_CONFIG_GET_CNF))
-#define        TAPI_CS_DATA_RESTORE_NAI                                (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_RESTORE_NAI_SET_CNF))
-#define        TAPI_CS_DATA_DDTM_CONFIGURATION_SET             (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_DDTM_CONFIGURATION_SET_CNF))
-#define        TAPI_CS_DATA_DDTM_CONFIGURATION_GET             (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_DDTM_CONFIGURATION_GET_CNF))
-#define        TAPI_CS_DATA_MODEM_NAI_SET                              (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_NAI_SETTING_MODE_SET_CNF))
-#define        TAPI_CS_DATA_MODEM_NAI_GET                              (TAPI_CS_INTERNAL|(TAPI_EVENT_DATA_MODEM_NAI_GET_CNF)) // please check with TAPI_EVENT_DATA_NAI_SETTING_MODE_GET_CNF
-// MISC Service
-#define        TAPI_CS_MISC_EVENT_MAX                                  (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_NAM_INFO_NOTI))
-#define        TAPI_CS_MISC_TIMEZONE_GETINFO                   (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_NITZ_GETCNF))
-#define        TAPI_CS_MISC_NAM_INFO_SET                               (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_SET_NAM_INFO_CNF))
-#define        TAPI_CS_MISC_NAM_INFO_GET                               (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_GET_NAM_INFO_CNF))
-#define        TAPI_CS_MISC_TIMEZONE_SETINFO                   (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_CNF_MAX + 1))        // There is no confirm message
-#define        TAPI_CS_MISC_TIMEZONE_CONFIRMINFO               (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_CNF_MAX + 2))        // It is not used and necessary. removed.
-#define        TAPI_CS_MISC_TIMEZONE_GETMODE                   (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_CNF_MAX + 3))
-#define        TAPI_CS_MISC_SERIAL_NUMBER_GET                  (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_CNF_MAX + 4))
-#define        TAPI_CS_MISC_ME_VERSION_GET                             (TAPI_CS_INTERNAL|(TAPI_EVENT_MISC_CNF_MAX + 5))
-
-// GPS Service
-#define        TAPI_CS_GPS_INIT                                                (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_INIT_RESP))
-#define        TAPI_CS_GPS_DEINIT                                              (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_DEINIT_RESP))
-#define        TAPI_CS_GPS_FIX_REQUEST                                 (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_FIX_REQUEST_RESP))
-#define        TAPI_CS_GPS_STOP_SESSION                                (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_STOP_SESSION_RESP))
-#define        TAPI_CS_GPS_GET_PARAMETERS                              (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_PARAMETERS_GET_RESP))
-#define        TAPI_CS_GPS_SET_PARAMETERS                              (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_PARAMETERS_SET_RESP))
-#define        TAPI_CS_GPS_AGPS_PDP_CONN_CNF                   (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_PDP_CONNECTION_IND))
-#define        TAPI_CS_GPS_AGPS_DNS_LOOKUP_CNF                 (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_DNS_LOOKUP_IND))
-#define        TAPI_CS_GPS_SEND_VER_CNF                                (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_VERIFICATION_IND))
-#define        TAPI_CS_GPS_XTRA_INIT                                   (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_XTRA_INIT))
-#define        TAPI_CS_GPS_XTRA_DEINIT                                 (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_XTRA_DEINIT))
-#define        TAPI_CS_GPS_XTRA_ENABLE                                 (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_XTRA_ENABLE_SET_RESP))
-#define        TAPI_CS_GPS_XTRA_DISABLE                                (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_CNF_MAX+1))   // should be fixed
-#define        TAPI_CS_GPS_XTRA_SET_TIMEINFO                   (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_XTRA_SET_TIME_RESP))
-#define        TAPI_CS_GPS_XTRA_SET_DATA                               (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_XTRA_SET_DATA_RESP))
-#define        TAPI_CS_GPS_MEASURE_POS_CNF                             (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_MEASURE_POSITION_CNF))
-#define        TAPI_CS_GPS_SET_FREQ_AIDING                             (TAPI_CS_INTERNAL|(TAPI_EVENT_GPS_FREQ_AIDING_SET_RESP))
-
-// Power Service
-#define        TAPI_CS_POWER_EVENT_MAX                                 (TAPI_CS_INTERNAL|(TAPI_EVENT_POWER_SERVICE_READY_IND))
-#define        TAPI_CS_POWER_FLIGHT_MODE                               (TAPI_CS_INTERNAL|(TAPI_EVENT_POWER_FLIGHT_MODE_RESP))
-#define        TAPI_CS_POWER_PHONE_POWER_ON_OFF                (TAPI_CS_INTERNAL|(TAPI_CS_POWER_EVENT_MAX + 1))
-#define        TAPI_CS_POWER_REBOOT                                    (TAPI_CS_INTERNAL|(TAPI_CS_POWER_EVENT_MAX + 2))
-#define        TAPI_CS_POWER_RAMDUMP                                   (TAPI_CS_INTERNAL|(TAPI_CS_POWER_EVENT_MAX + 3))
-
-// Power Service
-#define        TAPI_CS_CFG_DEFAULTCONFGURATION_EXE             (TAPI_CS_INTERNAL|(TAPI_CFG_EVENT_DEFAULTCFG_IND))
-#define        TAPI_CS_CFG_GET_A_KEY                                   (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_A_KEY_CNF))
-#define        TAPI_CS_CFG_VERIFY_A_KEY                                (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_VERIFY_A_KEY_CNF))
-#define        TAPI_CS_CFG_GET_MSL_INFO                                (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_MSL_INFO_CNF))
-#define        TAPI_CS_CFG_SET_VOCODER_OPTION                  (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_SET_VOCODER_OPTION_CNF))
-#define        TAPI_CS_CFG_GET_VOCODER_OPTION                  (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_VOCODER_OPTION_CNF))
-#define        TAPI_CS_CFG_SET_HIDDEN_MENU_ACCESS              (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_SET_HIDDEN_MENU_ACCESS_CNF))
-#define        TAPI_CS_CFG_GET_HIDDEN_MENU_ACCESS              (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_HIDDEN_MENU_ACCESS_CNF))
-#define        TAPI_CS_CFG_SET_CURRENT_CARRIER                 (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_SET_CURRENT_CARRIER_CNF))
-#define        TAPI_CS_CFG_GET_CURRENT_CARRIER                 (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_CURRENT_CARRIER_CNF))
-#define        TAPI_CS_CFG_SET_SIO_MODE                                (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_SET_SIO_MODE_CNF))
-#define        TAPI_CS_CFG_GET_SIO_MODE                                (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_SIO_MODE_CNF))
-#define        TAPI_CS_CFG_GET_ACTIVATION_DATE                 (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_ACTIVATION_DATE_CNF))
-#define        TAPI_CS_CFG_GET_RECONDITIONED_DATE              (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_RECONDITIONED_DATE_CNF))
-#define        TAPI_CS_CFG_SET_TTY_MODE                                (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_SET_TTY_MODE_CNF))
-#define        TAPI_CS_CFG_GET_TTY_MODE                                (TAPI_CS_INTERNAL|(TAPI_EVENT_CFG_GET_TTY_MODE_CNF))
-
-// Omadm Service
-#define        TAPI_CS_OMADM_PRL_SIZE_GET                              (TAPI_CS_INTERNAL|(TAPI_EVENT_OMADM_PRL_SIZE_GET_CNF))
-#define        TAPI_CS_OMADM_MODEL_NAME_GET                    (TAPI_CS_INTERNAL|(TAPI_EVENT_OMADM_MODEL_NAME_GET_CNF))
-#define        TAPI_CS_OMADM_OEM_NAME_GET                              (TAPI_CS_INTERNAL|(TAPI_EVENT_OMADM_OEM_NAME_GET_CNF))
-#define        TAPI_CS_OMADM_SW_VER_GET                                (TAPI_CS_INTERNAL|(TAPI_EVENT_OMADM_SW_VERSION_GET_CNF))
-#define        TAPI_CS_OMADM_PRL_READ_GET                              (TAPI_CS_INTERNAL|(TAPI_EVENT_OMADM_PRL_READ_GET_CNF))
-#define        TAPI_CS_OMADM_PRL_WRITE_SET                             (TAPI_CS_INTERNAL|(TAPI_EVENT_OMADM_PRL_WRITE_SET_CNF))
-
-// Svc Service
-#define        TAPI_CS_SVCMODE_EVENT_MAX                               (TAPI_CS_INTERNAL|(TAPI_EVENT_SVCMODE_DEVICE_TEST_NOTI))
-#define        TAPI_CS_SVCMODE_ENTERSVCMODE                    (TAPI_CS_INTERNAL|(TAPI_EVENT_SVCMODE_START_NOTI))
-#define        TAPI_CS_SVCMODE_ENDSVCMODE                              (TAPI_CS_INTERNAL|(TAPI_EVENT_SVCMODE_END_NOTI))
-#define        TAPI_CS_SVCMODE_PROCESS_KEYCODE                 (TAPI_CS_INTERNAL|(TAPI_EVENT_SVCMODE_CNF_MAX + 1))
-#define        TAPI_CS_SVCMODE_DEBUG_DUMP                              (TAPI_CS_INTERNAL|(TAPI_EVENT_SVCMODE_DEBUG_DUMP_CNF))
-#define        TAPI_CS_IMEI_COMPARE_ITEM_IND                   (TAPI_CS_INTERNAL|(TAPI_EVENT_IMEI_COMPAREITEM))
-#define        TAPI_CS_IMEI_STARTFACTORYPROCESS                (TAPI_CS_INTERNAL|(TAPI_EVENT_IMEI_CMLA_IND))
-
-#define TAPI_CS_FACTORY_OMISSION_AVOIDANCE_SET (TAPI_CS_INTERNAL|(TAPI_EVENT_FACTORY_OMISSION_AVOIDANCE_SET_CNF))
-#define TAPI_CS_FACTORY_OMISSION_AVOIDANCE_GET (TAPI_CS_INTERNAL|(TAPI_EVENT_FACTORY_OMISSION_AVOIDANCE_GET_CNF))
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*_TEL_CS_CONN_H_ */
diff --git a/include/porting/tel_marshaler.h b/include/porting/tel_marshaler.h
deleted file mode 100644 (file)
index 4f5e6c7..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 __g_cclosure_user_marshal_MARSHAL_H__
-#define __g_cclosure_user_marshal_MARSHAL_H__
-
-#include       <glib-object.h>
-
-G_BEGIN_DECLS
-
-/* VOID:INT,STRING (mashal.in:1) */
-extern void g_cclosure_user_marshal_VOID__INT_STRING (GClosure     *closure,
-                                                      GValue       *return_value,
-                                                      guint         n_param_values,
-                                                      const GValue *param_values,
-                                                      gpointer      invocation_hint,
-                                                      gpointer      marshal_data);
-
-/* VOID:INT,INT,INT,STRING (mashal.in:2) */
-extern void g_cclosure_user_marshal_VOID__INT_INT_INT_STRING (GClosure     *closure,
-                                                              GValue       *return_value,
-                                                              guint         n_param_values,
-                                                              const GValue *param_values,
-                                                              gpointer      invocation_hint,
-                                                              gpointer      marshal_data);
-
-/* VOID:INT,INT,INT,INT,STRING (mashal.in:3) */
-extern void g_cclosure_user_marshal_VOID__INT_INT_INT_INT_STRING (GClosure     *closure,
-                                                                  GValue       *return_value,
-                                                                  guint         n_param_values,
-                                                                  const GValue *param_values,
-                                                                  gpointer      invocation_hint,
-                                                                  gpointer      marshal_data);
-
-G_END_DECLS
-
-#endif /* __g_cclosure_user_marshal_MARSHAL_H__ */
-
diff --git a/include/tapi/ITapiCall.h b/include/tapi/ITapiCall.h
deleted file mode 100644 (file)
index 3424984..0000000
+++ /dev/null
@@ -1,1851 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup TAPI_CALL       CALL
- * @{
- *
- * @file ITapiCall.h
- *
- * Call APIs allow an application to accomplish the following services: @n
- * - Make a mobile originated Emergency call, Voice call, or Video call. @n
- * - Accept or Reject incoming calls. @n
- * - Release Calls. @n
- * - Call dependent supplementary services such as call hold, retrieve, DTMF. @n
- * - Multi -party call management, setup conference call, split conference call. @n
- * - Call information such as get call information, get line identification number. @n
- * - To verify whether a call (voice / video ) is possible at any given time. @n
- */
-
-#ifndef _ITAPI_CALL_H_
-#define _ITAPI_CALL_H_
-
-#include <TelCall.h>
-#include <TelUtility.h>
-#include <TelDefines.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
- /**
- * @brief  This function originates MO call setup. This is an asynchronous function. The function completes immediately and
- * call setup proceeds in background.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -  If call to tel_exe_call_mo() is successful, call handle and request ID are assigned by Telephony Server
- *     and returned to client by given Call Handle and Request Id parameters. MO call setup continues in
- *     background. There are multiple states involved in the call setup procedure. Upon request completion
- *     successful or not, various event notifications are sent to client along with data associated with event
- *     (Successful data or error information) based on the indication or response received at the Telephony Server.
- * -  Setting up Emergency call
- *     - when #TelCallType_t  is voice_call, voice call is setup unless dial_number parameter is an
- *     emergency number known to telephony FW (like 112 for all 2G and above, other numbers may operator
- *     specific or device configuration specific, so Telephony FW will read relevant SIM files and refer to internal
- *     configuration records). If an emergency number is passed and #TelCallType_t  is voice_call, Telephony
- *     FW shall setup emergency phone call.
- *     - When #TelCallType_t  is emergency call, emergency call is always set up.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface
- *
- * @param[in] pParams
- * - #TelCallSetupParams_t contains the CallType(whether it is a voice call or data call etc) and number.
- *
- * @param[out] pCallHandle
- * - Unique handle for referring the call
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * TAPI_EVENT_CALL_SETUP_CNF is sent to the application when the lower layers get the call originate response.
- * Asynchronous return status is indicated by #TelCallCause_t and call handle is sent in the event data.
- * Various asynchronous indications are described in the unsolicited notifications section . [Refer, \ref page8]
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see tel_exe_call_mo tel_answer_call tel_release_call
- * \image html CallSetup.jpg
- * \image latex CallSetup.jpg
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status =0;
- * unsigned int  pCallHandle;
- * int pRequestID=0;
- * TelCallSetupParams_t pParams;
- *
- * char normal[16] = "1234";//Called party number
- * memset(&pParams, 0, sizeof(TelCallSetupParams_t));
- * pParams.CallType = TAPI_CALL_TYPE_VOICE;
- * strcpy(pParams.szNumber,normal);
- *
- * ret_status = tel_exe_call_mo (&pParams,&pCallHandle,&pRequestID); // outgoing call
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
-int tel_exe_call_mo(const TelCallSetupParams_t *pParams,  unsigned int  *pCallHandle,  int * pRequestId);
-
- /**
- * @brief This function is used to answer the incoming call by accepting or rejecting the call.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface
- *
- * @param[in] CallHandle
- * - This is the unique handle for referring the call. This call handle is available to Application through incoming call
- *   (TAPI_EVENT_CALL_INCOM_IND) event.
- *
- * @param[in] AnsType
- * - Answer type - accept / reject / replace / hold and accept. but, for CDMA, only accept is allowed.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_ANSWER_CNF. Asynchronous return status is
- *    indicated by #TelCallCause_t and call handle is sent in the event data.
- * - TAPI_EVENT_CALL_CONNECTED_IND / TAPI_EVENT_CALL_END_IND event will be notified in case of call is accepted/rejected.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - Call associated with call handle should be TAPI_CALL_STATE_INCOM state otherwise the API fails and there can be a
- *     maximum of 1 existing call.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see tel_exe_call_mo tel_release_call
- *
- * \image html CallIncoming.jpg
- * \image latex CallIncoming.jpg
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int  ret_status ;
- * unsigned int  pCallHandle;
- * int pRequestID=0;
- *
- * ret_status = tel_answer_call (pCallHandle,&pRequestID); // call answer
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- * @remarks
- * - None
- *
- *
- */
-int tel_answer_call(unsigned int CallHandle, TelCallAnswerType_t AnsType, int * pRequestId);
-
- /**
- *
- * @brief This function releases the call identified by Call Handle irrespective of call is hold or active state.
- * It is used when releasing specific active call in multiparty call.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  - In case of MPTY Call handle, Call end event is returned for each call in MPTY.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface
- *
- * @param[in] CallHandle
- * - Unique handle for referring the call.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_RELEASE_CNF and Asynchronous return status
- *    is indicated by #TelCallCause_t and call handle for the released call is sent in the event data..
- *
- * - The event TAPI_EVENT_CALL_END_IND_IND is received as final asynchronous response and the associated data is #TelCallEndInfo_t.
- *    Asynchronous return status is indicated by #TelCallCause_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - Call handle should be valid and there should be an existing call in Active/hold state.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see tel_exe_call_mo tel_answer_call tel_release_call_all tel_release_call_all_active
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int  pCallHandle;
- * int pRequestID=0;
- *
- * ret_status = tel_release_call(pCallHandle,&pRequestID); // call release
- * @endcode
- *
- *
- * @remarks
- * - None
- *
- *
- */
-int tel_release_call(unsigned int  CallHandle, int * pRequestId);
-
- /**
- *
- * @brief This function releases the all the calls irrespective of the call is hold or active state. Due to this API request,
- *        lower layers will release the call and END Indication Event will be sent to all the Applications.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - This asynchronous event is received for each call getting released.The event associated with this request is
- *    TAPI_EVENT_CALL_END_IND_IND and the associated data is #TelCallEndInfo_t. There will be no request id present associated
- *    with this TAPI_EVENT_CALL_END_IND_IND when this API is called.
- *    Once all the calls are released, Telephony server will indicate application through TAPI Library by sending
- *    TAPI_EVENT_CALL_RELEASE_ALL_CNF. Asynchronous return status is indicated by #TelCallCause_t and there is no
- *    associated event data.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status;
- * int pRequestID;
- *
- * ret_status = tel_release_call_all(&pRequestID); // release call all
- * @endcode
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int tel_release_call_all (int * pRequestId);
-
- /**
- *
- * @brief This function releases the all activate call. Due to this API request,
- *          lower layers will release the call and END Indication Event will be sent to all the Applications.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *  - None.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status;
- * int pRequestID;
- *
- * ret_status = tel_release_call_all_active(&pRequestID); // release all active call
- * @endcode
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
-int tel_release_call_all_active(int *pRequestId);
-
- /**
- *
- * @brief This function releases the all held call. Due to this API request,
- *          lower layers will release the call and END Indication Event will be sent to all the Applications.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *  - None.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status;
- * int pRequestID;
- *
- * ret_status = tel_release_call_all_held(&pRequestID); // release all held call
- * @endcode
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
-
- int tel_release_call_all_held(int * pRequestId);
-
- /**
- *
- * @brief This function puts the given call on hold. The call identified by Call Handle should be in active state.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  - Call duration for the call will be calculated from the time call has been connected until call is released,
- *    i.e. Time duration during the call on hold will also be counted.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] CallHandle
- *  - Unique handle for referring the call.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_HOLD_CNF. Asynchronous return status is
- *    indicated by #TelCallCause_t and call handle is sent in the event data.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - The call identified by the Call Handle should be in active state.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int  pCallHandle;//HANDLE OF AN ACTIVE CALL
- * int pRequestID=0;
- *
- * ret_status = tel_hold_call(pCallHandle,&pRequestID); // hold call
- * @endcode
- *
- *
- * @see tel_retrieve_call
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_hold_call(unsigned int CallHandle, int * pRequestId);
-
- /**
- *
- * @brief This function retrieves the held call. The call identified by Call Handle must be in held state.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  - Call duration for the call will be calculated from the moment call has been connected until call is released.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- * - None.
- *
- *
- * @param[in] CallHandle
- *  - Unique handle for referring the call.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_RETRIEVE_CNF. Asynchronous return status is indicated
- *    by #TelCallCause_t and call handle is sent in the event data.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - Call should be in held state in order to retrieve into active state and no active call present.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see tel_retrieve_call
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int  pCallHandle;//held call handle
- * int pRequestID=0;
- *
- * ret_status = tel_retrieve_call(pCallHandle,&pRequestID); // retrieve call
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
-int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
-
- /**
- *
- * @brief Swap calls. This is only for calls you dialed or answered with Telephony.
- *  Swap is only available for the voice calls.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Notes:
- * During a call, user can place all active calls and accepts the other held call with this function.
- * If the terminal is not within a call, it will fail.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- * @param[in] CallHandle1
- *  - This is active call
- *
- * @param[in] CallHandle2
- *  - This is Held call
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int  pCallHandle1;
- * unsigned int  pCallHandle2;
- * int pRequestID=0;
- *
- * ret_status = tel_swap_call(pCallHandle1, pCallHandle2,&pRequestID); // swap call
- * @endcode
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_swap_call(unsigned int CallHandle1, unsigned int CallHandle2, int * pRequestId);
-
- /**
- *
- * @brief This function sends one or more DTMF digits during the call.
- *
- * @par Notes:
- * DTMF is abbreviation of Dual-tone-multi-frequency. It is used for telecommunication signaling
- * over telephone lines in the voice-frequency band between UE and other communications devices.
- * For example UE send DTMF tone to a server to choose options which the server provides.
- * If the UE is not within a call, this function will fail with error code. *
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  -There will be a single asynchronous notification for all the DTMF digits sent. If the users of this API need an asynchronous
- *    response for each DTMF digit then User has to call this API multiple times passing each single DTMF digit in pDtmfString.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] pDtmfString
- *  - A Null terminated DTMF string to be sent from MS.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_SEND_DTMF_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t and call handle is sent in the event data.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - Active call should be present.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- *
- * \image html CallDtmf.jpg
- * \image latex CallDtmf.jpg
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int  pCallHandle;
- * int pRequestID=0;
- * char DtmfString[10] = {0, };
- * strcpy(DtmfString, "123456789");//Sample DTMF digits that need to be sent
- * ret_status= tel_send_call_dtmf(DtmfString,&pRequestID);
- * @endcode
- *
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_send_call_dtmf(const char *pDtmfString, int * pRequestId);
-
- /**
- *
- * @brief This function joins the given two calls (one call in active conversation state and other call in held state) into conference.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  - Call handle of an active call or held call will be made as MPTY-id, and the other call handle will join in a conference).
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] CallHandle1
- *  - The unique handle can be either an active call or held call.
- *
- * @param[in] CallHandle2
- *  - Unique call handle.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_SETUPCONFERENCE_CNF. Asynchronous return
- *    status is indicated by #TelCallCause_t and call handle of the MPTY call is sent in the event data.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - For a Multiparty call or for joining two calls into conference, there should be one call in active state and another call
- *    in held state.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see tel_split_call
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int  pCallHandle1;
- * unsigned int  pCallHandle2;
- * int pRequestID=0;
- *
- * ret_status= tel_join_call(pCallHandle1, pCallHandle2,&pRequestID); // call join
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- *
- *
- */
- int tel_join_call(unsigned int CallHandle1, unsigned int CallHandle2, int * pRequestId);
-
- /**
- *
- * @brief This function triggers to splits a private call from multiparty call. This API allows creating a private communication
- *          with one of remote parties in a multiparty session. TAPI client application has to pass the call handle which needs
- *          to split from the multiparty call.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  - The list of call handles present in the conference call is retrieved using #tel_get_call_conf_list API
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] CallHandle
- *  - Handle of call to be made private. Call handle referring to the call that is to be split from the conference
- *     (call to be made private).
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_SPLITCONFERENCE_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t and call handle for the split call is sent in the event data.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - Call should be in multiparty conference call.
- *
- * @post
- *  - Split call will be the active call and the conference will be held call.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see tel_join _call
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int  pCallHandle;
- * int pRequestID=0;
- *
- * ret_status= tel_split_call(pCallHandle,&pRequestID); // call split
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- *
- *
- */
- int tel_split_call(unsigned int CallHandle, int * pRequestId);
-
- /**
- *
- * @brief Get the current calling line identification number.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Notes:
- * If the USIM card has multiple number, an user can choose which number he use.
- * For example, a line is for private, the other line is for business.
- * Using this function, user can get information about which line is currently active.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  NONE
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- * @param [out] ptr_active_line
- *    current active line id.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see tel_set_call_act_line
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int  pRequestID=0;
- * ret_status= tel_get_call_act_line(&pRequestID); // get call active line
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_get_call_act_line( int * pRequestId);
-
- /**
- *
- * @brief Set the current calling line identification number.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  NONE
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] active_line
- *  - calling line identification
- *
- * @param[out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see tel_get_call_act_line
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * TelCallActiveLine_t g_curLine =TAPI_CALL_ACTIVE_LINE1;
- * TelCallActiveLine_t active_line ;
- * int  pRequestID=0;
- *
- * ret_status = tel_set_call_act_line (g_curLine,&pRequestID); // set call active line
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_set_call_act_line(TelCallActiveLine_t active_line, int * pRequestId);
-
- /**
- *
- * @brief This function triggers to do an explicit call transfer by connecting the two parties where in one party being
- *          active (active state) and another party being held (held state).
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Notes:
- * The ECT supplementary service enables the served mobile subscriber (subscriber A) who has two calls ,
- * each of which can be an incoming or outgoing call, to connect the other parties in the two calls
- * and release the served mobile subscribers own connection.
- * Prior to transfer, the connection shall have been established on the call
- * between subscriber A and subscriber B. On the call between subscriber A and subscriber C,
- * either the connection shall have been established prior to transfer, or, as a network option,
- * transfer can occur while subscriber C is being informed of the call
- * (i.e. the connection has not yet been established.)
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *  - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] CallHandle
- *  - Call handle of an active call.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_TRANSFER_CNF. Asynchronous return status is
- *    indicated by #TelCallCause_t and call handle is sent in the event data. Call handle in event data is active
- *    call handle which is used in the #tel_exe_call_explicit_transfer request.
- *
- * @pre
- *  - In order to call transfer, Served mobile subscriber should have 2 calls in one in active state and another one Call
- *    in Held state.
- *
- * @post
- *  - When the request has been completed successfully, Call end indication will be sent to both the calls (active and held).
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @see None.
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int  pCallHandle;//active call
- * int pRequestID=0;
- *
- * ret_status= tel_exe_call_explicit_transfer (pCallHandle,&pRequestID); // explicit transfer
- * @endcode
- *
- * @remarks
- * -None
- *
- *
- */
- int tel_exe_call_explicit_transfer(unsigned int CallHandle, int * pRequestId);
-
-
-/**
- *
- * @brief This function gets status for the current call identified by Call Handle whenever application wants the call status. Call handle must be valid.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] CallHandle
- *  - Unique handle for referring the call.
- *
- * @param [out] pCallStatus
- *   - Call status information like destination number, call direction (MO or MT), call type (voice or data etc), whether
- *      the call is in conference state or not, present call state etc are returned through this parameter.
- *
- * @par Async Response Message:
- *   - None.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- *
- *
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int  ret_status ;
- * unsigned int CallHandle;
- * TelCallStatus_t     callStatus;
- *
- * ret_status= tel_get_call_status(CallHandle,&callStatus); // get call status info
- * @endcode
- *
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
-
- int tel_get_call_status(unsigned int CallHandle, TelCallStatus_t * pCallStatus) ;
-
-
- /**
- *
- * @brief This function gets duration of the given call. This is a synchronous function. Duration is accounted from the moment
- *          the connection is established, i.e. call goes into active state for first time.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] CallHandle
- *  - Unique handle for referring the call.
- *
- * @param [out] pDurationInSecs
- *   - The total call duration in seconds from the call connecting time to the present time is returned through this parameter.
- *
- * @par Async Response Message:
- *  - None.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- *
- *
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int CallHandle;
- * unsigned int duration;
- *
- * ret_status= tel_get_call_duration(CallHandle,&duration); // get call duration
- * @endcode
- *
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_get_call_duration(unsigned int CallHandle, unsigned int * pDurationInSecs) ;
-
- /**
-  *@brief Deflect the incoming call to other subscriber
-  *
-  * If informed about an incoming call this call may be redirected to an another destination by
-  * entering the destination Number. The cleint spcifies the dstiantion number to which the current
-  * incoming call needs to be redirected is specifed via info argument.
-  *
-  *
-  * @par Sync (or) Async:
-  * This is an Asynchronous API.
-  *
-  * @par Important Notes:
-  *  - None.
-  *
-  * @warning
-  * Do not use this function. This function is dedicated to the embedded call application only.
-  * Please use its AUL interface instead of this.
-  *
-  * @param[in] CallHandle
-  *  - This is incoming call handle
-  *
-  * @param[out] deflect_info
-  *  - Destination Number
-  *
-  * @param [out] pRequestID
-  *   - Unique identifier for a particular request.
-  *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
-  *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-  *
-  * @par Async Response Message:
-  * -
-  *
-  * @pre
-  *  - Initialize Dbus connection with #tel_init
-  *  - Register caller's application name with #tel_register_app_name
-  *  - Register telephony events to listen
-  *  - A event loop is running to listen events
-  *
-  * @post
-  *  - None.
-  *
-  * @return Return Type (int) \n
-  * - 0 indicating that the operation has completed successfully. \n
-  * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
-  *
-  * @par Prospective Clients:
-  * Embedded call application
-  *
-  * @remarks
-  * - None
-  *
-  * @code
-  * #include <ITapiCall.h>
-  * #include <TelCall.h>
-  *
-  * unsigned int call_handle;
-  * TelCallDeflectDstInfo_t deflect_info;
-  * int req_id;
-  *
-  * tel_deflect_call( call_handel, &deflect_info, req_id); // call deflect
-  *
-  * @endcode
-  *
-  * @see None.
-  *
-  * @remarks
-  * - None
-  *
-  */
- int tel_deflect_call(unsigned int CallHandle, const TelCallDeflectDstInfo_t *deflect_info, int *pRequestID);
-
-
-  /**
-  *
-  * @brief Activate Call Completion to a Busy Subscriber.
-  *
-  * @par Notes:
-  * When subscriber A encounters a Network Determined User Busy (NDUB) destination B,
-  * subscriber A can request the CCBS supplementary service (i.e. activate a CCBS Request against destination B).
-  * The network will then monitor the wanted destination B for becoming idle.
-  * When the wanted destination B becomes idle, then the network will wait a short time
-  * in order to allow destination B to make an outgoing call.
-  * If destination B does not make any outgoing call within this time,
-  * then the network shall automatically recall subscriber A.
-  * When subscriber A accepts the CCBS recall, within a defined time, then the network will automatically
-  * generate a CCBS call to destination B.
-  *
-  * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
-  * However it just means that the API request has been transfered to the CP successfully.
-  * The actual operation result is being delivered in the corresponding event asynchronously.
-  *
-  * @par Sync (or) Async:
-  * This is an Asynchronous API.
-  *
-  * @par Important Notes:
-  *   - None.
-  *
-  * @warning
-  * Do not use this function. This function is dedicated to the embedded call application only.
-  * Please use its AUL interface instead of this.
-  *
-  * @param [in] CallHandle
-  *  - Handle of the call.
-  *
-  * @param [out] pRequestID
-  *   - Unique identifier for a particular request.
-  *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
-  *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-  *
-  * @par Async Response Message:
-  * -
-  *
-  * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
-  *
-  * @post
-  *  - None.
-  *
-  * @return Return Type (int) \n
-  * - 0 - indicating that the operation has completed successfully. \n
-  * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
-  *
-  * @par Prospective Clients:
-  * Embedded call application
-  *
-  * @code
-  * #include <ITapiCall.h>
-  *
-  * int ret;
-  * unsigned int call_handle;
-  * int req_id;
-  *
-  * ret = tel_activate_call_ccbs( call_handle, &req_id ); // ccbs activate
-  * @endcode
-  *
- *
- * @see None.
- *
- * @remarks
- * - None
- *
-  */
- int tel_activate_call_ccbs(unsigned int CallHandle, int * pRequestID);
-
-
- /**
- * @brief This is a synchronous function returns all call handles within the given conference call.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- *  - Call should be a Multi-party conference call in order to return actual no of calls and call handles in the conference calls.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] CallHandle
- *  - Handle of call which is associated with the conference.
- *
- * @param [out] pCallList
- *   - list of call joined in the conference call. In case there is no active conference. The list will be zero and
- *      number of calls parameter value will also be zero. Maximum number of calls in a conference can be up to 5
- *      (Based on 3GPP TS 22.084). Memory allocation for call list is integer array of size 5.
- *
- * @param [out] pNoOfCalls
- *   - Number of the calls present in conference.
- *
- * @par Async Response Message:
- *  -None.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  -None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status ;
- * unsigned int CallHandle;
- * unsigned int  callList[5];
- * int  noOfCalls;
- *
- * ret_status= tel_get_call_conf_list(CallHandle, callList, &noOfCalls); // get conference call list
- * @endcode
- *
- * @see tel_join_call
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_get_call_conf_list (unsigned int CallHandle, const unsigned int * pCallList, int * pNoOfCalls);
-
-
- /**
- *
- * @brief This function gets voice privacy option mode in phone(CDMA only).
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] PrivacyType
- * - Privacy Type.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_GET_PRIVACYMODE_CNF. Asynchronous return status
- *   is indicated by #TelCallCause_t. #TelCallPrivacyMode_t is included in this event.
- *
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- *
- *
- * @code
- * #include <ITapiCall.h>
- *
- * Int ReqId=-1;
- * int ret_status = -1;
- * int api_err;
- * TelCallPrivacyType_t privacyType;
- * privacyType=TAPI_CALL_PRIVACY_TYPE_MS;
- * ret_status =tel_get_call_privacy_mode (privacyType,&req_id); // get call privacy_mode
- * @endcode
- *
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_get_call_privacy_mode(TelCallPrivacyType_t PrivacyType, int * pRequestID);
-
-
- /**
- *
- * @brief This function sets voice privacy option mode in phone. It is available only where call exists(CDMA only).
- *
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] PrivacyInfo
- * - voice privacy option mode(ENHANCED or STANDARD)
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_SET_PRIVACYMODE_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t.
- *
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- *
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ReqId=-1;
- * int ret_status = -1;
- * int api_err;
- * TelCallPrivacyMode_t pPrivacyMode_info={0,};
- * pPrivacyMode_info = TAPI_CALL_PRIVACY_MODE_STANDARD;
- *
- * ret_status = tel_set_call_privacy_mode (pPrivacyMode_info,&reqId); // set call privacy mode
- * @endcode
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_set_call_privacy_mode(TelCallVoicePrivacyInfo_t PrivacyInfo, int * pRequestID);
-
-
-/**
- *
- * @brief This function requests to send a Flash with Information Message(CDMA only).
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] pDialNumber
- * - this is the calling number for 3 way call. But in the call waiting, this param should be NULL.
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_FLASHINFO_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t.
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status = -1;
- * int api_err;
- * char const * const pDialNumber = "9999900000";
- * ret_status = tel_exe_call_flash_info(pDialNumber,&reqId); // call flash info
- * @endcode
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_exe_call_flash_info(const char *pDialNumber, int * pRequestID);
-
-
-/**
- *
- * @brief This function requests to exit emergency call mode(CDMA only).
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- * @param[out] pRequestID
- *   - Unique identifier for a particular request.
- *   Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_EXIT_EMERGENCYMODE_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t.
- *
- * @pre
- *  - current state is emergency callback mode.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int req_id;
- * int ret;
- *
- * ret = tel_exit_call_emergency_mode ( &req_id ); // emergency call
- *
- * @endcode
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_exit_call_emergency_mode(int * pRequestID);
-
-
-/**
- *
- * @brief This function is used for querying the information about a call time and call count.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- * Please use its AUL interface instead of this.
- *
- *
- * @param[in] req_mask
- * - call time request type mask.
- *
- * @param[out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_GET_CALL_TIME_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t.
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embedded call application
- *
- * @code
- * #include <ITapiCall.h>
- *
- * int ret_status = -1;
- * int api_err;
- * TelCallTimeMaskType_t mask_byte1 = {0,};
- * TelCallTimeMaskType_t  mask_byte2 = {0,};
- * unsigned short mask_type;
- * mask_byte1 = TAPI_CALL_TIME_TYPE_TOTAL_CALL_CNT;  //masking call type
- * mask_byte2 = TAPI_CALL_TIME_TYPE_TOTAL_CALL_TIME;
- *
- * mask_type = mask_byte1;
- * mask_type << 8;
- * mask_type = mask_byte2;
- *
- * ret_status = tel_get_call_time(mask_type,&reqId);
- *
- * @endcode
- *
- * @see None.
- *
- * @remarks
- * - None
- *
- *
- */
- int tel_get_call_time(unsigned short req_mask, int * pRequestID);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_CALL_H_ */
-
- /**
-* @}
-*/
diff --git a/include/tapi/ITapiCfg.h b/include/tapi/ITapiCfg.h
deleted file mode 100644 (file)
index 288dea3..0000000
+++ /dev/null
@@ -1,690 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup            TelephonyAPI
- * @addtogroup CFG_TAPI        CFG
- * @{
- *
- * CFG APIs allow an application to accomplish the following services: @n
- * - set or get modem configuration. @n
- */
-
-#ifndef _ITAPI_CFG_H_
-#define _ITAPI_CFG_H_
-
-#include <TelDefines.h>
-#include <TelErr.h>
-#include <TelUtility.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define TAPI_CFG_A_KEY_DIGITS_MAX                      26      /**< Maximum length of A-Key Digits */
-#define TAPI_CFG_MSL_CODE_MAX                          6       /**< Maximum length of MSL codes */
-
-/* DEFAULT_MODE field */
-typedef enum {
-       TAPI_CFG_DEFAULT_FULL = 0x01, /* 0x01 : Full reset */
-       TAPI_CFG_DEFAULT_FACTORY, /* 0x02 : Factory reset */
-       TAPI_CFG_DEFAULT_SERVICE, /* 0x03 : Service reset */
-       TAPI_CFG_DEFAULT_CUSTOM, /* 0x04 : Custom reset */
-       TAPI_CFG_DEFAULT_MODE_MAX
-} TelDefaultCfg_t;
-
-/**
- * @enum TelCfgAKeyVerifyResult_t
- *  This enumeration defines the results for verification of A-Key.
- */
-typedef enum {
-       TAPI_CFG_AKEY_VERIFY_FAIL = 0x00, /**< A-Key verify fail */
-       TAPI_CFG_AKEY_VERIFY_OK /**< A-Key verify success */
-} TelCfgAKeyVerifyResult_t;
-
-/**
- * @enum TelCfgOtkslFlag_t
- *  This enumeration defines OTKSL(One Time Key Subsidy Lock) flag.
- */
-typedef enum {
-       TAPI_CFG_OTKSL_FLAG_OFF = 0x00, /**< otksl flag off */
-       TAPI_CFG_OTKSL_FLAG_ON /**< otksl flag on */
-} TelCfgOtkslFlag_t;
-
-/**
- * @enum TelCfgVocOption_t
- *  This enumeration defines vocoder option.
- */
-typedef enum {
-       TAPI_CFG_VOC_OPTION_DEFAULT = 0x00, /**< vocoder option is default */
-       TAPI_CFG_VOC_OPTION_EVRC, /**< vocoder option is evrc */
-       TAPI_CFG_VOC_OPTION_13K, /**< vocoder option is 13k */
-       TAPI_CFG_VOC_OPTION_8K, /**< vocoder option is 8k */
-       TAPI_CFG_VOC_OPTION_RESERVED /**< vocoder option is reserved */
-} TelCfgVocOption_t;
-
-/**
- * @enum TelCfgHiddenMenuAccessType_t
- *  This enumeration defines hidden menu access type.
- */
-typedef enum {
-       TAPI_CFG_HIDDEN_MENU_DISABLE = 0x00, /**< hidden menu disabled */
-       TAPI_CFG_HIDDEN_MENU_ENABLE /**< hidden menu enabled */
-} TelCfgHiddenMenuAccessType_t;
-
-/**
- * @enum TelCfgCurrentCarrier_t
- *  This enumeration defines current carrier code.
- */
-typedef enum {
-       TAPI_CFG_CARRIER_TEST = 0x00,   /**< TEST */
-       TAPI_CFG_CARRIER_SKT,                   /**< SKT */
-       TAPI_CFG_CARRIER_KTF,                   /**< KTF */
-       TAPI_CFG_CARRIER_LGT,                   /**< LGT */
-       TAPI_CFG_CARRIER_VERIZON,               /**< VERIZON */
-       TAPI_CFG_CARRIER_SPRINT,                /**< SPRINT */
-       TAPI_CFG_CARRIER_ALLTEL,                /**< ALLTEL */
-       TAPI_CFG_CARRIER_TELUS,                 /**< TELUS */
-       TAPI_CFG_CARRIER_BMC,                   /**< BMC */
-       TAPI_CFG_CARRIER_ALIANT,                /**< ALIANT */
-       TAPI_CFG_CARRIER_SASKTEL,               /**< SASKTEL */
-       TAPI_CFG_CARRIER_MTS,                   /**< MTS */
-} TelCfgCurrentCarrier_t;
-
-/**
- * @enum TelCfgSIOMode_t
- *  This enumeration defines a SIO mode.
- */
-typedef enum {
-       TAPI_CFG_SIO_U1_DIAG_USB2_GPS = 0x00, /**< U1_DIAG_USB2_GPS */
-       TAPI_CFG_SIO_U1_HFK_USB2_GPS, /**< U1_HFK_USB2_GPS */
-       TAPI_CFG_SIO_U1_HFK_USB2_DIAG /**< U1_HFK_USB2_DIAG */
-} TelCfgSIOMode_t;
-
-/**
- * @enum TelCfgUSBPath_t
- *  This enumeration defines a USB path.
- */
-typedef enum {
-       TAPI_CFG_USB_PATH_TO_PDA = 0x00, /**< 0x00 : PDA uses USB */
-       TAPI_CFG_USB_PATH_TO_PHONE /**< 0x01 : Phone uses USB */
-} TelCfgUSBPath_t;
-
-/**
- * @enum TelCfgTTYMode_t
- *  This enumeration defines a TTY mode
- */
-typedef enum {
-       TAPI_CFG_TTY_MODE_DISABLE = 0x00, /**< 0x00 : TTY mode off */
-       TAPI_CFG_TTY_MODE_ENABLE_TALK, /**< 0x01 : TTY mode talk */
-       TAPI_CFG_TTY_MODE_ENABLE_HEAR, /**< 0x01 : TTY mode hear */
-       TAPI_CFG_TTY_MODE_ENABLE_FULL /**< 0x01 : TTY mode full */
-} TelCfgTTYMode_t;
-
-/**
- * This structure contains A-Key information.
- */
-typedef struct {
-       char A_key[TAPI_CFG_A_KEY_DIGITS_MAX + 1]; /**< A-Key */
-} TelCfgAKeyInfo_t;
-
-/**
- * This structure contains MSL information.
- */
-typedef struct {
-       char MslCode[TAPI_CFG_MSL_CODE_MAX+1]; /**< MSL(Master Subsidy Lock) code */
-       char OtkslCode[TAPI_CFG_MSL_CODE_MAX+1]; /**< OTKSL(One Time Key Subsidy Lock) code */
-       int bOtksl_flag; /**< default is FALSE. Whenever the one time key is used , it can be changed to TRUE*/
-} TelCfgMSLInfo_t;
-
-/**
- * This structure contains activation date information.
- */
-typedef struct {
-       unsigned short year; /**< Year (actual year - 1980) */
-       unsigned char month; /**< Month (1 ~ 12) */
-       unsigned char day; /**< Day (1 ~ 31) */
-       unsigned char hour; /**< Hour (0 ~ 23) */
-       unsigned char minute; /**< Minute (0 ~ 59) */
-       unsigned char second; /**< Second (0 ~ 59) */
-} TelCfgActivationDateInfo_t;
-
-/**
- * This structure contains reconditioned date information.
- */
-typedef struct {
-       unsigned char status; /**< Reconditioned Status (0x00 : NO, 0x01 : YES) */
-       unsigned short year; /**< Year (actual year - 1980) */
-       unsigned char month; /**< Month (1 ~ 12) */
-       unsigned char day; /**< Day (1 ~ 31) */
-       unsigned char hour; /**< Hour (0 ~ 23) */
-       unsigned char minute; /**< Minute (0 ~ 59) */
-       unsigned char second; /**< Second (0 ~ 59) */
-} TelCfgReconditionedInfo_t;
-
-/**
- * @brief  This function is used to set Modem default configuration,
- *           Telephony will send Get operation to modem to get the items from Modem.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param[in] bType
- * - type of default configuration
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- * - The event associated is TAPI_CFG_EVENT_DEFAULTCFG_IND  and the event data is default configuration mode.(Refer #TelDefaultCfg_t)
- *    Asynchronous return status is always TAPI_API_SUCCESS.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- */
-int tel_set_cfg_default_configuration(TelDefaultCfg_t bType);
-
-/**
- * @brief  This function is used to get A-Key.(CDMA only)
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - It can be used in NAM mode.
- *
- * @warning
- * - None.
- *
- *
- * @param[in]
- * - None.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- * - The event associated is TAPI_EVENT_CFG_GET_A_KEY_CNF. The event data is A-key.(Refer #TelCfgAKeyInfo_t)
- *    Asynchronous return status is always TAPI_API_SUCCESS.
- *
- * @return Return Type (TapiResult_t) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_get_cfg_akey(void);
-
-/**
- * @brief  it is used to verify A-Key.(CDMA only)
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - It can be used in NAM mode.
- *
- * @warning
- * - None.
- *
- * @param[in] pAKey_info
- * - A-Key info. Maximum length of A-Key digit is 26.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_VERIFY_A_KEY_CNF. The event data is verification result which is indicated success or not.(Refer #TelCfgAKeyVerifyResult_t)
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_verify_cfg_akey( const TelCfgAKeyInfo_t* pAKey_info);
-
-/**
- * @brief  It is used to get MSL and OTKSL(CDMA Only).
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - MSL is used to password in NAM mode.
- * - MSL means Master subside Key code, which is the developer always enter the NAM mode using this code.
- * - OTKSL means One time Key code, which is the carrier representative only enter the NAM mode one time using this code.
- * - OTKSL_FLAG default value is false, whenever the one time key is used , it can be changed to TRUE.
- *
- * @warning
- * - None.
- *
- * @param[in]
- * - None.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_GET_MSL_INFO_CNF. The event data is MSL information.(Refer #TelCfgMSLInfo_t)
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- *
- */
-int tel_get_cfg_msl_info(void);
-
-/**
- * @brief  It is used to get vocoder option. (CDMA Only)
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - It can be used to need a current vocoder option in phone.
- *
- * @warning
- * - None.
- *
- * @param[in]
- * - None.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_GET_VOCODER_OPTION_CNF. The event data is vocoder option.(Refer #TelCfgVocOption_t)
- *
- * @return Return Type (TapiResult_t) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_get_cfg_vocoder_option(void);
-
-/**
- * @brief  It is used to set vocoder option. (CDMA Only)
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in] option
- * - vocoder option.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_SET_VOCODER_OPTION_CNF. There is no event data.
- *
- * @return Return Type (TapiResult_t) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_set_cfg_vocoder_option(TelCfgVocOption_t option);
-
-/**
- * @brief  It informs whether is possible or impossible to access hidden menu.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]
- * - None.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_GET_HIDDEN_MENU_ACCESS_CNF. The event data is hidden menu access mode.(Refer #TelCfgHiddenMenuAccessType_t)
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_get_cfg_hidden_menu_access(void);
-
-/**
- * @brief  It is used to set whether to access hidden menu or not.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in] type
- * - hidden menu access type(disable or enable).
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_SET_HIDDEN_MENU_ACCESS_CNF. There is no event data.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_set_cfg_hidden_menu_access(TelCfgHiddenMenuAccessType_t type);
-
-/**
- * @brief  It requests a current carrier code.(CDMA only)
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]
- * - none.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_GET_CURRENT_CARRIER_CNF. The event data is type of current carrier.(Refer #TelCfgCurrentCarrier_t)
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- *
- */
-int tel_get_cfg_serving_carrier(void);
-
-/**
- * @brief  It sets a current carrier code.(CDMA only)
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]  Carrier
- * - current carrier.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_SET_CURRENT_CARRIER_CNF. There is no event data.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_set_cfg_serving_carrier(TelCfgCurrentCarrier_t Carrier);
-
-/**
- * @brief  It requests a current SIO mode.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]
- * - none.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_GET_SIO_MODE_CNF. The event data is sio mode.(Refer #TelCfgSIOMode_t)
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_get_cfg_sio_mode(void);
-
-/**
- * @brief  It sets a current SIO mode.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]   Mode
- * - SIO mode.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_SET_SIO_MODE_CNF. There is no event data.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- *
- *
- */
-int tel_set_cfg_sio_mode(TelCfgSIOMode_t Mode);
-
-/**
- * @brief  It requests activation date.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]
- * - None.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_GET_ACTIVATION_DATE_CNF. The event data is activated date of phone.(Refer #TelCfgActivationDateInfo_t)
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_get_cfg_activated_date_of_phone(void);
-
-/**
- * @brief  It requests reconditioned status and date.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]
- * - None.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_GET_RECONDITIONED_DATE_CNF. The event is reconditioned date of phone.(Refer #TelCfgReconditionedInfo_t)
- *
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- *
- */
-int tel_get_cfg_reconditioned_data_of_phone(void);
-
-/**
- * @brief  It requests to get tty(text telephone) mode.(CDMA only)
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]
- * - None.
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_GET_TTY_MODE_CNF. The event data is tty mode.(Refer #TelCfgTTYMode_t)
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_get_cfg_tty_mode(void);
-
-/**
- * @brief  It requests to set tty(text telephone) mode.(CDMA only)
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in]  Mode
- * - TTY mode
- *
- * @param[out]
- * - None
- *
- * @par Async Response Message:
- *  - The event associated is TAPI_EVENT_CFG_SET_TTY_MODE_CNF. There is no event data.
- *
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * - External Apps.
- */
-int tel_set_cfg_tty_mode(TelCfgTTYMode_t Mode);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _ITAPI_CFG_H_
-/**
- * @}
- */
diff --git a/include/tapi/ITapiData.h b/include/tapi/ITapiData.h
deleted file mode 100644 (file)
index 6504461..0000000
+++ /dev/null
@@ -1,613 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup           TELEPHONY_API
- * @addtogroup Data_Service Data Services
- * @{
- * @file ITapiData.h
- *
- * Data APIs allow an application to accomplish the following services: @n
- * - process data pin control. @n
- */
-
-#ifndef _ITAPI_DATA_H_
-#define _ITAPI_DATA_H_
-
-#include <TelDefines.h>
-#include <TelUtility.h>
-#include <TelData.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- *
- * @brief  Request current MIP NAI index
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [in]  pMipNaiIdx
- * -  Mobile IP NAI Index.
- *
- * @param  [in]  pParamMask
- * -  Parameter mask.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_get_data_mobile_ipnai(TelDataNAIIndex_t *pMipNaiIdx, unsigned short *pParamMask, int *pRequestID);
-
-/**
- *
- * @brief  Enable the NAI index by the IPC parameter and then set the detail values for NAI
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [in]  pMipNaiParam
- * -  Mobile IP NAI Parameters.
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_set_data_mobile_ipnai(TelDataMipNaiParam_t *pMipNaiParam, int *pRequestID);
-
-/**
- *
- * @brief Get current NAI index which is now enabled.
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_get_data_current_nai_index(int *pRequestID);
-
-/**
- *
- * @brief MS must report Data Cable(UART/USB/Blue tooth) attachment status whenever the status changed. PDA should reflect this status change on LCD.
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_get_data_te2_status(int * pRequestID);
-
-/**
- *
- * @brief This API gets the roam guard.
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_get_data_roam_guard(int *pRequestID);
-
-/**
- *
- * @brief This API sets a roam guard.
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  pRoamGuard
- * -  Roam guard.
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_set_data_roam_guard(TelDataRoamGuardMode_t *pRoamGuard, int *pRequestID);
-
-/**
- *
- * @brief This API gets a modem NAI.
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_get_data_nai(int *pRequestID);
-
-/**
- *
- * @brief This API sets a modem NAI.
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  pModemNai
- * -  Modem NAI.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_set_data_nai(TelDataModemNAIMode_t *pModemNai, int *pRequestID);
-
-/**
- *
- * @brief This API sets a data service type
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  pDSType
- * -  Data service type
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_set_data_ds_type(TelDataDSType_t *pDSType, int *pRequestID);
-
-/**
- *
- * @brief This API gets EVDO revision config
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_get_data_evdo_rev_config(int *pRequestID);
-
-/**
- *
- * @brief This API sets EVDO revision config
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  pRevConfig
- * -  EVDO Revision config information.
- *
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_set_data_evdo_rev_config(TelDataRevConfig_t *pRevConfig, int *pRequestID);
-
-/**
- *
- * @brief This API restores NAI
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_restore_data_nai(int *pRequestID);
-
-/**
- *
- * @brief This API gets Dedicate Data Transmission Mode setting. When it is set, Modem block the 1X paging
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_get_data_ddtm_config(int *pRequestID);
-
-/**
- *
- * @brief This API sets Dedicate Data Transmission Mode setting. When it is set, Modem block the 1X paging.
- *
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
-
- * @param  [in]  pDDTMStatus
- * -  DDTM setting information.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - In case of failure, error code will be returned. (Refer #int).
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_set_data_ddtm_config(TelDataDDTMStatus_t *pDDTMStatus, int *pRequestID);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_DATA_H_ */
-
-/**
- * @}
- */
diff --git a/include/tapi/ITapiGps.h b/include/tapi/ITapiGps.h
deleted file mode 100644 (file)
index 386ef75..0000000
+++ /dev/null
@@ -1,1816 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup            TelephonyAPI
- * @addtogroup GPS_TAPI                GPS
- * @{
- *
- * @file tapi_gps_interface.h
-
- @brief This file serves as a "C" header file defines functions for Tapi GPS\n
- It contains a sample set of function prototypes,enums and structs that would be required by applications.
- * GPS APIs allow an application to accomplish the following services: @n
- * - Start a GPS session. @n
- * - End a GPS session. @n
- * - Request to initiate XTRA client download. @n
- * - To set XTRA Auto download. @n
- * - Set time information for XTRA. @n
- * - Set SSL for AGPS. @n
- * - Set AGPS bearer information. @n
- */
-
-#ifndef _ITAPI_GPS_H_
-#define _ITAPI_GPS_H_
-
-#include <TapiCommon.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define        TAPI_GPS_FIX_PARAM_TAG_MAX              0x0F
-#define        TAPI_GPS_PARAMETERS_TAG_MAX             0x11
-#define        TAPI_GPS_ADDR_LEN_MAX                   16
-#define        TAPI_GPS_URL_LEN_MAX                    256
-#define        TAPI_GPS_SECURITY_DATA_MAX              20
-#define        TAPI_GPS_APN_LEN_MAX                    101
-#define        TAPI_GPS_SSD_LEN_MAX                    32
-#define        TAPI_GPS_SSL_LEN_MAX                    32
-#define        TAPI_GPS_XTRA_DATA_LEN_MAX              256
-#define        TAPI_GPS_MAX_SATELLITES                 12
-#define        TAPI_GPS_DNS_LEN_MAX                    256
-
-typedef enum {
-       TAPI_GPS_FIX_REQ_SESSION_TYPE                   = 0x01,
-       TAPI_GPS_FIX_REQ_SESSION_OPERATION,
-       TAPI_GPS_FIX_REQ_NUM_FIXES,
-       TAPI_GPS_FIX_REQ_TIME_BTW_FIXES,
-       TAPI_GPS_FIX_REQ_ACCURACY,
-       TAPI_GPS_FIX_REQ_SESSION_TIMEOUT,
-       TAPI_GPS_FIX_REQ_SERVER_OPTION,
-       TAPI_GPS_FIX_REQ_SERVER_ADDR_TYPE,
-       TAPI_GPS_FIX_REQ_SERVER_ADDR_IP,
-       TAPI_GPS_FIX_REQ_SERVER_PORT,
-       TAPI_GPS_FIX_REQ_SERVER_URL,
-       TAPI_GPS_FIX_REQ_SEC_DATA_ID,
-       TAPI_GPS_FIX_REQ_SEC_DATA_LEN,
-       TAPI_GPS_FIX_REQ_SEC_DATA
-} tapi_gps_fix_req_param_type_t;
-
-typedef enum {
-       TAPI_GPS_GET_LATEST_PD_INFO,
-       TAPI_GPS_GET_NEW_POSITION,
-       TAPI_GPS_TRACKING_MODE,
-       TAPI_GPS_DATA_DOWNLOAD
-} tapi_gps_session_type_t;
-
-typedef enum {
-       TAPI_GPS_STANDALONE_ONLY        = 0x01,
-       TAPI_GPS_MSBASED,
-       TAPI_GPS_MSASSISTED,
-       TAPI_GPS_OPTIMAL_SPEED,
-       TAPI_GPS_OPTIMAL_ACCURACY,
-       TAPI_GPS_OPTIMAL_DATA,
-       TAPI_GPS_REF_POSITION
-} tapi_gps_session_operation_t;
-
-typedef enum {
-       TAPI_GPS_SERVER_DEFAULT,
-       TAPI_GPS_SERVER_LOCAL
-} tapi_gps_server_option_t;
-
-typedef enum {
-       TAPI_GPS_SERVER_UMTS,
-       TAPI_GPS_SERVER_1X_PDE,
-       TAPI_GPS_SERVER_1X_MPC
-} tapi_gps_server_type_t;
-
-typedef enum {
-       TAPI_GPS_ADDR_IPV4,
-       TAPI_GPS_ADDR_URL,
-       TAPI_GPS_ADDR_IPV6
-} tapi_gps_server_addr_type_t;
-
-typedef enum {
-       TAPI_GPS_PDSM_PD_EVENT_POSITION         = 0x00000001,
-       TAPI_GPS_PDSM_PD_EVENT_VELOCITY         = 0x00000002,
-       TAPI_GPS_PDSM_PD_EVENT_HEIGHT                   = 0x00000004,
-       TAPI_GPS_PDSM_PD_EVENT_DONE                     = 0x00000008,
-       TAPI_GPS_PDSM_PD_EVENT_END                              = 0x00000010,
-       TAPI_GPS_PDSM_PD_EVENT_BEGIN                    = 0x00000020,
-       TAPI_GPS_PDSM_PD_EVENT_COMM_BEGIN               = 0x00000040,
-       TAPI_GPS_PDSM_PD_EVENT_COMM_CONNECTED   = 0x00000080,
-       TAPI_GPS_PDSM_PD_EVENT_COMM_FAILURE     = 0x00000100,
-       TAPI_GPS_PDSM_PD_EVENT_COMM_DONE                = 0x00000200,
-       TAPI_GPS_PDSM_PD_EVENT_WARM_PROC_BEGIN  = 0x00000400,
-       TAPI_GPS_PDSM_PD_EVENT_WARM                     = 0x00000800,
-       TAPI_GPS_PDSM_PD_EVENT_NOT_WARM         = 0x00001000,
-       TAPI_GPS_PDSM_PD_EVENT_WARM_PROC_DONE   = 0x00002000,
-       TAPI_GPS_PDSM_PD_EVENT_GPS_BEGIN                = 0x00004000,
-       TAPI_GPS_PDSM_PD_EVENT_GPS_DONE         = 0x00008000,
-       TAPI_GPS_PDSM_PD_EVENT_SECURITY         = 0x00100000,
-       TAPI_GPS_PDSM_PD_EVENT_JGPS_PROGRESS    = 0x00200000,
-       TAPI_GPS_PDSM_PD_EVENT_UPDATE_FAILURE   = 0x01000000,
-       TAPI_GPS_PDSM_PD_EVENT_DLOAD_BEGIN              = 0x10000000,
-       TAPI_GPS_PDSM_PD_EVENT_DLOAD                    = 0x20000000,
-       TAPI_GPS_PDSM_PD_EVENT_DLOAD_DONE               = 0x40000000,
-       TAPI_GPS_PDSM_PD_EVENT_DLOAD_END                = 0x80000000
-} tapi_gps_pd_event_t;
-
-typedef enum {
-       TAPI_GPS_END_PHONE_OFFLINE,
-       TAPI_GPS_END_NO_SERVICE,
-       TAPI_GPS_END_NO_CONNECTION,                     /* no connection with PDE */
-       TAPI_GPS_END_NO_DATA_AVAILABLE,
-       TAPI_GPS_END_SESSION_MANAGER_BUSY,
-       TAPI_GPS_END_CDMA_LOCKED,                       /* phone is CDMA locked. */
-       TAPI_GPS_END_GPS_LOCKED,                        /* phone is GPS locked. */
-       TAPI_GPS_END_CONNECTION_FAILURE,        /* connection failure with PDE */
-       TAPI_GPS_END_BY_PDSM,                           /* PDMS ended the session because of error condition. */
-       TAPI_GPS_END_BY_USER,                           /* User ended the session. */
-       TAPI_GPS_END_BY_END_KEY,                        /* End key pressed from UI */
-       TAPI_GPS_END_NETWORK_SESSION_ENDED,
-       TAPI_GPS_END_TIMEOUT,
-       TAPI_GPS_END_CONFLICT,
-       TAPI_GPS_END_NETWORK_CONNECTION_FAIL,
-       TAPI_GPS_END_ERROR_IN_FIX,
-       TAPI_GPS_END_REJECTED,
-       TAPI_GPS_END_BY_TC_EXIT,
-       TAPI_GPS_END_BY_E911_CALL,
-       TAPI_GPS_END_ADDED_PROTOCOL_ERROR,
-       TAPI_GPS_END_STALE_BS_INFO,
-       TAPI_GPS_END_VX_LCS_AGENT_AUTH_FAIL,
-       TAPI_GPS_END_UNKNOWN_SYSTEM_ERROR,
-       TAPI_GPS_END_UNKNOWN_SERVICE_ERROR,
-       TAPI_GPS_END_UNSUPPORTED_SERVICE,
-       TAPI_GPS_END_SUBSCRIPTION_VIOLATION,
-       TAPI_GPS_END_FIX_METHOD_FIALED,
-       TAPI_GPS_END_ANTENNA_SWITCH,
-       TAPI_GPS_END_NO_FIX_REPORTED,
-       TAPI_GPS_END_NORMAL_ENDING,
-       TAPI_GPS_END_NO_ERR_SPECIFIED_BY_NETWORK,
-       TAPI_GPS_END_NO_RESOURCES_ON_NETWORK,
-       TAPI_GPS_END_POSITION_SERVER_UNAVAILABLE,
-       TAPI_GPS_END_UNSUPPORTED_PROTOCOL,
-       TAPI_GPS_END_SS_MOLR_ERROR,
-       TAPI_GPS_END_SS_UNEXPECT_DATA,
-       TAPI_GPS_END_SS_DATA_MISSING,
-       TAPI_GPS_END_SS_NO_FACILITY,
-       TAPI_GPS_END_SS_SUBSCRPIPTION_VIOLATION,
-       TAPI_GPS_END_SS_POSITION_METHOD_FAIL,
-       TAPI_GPS_END_SS_UNDEFINED,
-       TAPI_GPS_END_CP_SMLC_TIMEOUT,
-       TAPI_GPS_END_CP_MT_GUARDTIME_EXPIRATION,
-       TAPI_GPS_END_WAITING_ASSISTANCE
-} tapi_gps_end_status_code;
-
-typedef enum {
-       TAPI_GPS_MASK_ALTITUDE_VALID                    = 0x01,
-       TAPI_GPS_MASK_VELOCITY_VALID                    = 0x02,
-       TAPI_GPS_MASK_UTC_OFFSET_VALID                  = 0x04,
-       TAPI_GPS_MASK_UNCERTAINTY_VAILD                 = 0x08,
-       TAPI_GPS_MASK_EXT_STATUS_VALID                  = 0x10,
-       TAPI_GPS_MASK_MILLISECOND_VALID                 = 0x20,
-       TAPI_GPS_MASK_PM_DATA_AVAILABLE                 = 0x40,
-       TAPI_GPS_MASK_ADDITIONAL_MEASUREMENT    = 0x80
-} tapi_gps_opt_field_mask_t;
-
-typedef enum {
-       TAPI_GPS_POS_SRC_GPS            = 0x01,
-       TAPI_GPS_POS_SRC_CELLID         = 0x02,
-       TAPI_GPS_POS_SRC_AFLT           = 0x04,
-       TAPI_GPS_POS_SRC_HYBRID         = 0x08,
-       TAPI_GPS_POS_SRC_CELL_ERROR     = 0x10,
-       TAPI_GPS_POS_SRC_DEFAULT        = 0x20,
-       TAPI_GPS_POS_SRC_UNKNOWN        = 0x40
-} tapi_gps_pos_source_type_t;
-
-typedef enum {
-       TAPI_GPS_POS_TYPE_INVAILD,
-       TAPI_GPS_POS_TYPE_OLD,
-       TAPI_GPS_POS_TYPE_NEW
-} tapi_gps_pos_type_t;
-
-typedef enum {
-       TAPI_GPS_POS_MODE_MSBASED                       = 0x01,
-       TAPI_GPS_POS_MODE_MSASSISTED,
-       TAPI_GPS_POS_MODE_STANDALONE,
-       TAPI_GPS_POS_MODE_UNKNOWN,
-       TAPI_GPS_POS_MODE_2G_CP_MS_BASED        = 0x08,
-       TAPI_GPS_POS_MODE_2G_CP_MS_ASSISTED     = 0x10,
-       TAPI_GPS_POS_MODE_3G_CP_UE_BASED        = 0x20,
-       TAPI_GPS_POS_MODE_3G_CP_UE_ASSISTED     = 0x40
-} tapi_gps_pos_mode_t;
-
-typedef enum {
-       TAPI_GPS_FIX_TYPE_UNKNOWN,
-       TAPI_GPS_FIX_TYPE_2D,
-       TAPI_GPS_FIX_TYPE_3D
-} tapi_gps_fix_type_t;
-
-typedef enum {
-       TAPI_GPS_FIX_SELECTION_UNKNOWN,
-       TAPI_GPS_FIX_SELECTION_AUTO,
-       TAPI_GPS_FIX_SELECTION_MANUAL
-} tapi_gps_fix_selection_type_t;
-
-typedef enum {
-       TAPI_GPS_FIX_QUALITY_UNKNOWN,
-       TAPI_GPS_FIX_QUALITY_GPS,
-       TAPI_GPS_FIX_QUALITY_DGPS
-} tapi_gps_fix_quality_t;
-
-typedef enum {
-       TAPI_GPS_ENCRYPTION_DISABLED,
-       TAPI_GPS_ENCRYPTION_AES128
-} tapi_gps_encryption_algorithm_t;
-
-typedef enum {
-       TAPI_GPS_SV_STATE_IDLE,
-       TAPI_GPS_SV_STATE_SEARCH,
-       TAPI_GPS_SV_STATE_SEARCH_VERIFY,
-       TAPI_GPS_SV_STATE_BIT_EDGE,
-       TAPI_GPS_SV_STATE_TRACK
-} tapi_gps_sv_state_t;
-
-typedef enum {
-       TAPI_GPS_GPSLOCK_NONE,
-       TAPI_GPS_GPSLOCK_MI,
-       TAPI_GPS_GPSLOCK_MT,
-       TAPI_GPS_GPSLOCK_ALL
-} tapi_gps_gpslock_mode_t;
-
-typedef enum {
-       TAPI_GPS_EPHEMERIS                              = 0x00000001,
-       TAPI_GPS_ALMANAC                                = 0x00000002,
-       TAPI_GPS_POSITION                               = 0x00000004,
-       TAPI_GPS_TIME                                   = 0x00000008,
-       TAPI_GPS_IONO                                   = 0x00000010,
-       TAPI_GPS_UTC                                    = 0x00000020,
-       TAPI_GPS_HEALTH                         = 0x00000040,
-       TAPI_GPS_SVDIR                                  = 0x00000080,
-       TAPI_GPS_SVSTEER                                = 0x00000100,
-       TAPI_GPS_SADATA                         = 0x00000200,
-       TAPI_GPS_RTI                                    = 0x00000400,
-       TAPI_GPS_TIME_UNCERTAINTY               = 0x00000800,
-       TAPI_GPS_POSITION_UNCERTAINTY   = 0x00001000,
-       TAPI_GPS_TIME_OFFSET                    = 0x00002000,
-       TAPI_GPS_POSITION_OFFSET                = 0x00004000,
-       TAPI_GPS_ALMANAC_CORP                   = 0x00008000,
-       TAPI_GPS_FREQ_BIAS                              = 0x00010000
-} tapi_gps_aiding_data_t;
-
-typedef enum {
-       TAPI_GPS_MT_LR_DISABLE,
-       TAPI_GPS_MT_LR_ENABLE
-} tapi_gps_mt_lr_t;
-
-typedef enum {
-       TAPI_GPS_MO_CP,
-       TAPI_GPS_MO_UP,
-} tapi_gps_mo_method_t;
-
-typedef enum {
-       TAPI_GPS_SSL_DISABLE,
-       TAPI_GPS_SSL_ENABLE
-} tapi_gps_ssl_on_off_t;
-
-typedef enum {
-       TAPI_GPS_SSL_VERISIGN                           = 0x00, /* 0x00: Orange France/UK/Spain, SFR, TIM, Telstra */
-       TAPI_GPS_SSL_THAWTE                             = 0x01, /* 0x01: Vodafone Global */
-       TAPI_GPS_SSL_CMCC_OFFICIAL                      = 0x02, /* 0x02: CMCC OFFICIAL */
-       TAPI_GPS_SSL_SPIRENT_TEST_EQUIPMENT = 0x03,     /* 0x03: Spirent Equipment */
-       TAPI_GPS_SSL_THALES_TEST_SERVER = 0x04, /* 0x04: THALES IOT TEST  */
-       TAPI_GPS_SSL_CMCC_TEST_LAB                      = 0x05, /* 0x05: CMCC test lab */
-       TAPI_GPS_SSL_C3_PCA_G3V2                        = 0x06, /* 0x06: DocoMo Test 1 */
-       TAPI_GPS_SSL_CLASS3_PCA_G2_V2           = 0x07, /* 0x07: DocoMo Test 2 */
-       TAPI_GPS_SSL_GOOGLE_CA                          = 0x08, /* 0x08: GOOGLE Server */
-} tapi_gps_cert_type_t;
-
-typedef enum {
-       TAPI_GPS_PRM_MSG_SERVER_TYPE             = 0x01,
-       TAPI_GPS_PRM_MSG_SERVER_ADDR_TYPE,
-       TAPI_GPS_PRM_MSG_SERVER_ADDR_IP,
-       TAPI_GPS_PRM_MSG_SERVER_PORT,
-       TAPI_GPS_PRM_MSG_SERVER_URL,
-       TAPI_GPS_PRM_MSG_GPS_LOCK,
-       TAPI_GPS_PRM_MSG_DEL_AIDING_DATA,
-       TAPI_GPS_PRM_MSG_POSITION_MODE,
-       TAPI_GPS_PRM_MSG_MT_LR,
-       TAPI_GPS_PRM_MSG_MO_METHOD,
-       TAPI_GPS_PRM_MSG_SSD,
-       TAPI_GPS_PRM_MSG_SEC_UPDATE_RATE,
-       TAPI_GPS_PRM_MSG_SSL_ON_OFF,
-       TAPI_GPS_PRM_MSG_SSL,
-} tapi_gps_param_msg_param_type_t;
-
-typedef enum {
-       TAPI_GPS_PD_CMD_GET_POSITION,
-       TAPI_GPS_PD_CMD_END_SESSION,
-       TAPI_GPS_PD_CMD_INJECT_TIME
-} tapi_gps_pd_cmd_t;
-
-typedef enum {
-       TAPI_GPS_PDP_CONNECT,
-       TAPI_GPS_PDP_DISCONNECT
-} tapi_gps_pdp_connection_t;
-
-typedef enum {
-       TAPI_GPS_PDP_TYPE_IP,
-       TAPI_GPS_PDP_TYPE_PPP,
-       TAPI_GPS_PDP_TYPE_IPV6
-} tapi_gps_pdp_type_t;
-
-typedef enum {
-       TAPI_GPS_PDP_CONNECT_SUCESS,
-       TAPI_GPS_PDP_CONNECT_FAIL,
-       TAPI_GPS_PDP_DISCONNECT_SUCCESS,
-       TAPI_GPS_PDP_DISCONNECT_FAIL
-} tapi_gps_pdp_result_t;
-
-typedef enum {
-       TAPI_GPS_DNS_LOOKUP_SUCCESS,
-       TAPI_GPS_DNS_LOOKUP_FAIL
-} tapi_gps_dns_lookup_result_t;
-
-typedef enum {
-       TAPI_GPS_IP_ADDR_TYPE_IPV4,
-       TAPI_GPS_IP_ADDR_TYPE_IPV6,
-} tapi_gps_ip_addr_type_t;
-
-typedef enum {
-       TAPI_GPS_NOTIFY_ONLY,
-       TAPI_GPS_NOTIFY_ALLOW_NORESPONSE,
-       TAPI_GPS_NOTIFY_NOTALLOW_NORESPONSE
-} tapi_gps_verification_notify_t;
-
-typedef enum {
-       TAPI_GPS_SUPL_FORMAT_LOGICAL_NAME,
-       TAPI_GPS_SUPL_FORMAT_EMAIL_ADDRESS,
-       TAPI_GPS_SUPL_FORMAT_MSISDN,
-       TAPI_GPS_SUPL_FORMAT_URL,
-       TAPI_GPS_SUPL_FORMAT_SIP_URL,
-       TAPI_GPS_SUPL_FORMAT_MIN,
-       TAPI_GPS_SUPL_FORMAT_MDN,
-       TAPI_GPS_SUPL_FORMAT_UNKNOWN
-} tapi_gps_supl_format_t;
-
-typedef enum {
-       TAPI_GPS_DCS_ISO646IRV,
-       TAPI_GPS_DCS_ISO8859,
-       TAPI_GPS_DCS_UTF8,
-       TAPI_GPS_DCS_UTF16,
-       TAPI_GPS_DCS_UCS2,
-       TAPI_GPS_DCS_GSM_DEFAULT,
-       TAPI_GPS_DCS_SHIFT_JIS,
-       TAPI_GPS_DCS_JIS,
-       TAPI_GPS_DCS_EUC,
-       TAPI_GPS_DCS_GB2312,
-       TAPI_GPS_DCS_CNS11643,
-       TAPI_GPS_DCS_KSC1001,
-       TAPI_GPS_DCS_GERMAN,
-       TAPI_GPS_DCS_ENGLISH,
-       TAPI_GPS_DCS_ITALIAN,
-       TAPI_GPS_DCS_FRENCH,
-       TAPI_GPS_DCS_SPANISH,
-       TAPI_GPS_DCS_DUTCH,
-       TAPI_GPS_DCS_SWEDISH,
-       TAPI_GPS_DCS_DANISH,
-       TAPI_GPS_DCS_PORTUGUESE,
-       TAPI_GPS_DCS_FINNISH,
-       TAPI_GPS_DCS_NORWEGIAN,
-       TAPI_GPS_DCS_GREEK,
-       TAPI_GPS_DCS_TURKISH,
-       TAPI_GPS_DCS_HUNGARIAN,
-       TAPI_GPS_DCS_POLISH,
-       TAPI_GPS_DCS_LANGUAGE_UNSPEC
-} tapi_gps_data_coding_scheme_t;
-
-typedef enum {
-       TAPI_GPS_RIE_OCTET,
-       TAPI_GPS_RIE_EXN_PROTOCOL_MSG,
-       TAPI_GPS_RIE_ASCII,
-       TAPI_GPS_RIE_IA5,
-       TAPI_GPS_RIE_UNICODE,
-       TAPI_GPS_RIE_SHIFT_JIS,
-       TAPI_GPS_RIE_KOREAN,
-       TAPI_GPS_RIE_LATIN_HEBREW,
-       TAPI_GPS_RIE_LATIN,
-       TAPI_GPS_RIE_GSM
-} tapi_gps_requestor_id_encoding_t;
-
-typedef enum {
-       TAPI_GPS_VER_CNF_YES = 0x00,    /**< Specifies Confirmation yes. */
-       TAPI_GPS_VER_CNF_NO = 0x01,     /**< Specifies Confirmation no. */
-       TAPI_GPS_VER_CNF_NORESPONSE = 0x02, /**< Specifies Confirmation no response. */
-} tapi_gps_verification_cnf_t;
-
-typedef enum {
-       TAPI_GPS_SUPL_INIT                      = 0x01,
-       TAPI_GPS_SUPL_START,
-       TAPI_GPS_SUPL_RESPONSE,
-       TAPI_GPS_SUPL_POS_INIT,
-       TAPI_GPS_SUPL_POS,
-       TAPI_GPS_SUPL_END,
-       TAPI_GPS_SUPL_AUTH_REQ,
-       TAPI_GPS_SUPL_AUTH_RESP,
-       TAPI_GPS_SUPL_TLS_FAILURE,
-       TAPI_GPS_SUPL_FALLBACK_TO_STANDALONE,
-       TAPI_GPS_SUPL_RESPONSE_TIMEOUT,
-       TAPI_GPS_SUPL_OTA_MSG_TIMEOUT
-} tapi_gps_supl_msg_t;
-
-typedef enum {
-       //[Error Indicator]
-       TAPI_GPS_ERR_IND_UNSPECIFIED                             = 0x01,
-       TAPI_GPS_ERR_IND_SYSTEM_FAILURE,
-       TAPI_GPS_ERR_IND_PROTOCOL_ERR,
-       TAPI_GPS_ERR_IND_DATA_MISSING,
-       TAPI_GPS_ERR_IND_UNEXPECTED_DATA_VALUE,
-       TAPI_GPS_ERR_IND_POS_METHOD_FAILURE,
-       TAPI_GPS_ERR_IND_POS_METHOD_MISMATCH,
-       TAPI_GPS_ERR_IND_POS_PROTOCOL_MISMATCH,
-       TAPI_GPS_ERR_IND_TARGETSET_NOT_REACHABLE,
-       TAPI_GPS_ERR_IND_VERSION_NOTSUPPORTED,
-       TAPI_GPS_ERR_IND_RESOURCE_SHORTAGE,
-       TAPI_GPS_ERR_IND_INVALID_SESSION_ID,
-       //[Unexpected Message]
-       TAPI_GPS_UNEXP_MSG_NONPROXYMODE_NOTSUPPORTED,
-       TAPI_GPS_UNEXP_MSG_PROXYMODE_NOTSUPPORTED,
-       TAPI_GPS_UNEXP_MSG_POS_NOT_PERMITTED,
-       TAPI_GPS_UNEXP_MSG_AUTH_NET_FAILURE,
-       TAPI_GPS_UNEXP_MSG_AUTH_SUPLINIT_FAILURE,
-       //[Information Indicator]
-       TAPI_GPS_INFO_IND_CONSENT_DENIED_BY_USER        = 0x65,
-       TAPI_GPS_INFO_IND_CONSENT_GRANTED_BY_USER,
-       TAPI_GPS_ERROR_NONE                                             = 0xFF
-} tapi_gps_supl_status_t;
-
-typedef enum {
-       TAPI_GPS_XTRA_STATUS_FAIL,
-       TAPI_GPS_XTRA_STATUS_SUCCESS
-} tapi_gps_xtra_status_t;
-
-/**
- * @enum tapi_gps_error_code_t
- * This enumeration defines error types of telephony gps.
- */
-typedef enum {
-       TAPI_GPS_ERR_NONE                                               = 0,    /**< Error None */
-       TAPI_GPS_ERR_INIT_FAILED,                                               /**< Session opening failed     */
-       TAPI_GPS_ERR_DEINIT_FAILED,                                             /**< Option setting failed      */
-       TAPI_GPS_ERR_FIX_REQ_FAILED,                                    /**< Session starting failed */
-       TAPI_GPS_ERR_STOP_SESSION_FAILED,                               /**< Serial opening failed      */
-       TAPI_GPS_ERR_PARAMETER_SET_FAILED,                              /**< Creating DPRAM thread failed */
-       TAPI_GPS_ERR_XTRA_INIT_FAILED,                                  /**< Session Closing failed     */
-       TAPI_GPS_ERR_XTRA_DEINIT_FAILED,                                /**< XTRA enable/disable setting failed */
-       TAPI_GPS_ERR_XTRA_ENABLE_FAILED,                                /**< XTRA auto download enable/disable setting failed */
-       TAPI_GPS_ERR_XTRA_SET_TIME_INFO_FAILED,                 /**< SNTP time info injection failed */
-       TAPI_GPS_ERR_XTRA_SET_DATA_INFO_FAILED,                 /**< Query validity of XTRA data failed */
-       TAPI_GPS_ERR_AGPS_SSL_SET_FAILED,                               /**< SSL security setting failed */
-       TAPI_GPS_ERR_AGPS_BEARER_SET_FAILED,                    /**< AGPS bearer setting failed */
-} tapi_gps_error_code_t;
-
-
-/*                                    GPS Chipset on AP - START                                      */
-//GPS CP MO Location
-
-/* MOLR Type */
-typedef enum {
-       TAPI_GPS_MOLR_INVALID,
-       TAPI_GPS_MOLR_LOCATION_ESTIMATE,
-       TAPI_GPS_MOLR_ASSISTANCE_DATA,
-       TAPI_GPS_MOLR_DECIPHERING_KEY
-} tapi_gps_molr_e_type;
-
-/* Response Time Type */
-typedef enum {
-       TAPI_GPS_RESPONSE_TIME_INVALID,
-       TAPI_GPS_RESPONSE_TIME_LOW_DELAY,
-       TAPI_GPS_RESPONSE_TIME_DELAY_TOLERANT
-} tapi_gps_response_time;
-
-/* Location Method Type */
-typedef enum {
-       TAPI_GPS_LOCATION_METHOD_INVALID,
-       TAPI_GPS_LOCATION_METHOD_MSBASED_EOTD,
-       TAPI_GPS_LOCATION_METHOD_MSASSISTED_EOTD,
-       TAPI_GPS_LOCATION_METHOD_ASSISTED_GPS
-} tapi_gps_location_method_e_type;
-
-/* GAD Shape Type */
-typedef enum {
-       TAPI_GPS_SHAPE_ELLIPSOIDPOINT,
-       TAPI_GPS_SHAPE_ELLIPSOIDPOINT_WITH_UNCERTAINTY_CIRCLE,
-       TAPI_GPS_SHAPE_ELLIPSOIDPOINT_WITH_UNCERTAINTY_ELLIPSE,
-       TAPI_GPS_SHAPE_POLYGON,
-       TAPI_GPS_SHAPE_ELLIPSOIDPOINT_WITH_ALTITUDE,
-       TAPI_GPS_SHAPE_ELLIPSOIDPOINT_WITH_ALTITUDE_AND_UNCERTAINTYELI,
-       TAPI_GPS_SHAPE_ELLIPSOIDPOINT_ARC
-} tapi_gps_gad_shape_e_type;
-
-/* GPS Assistance Data Flags */
-#define GPS_ASSISTANCE_ALMANAC                  0x00000001
-#define GPS_ASSISTANCE_UTC_MODEL                0x00000002
-#define GPS_ASSISTANCE_IONO_MODEL               0x00000004
-#define GPS_ASSISTANCE_NAVI_MODEL               0x00000008
-#define GPS_ASSISTANCE_DGPS_CORRECTION          0x00000010
-#define GPS_ASSISTANCE_REF_LOCATION             0x00000040
-#define GPS_ASSISTANCE_REF_TIME                 0x00000080
-#define GPS_ASSISTANCE_ACQUISITION_ASSISTANCE   0x00000100
-#define GPS_ASSISTANCE_REAL_TIME_INTEGRITY      0x00000200
-
-//GPS Assist Data Message
-
-/* GPS Crrier Type */
-typedef enum {
-       TAPI_GPS_CARRIER_INVALID,
-       TAPI_GPS_CARRIER_GSM,
-       TAPI_GPS_CARRIER_UMTS
-} tapi_gps_carrier_e_type;
-
-/* Utran Sfn Uncertainty */
-typedef enum {
-       TAPI_GPS_UTRAN_SFN_UNCERTAINTY_INVALID,
-       TAPI_GPS_UTRAN_SFN_UNCERTAINTY_LESSTHAN_10,
-       TAPI_GPS_UTRAN_SFN_UNCERTAINTY_MORETHAN_10
-} tapi_gps_sfn_unc_e_type;
-
-/* UTRAN Choice mode Type */
-typedef enum {
-       TAPI_GPS_UTRAN_CHOICE_INVALID,
-       TAPI_GPS_UTRAN_CHOICE_FDD,
-       TAPI_GPS_UTRAN_CHOICE_TDD
-} tapi_gps_utrn_choice_mode_e_type;
-
-/* DGPS Status Type */
-typedef enum {
-       TAPI_GPS_DGPS_INVALID,
-       TAPI_GPS_DGPS_UDRE_SCALE_1_0,
-       TAPI_GPS_DGPS_UDRE_SCALE_0_75,
-       TAPI_GPS_DGPS_UDRE_SCALE_0_5,
-       TAPI_GPS_DGPS_UDRE_SCALE_0_3,
-       TAPI_GPS_DGPS_UDRE_SCALE_0_2,
-       TAPI_GPS_DGPS_UDRE_SCALE_0_1,
-       TAPI_GPS_DGPS_NO_DATA
-} tapi_gps_dgps_status_e_type;
-
-/* Navigation Satellite Status Type*/
-typedef enum {
-       TAPI_GPS_NAVIGATION_MODEL_NEW_SATELLITE_NEW_NAVIGATION,
-       TAPI_GPS_NAVIGATION_MODEL_EXIST_SATELLITE_EXIST_NAVIGATION,
-       TAPI_GPS_NAVIGATION_MODEL_EXIST_SATELLITE_NEW_NAVIGATION,
-       TAPI_GPS_NAVIGATION_MODEL_RESERVED
-} tapi_gps_navigation_sat_status_e_type;
-
-//GPS Measure Position Message
-/* Method Type */
-typedef enum {
-       TAPI_GPS_METHODTYPE_INVALID,
-       TAPI_GPS_METHODTYPE_MS_ASSISTED,
-       TAPI_GPS_METHODTYPE_MS_BASED,
-       TAPI_GPS_METHODTYPE_MS_BASED_PREF,
-       TAPI_GPS_METHODTYPE_MS_ASSISTED_PREF
-} tapi_gps_method_e_type;
-
-/* Use Multiple Sets Type */
-typedef enum {
-       TAPI_GPS_MULTIPLESETS_INVALID,
-       TAPI_GPS_MULTIPLESETS_MULTIPLESETS,
-       TAPI_GPS_MULTIPLESETS_ONESET
-} tapi_gps_use_multi_sets_e_type;
-
-/* Environment Char Type */
-typedef enum {
-       TAPI_GPS_ENVIRONMENT_INVALID,
-       TAPI_GPS_ENVIRONMENT_BAD_AREA,
-       TAPI_GPS_ENVIRONMENT_NOT_BAD_AREA,
-       TAPI_GPS_ENVIRONMENT_MIXED_AREA
-} tapi_gps_env_char_e_type;
-
-/* Cell Timing Wanted Type */
-typedef enum {
-       TAPI_GPS_CELLTIMING_INVALID,
-       TAPI_GPS_CELLTIMING_WANTED,
-       TAPI_GPS_CELLTIMING_NOT_WANTED
-} tapi_gps_cell_timing_wnt_e_type;
-
-/* Additional Assist Request Type */
-typedef enum {
-       TAPI_GPS_ADDITIONAL_ASSISREQ_INVALID,
-       TAPI_GPS_ADDITIONAL_ASSISREQ_REQ,
-       TAPI_GPS_ADDITIONAL_ASSISREQ_NOT_REQ
-} tapi_gps_add_assit_req_e_type;
-
-/* Measure Position Response Type */
-typedef enum {
-       TAPI_GPS_MSR_POS_RES_LOCATION,
-       TAPI_GPS_MSR_POS_RES_GPS_MEASUREMENTS,
-       TAPI_GPS_MSR_POS_RES_AID_REQ,
-       TAPI_GPS_MSR_POS_RES_ERROR
-} tapi_gps_msr_pos_res_e_type;
-
-/* GPS element multi path Type */
-typedef enum {
-       TAPI_GPS_MULTIPATH_NOT_MEASURED,
-       TAPI_GPS_MULTIPATH_LOW,
-       TAPI_GPS_MULTIPATH_MEDIUM,
-       TAPI_GPS_MULTIPATH_HIGH
-}tapi_gps_multi_path_e_type;
-
-/* Accuracy Flag Value */
-#define QOS_PRESENT_HORIZONTAL_ACCURACY 0x01
-#define QOS_PRESENT_VERTICAL_ACCURACY   0x02
-
-//GPS MTLR Notification Message
-/* MTLR Notification Type */
-typedef enum {
-       TAPI_GPS_NO_NOTIFY_NO_VERIFY,
-       TAPI_GPS_USER_NOTIFY_ONLY,     /* Location Notification Allowed */
-       TAPI_GPS_USER_NOTIFY_VERIFY_ALLOW_NO_RESP, /* notify and verify, if no response, Location Notification Allowed */
-       TAPI_GPS_USER_NOTIFY_VERIFY_NOT_ALLOW_NO_RESP, /* notify and verify, if no response, Location Notification Not Allowed */
-       TAPI_GPS_PRIVACY_NEEDED,
-       TAPI_GPS_PRIVACY_OVERRIDE
-} tapi_gps_mtlr_notify_e_type;
-
-/* location estimate Type */
-typedef enum {
-       TAPI_GPS_ESTIMATE_TYPE_CURRENT_LOCATION,        ///< Current Location
-       TAPI_GPS_ESTIMATE_TYPE_CURRENT_OR_LAST_KNOWN_LOCATION,  ///< Current or Last Known Location
-       TAPI_GPS_ESTIMATE_TYPE_INITIAL_LOCATION,                ///< Initial Location
-       TAPI_GPS_ESTIMATE_TYPE_ACTIVATE_DEFERRED_LOC,   ///< Activate Deferred Location
-       TAPI_GPS_ESTIMATE_TYPE_CANCEL_DEFERRED_LOC,     ///< Cancel Deferred Location
-       TAPI_GPS_ESTIMATE_TYPE_NOTIFY_VERIFY_ONLY,              ///< Notification and Verification Only
-       TAPI_GPS_ESTIMATE_TYPE_INVALID
-} tapi_gps_loc_estimate_e_type;
-
-/* ID Format Type */
-typedef enum {
-       TAPI_GPS_FORMAT_IND_LOGICAL_NAME,
-       TAPI_GPS_FORMAT_IND_EMAIL_ADDRESS,
-       TAPI_GPS_FORMAT_IND_MSISDN,
-       TAPI_GPS_FORMAT_IND_URL,
-       TAPI_GPS_FORMAT_IND_SIPURL,
-       TAPI_GPS_FORMAT_IND_IMS_PUBLIC_ID
-} tapi_gps_format_ind_e_type;
-
-/* Verify Response Type */
-typedef enum {
-       TAPI_GPS_VERIFY_RSP_TYPE_DENIED,
-       TAPI_GPS_VERIFY_RSP_TYPE_GRANTED,
-       TAPI_GPS_VERIFY_RSP_TYPE_INVALID
-} tapi_gps_verify_rsp_e_type;
-
-typedef enum {
-       TAPI_GPS_FREQ_AIDING_DISABLE = 0,
-       TAPI_GPS_FREQ_AIDING_ENABLE,
-} tapi_gps_freq_aiding_e_type;
-
-/*                                     GPS Chipset on AP - END                                       */
-
-typedef struct {
-       unsigned char NumOfRecord;
-       tapi_gps_fix_req_param_type_t ParamType[TAPI_GPS_FIX_PARAM_TAG_MAX];
-       tapi_gps_session_type_t SessionType;
-       tapi_gps_session_operation_t SessionOperation;
-       int TotalFixes;
-       int TimeBtwFixes;
-       int Accuracy;
-       unsigned char GpsSessionTimeout; /* 0~255 secs. */
-       tapi_gps_server_option_t ServerOption;
-       tapi_gps_server_addr_type_t ServerAddressType;
-       char ServerAddressIP[TAPI_GPS_ADDR_LEN_MAX];
-       int ServerPort;
-       char URL[TAPI_GPS_URL_LEN_MAX];
-       unsigned char SecurityDataId;
-       unsigned char SecurityDataLength;
-       char SecurityData[TAPI_GPS_SECURITY_DATA_MAX];
-} tapi_gps_fix_request_msg_t;
-
-typedef struct {
-       unsigned char SpaceVehicleNumber;
-       unsigned char ElevationOfMeasuredSatellite;
-       short AzimuthOfMeasuredSatellite;
-} tapi_gps_sv_info_inview_t;
-
-typedef struct {
-       int sv_num;
-       int elev;
-       int azimuth_snr;
-} tapi_sv_in_view_type_t;
-
-typedef struct {
-       tapi_gps_pd_event_t pd_evnet;
-       tapi_gps_end_status_code end_status;
-       tapi_gps_opt_field_mask_t opt_field_mask;
-       long time_stamp;
-       int utc_offset;
-       tapi_gps_pos_source_type_t positioning_source;
-       tapi_gps_pos_type_t position_type;
-       tapi_gps_pos_mode_t position_mode;
-       int loc_uncertainty_ang;
-       int loc_uncertainty_a;
-       int loc_uncertainty_p;
-       int loc_uncertainty_v;
-       int loc_uncertainty_conf;
-       long long latitude;
-       long long longitude;
-       int altitude;
-       int speed_knot;
-       int speed_kmh;
-       int heading_true;
-       int velocity_include;
-       tapi_gps_fix_type_t fix_type;
-       int hour;
-       int minute;
-       int sec;
-       int date;
-       int h_dop;
-       int p_dop;
-       int v_dop;
-       int sv_in_use;
-       long long magnetic_variation;
-       tapi_gps_fix_selection_type_t selection_type;
-       tapi_gps_fix_quality_t fix_quality;
-       int num_sv_in_view;
-       tapi_sv_in_view_type_t sv[TAPI_GPS_MAX_SATELLITES];
-       int hash_alg;
-       int sec_data_id;
-       int sec_data_len;
-       char sec_data[20];
-       tapi_gps_encryption_algorithm_t crypt_alg;
-       int crypt_data_len;
-       char crypt_data[16];
-} tapi_gps_position_data_noti_t;
-
-typedef struct {
-       int sv_id;
-       int c_no;
-       int latency_ms;
-       int azimuth;
-       int elevation;
-       tapi_gps_sv_state_t sv_state;
-} tapi_meas_report_type_t;
-
-typedef struct {
-       int num_svs;
-       int eph_svmask;
-       int alm_svmask;
-       tapi_meas_report_type_t meas_report[16];
-} tapi_gps_ext_measurement_noti_t;
-
-typedef struct {
-       unsigned char NumOfRecord;
-       tapi_gps_param_msg_param_type_t ParamType[TAPI_GPS_PARAMETERS_TAG_MAX];
-       tapi_gps_server_type_t ServerType;
-       tapi_gps_server_addr_type_t ServerAddressType;
-       char ServerAddressIP[TAPI_GPS_ADDR_LEN_MAX];
-       int ServerPort;
-       char ServerURL[TAPI_GPS_URL_LEN_MAX];
-       tapi_gps_gpslock_mode_t GpsLock;
-       int DelAidingData;
-       tapi_gps_pos_mode_t PositionMode;
-       tapi_gps_mt_lr_t MT_LR;
-       tapi_gps_mo_method_t MO_Method;
-       unsigned char SharedSecretData[TAPI_GPS_SSD_LEN_MAX];
-       int SecurityUpdateRate;
-       tapi_gps_ssl_on_off_t SslOnOff;
-       tapi_gps_cert_type_t SSL;
-} tapi_gps_param_t;
-
-typedef struct {
-       tapi_gps_pdp_result_t Result;
-       unsigned char APN[TAPI_GPS_APN_LEN_MAX];
-} tapi_gps_data_conn_cnf_t;
-
-typedef struct {
-       tapi_gps_pdp_connection_t Connection;
-       tapi_gps_pdp_type_t PdpType;
-} tapi_gps_data_conn_indi_t;
-
-typedef struct {
-       tapi_gps_dns_lookup_result_t Result;
-       tapi_gps_ip_addr_type_t IP_Type;
-       unsigned char IP_Address[TAPI_GPS_ADDR_LEN_MAX];
-       int port;
-} tapi_gps_dns_lookup_cnf_t;
-
-typedef struct {
-       int len_addr;
-       char url[TAPI_GPS_DNS_LEN_MAX];
-} tapi_gps_dns_lookup_indi_t;
-
-typedef struct {
-       tapi_gps_verification_notify_t notify_type; /**< Specifies Notify type refer enum tapi_gps_notify_type_t */
-       tapi_gps_supl_format_t supl_format;
-       tapi_gps_data_coding_scheme_t dcs;
-       tapi_gps_requestor_id_encoding_t requestor_id_encoding; /**< Specifies encoding type refer enum tapi_gps_encoding_type_t */
-       char requestor_id[50]; /**< Specifies Client name */
-       char client_name[50]; /**< Specifies Client name */
-       int resp_time;
-} tapi_gps_verification_indi_t;
-
-/**
- * This structure defines the values for agps SUPL flow parameter.
- */
-typedef struct {
-       tapi_gps_supl_msg_t message;
-       tapi_gps_supl_status_t status_code;
-} tapi_gps_suplflow_noti_t;
-
-typedef struct {
-       unsigned long long time_msec; /**< Commulative GPS Time */
-       unsigned long time_unc_msec;
-       unsigned char ref_toutc_Time; /**< Referenced to UTC GPS Time  False :0 True: 1 */
-       unsigned char force_flag; /**< Force Acceptance of Data  False :0 True: 1 */
-       unsigned char status;
-} tapi_gps_xtra_time_info_t;
-
-/**
- * This structure defines the values for gps xtra time information notification data.
- */
-typedef struct {
-       unsigned int oneway_delay_failover_thresh; /**< One-way delay threshold for failover backup servers */
-} tapi_gps_xtra_time_noti_t;
-
-typedef struct {
-       unsigned int data_len;
-       unsigned char xtra_data[TAPI_GPS_XTRA_DATA_LEN_MAX];
-       unsigned char part_num;
-       unsigned char total_part;
-       tapi_gps_xtra_status_t status;
-} tapi_gps_xtra_data_info_t;
-
-typedef struct {
-       int max_file_part_size;
-       int max_file_size;
-} tapi_gps_xtra_data_noti_t;
-
-typedef struct {
-       tapi_gps_pd_cmd_t pd_cmd;
-       int pd_cmd_err;
-} tapi_gps_pd_cmd_callback_t;
-
-/*                                    GPS Chipset on AP - START                                      */
-typedef struct {
-       unsigned long int qosFlag;
-       unsigned char horizontalAccuracy;
-       unsigned char verticalCoordinateRequest;
-       unsigned char verticalAccuracy;
-       unsigned char responseTime; //0x01:low delay, 0x02: delay tolerant
-}__attribute__ ((packed)) tapi_gps_qos_t;
-
-typedef struct {
-       unsigned char sat_id;
-       unsigned char iode;
-}__attribute__ ((packed)) tapi_gps_sat_info_t;
-
-typedef struct {
-       unsigned char beginWeek;
-       unsigned char endWeek;
-       unsigned char beginTow;
-       unsigned char endTow;
-}__attribute__ ((packed)) tapi_gps_ext_ephe_chk_t;
-
-typedef struct {
-       unsigned long int assistanceFlag;
-       unsigned short gpsWeek;
-       unsigned char gpsToe;
-       unsigned char nSat;
-       unsigned char toeLimit;
-       tapi_gps_sat_info_t satInfo[15];
-       unsigned char gpsExtendedEphemeris;
-       tapi_gps_ext_ephe_chk_t extEphemerisChk;
-}__attribute__ ((packed)) tapi_gps_assistance_data_t;
-
-typedef struct {
-       tapi_gps_molr_e_type molr_type;
-       tapi_gps_location_method_e_type location_method;
-       tapi_gps_qos_t qos;
-       unsigned char client_id[82];
-       unsigned char mlc_num[82];
-       tapi_gps_assistance_data_t assistance_data;
-       tapi_gps_gad_shape_e_type gad_shape;
-       unsigned char serviceTypeID;
-       unsigned char pseudonymIndicator;
-}__attribute__ ((packed)) tapi_gps_cp_mo_loc_set_t; //APGPS - Control Plane Mo Location - Set
-
-//Measure Position message
-typedef struct {
-       unsigned char satId; //Satellite ID
-       unsigned char cno; // 0~63, unit of dB-Hz
-       signed short doppler; // -32768~32767, Hz and scale factor 0.2
-       unsigned short wholeChips; // 0~1022
-       unsigned short fracChips; // 0~1024
-       unsigned char lcsMultiPath;
-       unsigned char pseuRangeRmsErr; // 0~63
-}__attribute__ ((packed)) tapi_gps_measuremet_element_t;
-
-typedef struct {
-       unsigned long int gpsTow; ///< GPS time of week [msec]
-       unsigned short gpsWeek; ///< GPS week [0 .. 1023]
-       unsigned char nrOfSats; ///< number of satellites [1 .. 16]
-       tapi_gps_measuremet_element_t GpsMeasure[16];
-}__attribute__ ((packed)) tapi_gps_measure_t;
-
-typedef struct {
-       signed long int latitude;
-       signed long int longitude;
-}__attribute__ ((packed)) tapi_gps_ellipsoid_po_t;
-
-typedef struct {
-       tapi_gps_ellipsoid_po_t point;
-       unsigned char uncertainRadius;
-}__attribute__ ((packed)) tapi_gps_po_unc_circle_t;
-
-typedef struct {
-       tapi_gps_ellipsoid_po_t point;
-       unsigned char semiMajorAxis;
-       unsigned char semiMinorAxis;
-       unsigned char orientationAngle;
-       unsigned char confidence;
-}__attribute__ ((packed)) tapi_gps_po_unc_ellipse_t;
-
-typedef struct {
-       tapi_gps_ellipsoid_po_t point;
-       signed short altitude;
-       unsigned char semiMajorAxis;
-       unsigned char semiMinorAxis;
-       unsigned char orientationAngle;
-       unsigned char uncertainAltitude;
-       unsigned char confidence;
-}__attribute__ ((packed)) tapi_gps_po_alt_unc_ellipse_t;
-
-typedef struct {
-       tapi_gps_ellipsoid_po_t point;
-       unsigned short innerRadius;
-       unsigned char uncertainRadius;
-       unsigned char offsetAngle;
-       unsigned char includedAngle;
-       unsigned char confidence;
-}__attribute__ ((packed)) tapi_gps_ellipsoid_arc_t;
-
-typedef struct {
-       tapi_gps_ellipsoid_po_t point;
-       signed short altitude;
-}__attribute__ ((packed)) tapi_gps_ellipsoid_alt_t;
-
-typedef struct {
-       unsigned char noOfPoints;
-       tapi_gps_ellipsoid_po_t points[15];
-}__attribute__ ((packed)) tapi_gps_polygon_t;
-
-typedef struct {
-       unsigned char shape_type;
-       tapi_gps_po_unc_circle_t p_unc_clrcle;
-       tapi_gps_po_unc_ellipse_t p_unc_ellipse;
-       tapi_gps_po_alt_unc_ellipse_t p_alt_unc_ellipse;
-       tapi_gps_ellipsoid_arc_t ellipsoid_arc;
-       tapi_gps_ellipsoid_po_t ellipsoid_po;
-       tapi_gps_ellipsoid_alt_t ellipsoid_alt;
-       tapi_gps_polygon_t polygon;
-}__attribute__ ((packed)) tapi_gps_loc_info_t;
-
-typedef struct {
-       unsigned long int gpsTow; ///< GPS time of week [msec]
-       unsigned short gpsWeek; ///< GPS week [0 .. 1023]
-       unsigned char fixType; ///< Fix type. 2D(0x01) or 3D(0x02)
-       tapi_gps_loc_info_t measured_loc_info;
-}__attribute__ ((packed)) tapi_gps_measure_loc_info_t;
-
-typedef struct {
-       unsigned char valid;
-       unsigned long int cellFrames;
-       unsigned char choice_mode;
-       unsigned long int UtranFdd; //FDD Primary Scrambling Code
-       unsigned long int UtranTdd; // TDD Cell Parameter ID
-       unsigned long int sfn; //SFN
-}__attribute__ ((packed)) tapi_gps_utran_gps_ref_time_t;
-
-typedef struct {
-       unsigned char result; // 0x00 : SUCCESS, 0x01 : Fail
-       tapi_gps_msr_pos_res_e_type response_type; //should be 4 byte
-       tapi_gps_measure_t gps_measure;
-       tapi_gps_measure_loc_info_t loc_info;
-       tapi_gps_assistance_data_t measured_assit_data;
-       tapi_gps_utran_gps_ref_time_t UtranGpsRefTime; // only for 3G
-}__attribute__ ((packed)) tapi_gps_measure_position_confirm_t; //APGPS - Measure Position message - confirm
-
-typedef struct {
-       unsigned char reqId;
-       tapi_gps_verify_rsp_e_type response;
-}__attribute__ ((packed)) tapi_gps_mtlr_notification_confirm_t; //AGPS - MTLR Notification message - confirm
-
-
-//RX part
-typedef struct {
-       unsigned short arfcn; //ARFCN of GSM network
-       unsigned char bsic; //Base Station Identity Code
-       unsigned char rx_lev; // RX signal level
-       unsigned char ta; //Timing Advance
-}__attribute__ ((packed)) tapi_gps_gsm_extended_radio_signal_info_t; //APGPS - GSM Extended Radio Signal Info - Resp
-
-typedef struct {
-       unsigned long int flag;
-       unsigned char horizontalAccuracy;
-       unsigned char vertcalAccuracy;
-}__attribute__ ((packed)) tapi_gps_accuracy_t;
-
-typedef struct {
-       unsigned char method_type;
-       tapi_gps_accuracy_t accuracy;
-       unsigned char rsp_time;
-       unsigned char use_multi_sets;
-       unsigned char environment_char;
-       unsigned char cell_timing_wnt;
-       unsigned char add_assist_req;
-}__attribute__ ((packed)) tapi_gps_measure_position_indi_t; //APGPS - Measure Position message -indication
-
-typedef struct {
-       unsigned short deferredLocEventType;
-       tapi_gps_mtlr_notify_e_type locEstimateType;
-}__attribute__ ((packed)) tapi_gps_mtlr_loc_t;
-
-typedef struct {
-       unsigned long int length; //Length of APDU
-       unsigned char val[63]; //APDU data
-}__attribute__ ((packed)) tapi_gps_string_t;
-
-typedef struct {
-       unsigned char dcs;
-       tapi_gps_string_t str;
-       tapi_gps_format_ind_e_type format_indicator;
-}__attribute__ ((packed)) tapi_gps_dcs_string_t;
-
-typedef struct {
-       unsigned char dcs;
-       tapi_gps_string_t str;
-}__attribute__ ((packed)) tapi_gps_code_word_t;
-
-typedef struct {
-       unsigned char req_id;
-       tapi_gps_mtlr_notify_e_type notify_type;
-       tapi_gps_mtlr_loc_t loc;
-       unsigned char client_id[82];
-       tapi_gps_dcs_string_t client_name;
-       tapi_gps_dcs_string_t requestor_id;
-       tapi_gps_code_word_t code_word;
-       unsigned char svc_type_id;
-}__attribute__ ((packed)) tapi_gps_mtlr_notification_indi_t; //AGPS - MTLR Notification message - Indication
-
-typedef struct {
-       unsigned char cipherKeyFlag;
-       unsigned char currentDecipherKey[7];
-       unsigned char nextDecipherKey[7];
-}__attribute__ ((packed)) tapi_gps_deciphering_keys_t;
-
-typedef struct {
-       tapi_gps_loc_info_t loc_info;
-       unsigned char no_loc;
-       tapi_gps_deciphering_keys_t decper_keys;
-}__attribute__ ((packed)) tapi_gps_cp_mo_loc_noti_t; //APGPS - Control Plane Mo Location - Notification
-
-typedef struct {
-       unsigned char valid;
-       unsigned short bcchCarrier;
-       unsigned short bsic;
-       unsigned long int frameNumber;
-       unsigned short timeSlot;
-       unsigned short bitNumber;
-}__attribute__ ((packed)) tapi_gps_gsm_time_t;
-
-typedef struct {
-       unsigned char valid;
-       unsigned long int gpsTimeUncertainty;
-}__attribute__ ((packed)) tapi_gps_utran_gps_unc_t;
-
-typedef struct {
-       unsigned char valid;
-       signed long int driftRate;
-}__attribute__ ((packed)) tapi_gps_drift_rate_t;
-
-typedef struct {
-       tapi_gps_utran_gps_ref_time_t UtranGpsRefTime;
-       tapi_gps_utran_gps_unc_t UtranGpsUncertainty;
-       unsigned char UtranSfnUncertainty;
-       tapi_gps_drift_rate_t UtranDriftRate;
-}__attribute__ ((packed)) tapi_gps_utran_time_t;
-
-typedef struct {
-       unsigned short satID;
-       unsigned short tlmWord;
-       unsigned char antiSpoofFlag;
-       unsigned char alertFlag;
-       unsigned char tmlReservedBits;
-}__attribute__ ((packed)) tapi_gps_gps_tow_assist_t;
-
-typedef struct {
-       unsigned long int gpsTow;
-       unsigned long int gpsWeek;
-       unsigned char nrOfSats;
-       union {
-               tapi_gps_gsm_time_t gsm_time;
-               tapi_gps_utran_time_t UtranTime;
-       } networkTimeInfo;
-       tapi_gps_gps_tow_assist_t GpsTowAssist[12];
-}__attribute__ ((packed)) tapi_gps_ref_time_t;
-
-typedef struct {
-       unsigned char shapeType;
-       unsigned char hemisphere;
-       unsigned short altitude;
-       unsigned long int latitude;
-       signed long int longitude;
-       unsigned char directionOfAlt;
-       unsigned char semiMajorUncert;
-       unsigned char semiMinorUncert;
-       unsigned char majorAxis;
-       unsigned char altUncert;
-       unsigned char confidence;
-}__attribute__ ((packed)) tapi_gps_ref_loc_t;
-
-typedef struct {
-       unsigned char satId; //Satellite ID
-       unsigned short iode;
-       unsigned char udre;
-       signed short pseudoRangeCor;
-       signed short rangeRateCor;
-}__attribute__ ((packed)) tapi_gps_dgps_sat_list_t;
-
-typedef struct {
-       unsigned long int gpsTow;
-       unsigned char status;
-       unsigned long int numberOfSat;
-       tapi_gps_dgps_sat_list_t seqOfSatElement[16];
-}__attribute__ ((packed)) tapi_gps_dgps_correction_t;
-
-typedef struct {
-       unsigned long int rsv1; // 0~838860
-       unsigned long int rsv2; // 0~16777215
-       unsigned long int rsv3; // 0~16777215
-       unsigned long int rsv4; // 0~65535
-}__attribute__ ((packed)) tapi_gps_navi_subframe_rsv_t;
-
-typedef struct {
-       unsigned char ephemCodeOnL2; // 0~3
-       unsigned char ephemUra; // 0~15
-       unsigned char ephemSvHealth; // 0~63
-       unsigned short ephemIodc; // 0~1023
-       unsigned char ephemL2PFlag; // 0~1
-       tapi_gps_navi_subframe_rsv_t NavigationSubFrameRsv;
-       signed char ephemTgd; // -128~127
-       unsigned short ephemToc; // 0~37799
-       signed char ephemAf2; // -128~12
-       signed short ephemAf1; // -32768~32767
-       signed long int ephemAf0; // -2097152~2097151
-       signed short ephemCrs; // -32768~32767
-       signed short ephemDeltaN; // -32768~32767
-       signed long int ephemM0; // -2147483648~2147483647
-       signed short ephemCuc; // -32768~32767
-       unsigned long int ephemE; // 0~4294967295
-       signed short ephemCus; // -32768~32767
-       unsigned long int ephemAPowrHalf; // 0~4294967295
-       unsigned short ephemToe; // 0~37799
-       signed char ephemFitFlag; // 0~1
-       unsigned char ephemAoda; // 0~31
-       signed short ephemCic; // -32768~32767
-       signed long int ephemOmegaA0; // -2147483648~2147483647
-       signed short ephemCis; // -32768~32767
-       signed long int ephemI0; // -2147483648~2147483647
-       signed short ephemCrc; // -32768~32767
-       signed long int ephemW; // -2147483648~2147483647
-       signed long int ephemOmegaADot; // -8388608~8388607
-       signed short ephemIDot; // -8192~8191
-}__attribute__ ((packed)) tapi_gps_navi_ephe_t;
-
-typedef struct {
-       unsigned char satId;
-       unsigned char NavigationSatStatus;
-       tapi_gps_navi_ephe_t NavigationEphemeris;
-}__attribute__ ((packed)) tapi_gps_navi_sat_info_t;
-
-typedef struct {
-       unsigned long int numberOfSat;
-       tapi_gps_navi_sat_info_t NavigationSatInfo[16];
-}__attribute__ ((packed)) tapi_gps_navi_model_t;
-
-typedef struct {
-       signed char alfa0; // -128~127
-       signed char alfa1; // -128~127
-       signed char alfa2; // -128~127
-       signed char alfa3; // -128~127
-       signed char beta0; // -128~127
-       signed char beta1; // -128~127
-       signed char beta2; // -128~127
-       signed char beta3; // -128~127
-}__attribute__ ((packed)) tapi_gps_iono_model_t;
-
-typedef struct {
-       signed long int utcA1; // -8388608~8388607
-       signed long int utcA0; // -2147483648~2147483647
-       unsigned char utcTot; // 0~255
-       unsigned char utcWNt; // 0~255
-       signed char utcDeltaTls; // -128~127
-       unsigned char utcWNlsf; // 0~255
-       signed char utcDN; // -128~127
-       signed char utcDeltaTlsf; // -128~127
-}__attribute__ ((packed)) tapi_gps_utc_model_t;
-
-typedef struct {
-       signed char dataId; // only for 3G, 0~3, if this value is -1, it means this value is invalid
-       unsigned char satId;
-       unsigned short almanacE; // 0~65536
-       unsigned char almanacToa; // 0~255
-       signed short almanacKsii; // -32768~3276
-       signed short almanacOmegaDot; // -32768~3276
-       unsigned char almanacSvHealth; // 0~255
-       unsigned long int almanacAPowerHalf; // 0~16777215
-       signed long int almanacOmega0; // -8388608~8388607
-       signed long int almanacW; // -8388608~8388607
-       signed long int almanacM0; // -8388608~8388607
-       signed short almanacAf0; // -1024~1023
-       signed short almanacAf1; // -1024~1023
-}__attribute__ ((packed)) tapi_gps_almanac_sat_info_t;
-
-typedef struct {
-       unsigned char almanacWNa; // 0~255
-       unsigned long int numberOfSat;
-       tapi_gps_almanac_sat_info_t AlmanacSatInfo[64];
-}__attribute__ ((packed)) tapi_gps_almanac_model_t;
-
-typedef struct {
-       tapi_gps_utran_gps_ref_time_t AcqUtranGpsRefTime;
-       tapi_gps_utran_gps_unc_t AcqUtranGpsUncertainty;
-}__attribute__ ((packed)) tapi_gps_acq_utran_time_t;
-
-typedef struct {
-       unsigned char satId;
-       signed short doppler0; // -2048~2047 (real value is from -5120 to 5117.5 by step of 2.5)
-       unsigned char doppler1; // 0~63 (real value is from -0.966 to 0.483 by step of 0.023)
-       unsigned char dopplerUncertainty; // 0~7 (12.5, 25, 50, 100, 200)
-       unsigned short codePhase; // 0~1022
-       unsigned char intCodePhase; // 0~19
-       unsigned char gpsBitNumber; // 0~3
-       unsigned char codePhaseSearchWindow; // 0~15 (1023, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 64, 96, 128, 192)
-       unsigned char azimuth; // 0~31, 11.25 degree resolution
-       unsigned char elevation; // 0~7, 11.25 degree resolution
-}__attribute__ ((packed)) tapi_gps_acq_sat_info_t;
-
-typedef struct {
-       unsigned long int gpsTow;
-       union {
-               tapi_gps_gsm_time_t gsm_time;
-               tapi_gps_acq_utran_time_t AcqUtranTime;
-       } acquisitionTimeInfo;
-       unsigned long int numberOfSat;
-       tapi_gps_acq_sat_info_t lcsAcquisitionSatInfo[16];
-}__attribute__ ((packed)) tapi_gps_acq_assist_t;
-
-typedef struct {
-       unsigned char satId[16];
-       unsigned char numOfSat;
-}__attribute__ ((packed)) tapi_gps_r_time_int_t;
-
-typedef struct {
-       unsigned long int flag;
-//     tapi_gps_carrier_e_type cr_type;
-       tapi_gps_ref_time_t ref_time;
-       tapi_gps_ref_loc_t ref_loc;
-       tapi_gps_dgps_correction_t dgps_corrections;
-       tapi_gps_navi_model_t navi_model;
-       tapi_gps_iono_model_t iono_model;
-       tapi_gps_utc_model_t utc_model;
-       tapi_gps_almanac_model_t almanac;
-       tapi_gps_acq_assist_t acq_assist;
-       tapi_gps_r_time_int_t r_time_int;
-}__attribute__ ((packed)) tapi_gps_assist_data_noti_t; //APGPS -  GPS Assist Data Message - Notification
-
-/*                                     GPS Chipset on AP - END                                       */
-
-/**
- *
- * @brief  This function is invoked to initialize GPS.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_init_gps(void);
-
-/**
- *
- * @brief  This function is invoked to deinitialize GPS.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_deinit_gps(void);
-
-/**
- *
- * @brief  This function is invoked to set GPS prefix information.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  type
- *    - tapi_gps_fix_request_msg_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_gps_prefix_info(tapi_gps_fix_request_msg_t *type);
-
-/**
- *
- * @brief  This function is invoked to stop GPS session.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_stop_gps_session(void);
-
-/**
- *
- * @brief  This function is invoked to get GPS parameters.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_gps_parameters(void);
-
-/**
- *
- * @brief  This function is invoked to set GPS parameters.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  gps_params
- *    - tapi_gps_param_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_gps_parameters(tapi_gps_param_t *gps_params);
-
-/**
- *
- * @brief  This function is invoked to confirm GPS data connection.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  pdp_cnf
- *    - tapi_gps_data_conn_cnf_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_confirm_gps_data_connection(tapi_gps_data_conn_cnf_t *pdp_cnf);
-
-/**
- *
- * @brief  This function is invoked to confirm GPS DNS lookup.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  dns_cof
- *    - tapi_gps_dns_lookup_cnf_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_confirm_gps_dns_lookup(tapi_gps_dns_lookup_cnf_t *dns_cof);
-
-/**
- *
- * @brief  This function is invoked to confirm GPS verification.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  result
- *    - tapi_gps_verification_cnf_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_confirm_gps_verification(tapi_gps_verification_cnf_t result);
-
-/**
- *
- * @brief  This function is invoked to initialize GPS XTRA.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_init_gps_xtra(void);
-
-/**
- *
- * @brief  This function is invoked to deinit GPS XTRA.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_deinit_gps_xtra(void);
-
-/**
- *
- * @brief  This function is invoked to enable GPS XTRA.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_enable_gps_xtra(void);
-
-/**
- *
- * @brief  This function is invoked to disable GPS XTRA
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_disable_gps_xtra(void);
-
-/**
- *
- * @brief  This function is invoked to set GPS XTRA time
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  time_info
- *    - tapi_gps_xtra_time_info_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_gps_xtra_time(tapi_gps_xtra_time_info_t *time_info);
-
-/**
- *
- * @brief  This function is invoked to set GPS XTRA data.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  data_info
- *    - tapi_gps_xtra_data_info_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Refer #int for failure and error code
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_gps_xtra_data(tapi_gps_xtra_data_info_t *data_info);
-
-
-int tel_confirm_gps_measure_pos(tapi_gps_measure_position_confirm_t *data);
-
-int tel_set_gps_frequency_aiding(unsigned char state);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_GPS_H_ */
-
-/**
- * @}
- */
diff --git a/include/tapi/ITapiMisc.h b/include/tapi/ITapiMisc.h
deleted file mode 100644 (file)
index 72464ad..0000000
+++ /dev/null
@@ -1,411 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup              TelephonyAPI
- * @addtogroup   MISC_TAPI       MISC
- * @{
- *
- * @file ITapiMisc.h
-
- @brief This file serves as a "C" header file defines functions for Tapi Misc Services.\n
- It contains a sample set of function prototypes that would be required by applications.
- This header file defines the Telephony - MISC - API's.  These API's will be used by the
- processing Nitz and RTC time and some MISC functions.
- */
-#ifndef _ITAPI_MISC_H_
-#define _ITAPI_MISC_H_
-
-#include <TelDefines.h>
-#include <TelUtility.h>
-#include <TelMisc.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- *
- * @brief  This function is invoked to Confirm Time zone Info.
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [in]  timezone_info
- * -  timezone_info.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_confirm_misc_timezone_Info(tapi_misc_time_zone_info_type *timezone_info);
-
-/**
- *
- * @brief  This function is invoked to Get Time zone Mode.
- *
- * @par Sync (or) Async:
- *  This is a Synchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [out]  bTimezone_valid
- * -  specifies whether true or false.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_get_misc_timezone_mode(int *bTimezone_valid);
-
-/**
- *
- * @brief  This function is invoked to Set Time zone Information
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [in]  timezone_info
- *    -  specifies the time zone information
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_misc_timezone_info(tapi_misc_time_zone_info_type *timezone_info);
-
-/**
- *
- * @brief  This function is invoked to  Get Time zone Information
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [in]
- * - None.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_misc_timezone_info(void);
-
-/**
- *
- * @brief  This function is invoked to Get ME version information.
- *
- * @par Sync (or) Async:
- * This is a synchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [out]  ver_info
- *    - SW,HW version, RF calibration date, product code, model id(CDMA only), PRL/ERI information(CDMA only)
- *     refer #TelMiscVersionInformation
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_misc_me_version(TelMiscVersionInformation *ver_info);
-
-/**
- *
- * @brief  This function is invoked to Get ME IMEI/ESN/MEID for each phone type.
- *
- * @par Sync (or) Async:
- * This is a synchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  sn_index
- *    - serial type which user wants to get from current device. Refer #TelMiscSNIndexType_t
- *
- * @param  [out]  sn_info
- *    - Device Serial number information. IMEI for GSM/UMTS device, ESN or MEID for CDMA device. Refer #TelMiscSNInformation
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_misc_me_sn(TelMiscSNIndexType_t sn_index, TelMiscSNInformation *sn_info);
-
-/**
- *
- * @brief  This function is invoked to Get NAM info.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  nam_info_mask, nam_index
- *    - nam info mask & index
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_misc_nam_info(unsigned short nam_info_mask, TelMiscNamIndex_t nam_index);
-
-/**
- *
- * @brief  This function is invoked to Set NAM info.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  nam_info
- *    - nam info
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_misc_nam_info(TelMiscNamInfo_t *nam_info);
-
-/**
- *
- * @brief  This function is used to enable emergency mode
- * when device goes into emergency mode, user can not use normal call, SMS, and MMS service excepting emergency call.
- *
- * @par Sync (or) Async:
- * This is a synchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  mode
- *    - emergency mode value to request. 0:disable, 1:enable
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_misc_emergency_mode(int mode);
-
-/**
- *
- * @brief  This function is used to get current device emergency mode status.
- *
- * @par Sync (or) Async:
- * This is a synchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [out] mode
- *    - current emergency mode
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_misc_emergency_mode(int *mode);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _ITAPI_MISC_H_
-/**
- * @}
- */
diff --git a/include/tapi/ITapiNetText.h b/include/tapi/ITapiNetText.h
deleted file mode 100644 (file)
index 5d045e9..0000000
+++ /dev/null
@@ -1,1299 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
-* @open
-* @ingroup             TelephonyAPI
-* @addtogroup  NetText_TAPI    NetText(SMS)
-* @{
- *
-* @file ITapiNettext.h
-
-     @brief This file serves as a "C" header file defines functions for Tapi Nettext\n
-      It contains a sample set of function prototypes that would be required by applications.
-
- */
-
-#ifndef _ITAPI_NETTEXT_H_
-#define _ITAPI_NETTEXT_H_
-
-#include <TapiCommon.h>
-#include <TelNetText.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @enum TelSmsDeviceStatus
- * This defines the enumeration for device ready value
- */
-typedef enum {
-       TAPI_NETTEXT_DEVICE_READY = 0x01, /**< device is ready */
-       TAPI_NETTEXT_DEVICE_NOT_READY = 0x02 /**< Device not ready */
-} TelSmsDeviceStatus;
-
- /**
- * @brief  This API is used to send an SMS message to the network.  This API interface allows transmitting SMS PDU as defined by
- *             3GPP TS 23.040 (SMS-SUBMIT, SMS-COMMAND) to lower layers. This API allows keeping the dedicated link at lower layers
- *             by passing information as more messages to send in parameters. This will enable not to release if a dedicated connection is
- *             used for transmission. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pDataPackage
- *   - Contains SMS-SUBMIT TPDU
- *
- * @param [in] bMoreMsgToSend
- *   - will be set to TRUE when there are more than one message to be send or Multiple segmented concatenated
- *      message to be send, otherwise FALSE. This flag indicates OEM that more messages to send.
- *
- * @param [out] pRequestId
- * - Unique identifier for a particular request.
- * - pRequestId value can be any value from 0 to 255 if the API is returned successfully
- * - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- *  SMS sent status is returned in this event TAPI_EVENT_NETTEXT_SENTSTATUS_CNF and the event data associated with this event
- *  is #TelSmsDatapackageInfo_t that has SMS PDU as defined by 3GPP TS 23.040(SMS-SUBMIT-REPORT). Asynchronous return status is indicated by #TelSmsResponse_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * TelSmsDatapackageInfo_t *pDataPackage;
- * int ret_status;
- * int RequestId = 0;
- *
- * pDataPackage = (TelSmsDatapackageInfo_t*) malloc(sizeof(TelSmsDatapackageInfo_t));
- * // fill the structure appropriately
- * // Sca parameter is optional. If you don't provide Service center address, you should fill "00" in sca array.
- * //  MsgLength is length of szData//fill the szData in TelSmsDatapackageInfo_t with SMS-SUBMIT or SMS-COMMAND TPDU.
- * ret_status = tel_send_sms (pDataPackage, 0, &RequestId);
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_send_sms(const TelSmsDatapackageInfo_t *pDataPackage, int bMoreMsgToSend, int *pRequestId);
-
- /**
- * @brief  This API is used to send an SMS message to the network.  This API interface allows transmitting SMS PDU as defined by
- *             3GPP2 C.S0015 (SMS-SUBMIT, SMS-ACK, SMS-CANCEL) to lower layers. This API allows keeping the dedicated link at lower layers
- *             by passing information as more messages to send in parameters. This will enable not to release if a dedicated connection is
- *             used for transmission. Access to this API is limited to in-house application and  we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pSmsMsgInfo
- *   - Contains parameter mask, message type and data.
- *
- * @param [in] MoreMsgToSend
- *   - will be set to TRUE when there are more than one message to be send or Multiple segmented concatenated
- *      message to be send, otherwise FALSE. This flag indicates OEM that more messages to send.
- *
- * @param [out] pRequestId
- * - Unique identifier for a particular request.
- * - pRequestId value can be any value from 0 to 255 if the API is returned successfully
- * - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- *  SMS sent status is returned in this event TAPI_EVENT_NETTEXT_SENTSTATUS_EX_CNF and the event data associated with this event
- *  is #TelSmsIs637CauseCode_t. Asynchronous return status is indicated by #TelSmsResponse_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- * int ret_status = TAPI_API_SUCCESS;
- * int requestId = 0;
- * TelSmsMsgInfo_t pMsgInfo={0,};
- * char* diallingNum;
- * int dialNumLen;
- * TelSmsMsgInfo_t *pDataPackage = malloc(sizeof(TelSmsMsgInfo_t));
- *
- * memset(pDataPackage, 0, sizeof(TelSmsMsgInfo_t));
- * pDataPackage->MsgType = TAPI_NETTEXT_MESSAGETYPE_SUBMIT; //fill structure appropriately
- * pDataPackage->ParamMask |= TAPI_NETTEXT_PARAM_TELESERVICE_MASK;
- *
- * ret_status = tel_send_sms_msg(pDataPackage, 0 ,&requestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_send_sms_msg(const TelSmsMsgInfo_t *pSmsMsgInfo, int MoreMsgToSend, int *pRequestId);
-
- /**
- * @brief  This function reads a message from SIM card storage. SIM index (index used when storing the SMS) number to be passed to in order
- *             to read particular SMS message. Total number of messages can be retrieved by #TelTapiSmsGetCount function.
-  *            Access to this API is limited to in-house application and  we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [in] Index
- *  -  Index number of the message to be read
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_NETTEXT_READ_SMS_CNF and the event data is #TelSmsData_t. Asynchronous return status is indicated
- *  by #TelSmsCause_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- *
- * ret_status = tel_read_sms_in_sim(0, &RequestId); //index value which is located in SIM
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_read_sms_in_sim(int Index, int* pRequestId);
-
- /**
- * @brief  This function writes a message to SIM storage area.
- *           Access to this API is limited to in-house application and  we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pWriteData
- *  - SMS message structure.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  TAPI library will send TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF asynchronous event for this request when received from TS.
- *  The associated data is SIM Index in which the message stored. Asynchronous return status is indicated by #TelSmsCause_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- * TelSmsData_t *pWriteData;
- * char *msg = "This is an Test SMS";
- * char *SCA = "821091";
- *
- * pWriteData = malloc(sizeof(TelSmsData_t));
- *
- * conv_service_center_address(pWriteData->SmsData.Sca, SCA); //convert service center address
- * conv_msg_into_tpdu(pWriteData->SmsData.szData, pWriteData->SmsData.MsgLength, msg); // convert message into TPDU
- * pWrite->MsgStatus = TAPI_NETTEXT_STATUS_READ;
- * pWrite->SimIndex = -1;
- *
- * ret_status = tel_write_sms_in_sim (pWriteData, &RequestId);
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_write_sms_in_sim(const TelSmsData_t *pWriteData, int *pRequestId);
-
- /**
- * @brief  This function deletes a message specified by index (SIM index used when storing the SMS)
- *           number from the SIM storage area. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] Index
- *  - Message index to delete.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The asynchronous event associated is TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF and the event data is SIM index from which
- * the message has been deleted. Asynchronous return status is indicated by #TelSmsCause_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t).\n
- * @par Prospective Clients:
- *  External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- *
- * ret_status = tel_delete_sms_in_sim(1, &RequestId); //index which is located in SIM
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_delete_sms_in_sim(int Index, int *pRequestId);
-
- /**
- * @brief  This function is used to retrieve message count information like Total record count,
- *  used record count and the indices list for SIM Storage. This is an asynchronous function and
- *  the response will be sent back by event notification. Access to this API is limited, we recommend you use Message Framework API(MAPI) besides.
- *  Access to this API is limited to in-house application.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_GET_COUNT_CNF and the event data is #TelSmsStoredMsgCountInfo_t.
- * Asynchronous return status is indicated by #TelSmsCause_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * - External Apps.\n
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- *
- * ret_status = tel_get_sms_count (&RequestId); //get sms count in SIM
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_get_sms_count(int *pRequestId);
-
- /**
- * @brief  This function is used to set SMS CB Message Identifiers in the appropriate EF-CBMI/EF-CBMIR file in (U)SIM.
- *             This function also indicates underlying provider to enable or disable CB Channel on which CB messages are received.
- *             Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI) besides.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pCBConfig
- *  - This structure contains parameters to set SMS CB configuration \n
- *      (i)  Cell broadcast service state. (Enabled/disabled.) \n
- *      (ii) Cell broadcast message identifier, which denotes whether all cell broadcast message identifiers are selected or only
- *           some of those.\n
- *       (iii) The list count of message identifiers to be set.\n
- *       (iv) The actual list of message identifiers to be set. Each identifier occupies 2 bytes. And the list ranges from 0x00 to 0xff. \n
- *    These message identifiers denote the source and type of the CB message. Based on the message identifiers set in the SIM,
- *    the ME receives CB messages with selected message identifiers.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no data associated with this event.
- * Asynchronous return status is indicated by #TelSmsCause_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.\n
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- * TelSmsCbConfig_t *pCBConfig = NULL;
- *
- * pCBConfig = (TelSmsCbConfig_t *)malloc(sizeof(TelSmsCbConfig_t));
- * pCBConfig->bCBEnabled = 1; //fill structure appropriately
- * pCBConfig->SelectedId = 0x01;
- * pCBConfig->MsgIdCount = 0x02;
- *
- * pCBConfig->MsgIDs[0] = 0x0c;
- * pCBConfig->MsgIDs[1] = 0x0c;
- * pCBConfig->MsgIDs[2] = 0xdf;
- * pCBConfig->MsgIDs[3] = 0x00;
- *
- * ret_status = tel_set_sms_cb_config(pCBConfig, &RequestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_set_sms_cb_config(const TelSmsCbConfig_t *pCBConfig, int *pRequestId);
-
- /**
- * @brief  This function is used to retrieve SMS CB configuration options from EFcbmi file in the SIM.
- *             Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF and the event data is #TelSmsCbConfig_t.
- * Asynchronous return status is indicated by #TelSmsCause_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * - External Apps.\n
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- *
- * ret_status = tel_get_sms_cb_config (&RequestId); //result will come with async response
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_get_sms_cb_config(int *pRequestId);
-
-
- /**
- * @brief This function is used to set SMS preferred bearer on which SMS has to be transmitted.
- *           Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] BearerType
- *  - Specifies the bearer type.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no data associated with this event.
- * Asynchronous return status is indicated by #TelSmsCause_t
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- * TelSmsBearerType_t BearerType = TAPI_NETTEXT_BEARER_PS_ONLY;
- *
- * ret_status = tel_set_sms_preferred_bearer(BearerType, &RequestId); //result will come with async response
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_set_sms_preferred_bearer(TelSmsBearerType_t BearerType, int *pRequestId);
-
- /**
- * @brief  This function is used to get SMS preferred bearer on which SMS has to be transmitted.
- *  This is an asynchronous function. Access to this API is limited to in-house application and , we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF and the associated event data is #TelSmsBearerType_t.
- * Asynchronous return status is indicated by #TelSmsCause_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- *
- * ret_status = tel_get_sms_preferred_bearer(&RequestId); //result will come with async response
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_get_sms_preferred_bearer(int *pRequestId);
-
- /**
- * @brief This function is used to get the SMS parameters for a particular SMS (sent/received)
- *  based on the SIM index where it is stored. This is an asynchronous function. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] index
- *  - SIM index where the SMS is stored
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequest Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_GET_PARAM_CNF and the event data is #TelSmsParams_t. Asynchronous return status
- * is indicated by #TelSmsCause_t
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- *
- * ret_status = tel_get_sms_parameters(1, &RequestId); //result will come with async response
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_get_sms_parameters(int index, int *pRequestId);
-
- /**
- * @brief  This function is used to set the short message service header parameters which are
- *  used in the origination of MO messages. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - This API updates/sets SMS Parameters in EFsmsp file in the SIM storage
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pSmsSetParameters
- *  - Contains SMS header Parameter information like service center address, destination address, validity period, protocol identifier,
- *     data coding scheme.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no data associated with this event. Asynchronous
- * return status is indicated by #TelSmsCause_t
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- * TelSmsParams_t SmsSetParameters = {0,};
- *
- * SmsSetParameters.RecordIndex = 0x01;
- * SmsSetParameters.RecordLen = 28;
- * memcpy(SmsSetParameters.TpDestAddr.szDiallingNum, "9986529874", 10);
- * printf("\ndial no is %s\n", SmsSetParameters.TpDestAddr.szDiallingNum);
- * SmsSetParameters.TpDestAddr.DialNumLen = 10;
- * SmsSetParameters.TpDestAddr.Ton = TAPI_SIM_TON_NATIONAL;//national no
- * SmsSetParameters.TpDestAddr.Npi = TAPI_SIM_NPI_NATIONAL;
- *
- * ret_status = tel_set_sms_parameters(SmsSetParameters, &RequestId); //result will come with async response
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_set_sms_parameters(const TelSmsParams_t *pSmsSetParameters, int *pRequestId);
-
- /**
- * @brief This function is used to send a delivery report for the received incoming SMS to the network.
- *          Access to this API is limited to in-house application.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pDataPackage
- *  - Contains SMS Data package..
- *
- * @param [in] RPCause
- *  - Indicates the reason for SMS-DELIVER failure
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF and there is no associated event data. Asynchronous return status
- * is indicated by #TelSmsResponse_t
- *
- * @pre
- *  - SMS-DELIVER-REPORT message structure should be in TPDU format as specified by 3GPP TS 23.040 SMS TPDU.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = 0;
- * Int requestId = -1;
- * TelSmsResponse_t RPCause;
- * TelSmsDatapackageInfo_t *del_report = NULL;
- *
- * del_report = malloc(sizeof(TelSmsDatapackageInfo_t));
- * memset(del_report, 0, sizeof(TelSmsDatapackageInfo_t));
- * //Encode Send Delivery Report here
- * //EncodeSmsDeliveryReportTpdu();
- *
- * RPCause = TAPI_NETTEXT_SENDSMS_SUCCESS;
- * printf("***receive message (Api:SendDeliverreport)****\n");
- *
- * ret_status = tel_send_sms_deliver_report(del_report, RPCause, &requestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_send_sms_deliver_report(const TelSmsDatapackageInfo_t *pDataPackage, TelSmsResponse_t RPCause, int *pRequestId);
-
- /**
- * @brief  This function is used to set SMS Service Centre Address information in order to send the SMS.
- *           Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - This API updates/sets service center address in EFsmsp file in the SIM storage.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pSCA
- * - Contains the service centre address informations.
- *
- * @param [in] Index
- * - Contains the record index of the Service center address information in the EF.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no data associated with this event.
- * Asynchronous return status is indicated by #TelSmsResponse_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t).
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status;
- * int RequestId = 0;
- * BYTE        scabuf[512];
- * char        scaNum[TAPI_NETTEXT_SCADDRESS_LEN_MAX];
- * BYTE        scaNum_len =0;
- * TelSmsAddressInfo_t *sc_addr = NULL;
- * BYTE        packet[500];
- * int idx = 0;
- * int i;
- *
- * printf("***Setting the SCA(Api:SetSCA)****\n");
- * sc_addr = (TelSmsAddressInfo_t *)malloc(sizeof(TelSmsAddressInfo_t));
- * memset(sc_addr, 0, sizeof(sc_addr));
- * memset(scaNum, 0, sizeof(scaNum));
- * memset(scabuf, 0, sizeof(scabuf));
- * sprintf(scaNum, "821091");
- * scaNum_len = strlen(scaNum);
- * scaNum_len = strlen(scaNum);
- * scaNum[scaNum_len] = 0;
- * scaNum_len = scaNum_len - 1;
- *
- * //idx = SmsUtilEncodeAddrField(packet, scaNum, scaNum_len, 0x01, 0x01);
- * //get idx
- * sc_addr->DialNumLen = idx ;
- * memcpy(sc_addr->szDiallingNum, packet, (unsigned int)idx);
- * ret_status = tel_set_sms_sca(sc_addr, 0, &RequestId); //result will come with async response
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_set_sms_sca(const TelSmsAddressInfo_t *pSCA, int Index, int *pRequestId);
-
- /**
- * @brief  This function is used to get current SMS Service Centre Address information.
- *           Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [in] Index
- * - Contains the record index of the Service center address information in the EF.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETTEXT_GET_SCA_CNF and there is no data associated with this event.
- * Asynchronous return status is indicated by #TelSmsResponse_t.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- *
- * ret_status = tel_get_sms_sca(0, &RequestId); //result will come with async response
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_get_sms_sca(int Index, int *pRequestId);
-
- /**
- * @brief This function is used by the applications to inform modem about  the memory status of PDA (whether FULL or AVAILABLE) so that modem can inform network .
- *           Access to this API is limited to in-house application.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] memoryStatus
- *  - Contains Memory Status
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no associated event data. Asynchronous return status
- *  is indicated by #TelSmsResponse_t
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- * int MemoryStatus = TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE;
- *
- * ret_status = tel_set_sms_memory_status(MemoryStatus, &RequestId); //result will come with async response
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int  tel_set_sms_memory_status(int memoryStatus, int *pRequestId);
-
- /**
- * @brief  This function is used by the applications to set the message status in the SIM EF.
- *           Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] Index
- *  - Index of the message whose status has to be set.
- *
- *
- * @param [in] msgStatus
- *  - Status of the message to be set.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_NETTEXT_SET_REQUEST_CNF and there is no associated event data. Asynchronous return status
- *  is indicated by #TelSmsResponse_t
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- * int index = 1;
- * int MemoryStatus = TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE;
- *
- * ret_status = tel_set_sms_memory_status(index, MemoryStatus, &RequestId); //result will come with async response
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_set_sms_message_status(int Index, TelSmsMsgStatus_t msgStatus, int *pRequestId);
-
- /**
- * @brief This function is used by the applications to get the count of SMS parameter records stored in SIM EF.
- *           Access to this API is limited to in-house application.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  pRequestId value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_NETTEXT_PARAM_COUNT_IND and there is no associated event data. Asynchronous return status
- *  is indicated by #TelSmsResponse_t
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiNetText.h>
- *
- * int ret_status = TAPI_API_SUCCESS;
- * int RequestId = 0;
- *
- * ret_status = tel_get_sms_parameter_count (&RequestId); //result will come with async response
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_get_sms_parameter_count(int *pRequestId);
-
-
-/**
- * @brief This function is used by the applications check the device status (whether ready or not) .
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in]
- * - None
- *
- * @param [out] pDeviceStatus
- * - Contains Device Status
- *
- * @par Async Response Message:
- *  None.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_check_sms_device_status(int *pDeviceStatus);
-
-/**
- * @brief This function is used by the applications to inform modem about the PDA status(whether PDA is ready to
- * recieve messages from network or not).
- *
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in]
- *  - None
- *
- * @param [out]
- *  - None
- *
- * @par Async Response Message:
- *  None.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_sms_device_status(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_NETTEXT_H_ */
-
-/**
-* @}
-*/
diff --git a/include/tapi/ITapiNetwork.h b/include/tapi/ITapiNetwork.h
deleted file mode 100644 (file)
index d87512a..0000000
+++ /dev/null
@@ -1,1364 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup Network_TAPI    NETWORK
- * @{
- *
- * @file ITapiNetwork.h
-
- @brief This file serves as a "C" header file defines functions for Tapi Network\n
- It contains a sample set of function prototypes that would be required by applications.
- */
-
-#ifndef _ITAPI_NETWORK_H_
-#define _ITAPI_NETWORK_H_
-
-#include <TelErr.h>
-#include <TelDefines.h>
-#include <TelNetwork.h>
-#include <TelUtility.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @brief  This function requests the lower layers to select the network automatically
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Important Notes:
- * - This function passes the
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SELECT_CNF and there is no data associated with this event. Asynchronous return status
- * is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestID;
- *
- * // AUTOMATIC MODE
- * ret_status = tel_select_network_automatic(&RequestId);
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_select_network_automatic(int *pRequestId);
-
-/**
- * @brief  This function requests the lower layers to select the network (PLMN) which has been selected by the user from the Network List
- *           displayed to the User.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Important Notes:
- * - This function passes the .
- *
- * @warning
- * - None.
- *
- *
- * @param[in] Plmn Identification
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SELECT_CNF and there is no data associated with this event. Asynchronous return status
- * is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestID;
- * unsigned int plmn = 0;
- *
- * // MANUAL MODE
- * plmn = 45454;
- * ret_status = tel_select_network_manual(Plmn, &RequestId);
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_select_network_manual(unsigned int Plmn, int *pRequestId);
-
-/**
- * @brief  This function sends a request to do manual network selection to search for the available networks and provide the
- *           Network List to the User/Application.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SEARCH_CNF and the event data is #TelNetworkPlmnList_t.
- * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - In the available network list, user can select one of the networks successfully.
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestID;
- *
- * // NETWORK SEARCH
- * ret_status = tel_search_network(&RequestId);
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_search_network(int *pRequestId);
-
-/**
- * @brief  This function requests for the present network selection mode i.e. automatic or manual.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF and the event data is #TelNetworkSelectionMode_t.
- * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- *
- * // GET THE SELECTION MODE
- * ret_status = tel_get_network_selection_mode (&RequestId);
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_get_network_selection_mode(int *pRequestId);
-
-/**
- * @brief  This function is called when User/application wants to configure the service domain to only CS or Only PS or Both.
- * This API triggers the underlying protocol stack to do register with Network for only CS services or only PS services
- * or both based on the option set using this API.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in] ServiceDomain
- *    -  Specifies the type of Service domain (Packet switch, circuit switch,etc)
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SET_SVC_DOMAIN_CNF and there is no event data associated with this event
- * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- *
- * // SET NETWORK SERVICE DOMAIN
- * TelNetworkServiceDomain_t ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC;
- *
- * ret_status = tel_set_network_service_domain (ServiceDomain, &RequestId);
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_set_network_service_domain(TelNetworkServiceDomain_t ServiceDomain,
-               int *pRequestId);
-
-/**
- * @brief  This function requests for the present network service domain i.e. CS or PS or both or automatic.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GET_SVC_DOMAIN_CNF and the event data is #TelNetworkServiceDomain_t.
- * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- *
- * // GET NETWORK SERVICE DOMAIN
- * ret_status = tel_get_network_service_domain (&RequestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- */
-/*================================================================================================*/
-int tel_get_network_service_domain(int *pRequestId);
-
-/**
- * @brief  This function allows to configure the Network Mode (Automatic, GSM, WCDMA) at OEM provider based on which lower
- * layers can scan only those radio access technologies for registering with network.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in] NwMode
- *    - Specifies the network mode i.e. Automatic, WCDMA, GSM, CDMA and WLAN.
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SETNWMODE_CNF and there is no event data associated with this event and asynchronous
- * return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- * TelNetworkMode_t NwMode = TAPI_NETWORK_MODE_AUTOMATIC;
- *
- * // SET NETWORK MODE
- * ret_status = tel_set_network_mode(NwMode, &RequestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_set_network_mode(TelNetworkMode_t NwMode, int *pRequestId);
-
-/**
- * @brief  This function requests for the present network mode.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GETNWMODE_CNF and the event data is #TelNetworkMode_t.
- * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- *
- * ret_status = tel_get_network_mode(&RequestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_get_network_mode(int *pRequestId);
-
-/**
- * @brief  This function is invoked to set the network band and allows the underlying OEM provider to scan the set band.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in]  BandMode
- *    -  Band preference indicates the band provide to be preferred or select the band .
- * @param[in]  Band
- *    -  This enumeration defines different network Bands that user can choose.
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SETNWBAND_CNF and there is no event data associated with this event and asynchronous
- * return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- *
- * TelNetworkBandPreferred_t BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- * TelNetworkBand_t Band = TAPI_NETWORK_BAND_TYPE_GSM_900_1800;
- *
- * // SET NETWORK BAND
- * ret_status = tel_set_network_band (BandMode, Band, &RequestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_set_network_band(TelNetworkBandPreferred_t BandMode,
-               TelNetworkBand_t Band, int *pRequestId);
-
-/**
- * @brief  This function requests for the present network band.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GETNWBAND_CNF and the event data is #TelNetworkBand_t.
- * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- *
- * // GET NETWORK BAND
- * ret_status = tel_get_network_band(&RequestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_get_network_band(int *pRequestId);
-
-/**
- * @brief  This function is invoked to set the network preferred plmn
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in]  Operation
- *    -  Operation indicates the operation to be done on preferred plmn .
- * @param[in]  pPreffPlmnInfo
- *    -  This gives the plmn Info.
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SETPREFFPLMN_CNF and there is no event data associated with this event and asynchronous
- * return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- *
- * TelNetworkPrefferedPlmnOp_t Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- * TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
- *
- * memset(&PreffPlmnInfo, 0, sizeof(TelNetworkPrefferedPlmnInfo_t));
- * PreffPlmnInfo.Index = 0;
- * PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
- * unsigned char *plmn = "45454";
- * memcpy(PreffPlmnInfo.Plmn, plmn, strlen(plmn));
- *
- * // SET PREFERRED PLMN
- * ret_status = tel_set_network_preferred_plmn(Operation, PreffPlmnInfo, &RequestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_set_network_preferred_plmn(TelNetworkPrefferedPlmnOp_t Operation,
-               TelNetworkPrefferedPlmnInfo_t *pPreffPlmnInfo, int *pRequestId);
-
-/**
- * @brief  This function is invoked to get the preferred plmn list
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GETPREFFPLMN_CNF and event data associated with this event  is #TelNetworkPrefferedPlmnList_t
- * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int RequestId;
- *
- * // GET NETWORK PREFERRED PLMN
- * ret_status = tel_get_network_preferred_plmn(&RequestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_get_network_preferred_plmn(int *pRequestId);
-
-/**
- * @brief  This function is invoked to set the CDMA Roaming Mode
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in]  RoamingMode
- *  -  CDMA Roaming Mode.
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SET_ROAMING_MODE_CNF
- * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * TelNetworkRoamingMode_t roamingMode;
- * int ret_status;
- * int requestId;
- *
- * roamingMode.pref_net_type = TAPI_NETWORK_PREF_NET_HOME_ONLY;
- * roamingMode.prl_pref_only = TAPI_NETWORK_PRL_PREF_ONLY_ON;
- *
- * // SET NETWORK ROAMING
- * ret_status = tel_set_network_roaming(&roamingMode, &requestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_set_network_roaming(TelNetworkRoamingMode_t *RoamingMode,
-               int *pRequestId);
-
-/**
- * @brief  This function is invoked to get the CDMA Roaming Mode
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GET_ROAMING_MODE_CNF and event data associated with this event  is #TelNetworkRoamingMode_t
- * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int requestId;
- *
- * // GET NETWORK ROAMING MODE
- * ret_status = tel_get_network_roaming(&requestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_get_network_roaming(int *pRequestId);
-
-/**
- * @brief  This function is invoked to set the CDMA Hybrid Mode
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in]  CDMAHybridMode
- *  -  CDMA Hybrid Mode.
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SET_CDMA_HYBRID_MODE_CNF
- * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * TelNetworkCDMAHybridMode_t cdmaHybridMode;
- * int ret_status;
- * int requestId;
- *
- * cdmaHybridMode = TAPI_NETWORK_CDMA_HYBRID;
- *
- * // GET NETWORK HYBRID IN CDMA
- * ret_status = tel_set_network_hybrid_in_cdma(cdmaHybridMode, &requestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_set_network_hybrid_in_cdma(TelNetworkCDMAHybridMode_t CDMAHybridMode,
-               int *pRequestId);
-
-/**
- * @brief  This function is invoked to get the CDMA Hybrid Mode
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GET_CDMA_HYBRID_MODE_CNF and event data associated with this event  is #TelNetworkCDMAHybridMode_t
- * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include <ITapiNetwork.h>
- *
- * int ret_status;
- * int requestId;
- *
- * // GET NETWORK HYBRID IN CDMA
- * ret_status = tel_get_network_hybrid_in_cdma(&requestId);
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- *
- *
- *
- */
-/*================================================================================================*/
-int tel_get_network_hybrid_in_cdma(int *pRequestId);
-
-/**
- *
- * @brief  This API allows lower layers to scan based on preferred network order based options passed.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - If network order list array holds the value "TAPI_NETWORK_MODE_AUTOMATIC" then other following values in the list shall be ignored.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pPrefNwOrder
- *    -  This parameter is an array of size TAPI_NW_ORDER_MAX(which is defined as 5) of #TelNetworkMode_t type specifies the preferred
- *        network order for camping.
- * @param [out]  pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SETNWORDER_CNF and there is no event data associated with this event and asynchronous
- * return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - None.
- *
- * @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_set_network_acquisition_order(TelNetworkMode_t *pPrefNwOrder,
-               int *pRequestId);
-
-/**
- *
- * @brief  This function requests for the present network selection order.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GETNWORDER_CNF and the event data is array of size
- * TAPI_NW_ORDER_MAX(which is defined as 5) of #TelNetworkMode_t.
- * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - None.
- *
- * @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_acquisition_order(int *pRequestId);
-
-/**
- *
- * @brief  This function is invoked to set the power on attach.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [in]  PowerOnAttach
- *    -  Power on attach preference to set .
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_SETPOWERONATTACH_CNF and there is no event data associated with this event and asynchronous
- * return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - None.
- *
- * @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_set_network_power_on_attach(TelNetworkPowerOnAttach_t PowerOnAttach,
-               int *pRequestId);
-
-/**
- *
- * @brief  This function is invoked to get the network power on attach status.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_GETPOWERONATTACH_CNF and event data associated with this event is #TelNetworkPowerOnAttach_t
- * asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - None.
- *
- * @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_power_on_attach(int *pRequestId);
-
-/**
- * @brief  This function is called to cancel the triggered manual network search.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF and there is no event data associated with this event
- * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - Manual network search is already triggered.
- *
- * @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.
- *
- * External Apps.
- *
- */
-int tel_cancel_network_manual_search(int *pRequestId);
-
-/**
- *
- * @brief  This function is called to cancel manual network selection where user has already selected a network from the network list.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[out] pRequestId
- *     -  Unique identifier for a particular request.
- *     -  Request Id value can be any value from 0 to 255 if the API is returned successfully
- *     -  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_NETWORK_CANCELMANUALSELECTION_CNF and there is no event data associated with this event
- * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
- *
- * @pre
- *  - User should have selected a network from available network list.
- *
- * @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_cancel_network_manual_selection(int *pRequestId);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_NETWORK_H_ */
-
-/**
- * @}
- */
diff --git a/include/tapi/ITapiOmadm.h b/include/tapi/ITapiOmadm.h
deleted file mode 100644 (file)
index 5ceda3b..0000000
+++ /dev/null
@@ -1,330 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup           TELEPHONY_API
- * @addtogroup OMADM OMA-DM
- * @{
- * @file ITapiOmadm.h
- *
- * OMA-DM APIs allow an application to accomplish the following services: @n
- * - Get Model Name. @n
- */
-
-#ifndef _ITAPI_OMADM_H_
-#define _ITAPI_OMADM_H_
-
-#include <TelDefines.h>
-#include <TelUtility.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define TAPI_OMADM_MAX_PRL_SIZE_LEN            17              /** Maximum length of PRL size string */
-#define TAPI_OMADM_MAX_MODEL_NAME_LEN  17              /** Maximum length of Model name string */
-#define TAPI_OMADM_MAX_OEM_NAME_LEN            65              /** Maximum length of OEM name string */
-#define TAPI_OMADM_MAX_SW_VER_LEN              17              /** Maximum length of SW version string */
-#define TAPI_OMADM_MAX_PRL_DATA_LEN            237             /** Maximum length of PRL data */
-
-/**
- * @enum TelDataSignalType
- * Data Signal Type
- */
-typedef enum {
-       TAPI_OMADM_PRL_WRITE_SUCCESS = 0x00, /**< Success */
-       TAPI_OMADM_PRL_WRITE_INVALID_SIZE = 0x01, /**< PRL size is invalid */
-       TAPI_OMADM_PRL_WRITE_FAIL = 0x02 /**< Fail */
-} TelOMADMPRLWriteStatus_t;
-
-/**
- * This structure contains PRL size string.
- */
-typedef struct {
-       unsigned char prl_size[TAPI_OMADM_MAX_PRL_SIZE_LEN]; /**< PRL size string information */
-} TelOMADMPRLSize_t;
-
-/**
- * This structure contains Model name string.
- */
-typedef struct {
-       unsigned char model_name[TAPI_OMADM_MAX_MODEL_NAME_LEN]; /**< model name information */
-} TelOMADMModelName_t;
-
-/**
- * This structure contains OEM name string.
- */
-typedef struct {
-       unsigned char oem_name[TAPI_OMADM_MAX_OEM_NAME_LEN]; /**< OEM information */
-} TelOMADMOEMName_t;
-
-/**
- * This structure contains S/W version string.
- */
-typedef struct {
-       unsigned char sw_ver[TAPI_OMADM_MAX_SW_VER_LEN]; /**< S/W version information */
-} TelOMADMSWVersion_t;
-
-/**
- * This structure contains PRL data packet.
- */
-typedef struct {
-       unsigned int total_size; /**< total size */
-       unsigned short current_size; /**< current size */
-       unsigned char more; /**< more data or not */
-       unsigned char prl_data[TAPI_OMADM_MAX_PRL_DATA_LEN]; /**< PRL data information */
-} TelOMADMPRLData_t;
-
-/**
- * @brief This function requests PRL size.
- *
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_OMADM_PRL_SIZE_GET_CNF.
- *
- * @pre
- *  - None
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_omadm_prl_size(int *pRequestID);
-
-/**
- * @brief This function requests Model name.
- *
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_OMADM_MODEL_NAME_GET_CNF.
- *
- * @pre
- *  - None
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_omadm_model_name(int *pRequestID);
-
-/**
- * @brief This function requests OEM name.
- *
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_OMADM_OEM_NAME_GET_CNF.
- *
- * @pre
- *  - None
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_omadm_oem_name(int *pRequestID);
-
-/**
- * @brief This function requests SW version.
- *
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_OMADM_SW_VERSION_GET_CNF.
- *
- * @pre
- *  - None
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_omadm_sw_ver(int *pRequestID);
-
-/**
- * @brief This function requests read PRL data.
- *
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_OMADM_PRL_READ_GET_CNF.
- *
- * @pre
- *  - None
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_read_omadm_ril(int *pRequestID);
-
-/**
- * @brief This function requests write PRL data.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- * @param[in] pPrlData
- * - PRL data.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_OMADM_PRL_WRITE_SET_CNF.
- *
- * @pre
- *  - None
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_write_omadm_prl(TelOMADMPRLData_t *pPrlData, int *pRequestID);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_OMADM_H_ */
-
-/**
- * @}
- */
-
diff --git a/include/tapi/ITapiPS.h b/include/tapi/ITapiPS.h
deleted file mode 100644 (file)
index feba384..0000000
+++ /dev/null
@@ -1,764 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @open
- * @ingroup            TelephonyAPI
- * @addtogroup GPRS_TAPI       GPRS
- * @{
- *
- * GPRS APIs allow an application to accomplish the following services: @n
- * - activate , deactivate PDP service @n
- *
- */
-
-#ifndef        _ITAPI_PS_H_
-#define _ITAPI_PS_H_
-
-#include <TelDefines.h>
-#include <TelErr.h>
-#include <TelUtility.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/* Defining macros for PSMAN profiles */
-#define TAPI_PDP_ADDR_LEN_MAX          20
-#define TAPI_PDP_APN_LEN_MAX           101
-#define TAPI_PDP_NAME_LEN_MAX          16
-#define TAPI_PDP_MAX_USERNAME_LEN      32
-#define TAPI_PDP_MAX_PASSWORD_LEN      32
-#define TAPI_PDP_MAX_DNS_LEN           16
-#define MAX_PDP_CONTEXTS_ALLOWED       3
-#define MAX_GPRS_PORT_LIST                     200
-
-typedef enum {
-     TAPI_GPRS_DEFINE_PDP_CONTEXT=0x01,                /* 0x01 : Define PDP Context */
-     TAPI_GSM_GPRS_QOS,                                                /* 0x02 : Quality of Service Profile */
-     TAPI_GSM_GPRS_PS,                                         /* 0x03 : PS attach or detach */
-     TAPI_GSM_GPRS_PDP_CONTEXT,                                /* 0x04 : PDP context activate or deactivate */
-     TAPI_GSM_GPRS_ENTER_DATA,                         /* 0x05 : Enter data */
-     TAPI_GSM_GPRS_SHOW_PDP_ADDR,                      /* 0x06 : Show PDP address*/
-     TAPI_GSM_GPRS_MS_CLASS,                                   /* 0x07 : GPRS mobile station class*/
-     TAPI_GSM_GPRS_3G_QUAL_SRVC_PROFILE,               /* 0x08 : 3G Quality of service profile */
-     TAPI_GSM_GPRS_IP_CONFIGURATION,                   /* 0x09 : Multiple PDP context IP configuration */
-     TAPI_GSM_GPRS_DEFINE_SEC_PDP_CONTEXT,             /* 0X0A : AT+CGDSCONT   05.10.07 ky.doo EDIT */
-     TAPI_GSM_GPRS_TFT,                                                        /* 0X0B : AT+CGTFT      05.10.07 ky.doo EDIT */
-     TAPI_GSM_GPRS_HSDPA_STATUS,                               /* 0x0C : HSDPA status */
-     TAPI_GSM_GPRS_CURRENT_SESSION_DATA_COUNTER,/* 0x0D : Current data session tx/rx total bytes */
-     TAPI_GSM_GPRS_DATA_DORMANT,                /* 0x0E : Force to set Dormant */
-     TAPI_GSM_GPRS_DUN_PIN_CTRL ,               /* 0x0F : Dial up Networking Pin Control Message */
-     TAPI_GSM_GPRS_CALL_STATUS,                            /* 0x10 : DS TE2 Data Call result(Multiple PDP) */
-     TAPI_GSM_GPRS_PORT_SEL,                           /* 0x11 : PORT SEL */
-     TAPI_GSM_GPRS_MAX
-} tapi_gprs_type_t;
-
-typedef enum{
-       TAPI_PDP_MODE_ADD = 0x01,                               /*ADD*/
-       TAPI_PDP_MODE_DEL = 0x02                                        /*Delete*/
-} tapi_pdp_mode_type_t;
-
-typedef enum{
-       TAPI_PDP_AUTH_NONE = 0x0,               /* No authentication           */
-       TAPI_PDP_AUTH_PAP  = 0x1,               /* PAP authentication          */
-       TAPI_PDP_AUTH_CHAP = 0x2,               /* CHAP authentication       */
-       TAPI_PDP_AUTH_MAX  = 0xff
-
-} tapi_pdp_auth_type_t;
-
-typedef enum {
-       GPRS_PDP_TYPE_UNKNOWN   = 0x00,
-       GPRS_PDP_TYPE_X25               = 0x01,
-       GPRS_PDP_TYPE_IP                = 0x02,
-       GPRS_PDP_TYPE_IHOSP     = 0x03,
-       GPRS_PDP_TYPE_PPP               = 0x04,
-       GPRS_PDP_TYPE_IPV6              = 0x05,
-} tapi_pdp_type_t;
-
-/* HSDPA Status Variable */
-typedef enum {
-  HSDPA_INACTIVE,
-  HSDPA_ACTIVE
-} tapi_hspda_status_type;
-
-typedef enum {
-       GPRS_SIGNAL_DCD         = 0x01,
-       GPRS_DATA_SIGNAL_DTR    = 0x04,
-       GPRS_DATA_SIGNAL_DSR    = 0x06,
-       GPRS_DATA_SIGNAL_RTS    = 0x07,
-       GPRS_DATA_SIGNAL_CTS    = 0x08,
-       GPRS_DATA_SIGNAL_RI     = 0x09,
-} tapi_ps_btdun_pincontrol_signal;
-
-typedef enum {
-       GPRS_SIGNAL_STATUS_OFF  = 0x00,
-       GPRS_SIGNAL_STATUS_ON   = 0x01,
-} tapi_ps_btdun_pincontrol_status;
-
-typedef enum {
-       TAPI_GPRS_PS_STATUS_DETACH = 0x00,
-       TAPI_GPRS_PS_STATUS_ATTACH = 0x01,
-       TAPI_GPRS_PS_STATUS_MAX
-} tapi_gprs_pdp_status;
-
-typedef enum {
-       TAPI_GPRS_MO_SMS_SVC_CIRCUIT                    = 0x00,
-       TAPI_GPRS_MO_SMS_SVC_GPRS                               = 0x01,
-       TAPI_GPRS_MO_SMS_SVC_CIRCUITPREFERRED   = 0x02,
-       TAPI_GPRS_MO_SMS_SVC_GPRSPREFERRED              = 0x03,
-} tapi_gprs_pdp_mo_sms_service;
-
-typedef enum {
-       TAPI_GPRS_3G_QOS_TYPE_REQUEST                   = 0x01,
-       TAPI_GPRS_3G_QOS_TYPE_MIN_ACCEPT                = 0x02,
-       TAPI_GPRS_3G_QOS_TYPE_NEGOTIATE         = 0x03,
-} tapi_gprs_pdp_3g_qos_type;
-
-typedef enum {
-       TAPI_GPRS_3G_QOS_DELI_ORDER_NO                  = 0x00,
-       TAPI_GPRS_3G_QOS_DELI_ORDER_YES                 = 0x01,
-       TAPI_GPRS_3G_QOS_DELI_ORDER_SUBSCRIBE   = 0x02,
-} tapi_gprs_pdp_3g_qos_deli_order;
-
-typedef enum {
-       DSTATE_OK                       = 0x00,
-       DSTATE_CONNECT,
-       DSTATE_RING,
-       DSTATE_NO_CARRIER,
-       DSTATE_ERROR,
-       DSTATE_NO_DIALTONE,
-       DSTATE_BUSY,
-       DSTATE_NO_ANSWER,
-       DSTATE_RESULT_FDN,
-       DSTATE_MAX,
-} tapi_gprs_data_status;
-
-typedef enum {
-       PDP_ACT_FAILURE_CAUSE_NORMAL                                    = 0x00,                 // 0x00 : Normal Process ( no problem )
-       PDP_ACT_FAILURE_CAUSE_REL_BY_USER                               = 0x01,                 // Call Released by User
-       PDP_ACT_FAILURE_CAUSE_REGULAR_DEACTIVATION              = 0x02,                 // Regular deactivation
-       PDP_ACT_FAILURE_CAUSE_LLC_SNDCP                         = 0x03,                 // LLC SNDCP failure
-       PDP_ACT_FAILURE_CAUSE_INSUFFICIENT_RESOURCE     = 0x04,                 // Insufficient resources
-       PDP_ACT_FAILURE_CAUSE_UNKNOWN_APN                               = 0x05,                 // Missing or unknown apn
-       PDP_ACT_FAILURE_CAUSE_UNKNOWN_PDP_ADDRESS               = 0x06,         // Unknown PDP address or type
-       PDP_ACT_FAILURE_CAUSE_USER_AUTH_FAILED                  = 0x07,         // Unknown PDP address or type
-       PDP_ACT_FAILURE_CAUSE_ACT_REJ_GGSN                              = 0x08,                 // Unknown PDP address or type
-       PDP_ACT_FAILURE_CAUSE_ACT_REJ_UNSPECIFIED               = 0x09,                 // Unknown PDP address or type
-       PDP_ACT_FAILURE_CAUSE_SVC_OPTION_NOT_SUPPORTED  = 0x0A,         // Service option not supported
-       PDP_ACT_FAILURE_CAUSE_SVC_NOT_SUBSCRIBED                = 0x0B,         // Requested service option not subscribed
-       PDP_ACT_FAILURE_CAUSE_SVC_OPT_OUT_ORDER         = 0x0C,                 // Service out of order
-    PDP_ACT_FAILURE_CAUSE_NSAPI_USED                           = 0x0D,         // NSAPI already used
-       PDP_ACT_FAILURE_CAUSE_QOS_NOT_ACCEPTED                  = 0x0E,         // QoS not accepted
-       PDP_ACT_FAILURE_CAUSE_NETWORK_FAILURE                   = 0x0F,         // Network Failure
-    PDP_ACT_FAILURE_CAUSE_REACT_REQUIRED                       = 0x10,         // Reactivation Required
-       PDP_ACT_FAILURE_CAUSE_REATURE_NOT_SUPPORTED             = 0x11,         // Feature not supported
-       PDP_ACT_FAILURE_CAUSE_TFT_FILTER_ERROR                  = 0x12,         // TFT or filter error
-       PDP_ACT_FAILURE_CAUSE_UNKOWN_PDP_CONTEXT                = 0x13,         // Unknown PDP context
-       PDP_ACT_FAILURE_CAUSE_INVALID_MSG                               = 0x14,         // Invalid MSG
-       PDP_ACT_FAILURE_CAUSE_PROTOCOL_ERROR                    = 0x15,         // Protocol error
-       PDP_ACT_FAILURE_CAUSE_MOBILE_FAILURE_ERROR              = 0x16,         // Mobile failure error
-       PDP_ACT_FAILURE_CAUSE_TIMEOUT_ERROR                             = 0x17,         // Timeout error
-       PDP_ACT_FAILURE_CAUSE_UNKNOWN_ERROR                             = 0x18,         // Unknown error
-       PDP_ACT_FAILURE_CAUSE_MAX ,
-} tapi_gprs_ds_status_reason;
-
-typedef enum {
-       INTERNAL_PS_CALL = 0x00,
-       EXTERNAL_PS_CALL = 0x01
-} tapi_gprs_external_status;
-
-typedef enum {
-       PDP_DEVICE_INFO_GET = 0x00,
-       PDP_DEVICE_INFO_SET = 0x01
-} tapi_gprs_device_info;
-
-typedef enum{
-    TAPI_GPRS_PORT_LIST_NOT_USE,    // 0x00
-       TAPI_GPRS_PORT_LIST_WHITE,      // 0x01
-       TAPI_GPRS_PORT_LIST_BLACK,      // 0x02
-} tapi_gprs_port_list_type;
-
-typedef enum {
-       TAPI_PDP_STATE_NONE,             /* 0x00 Default state for a given PDP context*/
-    TAPI_PDP_STATE_ACTIVATING,          /* 0x01 TS will be in this state when there is a START PDP Request until it is  activated by modem - This state PDP is not yet UP*/
-    TAPI_PDP_STATE_ACTIVE,           /* 0x02 After PDP activation is completed by modem and sent to PDA - This state PDP is fully UP*/
-    TAPI_PDP_STATE_MODIFYING,        /* 0x03 This state is reserved for future use - When TS support modifying existing PDP*/
-    TAPI_PDP_STATE_DEACTIVATING,     /* 0x04 TS will be in this state when there is STOP PDP request from App until it is deactivated by modem */
-} tapi_gprs_state;
-
-typedef enum {
-       TAPI_PDP_DATA_DORMANCY_SUCCESS,
-       TAPI_PDP_DATA_DORMANCY_FAILED
-} TelTapiGprsDataDormancy_t;
-
-/* Suspend Reason Type */
-typedef enum {
-  TAPI_PDP_SUSPEND_NO_SVC                      = 0x01,
-  TAPI_PDP_SUSPEND_RAT_CHANGE          = 0x02,
-  TAPI_PDP_SUSPEND_GPRS_HOLD           = 0x03,
-  TAPI_PDP_SUSPEND_FLOW_CONTROL        = 0x04,
-  TAPI_PDP_SUSPEND_GPRS_SUSPEND        = 0x05,
-  TAPI_PDP_SUSPEND_RAU                 = 0x06,
-  TAPI_PDP_SUSPEND_LU                      = 0x07,
-  TAPI_PDP_TRANSFER_STATUS_MAX
-} tapi_gprs_suspend_type;
-
-typedef struct {
-       tapi_gprs_type_t type;
-       tapi_phone_err_t cause;
-} tapi_gprs_error_info_t;
-
-typedef struct {
-       int cont_id;
-       tapi_pdp_err_t err;
-} tapi_ps_pdp_info_t;
-
-typedef struct {
-       int cont_id;
-       tapi_pdp_err_t err;
-} tapi_ps_net_stop_rsp_t;
-
-typedef struct {
-       int cont_id;
-       tapi_pdp_err_t err;
-} tapi_ps_net_activation_rsp_t;
-
-typedef struct {
-       int cont_id;
-       tapi_pdp_err_t err;
-} tapi_ps_net_stop_ind_t;
-
-/*     ps attach response      */
-typedef struct {
-       int     state;
-       int     transfer_status;
-} tapi_ps_attach_response_t;
-
-/*     ps call statistics      */
-typedef struct {
-       unsigned char       cid;        //      call id . for proper bit alignment prefer int than short
-       unsigned long int       rx;     //      total number of bytes received for this cid
-       unsigned long int       tx;             //      total number of bytes transmitted for this cid
-} tapi_ps_call_statistics_t;
-
-typedef struct {
-       tapi_ps_btdun_pincontrol_signal signal;
-       tapi_ps_btdun_pincontrol_status status;
-} tapi_ps_btdun_pincontrol;
-
-/**
- * This structure defines PDP information.
- * @see        ps_net_info_t
- */
-typedef struct {
-   unsigned short      is_primary_cont;                /*Primary or secondary*/
-   int                         primary_cont;                   /*Primary context id, if the is the context is secondary*/
-   char                        apn[TAPI_PDP_APN_LEN_MAX];
-   unsigned char       pdp_address[TAPI_PDP_ADDR_LEN_MAX];
-   unsigned char       username[TAPI_PDP_MAX_USERNAME_LEN ];
-   unsigned char       password[TAPI_PDP_MAX_PASSWORD_LEN ];
-   unsigned char       dns1[TAPI_PDP_MAX_DNS_LEN ];               // @field Context activation DNS1
-   unsigned char       dns2[TAPI_PDP_MAX_DNS_LEN ];               // @field Context activation DNS2
-   tapi_pdp_auth_type_t auth_type;
-   tapi_pdp_type_t             pdp_type;
-} tapi_pdp_info_t;
-
-typedef struct {
-       int cont_id;
-       tapi_pdp_info_t pdp_info;
-} tapi_ps_net_start_req_t;
-
-typedef struct {
-       unsigned short  is_primary_cont;  /*Primary or secondary*/
-       unsigned char           username[TAPI_PDP_MAX_USERNAME_LEN ];
-       unsigned char   password[TAPI_PDP_MAX_PASSWORD_LEN ];
-       unsigned char   dns1[TAPI_PDP_MAX_DNS_LEN ];               // @field Context activation DNS1
-       unsigned char   dns2[TAPI_PDP_MAX_DNS_LEN ];               // @field Context activation DNS2
-    tapi_pdp_auth_type_t auth_type;
-} tapi_pdpdeact_info_t;
-
-typedef struct {
-       int cont_id;
-       tapi_pdpdeact_info_t pdp_info;
-} tapi_ps_net_stop_req_t;
-
-typedef struct {
-       unsigned char field_flag;
-       unsigned char ip_address[4];
-       unsigned char primary_dns[4];
-       unsigned char secondary_dns[4];
-       unsigned char gateway[4];
-       unsigned char subnet_mask[4];
-} tapi_pdp_resp_info_t;
-
-typedef struct {
-       int cont_id;
-       tapi_pdp_err_t err;
-       tapi_pdp_resp_info_t pdp_info;
-       char devname[TAPI_PDP_NAME_LEN_MAX];
-} tapi_ps_net_start_rsp_t;
-
-typedef struct tagSetPDPActDeact {
-       int cid;
-       unsigned char username[TAPI_PDP_MAX_USERNAME_LEN ];     // @field Context activation user name
-       unsigned char passwd[TAPI_PDP_MAX_PASSWORD_LEN ];               // @field Context activation password
-       unsigned char dns1[TAPI_PDP_MAX_DNS_LEN ];                              // @field Context activation DNS1
-       unsigned char dns2[TAPI_PDP_MAX_DNS_LEN ];                              // @field Context activation DNS2
-       tapi_pdp_auth_type_t    auth;
-} tapi_gprs_pdp_act_deact_set;
-
-typedef struct {
-       char cid;
-       tapi_gprs_pdp_status state;
-} tapi_gprs_pdp_status_info;
-
-typedef struct {
-       char num_act;
-       tapi_gprs_pdp_status_info info[3];
-} tapi_gprs_pdp_status_res;
-
-typedef struct {
-       char cid;
-       char address[20];
-} tapi_gprs_pdp_address_res;
-
-typedef struct {
-       unsigned char                           cid;
-       tapi_gprs_data_status           status;
-       tapi_gprs_ds_status_reason      reason;
-       unsigned char                           external;
-} tapi_gprs_pdp_status_reason_info;
-
-typedef struct {
-    tapi_gprs_port_list_type type;
-    unsigned char len;
-    unsigned short list[MAX_GPRS_PORT_LIST];
-} tapi_gprs_port_list;
-
-typedef struct {
-    tapi_gprs_port_list tcp_list;
-    tapi_gprs_port_list udp_list;
-} tapi_gprs_pdp_port_list_setting_info_t;
-
-/**
- * @brief  This API is used to request to Telephony Server to set PDP context define info, PDP activation.
- *  Access to this API is limited, we recommend you use Data Network API
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param[in] pNet_start_req_info
- * - This input has the PDP context define info, PDP activation info #tapi_ps_net_start_req_t
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_EVENT_PS_PDP_ACT_RSP  and the event data is #tapi_ps_pdp_info_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiPS.h>
- *
- * int ret_status;
- * int request_id = 0;
- * tapi_ps_net_start_req_t start_req;
- *
- * start_req.cont_id = CONTEXT_ID; //use proper id regarding upper layer usage
- * strcpy(start_req.pdp_info.apn, APN_ADDRESS);
- *
- * ret_status = tel_activate_gprs_pdp (&start_req, &request_id);
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- */
-/*================================================================================================*/
-int    tel_activate_gprs_pdp(const tapi_ps_net_start_req_t *pNet_start_req_info, int *pRequestID);
-
-/**
- * @brief  This API is used to request to Telephony Server to deactivate PDP service
- *  Access to this API is limited, we recommend you use Data Network API
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param[in] net_stop_req_info
- * - This input has the PDP context define info, PDP activation info #tapi_ps_net_start_req_t
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_EVENT_PS_PDP_DEACT_RSP  and the event data is #tapi_ps_pdp_info_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiPS.h>
- *
- * int ret_status;
- * int request_id = 0;
- * tapi_ps_net_stop_req_t end_req;
- *
- * memset(&end_req, 0, sizeof(tapi_ps_net_stop_req_t));
- *
- * end_req.cont_id = CONTEXT_ID;
- *
- * ret_status = tel_deactivate_gprs_pdp (&end_req, &request_id); //use context id which is used in activate time
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- */
-/*================================================================================================*/
-int    tel_deactivate_gprs_pdp(const tapi_ps_net_stop_req_t *net_stop_req_info, int *pRequestID);
-
-/**
- * @brief  This API is used to send modem data channels to dormant state for power saving when there is no data flowing for certain time
- *         Access to this API is limited, we recommend you use Data Network API
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  -The event associated is TAPI_EVENT_PS_DATA_DORMANT_RESP  and the event data is #TelTapiGprsDataDormancy_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiPS.h>
- *
- * int ret_status;
- * int request_id = 0;
- *
- * ret_status = tel_set_gprs_dormant(&request_id); //if user want to dormant state
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- */
-/*================================================================================================*/
-int    tel_set_gprs_dormant(int *pRequestID);
-
-/**
- * @brief  This API is used to get port list
- *         Access to this API is limited, we recommend you use Data Network API
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  -The event associated is TAPI_EVENT_PS_PDP_GET_PORTLIST_RSP  and the event data is #tapi_gprs_pdp_port_list_setting_info_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiPS.h>
- *
- * int ret_val;
- * int requestId = 0;
- *
- * ret_val = tel_get_gprs_port_list(&requestId); //get port list with async response. current return value means whether request send low layer properly or not
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- */
-/*================================================================================================*/
-int    tel_get_gprs_port_list(int *pRequestID);
-
-/**
- * @brief  This API is used to set port list
- *         Access to this API is limited, we recommend you use Data Network API
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param[in] info
- * - This input has the TCP/UDP port list information info #tapi_gprs_pdp_port_list_setting_info_t
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  -None
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiPS.h>
- *
- * int ret_val;
- * int requestId = 0;
- * tapi_gprs_pdp_port_list_setting_info_t test;
- *
- * memset(&test, 0, sizeof(tapi_gprs_pdp_port_list_setting_info_t));
- * test.tcp_list.type = TAPI_GPRS_PORT_LIST_NOT_USE;
- * test.tcp_list.len = 1;
- * test.tcp_list.list[0] = 1004;
- * test.udp_list.type = TAPI_GPRS_PORT_LIST_NOT_USE;
- * test.udp_list.len = 1;
- * test.udp_list.list[i] = 1111;
- *
- * ret_val = tel_set_gprs_port_list(&test, &requestId); //get operation result with async response. current return value means whether request send low layer properly or not
- *
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- */
-/*================================================================================================*/
-int    tel_set_gprs_port_list(tapi_gprs_pdp_port_list_setting_info_t *info, int *pRequestID);
-
-
-/**
- * @brief  This API is used to request BT Dun enable or disable
- *         Access to this API is limited, we recommend you use Data Network API
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param[in] pincontrol
- * - This input has the BT Dun pin control information #tapi_ps_btdun_pincontrol
- *
- * @param [out] pRequestID
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI or TAPI_EVENT_PS_ERROR_IND.
- * -In success, the event associated is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI  and the event data is #tapi_ps_btdun_pincontrol.
- *   In fail, the event associated is TAPI_EVENT_PS_ERROR_IND  and the event data is #tapi_gprs_error_info_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @code
- * #include <ITapiPS.h>
- *
- * int ret_status;
- * int request_id = 0;
- * tapi_ps_btdun_pincontrol bt_control;
- *
- * bt_control.signal = GPRS_SIGNAL_DCD;
- * bt_control.status = GPRS_SIGNAL_STATUS_OFF;
- *
- * ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id); //get control result with async response. current return value means whether request send low layer properly or not
- * @endcode
- *
- * @see
- *  - None.
- *
- * @remarks
- *  - None.
- */
-/*================================================================================================*/
-int tel_control_gprs_btdun_pin(tapi_ps_btdun_pincontrol pincontrol, int *pRequestID);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif  //_ITAPI_PS_H_
-
-/**
-   *  @}
-   */
diff --git a/include/tapi/ITapiPower.h b/include/tapi/ITapiPower.h
deleted file mode 100644 (file)
index 427ccbc..0000000
+++ /dev/null
@@ -1,212 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup            TelephonyAPI
- * @addtogroup POWER_TAPI      POWER
- * @{
- *
- * These APIs allow an application to accomplish the following services: @n
- * - Process power command @n
- * - Reset the phone power (on / off), @n
- * - Process airplane mode @n
- */
-
-#ifndef _ITAPI_POWER_H_
-#define _ITAPI_POWER_H_
-
-#include <TelDefines.h>
-#include <TelUtility.h>
-#include <TelPower.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- *
- * @brief  This API is used to turn power off or on the modem.
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param [in] cmd
- * - This index value is the power command as #tapi_power_phone_cmd_t.
- *
- * @param [out]
- *   - None
- *
- * @par Async Response Message:
- * - None
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- */
-int tel_process_power_command(tapi_power_phone_cmd_t cmd);
-
-/**
- *
- * @brief  This API is used to enter or leave airplane mode
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param [in] mode
- * - This mode value is the flight flag #tapi_power_flight_mode_type_t.
- *
- * @param [out]
- *   - None
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_POWER_FLIGHT_MODE_RESP  and the event data is #tapi_power_flight_mode_resp_type_t.
- * Asynchronous return status is always TAPI_API_SUCCESS.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- */
-int tel_set_flight_mode(tapi_power_flight_mode_type_t mode);
-
-/**
- *
- * @brief  This API is used to reset modem
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param [in]
- * - None
- *
- * @param [out]
- *   - None
- *
- * @par Async Response Message:
- * - None
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- */
-int tel_reset_modem(void);
-
-/**
- *
- * @brief  This API is used to get the ramdump file of modem. Modem's ramdump file is created under /opt/media/ramdump/
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param [in]
- * - None
- *
- * @param [out]
- *   - None
- *
- * @par Async Response Message:
- * - None
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- */
-int tel_enforce_ramdump_of_modem(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_POWER_H_ */
-
-/**
- * @}
- */
diff --git a/include/tapi/ITapiProductivity.h b/include/tapi/ITapiProductivity.h
deleted file mode 100644 (file)
index 8d4225b..0000000
+++ /dev/null
@@ -1,581 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
- * @internal
- * @ingroup            TelephonyAPI
- * @addtogroup PRODUCTIVITY_TAPI       PRODUCTIVITY_TAPI
- * @{
- *
- * @file ITapiProductivity.h
-
- @brief This file serves as a "C" header file defines functions for Tapi productivity Services.\n
- It contains a sample set of function prototypes that would be required by applications.
- */
-
-#ifndef _ITAPI_SERVICE_MODE_H_
-#define _ITAPI_SERVICE_MODE_H_
-
-#include <TelDefines.h>
-#include <TelErr.h>
-#include <TelUtility.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define TAPI_MAX_SERVICE_LINES         16      /** service information display max length */
-#define TAPI_MAX_LCD_WIDTH                     31      /** LCD max width for display */
-
-#define MAX_FACTORY_OMISSION_AVOIDANCE_DATA_CNT        90
-#define TAPI_FACTORY_WIFI_DATA_PDA_MAX 13      /** wifi data pda max length */
-#define TAPI_FACTORY_WIFI_DATA_PC_MAX  16      /** wifi data pc max length */
-#define TAPI_FACTORY_BT_MACADDRESS_MAX 6       /** BT mac address max length */
-#define TAPI_FACTORY_PIN_CODE_MAX              4       /** pin code max length */
-#define TAPI_FACTORY_LINE_SMS_ADDR_MAX 20      /** line sms address max length */
-#define TAPI_FACTORY_LINE_SMS_DATA_MAX 256     /** line sms data max length */
-#define TAPI_FACTORY_AXIS_MAX                  4       /** axis max length */
-#define TAPI_FACTORY_MEM_TOTAL_SIZE_MAX        8       /** max of memory total size */
-#define TAPI_FACTORY_MEM_USED_SIZE_MAX 8       /** max of used memory size */
-#define TAPI_FACTORY_MEM_FREE_SIZE_MAX 8       /** max of free memory size */
-#define TAPI_FACTORY_TOUCH_STATUS_MAX  4       /** max if touch status */
-
-#define SMS_NUM_SIZE   64      /**< sms number max size for factory dft*/
-#define SMS_DATA_SIZE  255     /**< sms data max size for factory dft*/
-
-/**
- * @enum tapi_service_mode_t
- * This enumeration defines the service mode type for test mode.
- */
-typedef enum {
-       TAPI_SVC_MODE_TEST_MANUAL = 0x01, /**< 0x01 : Manual test mode */
-       TAPI_SVC_MODE_NAM_EDIT, /**< 0x02 : Full NAM edit mode */
-       TAPI_SVC_MODE_MONITOR, /**<0x03 : Monitor screen mode */
-       TAPI_SVC_MODE_TEST_AUTO, /**< 0x04 : Auto test mode */
-       TAPI_SVC_MODE_NAM_BASIC_EDIT, /**< 0x05 : Basic NAM edit mode */
-       TAPI_SVC_MODE_PHONE_TEST, /**< 0x06 : Phone test mode ( just for the debugging ) */
-       TAPI_SVC_MODE_OPERATOR_SPECIFIC_TEST /**< 0x07: Specific test mode required by operator*/
-} tapi_service_mode_t;
-
-/**
- * @enum tapi_test_mode_sub_t
- * This enumeration defines the test mode sub type.
- */
-typedef enum {
-       TAPI_TESTMODE_ENTER     =       0x1000,                         /**< 0x1000 : Testmode enter */
-       TAPI_TESTMODE_SW_VERSION_ENTER,                         /**< 0x1001 : SW_version enter */
-       TAPI_TESTMODE_FTA_SW_VERSION_ENTER,                     /**< 0x1002 : FTA SW version enter */
-       TAPI_TESTMODE_FTA_HW_VERSION_ENTER,                     /**< 0x1003 : FTA HW version enter */
-       TAPI_TESTMODE_ALL_VERSION_ENTER,                        /**< 0x1004 : All version enter  */
-       TAPI_TESTMODE_BATTERY_INFO_ENTER,                       /**< 0x1005 : Battery Information enter  */
-       TAPI_TESTMODE_CIPHERING_PROTECTION_ENTER,       /**< 0x1006 : Ciphering protection enter */
-       TAPI_TESTMODE_INTEGRITY_PROTECTION_ENTER,       /**< 0x1007 : Integrity protection enter */
-       TAPI_TESTMODE_IMEI_READ_ENTER,                          /**< 0x1008 : IMEI enter */
-       TAPI_TESTMODE_BLUETOOTH_TEST_ENTER,                     /**< 0x1009 : Bluetooth test enter */
-       TAPI_TESTMODE_VIBRATOR_TEST_ENTER,                      /**< 0x100A : Vibrator test enter */
-       TAPI_TESTMODE_MELODY_TEST_ENTER,                        /**< 0x100B : Melody test enter */
-       TAPI_TESTMODE_MP3_TEST_ENTER,                           /**< 0x100C : MP3 test enter */
-       TAPI_TESTMODE_FACTORY_RESET_ENTER,                      /**< 0x100D : Factory test enter */
-       TAPI_TESTMODE_FACTORY_PRECONFIG_ENTER,          /**< 0x100E : Factory preconfig enter */
-       TAPI_TESTMODE_TFS4_EXPLORE_ENTER,                       /**< 0x100F : TFS4 explore enter */
-       TAPI_TESTMODE_RTC_TIME_DISPLAY_ENTER,           /**< 0x1010 : RTC time display enter */
-       TAPI_TESTMODE_RSC_FILE_VERSION_ENTER,           /**< 0x1011 : RSC file version enter */
-       TAPI_TESTMODE_USB_DRIVER_ENTER,                         /**< 0x1012 : USB driver enter */
-       TAPI_TESTMODE_USB_UART_DIAG_CONTROL_ENTER,      /**< 0x1013 : USB UART diag control enter*/
-       TAPI_TESTMODE_RRC_VERSION_ENTER,                        /**< 0x1014 : RRC Version enter */
-       TAPI_TESTMODE_GPSONE_SS_TEST_ENTER,     /**< 0x1015 : GPSone testmode enter */
-       TAPI_TESTMODE_BAND_SEL_ENTER,                           /**< 0x1016 : Band selection mode enter */
-       TAPI_TESTMODE_GCF_TESTMODE_ENTER,                       /**< 0x1017 : GCF Test mode enter */
-       TAPI_TESTMODE_GSM_FACTORY_AUDIO_LB_ENTER,       /**< 0x1018 : GSM Factory Audio Loopback enter */
-       TAPI_TESTMODE_FACTORY_VF_TEST_ENTER,            /**< 0x1019 : VF ADC Test mode enter */
-       TAPI_TESTMODE_TOTAL_CALL_TIME_INFO_ENTER,       /**< 0x101A : Display Total Call time info enter */
-       TAPI_TESTMODE_SELLOUT_SMS_ENABLE_ENTER,         /**< 0x101B : Sell_Out_SMS_Enable_enter */
-       TAPI_TESTMODE_SELLOUT_SMS_DISABLE_ENTER,        /**< 0x101C : Sell_Out_SMS_Disable_enter */
-       TAPI_TESTMODE_SELLOUT_SMS_TEST_MODE_ON,         /**< 0x101D : Sell_Out_SMS_Test_Mode_ON */
-       TAPI_TESTMODE_SELLOUT_SMS_PRODUCT_MODE_ON,      /**< 0x101E : Sell_Out_SMS_Product_Mode_ON */
-       TAPI_TESTMODE_GET_SELLOUT_SMS_INFO_ENTER,       /**< 0x101F Get Sellout SMS info enter  */
-       TAPI_TESTMODE_WCDMA_SET_CHANNEL_ENTER,          /**< 0x1020 WCDMA Set Channel Enter */
-       TAPI_TESTMODE_GPRS_ATTACH_MODEM_ENTER,          /**< 0x1021 GPRS Attach mode Enter */
-
-       /*      In case of  SVC_MODE = SM_NAM  in CDMA  */
-       TAPI_SVC_MODE_NAM_CDMA_EDIT     =       0x2001,         /**< 0x2001 : NAM Full Edit Mode */
-       TAPI_SVC_MODE_NAM_CDMA_BASIC_EDIT,                      /**< 0x2002 : NAM Basic Edit Mode */
-       TAPI_SVC_MODE_NAM_CDMA_ADVANCED_EDIT,           /**< 0x2003 : NAM Advanced Edit Mode */
-
-       TAPI_TESTMODE_SUB_MODE_MAX
-} tapi_test_mode_sub_t;
-
-/**
- * @enum tapi_service_mode_reset_t
- * This enumeration defines the reset mode type for test mode.
- */
-typedef enum {
-       TAPI_SVC_MODE_END_NO_ACTION = 0x00, /**< 0x00 : RESET_NO_ACTION */
-       TAPI_SVC_MODE_END_PHONE_ONLY_RESET, /**< 0x01 : RESET_PHONE_ONLY_REQUIRED */
-       TAPI_SVC_MODE_END_BOTH_RESET /**< 0x02 : RESET_BOTH_REQUIRED */
-} tapi_service_mode_reset_t;
-
-/**
- * @enum tapi_service_mode_debug_cp_dump_t
- * This enumeration defines the cp dump type.
- */
-typedef enum {
-       TAPI_SVC_DBG_CP_DUMP_TARGET_ALL = 0x00, /**< cp dump option - all */
-       TAPI_SVC_DBG_CP_DUMP_TARGET_MSG, /**< cp dump option - message */
-       TAPI_SVC_DBG_CP_DUMP_TARGET_LOG, /**< cp dump option - log */
-       TAPI_SVC_DBG_CP_DUMP_TARGET_LOG2, /**< cp dump option - log2 */
-       TAPI_SVC_DBG_CP_DUMP_TARGET_RAM_DUMP, /**< cp dump option - ram dump */
-       TAPI_SVC_DBG_CP_DUMP_TARGET_MAX /**< RFU */
-} tapi_service_mode_debug_cp_dump_t;
-
-/**
- * @enum tapi_service_mode_debug_ap_dump_t
- * This enumeration defines the ap dump type.
- */
-typedef enum {
-       TAPI_SVC_DBG_AP_DUMP_TARGET_RIL = 0x01, /**< ap dump option - ril */
-       TAPI_SVC_DBG_AP_DUMP_TARGET_SYSTEM, /**< ap dump option - system */
-       TAPI_SVC_DBG_AP_DUMP_TARGET_MAX /**< ap dump -RFU */
-} tapi_service_mode_debug_ap_dump_t;
-
-/**
- * @enum tapi_device_id_t
- * This enumeration defines the device information for test mode.
- */
-typedef enum {
-       TAPI_DEVICE_VIBRATION = 0x01, /**< vibration */
-       TAPI_DEVICE_BACKLIGHT, /**< back light */
-       TAPI_DEVICE_FRONTLCD, /**< front lcd */
-       TAPI_DEVICE_KEYLED, /**< key led */
-       TAPI_DEVICE_ALERTLED /**< alerted */
-} tapi_device_id_t;
-
-/**
- * @enum tapi_device_status_t
- * This enumeration defines the device status.
- */
-typedef enum {
-       TAPI_DEVICE_OFF = 0x00, /**< off */
-       TAPI_DEVICE_ON, /**< on */
-       TAPI_DEVICE_AUTO /**< auto */
-} tapi_device_status_t;
-
-/**
- * @enum tapi_keypad_t
- * This enumeration defines the keypad requirement.
- */
-typedef enum {
-       KEYPAD_NOT_NEEDED = 0x00, /**< keypad required */
-       KEYPAD_NEEDED /**< keypad not required */
-} tapi_keypad_t;
-
-/**
- * @enum tapi_svcmode_event_t
- * This enumeration defines the service mode event type for test mode.
- */
-typedef enum {
-       TAPI_SVCMODE_EVENT_SVCMODE_START = 0, /**< start */
-       TAPI_SVCMODE_EVENT_SVCMODE_END, /**< end */
-       TAPI_SVCMODE_EVENT_SVCMODE_CHANGE, /** changed */
-       TAPI_SVCMODE_EVENT_SVCMODE_SCREEN_CFG, /**< screen config */
-       TAPI_SVCMODE_EVENT_SVCMODE_DISP_SCREEN, /**< display screen */
-       TAPI_SVCMODE_EVENT_SVCMODE_DEVICE_TEST /**< device test */
-} tapi_svcmode_event_t;
-
-/**
- * @enum TelFactoryDftSmsOption_t
- * This enumeration defines the service mode type for test mode.
- */
-typedef enum {
-       TAPI_FACTORY_DFT_SMS_INBOX, /**< sms inbox */
-       TAPI_FACTORY_DFT_SMS_DRAFTS, /**< sms draft */
-       TAPI_FACTORY_DFT_SMS_OUTBOX, /**< sms outbox */
-       TAPI_FACTORY_DFT_SMS_SENTBOX /**< sent box */
-} TelFactoryDftSmsOption_t;
-
-typedef enum {
-       TAPI_FACTORY_OMISSION_AVOIDANCE_ITEM_WRITE = 0x01,
-       TAPI_FACTORY_OMISSION_AVOIDANCE_ITEM_WRITE_FULL,
-       TAPI_FACTORY_OMISSION_AVOIDANCE_LOG_ERASE_FULL,
-       TAPI_FACTORY_OMISSION_AVOIDANCE_FAILDATA_WRITE,
-       TAPI_FACTORY_OMISSION_AVOIDANCE_FAILDATA_WRITE_FULL,
-} tapi_factory_omission_avoidance_write_cmd_t;
-
-typedef enum {
-       TAPI_FACTORY_OMISSION_AVOIDANCE_ITEM_READ = 0x01,
-       TAPI_FACTORY_OMISSION_AVOIDANCE_ITEM_READ_FULL,
-       TAPI_FACTORY_OMISSION_AVOIDANCE_LOG_READ_FULL,
-       TAPI_FACTORY_OMISSION_AVOIDANCE_FAILDATA_READ,
-       TAPI_FACTORY_OMISSION_AVOIDANCE_FAILDATA_READ_FULL,
-} tapi_factory_omission_avoidance_read_cmd_t;
-
-/**
- * This structure contains service mode end information.
- */
-typedef struct {
-       tapi_service_mode_t service_mode; /**< service mode */
-       tapi_service_mode_reset_t reset; /**< service reset mode */
-} tapi_service_mode_end_t;
-
-/**
- * This structure contains screen configuration information.
- */
-typedef struct {
-       int line_number; /**< line number */
-       tapi_keypad_t keypad; /**< keypad requirement */
-} tapi_screen_config_t;
-
-/**
- * This structure contains string information to display.
- */
-typedef struct {
-       char line; /**< line to display */
-       char string[TAPI_MAX_LCD_WIDTH + 1 ]; /**< string information */
-       int     reverse; /**< reverse mode */
-} tapi_service_string_info_t;
-
-/**
- * This structure contains display information.
- */
-typedef struct
-{
-       char num_of_lines; /**< number of line to display */
-       tapi_service_string_info_t display[ TAPI_MAX_SERVICE_LINES ]; /**< string information */
-} tapi_service_display_info_t;
-
-/**
- * This structure contains device information for test mode.
- */
-typedef struct
-{
-       tapi_device_id_t device_id; /**< device id */
-       tapi_device_status_t device_status; /**< device status */
-} tapi_device_info_t;
-
-/**
- * This structure contains factory dft sms information.
- */
-typedef struct {
-       TelFactoryDftSmsOption_t option; /**< factory dft sms option */
-       char number[SMS_NUM_SIZE]; /**< number */
-       char data[SMS_DATA_SIZE]; /**< data */
- }TelFactoryDftSmsInfo_t;
-
-typedef union {
-       tapi_factory_omission_avoidance_write_cmd_t write_cmd;
-       tapi_factory_omission_avoidance_read_cmd_t read_cmd;
-} tapi_factory_omission_avoidance_cmd_t;
-
-typedef struct {
-       unsigned char test_id;
-       unsigned char test_result;
-} tapi_factory_omission_avoidance_data_t;
-
-typedef struct {
-       tapi_factory_omission_avoidance_cmd_t cmd;
-       unsigned int data_cnt;
-       tapi_factory_omission_avoidance_data_t data[MAX_FACTORY_OMISSION_AVOIDANCE_DATA_CNT];
-} tapi_factory_omission_avoidance_info_t;
-
-/**
- *
- * @brief  This function is invoked to start service mode.
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  svc_mode, test_sub
- * -  svc_mode, test_sub. refer #tapi_service_mode_t, #tapi_test_mode_sub_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-TapiResult_t tel_start_svcmode(tapi_service_mode_t svc_mode, tapi_test_mode_sub_t test_sub);
-
-/**
- *
- * @brief  This function is invoked to end service mode.
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  svc_mode
- * -  svc_mode. refer #tapi_service_mode_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_end_svcmode(tapi_service_mode_t svc_mode);
-
-/**
- *
- * @brief  This function is invoked to process key code in service mode.
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  key_code
- * -  key_code.
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_send_svcmode_keycode(char key_code);
-
-/**
- *
- * @brief  This function is invoked to dump cp debug.
- *
- * @par Sync (or) Async:
- *  This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param  [in]  type
- * -  cp dump type. refer #tapi_service_mode_debug_cp_dump_t
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- * - None.
- *
- * @post
- * - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- *  External Apps.
- *
- */
-int tel_request_svcmode_dump(tapi_service_mode_debug_cp_dump_t type);
-
-/**
- * @brief  This function is used to indicate start factory process to modem,
- * Telephont will send Get operation to modem to get the items from Modem.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param void
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.(Current, Launcher is)
- *
- */
-int tel_start_imei_process(void);
-
-/**
- * @brief  This function is used to Indicate result for comparison item between PDA and Modem.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param nItemID, bResult
- * - Index of ItemID and Result after comparison.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_compare_imei_item(unsigned char nItemID, unsigned char bResult);
-
-/**
- * @brief  This function is used in factory process omission avoidance.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param
- * - cmd : cmd type
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_get_factory_omission_avoidance(tapi_factory_omission_avoidance_read_cmd_t cmd);
-
-/**
- * @brief  This function is used in factory process omission avoidance.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param
- * - info : comman type, test id, test result
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- */
-int tel_set_factory_omission_avoidance(tapi_factory_omission_avoidance_info_t *info);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*_ITAPI_SERVICE_MODE_H_*/
-
-/**
- * @}
- */
diff --git a/include/tapi/ITapiSat.h b/include/tapi/ITapiSat.h
deleted file mode 100644 (file)
index 8d91522..0000000
+++ /dev/null
@@ -1,391 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
-* @open
-* @ingroup             TelephonyAPI
-* @addtogroup  SAT_TAPI        SAT
-* @{
-*
-* @file ITapiSat.h
-
-     @brief This file serves as a "C" header file defines functions for Tapi Sat Services.\n
-      It contains a sample set of function prototypes that would be required by applications.
-
-      Note: Telephony SAT functionality is message relaying from USIM application to SAT related applications.
- */
-
-#ifndef _ITAPI_SAT_H_
-#define _ITAPI_SAT_H_
-
-#include <TelSat.h>
-#include <TelDefines.h>
-#include <TapiCommon.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
- /**
- * @brief Sends the user choice of the main menu options to the USIM.
- *
- * @par Notes:
- * A set of possible menu options is supplied by the USIM
- * using the proactive command SET UP MENU. Telephony server receives the command
- * and publishes this information.SAT UI application should list the menu when it initially launched.
- * If the user subsequently chooses an option, then SAT UI application replies
- * the command with user's choice using this API.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- * @par Warning:
- * Do not use this function. This function is dedicated to the SAT UI embedded application only.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @param [in] pMenuSelect
- * - #TelSatMenuSelectionReqInfo_t contains information like which SAT menu item has been selected or whether Help is required.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated is TAPI_EVENT_SAT_MENU_SELECTION_CNF and the Asynchronous return status is indicated by #TelSatEnvelopeResp_t.
- *
- * @pre
- *  - This function supposed to be called after getting TAPI_EVENT_SAT_SETUP_MENU_IND event from telephony server\n
- *
- * @post
- *  - None
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * SAT-UI
- *
- * @see tel_get_sat_main_menu_info
- *
- * @code
- * #include <ITapiSat.h>
- * int ret_status =0;
- * int pRequestID=0;
- * TelSatMenuSelectionReqInfo_t selected_menu;
- * selected_menu.itemIdentifier = '1'; //selected menu num
- * selected_menu.bIsHelpRequested = 0;
- * ret_status = tel_select_sat_menu(&selected_menu, &pRequestId);
- * @endcode
- *
- * @remarks None
- *
- *
- */
-/*================================================================================================*/
-int tel_select_sat_menu(const TelSatMenuSelectionReqInfo_t* pMenuSelect, int* pRequestId);
-
- /**
- * @brief  Download SAT events to USIM
- *
- * @par Notes:
- * A set of events for the terminal to monitor can be supplied by the USIM using the proactive command SET UP EVENT
- * LIST. If the USIM has sent this command, and an event which is part of the list subsequently occurs, the terminal
- * informs the USIM using this function, relevant for that event.
- * If USIM commands to monitor a browser termination event, the SAT-UI application has to call this function.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- * @par Warning:
- * Do not use this function. This function is dedicated to the SAT UI embedded application only.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @param [in] pEventData
- * - #TelSatEventDownloadReqInfo_t contains the necessary parameters like event type and information associated with it.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated is TAPI_EVENT_SAT_EVENT_DOWNLOAD_CNF and the Asynchronous return status is indicated by #TelSatEnvelopeResp_t.
- *
- * @pre
- *  - A SET UP EVENT LIST proactive command supplies a set of event to monitor.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * SAT-UI
- *
- * @see None
- *
- * @code
- * #include <ITapiSat.h>
- * int ret_status =0;
- * int pRequestID=0;
- * TelSatEventDownloadReqInfo_t pEventData;
- * pEventData.eventDownloadType = TAPI_EVENT_SAT_DW_TYPE_IDLE_SCREEN_AVAILABLE;
- * pEventData.u.bIdleScreenAvailable = 1; //event occur or not
- * ret_status = tel_download_sat_event(&pEventData, &pRequestId);
- * @endcode
- *
- * @remarks None
- *
- *
- */
-/*================================================================================================*/
-int tel_download_sat_event(const TelSatEventDownloadReqInfo_t*  pEventData, int* pRequestId);
-
- /**
- * @brief  Send the UI display status of the alpha identifier of a specific proactive command to Telephony Server.
- *
- * When SAT-UI receives a proactive command, SAT-UI should draw a UI for relevant command.
- * As it completes , SAT-UI inform USIM with this function. Afterwards, USIM is getting ready to send another commands.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- *
- * @par Warning:
- * Do not use this function. This function is dedicated to the SAT UI embedded application only.
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @param [in] commandId
- * - Specific proactive command id from the Application
- *
- * @param [in] status
- * - #TelSatUiDisplayStatusType_t contain display status(SUCCESS/FAIL).
- *
- * @par Async Response Message:
- * - None.
- *
- * @pre
- *  - Display request for the alpha identifier of a Proactive Command should be sent by Telephony Server.
- *
- * @post
- *  - If the display status is SUCCESS Telephony Server sends a request to application for Proactive Command Execution.
- *  - If the display status is FAIL Telephony Server sends Terminal Response for the Proactive Command.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * SAT-UI
- *
- * @see None
- *
- * @code
- * #include <ITapiSat.h>
- * int commandId = 1; //this value should be server given value
- * ret_status = 0;
- * ret_status = tel_send_ui_display_status(1, TAPI_SAT_DISPLAY_SUCCESS);
- * @endcode
- *
- * @remarks None
- *
- *
- */
-/*================================================================================================*/
-int tel_send_ui_display_status(int commandId, TelSatUiDisplayStatusType_t status);
-
- /**
- * @brief  This function sends the UI User confirmation data for a specific Proactive Command to the Telephony Server.
- *
- * In case that the proactive commands need user response, SAT-UI can send it using this function.
- * The response can be 'OK', 'Cancel', 'Move Back' and 'End Session'. Upon this response, USIM can send
- * a proactive command subsequently to indicate next UI action.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- *
- * @par Warning:
- * Do not use this function. This function is dedicated to the SAT UI embedded application only.
- *
- * @par Sync (or) Async:
- * This is a synchronous API.
- *
- *@param [in] pUserConfirmData
- * -#TelSatUiUserConfirmInfo_t contains Specific user confirmation data.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User Confirmation request for a specific Proactive Command should be sent to application by Telephony Server.
- *
- * @post
- *  - If the User Confirmation is positive Telephony Server sends a request to application for Proactive Command Execution.
- *  - If the User Confirmation is negative Telephony Server sends Terminal Response for the Proactive Command.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * SAT-UI
- *
- * @see None
- *
- * @code
- * #include <ITapiSat.h>
- * int ret_status =0;
- * TelSatUiUserConfirmInfo_t cfm_data;
- * cfm_data.commandId = '1'; //this value should be server given value
- * cfm_data.commandType = TAPI_SAT_CMD_TYPE_SETUP_CALL;
- * cfm_data.keyType = TAPI_SAT_USER_CONFIRM_YES;
- * ret_status = tel_send_sat_ui_user_confirm(&cfm_data);
- * @endcode
- *
- * @remarks None
- *
- *
- */
-/*================================================================================================*/
-int tel_send_sat_ui_user_confirm(TelSatUiUserConfirmInfo_t * pUserConfirmData);
-
- /**
- * @brief  This function provides SAT(Sim Application toolkit) Main Menu information for SAT-UI.
- *
- * Once the USIM supplies the SET UP MENU proactivae command, telephony server not only publish
- * TAPI_EVENT_SAT_SETUP_MENU_IND event but also caches the menu information.
- * The SAT-UI applicatoin can get the menu list using this function.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- *
- * @par Warning:
- * Do not use this function. This function is dedicated to the SAT UI embedded application only.
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @param [out] pMainMenu
- * - #TelSatSetupMenuInfo_t contain all menu related information which are required like menu title, icon, item count, etc.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - When SAT SIM is inserted. we can get meaningful data. without SAT SIM, Null is returned
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * SAT-UI
- *
- * @see tel_select_sat_menu
- *
- * @code
- * #include <ITapiSat.h>
- * int ret_status =0;
- * TelSatSetupMenuInfo_t menu; //this struct will be pull up with SIM menu info
- * ret_status = tel_get_sat_main_menu_info(&menu);
- * @endcode
- *
- * @remarks None
- *
- *
- */
-/*================================================================================================*/
-int tel_get_sat_main_menu_info(TelSatSetupMenuInfo_t* pMainMenu);
-
- /**
- * @brief  This API provides the Operation result(s) for the Proactive Command execution by the Application(s) to the Telephony Server.
- *
- * The USIM commands the terminal to do some predefined action, such as sending short message,
- * making a voice call, launching an Internet browser and so on. Those actions are defined by 3GPP TS31.111.
- * Once a application executes the requested action by USIM, it reports the operation result to USIM using this function.
- *
- * This function makes Dbus method call to Telephony Sever and gets immediate feedback.
- *
- * @par Warning:
- * Do not use this function. This function is dedicated to the SAT UI embedded application only.
- **
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @param [out] pAppRetInfo
- * - #TelSatAppsRetInfo_t contains execution result of a specific proactive command by application.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - Proactive Command execution request should be sent by Telephony Server to SAT related applications.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embeded applications which are predefined by 3GPP TS31.111
- *
- * @see None
- *
- * @code
- * #include <ITapiSat.h>
- * int ret_status =0;
- * TelSatAppsRetInfo_t app_ret;
- * app_ret.commandType = TAPI_SAT_CMD_TYPE_SETUP_CALL;
- * app_ret.commandId = 1; //this value should be server given value
- * app_ret.appsRet.setupCall.resp = TAPI_SAT_R_SUCCESS;
- * ret_status = tel_send_sat_app_exec_result(&app_ret);
- * @endcode
- *
- * @remarks None
- *
- *
- */
-/*================================================================================================*/
-int tel_send_sat_app_exec_result(TelSatAppsRetInfo_t* pAppRetInfo);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_SAT_H_ */
-
-/**
- * @}
- */
diff --git a/include/tapi/ITapiSim.h b/include/tapi/ITapiSim.h
deleted file mode 100644 (file)
index 03f6084..0000000
+++ /dev/null
@@ -1,2763 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
-* @open
-* @ingroup             TelephonyAPI
-* @addtogroup  SIM_TAPI        SIM
-* @{
-*
-* @file ITapiSim.h
-
-     @brief This file serves as a "C" header file defines functions for Tapi SIM Services.\n
-      It contains a sample set of function prototypes that would be required by applications.
-
-*/
-
-#ifndef _ITAPI_SIM_H_
-#define _ITAPI_SIM_H_
-
-#include <TelSim.h>
-#include <TelUtility.h>
-#include <TelDefines.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
-* @brief  This API is used to get SIM Card Initialization status and SIM Card Identification.
-* Most of modules which require SIM data should check SIM status before using it definitely.
- *
-* @par Sync (or) Async:
-* This is a Synchronous API.
-*
-* @par Important Notes:
-* - Card Identification value is available in TAPI_SIM_STATUS_SIM_INIT_COMPLETED case only.
-*
-* @warning
-* - None.
-*
-* @param [out] sim_status
-* - This parameter returns SIM initialization status from Telephony server boot up time.
-* First, You can find sim existance if returned value are not in TAPI_SIM_STATUS_CARD_NOT_PRESENT and TAPI_SIM_STATUS_CARD_REMOVED.
-*
-* @param [out] card_changed
-* - This parameter returns sim card identification value when sim_status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED.
-* - card_changed value just present whether current inserted SIM card differs with previous SIM or not.
-*
-* @par Async Response Message:
-* - None
-*
-* @pre
-*  - None.
-*
-* @post
-*  - None.
-*
-* @return Return Type (int)
-* - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
-* - Negative integer : it provides an error code (Refer #TapiResult_t)
-*
-* @par Prospective Clients:
-* External Apps.
-*
-* @see None
-*
-* @code
-* #include <ITapiSim.h>
-*
-* int err_code = TAPI_API_SUCCESS;
-* TelSimCardStatus_t status = 0x00;
-* int b_card_changed = 0;
-*
-* // GET SIM INIT INFORMATION
-* err_code = tel_get_sim_init_info(&status, &b_card_changed);
-*
-* @endcode
-*
-* @remarks None
-*
-*/
-/*================================================================================================*/
-int tel_get_sim_init_info(TelSimCardStatus_t *sim_status, int *card_changed);
-
-
-/**
- * @brief  This function performs PIN1/PIN2/SIM LOCK verification. This function performs PIN verification based on the pin type passed along with pin data.
- * PIN1 code : The SIM card has its own password is to check access permissions
- * SIM Lock code : Between Device and the SIM card using a SIM password is only available on certain handsets to be used to authorize.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - Based on Pin status (PIN/PUK/SIM LOCK) is blocked, an unsolicited event TAPI_EVENT_SIM_STATUS_IND is published to Applications on Device boot time.
- * - if pin status is PUK, you should use #tel_verify_sim_puks instead of this API.
- *
- * @warning
- * - None.
- *
- * @param[in] pin_data
- * -PIN code, entered by the user. you should make all parameters.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_VERIFY_SEC_CNF  and the event data is #TelSimSecResult_t.
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- * If returned status is TAPI_SIM_PIN_OPERATION_SUCCESS, Verification successes.
- * If returned status is TAPI_SIM_PIN_INCORRECT_PASSWORD, Verification fails and you can check retry count by using event data  #TelSimSecResult_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- * - This API is used when #TelSimCardStatus_t is TAPI_SIM_STATUS_SIM_PIN_REQUIRED or TAPI_SIM_STATUS_SIM_LOCK_REQUIRED on boot time.
- * - Currently there`s no proper scenario for PIN2 verification by using this API.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- *
- * int request_id = 0;
- * err_code = TAPI_API_SUCCESS; // 0
- * int length = TAPI_SIM_PIN_LENGTH+1;
- * char init_pin_val[length] ;
- *
- * strcpy(init_pin_val, PIN1_NORMAL);
- *
- * TelSimSecPw_t pin_data = {0,};
- *
- * pin_data.type = TAPI_SIM_PTYPE_PIN1;
- * pin_data.pw_len = strlen(init_pin_val);
- *
- * printf("pw_len[%d]", pin_data.pw_len);
- *
- * pin_data.pw = (char*)malloc(length);
- * memcpy(pin_data.pw,init_pin_val,length);
- *
- * err_code = tel_verifiy_sim_pins(&pin_data, &request_id);
- *
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_verifiy_sim_pins(const TelSimSecPw_t *pin_data, int *req_id);
-
-
-/**
- * @brief  This function performs unblock PIN1/PIN2 operation based on PUK information passed along with
- * unblock information entered by the user.
- * If you get sim card status(TAPI_SIM_STATUS_SIM_PUK_REQUIRED) by using #tel_get_sim_init_info on boot time
- * or (TAPI_SIM_PIN_STATUS_BLOCKED) by using #tel_get_sim_security_status after normal initialization for specific operation,
- * you may unblock PIN1/PIN2.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - Based on Pin status (PIN1/PIN2) is blocked, an unsolicited event TAPI_EVENT_SIM_STATUS_IND
- * is published to Applications on boot time also.
- *
- * @warning
- * - If you fail to unblock PIN til given retry count, Your SIM card be permanent block status.
- *
- * @param[in] puk_data
- * -Specifies unblocking PIN password #TelSimSecPw_t
- *
- * @param[in] new_pin_data
- * -Specifies PIN password which you want to use after unblocking operation #TelSimSecPw_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_VERIFY_PUK_CNF  and the event data is #TelSimSecResult_t.
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- * If returned status is TAPI_SIM_PIN_OPERATION_SUCCESS, Verification successes.
- * If returned status is TAPI_SIM_PUK_INCORRECT_PASSWORD, Verification fails and you can check retry count by using event data  #TelSimSecResult_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - 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
- *  - After Success on unblocking for PIN1 or PIN2, each pin check facility is enabled even if previous facility is disabled.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- *
- * int request_id = 0;
- * err_code = TAPI_API_SUCCESS; // 0
- * int length = TAPI_SIM_PIN_LENGTH+1;
- *
- * char init_pin_val[length];
- * char init_puk_val[length];
- *
- * strcpy(init_pin_val, PIN1_NORMAL);
- * strcpy(init_puk_val, PUK1_NORMAL);
- *
- * TelSimSecPw_t puk_data = {0,};
- * TelSimSecPw_t new_pin_data = {0,};
- *
- * puk_data.type = TAPI_SIM_PTYPE_PUK1;   // 0x00
- * puk_data.pw_len = length;
- * puk_data.pw_len = strlen(init_puk_val);
- * printf("pw_len[%d]", puk_data.pw_len);
- * memcpy(puk_data.pw,init_pin_val,length);
- *
- * new_pin_data.type = TAPI_SIM_PTYPE_PIN1;   // 0x00
- * new_pin_data.pw_len = strlen(init_pin_val);
- * printf("pw_len[%d]", new_pin_data.pw_len);
- * new_pin_data.pw = (char*)malloc(length);
- * memcpy(new_pin_data.pw,init_pin_val,length);
- *
- * err_code = tel_verify_sim_puks(&puk_data, &new_pin_data, &request_id);
- *
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_verify_sim_puks(const TelSimSecPw_t *puk_data, const TelSimSecPw_t *new_pin_data, int *req_id);
-
-
-/**
- * @brief  This function changes PIN1/PIN2 code based on the pin type passed along with old pin data and new pin data.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - User should fill up pin type equally both old_pin and new_pin.
- *
- * @warning
- * - None.
- *
- * @param[in] old_pin
- * -Old pin code, entered by the user. #TelSimSecPw_t
- *
- * @param[in] new_pin
- * -New pin code, entered by the user. #TelSimSecPw_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_CHANGE_PINS_CNF  and the event data is #TelSimSecResult_t.
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- * If returned status is TAPI_SIM_PIN_OPERATION_SUCCESS, Change operation finish successfully.
- * If returned status is TAPI_SIM_PIN_INCORRECT_PASSWORD, Change operation fails and you can check retry count by using event data  #TelSimSecResult_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - PIN which user want to change check facility should be enabled.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- *
- * int request_id = 0;
- * err_code = TAPI_API_SUCCESS; // 0
- * int length = TAPI_SIM_PIN_LENGTH+1;
- * char init_old_pin_val[length] ;
- * char init_new_pin_val[length];
- *
- * memset(&init_old_pin_val, 0 , length);
- * memset(&init_new_pin_val, 0 , length);
- *
- * TelSimSecPw_t old_pin = {0,};
- * TelSimSecPw_t new_pin = {0,};
- *
- * strcpy(init_old_pin_val, PIN1_ORG);
- *
- * old_pin.type = TAPI_SIM_PTYPE_PIN1;
- * old_pin.pw_len = strlen(init_old_pin_val);
- * printf("pw_len[%d]", old_pin.pw_len);
- * old_pin.pw = (char*)malloc(length);
- * memcpy(old_pin.pw,init_old_pin_val,length);
- *
- * strcpy(init_new_pin_val, PIN1_NEW);
- *
- * new_pin.type = TAPI_SIM_PTYPE_PIN1;
- * new_pin.pw_len = strlen(init_new_pin_val);
- * printf("pw_len[%d]", new_pin.pw_len);
- * new_pin.pw = (char*)malloc(length);
- * memcpy(new_pin.pw,init_new_pin_val,length);
- *
- * err_code = tel_change_sim_pins(&old_pin, &new_pin, &request_id);
- *
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_change_sim_pins(const TelSimSecPw_t *old_pin , const TelSimSecPw_t *new_pin, int *req_id);
-
-
-/**
- * @brief  This function gets the current PIN1/PIN2/SIM LOCK status.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param[in] type
- * - Security type user wants to get status #TelSimPinType_t
- *
- * @param [out] status
- * This parameter returns the current status about user wants. #TelSimPinStatus_t
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * TelSimPinType_t type = TAPI_SIM_PTYPE_PIN1; //pin type
- * TelSimPinStatus_t status = -1;
- * err_code = tel_get_sim_security_status(type, &status);
- *
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_security_status(TelSimPinType_t type, TelSimPinStatus_t *status);
-
-
-/**
- * @brief  This function disables the PIN1/SIM Lock check facility based on the Pin type and pin data passed from Application.
- * PIN1 code : The SIM card has its own password is to check access permissions
- * SIM Lock code : Between Device and the SIM card using a SIM password is only available on certain handsets to be used to authorize.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -For PIN2, disabling applies only for 3G USIMs and when PIN2 in NOT mapped to CHV2 of GSM application.
- * -PIN2 disabling operation is generally not used.
- *
- * @warning
- * - None.
- *
- * @param[in] sec_data
- * -User entered PIN disable data and pin type. #TelSimSecPw_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_DISABLE_SEC_CNF  and the event data is #TelSimSecResult_t.
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- * If returned status is TAPI_SIM_PIN_OPERATION_SUCCESS, disabling operation finish successfully.
- * If returned status is TAPI_SIM_PIN_INCORRECT_PASSWORD, disabling operation fails and you can check retry count by using event data  #TelSimSecResult_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - Checking Facility which user wants to disable should be enabled status.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * TelSimSecPw_t sec_data = {0,};
- * sec_data.type = TAPI_SIM_PTYPE_PIN1;   // 0x00
- * sec_data.pw_len = 4; // current pw is 4 digit
- * sec_data.pw = (char*)malloc(length);
- * memcpy(sec_data.pw,"1111",length);
- * err_code = tel_disable_sim_security(&sec_data, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_disable_sim_security(TelSimSecPw_t *sec_data, int *req_id);
-
-
-/**
- * @brief  This function enables the PIN1/SIM Lock check facility based on the Pin type and pin data passed from Application.
- * PIN1 code : The SIM card has its own password is to check access permissions
- * SIM Lock code : Between Device and the SIM card using a SIM password is only available on certain handsets to be used to authorize.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param[in] sec_data
- * -User entered PIN enable data and pin type. #TelSimSecPw_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_ENABLE_SEC_CNF  and the event data is #TelSimSecResult_t.
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- * If returned status is TAPI_SIM_PIN_OPERATION_SUCCESS, enabling operation finish successfully.
- * If returned status is TAPI_SIM_PIN_INCORRECT_PASSWORD, enabling operation fails and you can check retry count by using event data  #TelSimSecResult_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - Checking Facility which user wants to enable should be disabled status.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * TelSimSecPw_t sec_data = {0,};
- * sec_data.type = TAPI_SIM_PTYPE_PIN1;   // 0x00
- * sec_data.pw_len = 4; // current pw is 4 digit
- * sec_data.pw = (char*)malloc(length);
- * memcpy(sec_data.pw,"1111",length);
- * err_code = tel_enable_sim_security(&sec_data, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_enable_sim_security(TelSimSecPw_t *sec_data, int *req_id);
-
-
-/**
- *
- * @brief  This API is used to get lock personalisation information like current network lock status or network subset lock and so on.
- * Refer '3GPP TS 22.022 - Personalisation of Mobile Equipment (ME)' for more detail.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - This functionality should be used only Administrator coverage.
- *
- * @warning
- * - None.
- *
- * @param[in] type
- * -personalisation type
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated is TAPI_EVENT_SIM_PERS_STATUS_CNF  and the event data is #TelSimPersStatus_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimPersType_t type = 0;
- * type = TAPI_SIM_PERS_NET; //network lock
- * err_code = tel_get_sim_personalization_status(type, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_personalization_status(TelSimPersType_t type, int *req_id);
-
-
-/**
- * @brief  This API is used to disable personalisation of network, network subset, corporate, service provider personalisation.
- * Refer '3GPP TS 22.022 - Personalisation of Mobile Equipment (ME)' for more detail.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - This functionality should be used only Administrator coverage.
- *
- * @warning
- * - None.
- *
- * @param[in] pers_data
- * -Personalisation information passed. #TelSimPersPw_t
- *
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated is TAPI_EVENT_SIM_DISABLE_PERS_CNF.
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - Checking Facility which user wants to disable should be enabled status.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimPersPw_t lock_pers = {0,};
- * lock_pers.type = TAPI_SIM_PERS_NET; //network lock case
- * lock_pers.pw_len =  8; //control key
- * lock_pers.pw = (char*)malloc(8);
- * memcpy(lock_pers.pw,"11111111",length);    //temp value
- * err_code = tel_disable_sim_personalization(&lock_pers, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_disable_sim_personalization(TelSimPersPw_t *pers_data, int *req_id);
-
-
-/**
- * @brief  This API is used to enable personalisation of network, network subset, corporate, service provider personalisation.
- * Refer '3GPP TS 22.022 - Personalisation of Mobile Equipment (ME)' for more detail.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - This functionality should be used only Administrator coverage.
- *
- * @warning
- * - None.
- *
- * @param[in] pers_data
- * -Personalisation information passed. #TelSimPersPw_t
- *
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated is TAPI_EVENT_SIM_ENABLE_PERS_CNF.
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - Checking Facility which user wants to enable should be disabled status.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimPersPw_t lock_pers = {0,};
- * lock_pers.type = TAPI_SIM_PERS_NET; //network lock case
- * lock_pers.pw_len =  15; //control key
- * lock_pers.pw = (char*)malloc(15);
- * memcpy(lock_pers.pw,"111111111111111",length);    //temp value
- * err_code = tel_enable_sim_personalization(&lock_pers, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_enable_sim_personalization(TelSimPersPw_t *pers_data, int *req_id);
-
-
-/**
- * @brief  This function is used to get current SIM Phonebook mode whether FDN or not(ADN).
- * SIM phonebook ADN(or 3G Phonebook) enabled by default and  the FDN can be used if the user selects FDN activation.
- * ADN and FDN also couldn`t activate the same time.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param [out] fdn_status
- * This parameter returns the current FDN status whether enabled or disabled.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int fdn_status = 0 ;
- * err_code = tel_get_sim_fdn_status(&fdn_status); // you can find in fdn_status variable
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_fdn_status(int *fdn_status);
-
-
-/**
- * @brief  This function disables FDN phonebook mode.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *
- * @warning
- * - None.
- *
- * @param[in] pin2
- * -User entered pin2 data.
- *
- * @param[in] pin2_len
- * -User entered a length of pin2 data.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF  and event data associated with this event.#TelSimSecResult_t
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - FDN mode sould be enabled.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimSecPw_t sec_data = {0,};
- * sec_data.type = TAPI_SIM_PTYPE_PIN2;        // pin2
- * sec_data.pw_len = 4;
- * sec_data.pw = (char*)malloc(4);
- * memcpy(sec_data.pw,"2222",length); //temp value
- * err_code = tel_disable_sim_fdn(sec_data.pw, &sec_data.pw_len, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_disable_sim_fdn(const unsigned char *pin2, int *pin2_len, int *req_id);
-
-
-/**
- * @brief  This function enables FDN phonebook mode.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- *
- * @warning
- * - None.
- *
- * @param[in] pin2
- * -User entered pin2 data.
- *
- * @param[in] pin2_len
- * -User entered a length of pin2 data.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF  and event data associated with this event.#TelSimSecResult_t
- * Asynchronous return status is indicated by #TelSimPinOperationResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - FDN mode sould be disabled.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimSecPw_t sec_data = {0,};
- * sec_data.type = TAPI_SIM_PTYPE_PIN2;        // pin2
- * sec_data.pw_len = 4;
- * sec_data.pw = (char*)malloc(4);
- * memcpy(sec_data.pw,"2222",length); //temp value
- * err_code = tel_enable_sim_fdn(sec_data.pw, &sec_data.pw_len, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_enable_sim_fdn(const unsigned char *pin2, int *pin2_len, int *req_id);
-
-
-/**
- * @brief  This function provides common interface for accessing SIM data based on USIM generic command in ETSI TS 102 221
- * and 3GPP TS 31.102 Characteristics of the Universal Subscriber Identity Module (USIM) application.
- * Required to operate the terminal by default, the application (call, sms, setting, network and so on) are using the SIM data
- * stored in the Telephony server to the user data, and easy to use their API to provide a separate,
- * but SIM and the user's data is enormous, with some data, the usage of any use to manage all the telephony server is difficult.
- * Therefore, handling the SIM data can provide a common one API.
- * Only this API be specified in the ETSI TS 102 221 of the generic command 'SELECT', 'READ BINARY', 'READ RECORD',
- * 'UPDATE BINARY', 'UPDATE RECORD' command support.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - If you want more generic access, please use #tel_req_sim_apdu
- *
- * @warning
- * - None.
- *
- * @param[in] rsim_data
- * -Different parameters should be filled up according to command type,
- * If user wants to run 'SELECT' command, Only file_id needed. And you can find file type with response data by asynchronous return.
- * If user wants to run 'READ BINARY' command, should fill up parameter like this(p1:offset, p2:offset low, p3:bytes to be read)
- * If user wants to run 'READ RECORD' command, should fill up parameter like this(p1:record num, p2:mode, p3:bytes to be read)
- * If user wants to run 'UPDATE BINARY' command, should fill up parameter like this(p1:offset, p2:offset low, p3:bytes to be updated, data:address of data which will be updated)
- * If user wants to run 'UPDATE RECORD' command, should fill up parameter like this(p1:record num, p2:mode, p3:bytes to be updated, data:address of data which will be updated)
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_RSIM_ACCESS_CNF  and the event data is #TelSimReadFileRaw_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code =0;
- * int request_id = 0;
- * TelSimRSimReq_t rsim = {0,};
- * rsim.file_id = 0x6F60;
- * rsim.rsim_cmd = TAPI_SIM_GET_RESPONSE;
- *
- * // REQUEST SIM ACCESS
- * err_code = tel_req_sim_access((const TelSimRSimReq_t*)&rsim, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sim_access(const TelSimRSimReq_t *rsim_data, int *req_id);
-
-
-/**
- * @brief  This function provides common interface for accessing SIM data based on USIM generic command in ETSI TS 102 221
- * and 3GPP TS 31.102 Characteristics of the Universal Subscriber Identity Module (USIM) application.
- * This API provides only interface to send APDU. User should know well APDU usage.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param[in] rsim_data
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_APDU_CNF  and the event data is #TelSimApduResp_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code =0;
- * int request_id = 0;
- * TelSimApdu_t apdu = {0,};
- * int tmp_apdu[5] = {0xa,5,6,7,8};
- * apdu.apdu_len = 5; //user should check
- * apdu.apdu = apdu;
- *
- * // REQUEST SIM ACCESS
- * err_code = tel_req_sim_apdu((const TelSimRSimReq_t*)&rsim, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sim_apdu(TelSimApdu_t* apdu_data, int *req_id);
-
-
-/**
- * @brief  This function provides common interface to get SIM ATR(Answer To Reset) value.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_ATR_CNF  and the event data is #TelSimAtrResp_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code =0;
- * int request_id = 0;
- *
- * // REQUEST SIM ATR
- * err_code = tel_req_sim_atr(&request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sim_atr(int *req_id);
-
-
-/**
- * @brief  This function is a synchronous API used to get ECC(SIM) or UECC(USIM) data.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param [out] ecc_data
- * This parameter returns the SIM emergency call code information like ecc length, service type etc.
- *
- * @param [out] ecc_count
- * Specifies number of ECC records.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int ecc_rec_count = 0; // count in sim card
- * int err_code = 0;
- * TelSimEccData_t ecc_info = {{{0,}}};
- * err_code = tel_get_sim_ecc(&ecc_info, &ecc_rec_count);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_ecc(TelSimEccData_t *ecc_data, int *ecc_count);
-
-
-/**
- * @brief  This API is used to get the language preference(indication) information.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param [out] sim_language
- * This parameter returns the language preference information.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * TelSimLanguageInfo_t li_info = {0,};
- * err_code = tel_get_sim_language(&li_info); // you can find language info with li_info variable
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_language(TelSimLanguageInfo_t *sim_language);
-
-
-/**
- * @brief  This API is used to update the language preference information to SIM card.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous function.
- *
- * @par Important Notes:
- * - This function update SIM Language information directly and can effect device language setting. Use carefully.
- *
- * @warning
- * - None.
- *
- * @param[in] language
- * This parameter returns the language preference information.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_SET_LANGUAGE_CNF.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimLanguagePreferenceCode_t language = 0x00; //init
- * language = TAPI_SIM_LP_ENGLISH; //language value
- * err_code = tel_set_sim_language(language, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_set_sim_language(TelSimLanguagePreferenceCode_t language, int *req_id);
-
-
-/**
- * @brief  This function is a synchronous API which gets the Card Type whether Card is a SIM or a USIM.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param [out] card_type
- * This parameter returns the SIM card type information like whether it is GSM SIM card or USIM or it is of unknown type.
- *
- *  - TAPI_SIM_CARD_TYPE_UNKNOWN
- *  - TAPI_SIM_CARD_TYPE_GSM
- *  - TAPI_SIM_CARD_TYPE_USIM
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * TelSimCardType_t cardInfo; //unkwon, sim(normally gsm), usim(normally umts)
- * err_code = tel_get_sim_type(&cardInfo);
- *
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_type(TelSimCardType_t *card_type);
-
-
-/**
- * @brief  This function is a synchronous API gets the IMSI information.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - IMSI value is the value that security needs.
- *
- * @warning
- * - None.
- *
- * @param [out] imsi
- * This parameter returns the IMSI information. Refer #TelSimImsiInfo_t
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * TelSimImsiInfo_t sim_imsi_info; // mcc, mnc, msisdn
- * err_code = tel_get_sim_imsi(&sim_imsi_info);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_imsi(TelSimImsiInfo_t* imsi);
-
-
-/**
- * @brief  This function is a synchronous API gets a Unique identification number of the (U)ICC.
- * ICC means Integrated Circuit Card.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - IC Card number value is the value that security needs.
- *
- * @warning
- * - None.
- *
- * @param [out] iccid
- * This parameter returns the IC Card number. Refer #TelSimIccIdInfo_t
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * TelSimIccIdInfo_t icc_data; // this struct consists of number length and number.
- * err_code = tel_get_sim_iccid(&icc_data);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_iccid(TelSimIccIdInfo_t* iccid);
-
-
-/**
- * @brief  This API is used to get the SIM mailbox related data(EF-MBDN, MBDI and CPHS case).
- * this data is required for Mailbox related functionality in handset.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- * @param [out] mbox
- *   - mailbox number information in current inserted SIM card. Refer #TelSimMailboxNumbers_s
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * TelSimMailboxNumbers_s mbox;
- * TapiResult_t err_code = 0;
- * err_code = tel_get_sim_mailbox_info(&mbox);
- * if(err_code == TAPI_API_SUCCESS) {
- *   if(mbox.b_cphs) { //b_cphs means current SIM is for CPHS or not.
- *     printf("Current SIM is CPHS");
- *   } else {
- *     printf("Current SIM is not CPHS but 3GPP");
- *   }
- * } else {
- *   printf("TAPI API FAIL: Error Code [0x%x]",err_code);
- * }
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_mailbox_info(TelSimMailboxNumbers_s *mbox);
-
-/**
- * @brief  This API is used to get the SIM Call forwarding indication related data(EF-CFIS and CPHS case).
- * this data is required for Call forwarding related functionality in handset.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None
- *
- * @param [out] cf
- *  - Callforwarding number information in current inserted SIM card. Refer #TelSimCallForwarding_s
- *  - User should check 'b_cphs' value first before refer union data struct.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None
- *
- * @post
- *  - None
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * TelSimCallForwarding_s cf_data;
- * TapiResult_t err_code = 0;
- * err_code = tel_get_sim_callforwarding_info(&cf_data);
- * if(err_code == TAPI_API_SUCCESS) {
- *   if(cf_data.b_cphs) { //b_cphs means current SIM is for CPHS or not.
- *     printf("Current SIM is CPHS");
- *   } else {
- *     printf("Current SIM is not CPHS but 3GPP");
- *   }
- * } else {
- *   printf("TAPI API FAIL: Error Code [0x%x]",err_code);
- * }
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_callforwarding_info(TelSimCallForwarding_s *cf);
-
-/**
- * @brief  This API is used to get the SIM message waiting indication related data(EF-MWIS and CPHS case).
- * this data is required for Message waiting related functionality in handset.
- *
- * @par Sync (or) Async:
- * This is a synchronous function.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None
- *
- * @param [out] mw
- *  - Message waiting count and type information in current inserted SIM card. Refer #TelSimMessageWaiting_s
- *  - User should check 'b_cphs' value first before refer union data struct.
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *  - None
- *
- * @post
- *  - None
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * TelSimMessageWaiting_s mw_data;
- * TapiResult_t err_code = 0;
- * err_code = tel_get_sim_messagewaiting_info(&mw_data);
- * if(err_code == TAPI_API_SUCCESS) {
- *   if(mw_data.b_cphs) { //b_cphs means current SIM is for CPHS or not.
- *     printf("Current SIM is CPHS");
- *   } else {
- *     printf("Current SIM is not CPHS but 3GPP");
- *   }
- * } else {
- *   printf("TAPI API FAIL: Error Code [0x%x]",err_code);
- * }
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_messagewaiting_info(TelSimMessageWaiting_s *mw);
-
-/**
- * @brief  This API is used to get the SIM CPHS specific data.
- * this data is required for CPHS related functionality in handset.
- *
- * @par Sync (or) Async:
- * This is an Synchronous API.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None
- *
- * @param [out] cphs
- *   - CPHS specific data(CPHS info table, service number, operator name, etc). Refer #TelSimCphsLocalInfo_t
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * TelSimCphsLocalInfo_t cphs_data;
- * TapiResult_t err_code = 0;
- * err_code = tel_get_sim_cphs_info(&cphs_data);
- * if(err_code == TAPI_API_SUCCESS) {
- *   if(cphs_data.b_used) { //b_used means current SIM is for CPHS or not.
- *     printf("Current SIM is CPHS");
- *   } else {
- *     printf("Current SIM is not CPHS but 3GPP");
- *   }
- * } else {
- *   printf("TAPI API FAIL: Error Code [0x%x]",err_code);
- * }
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_cphs_info(TelSimCphsLocalInfo_t *cphs);
-
-
-/**
- * @brief  This API is used to get the SIM MSISDN data. Regarding 3GPP specification, Current value is optional.
- *
- * @par Sync (or) Async:
- * This is an Synchronous API.
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None
- *
- * @param [out] subscriber
- *   - subscriber information. if current SIM card does not have, null string will be returned. Refer #TelSimSubscriberInfo_t
- *
- * @par Async Response Message:
- * - None
- *
- * @pre
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * TelSimSubscriberInfo_t msisdn;
- * TapiResult_t err_code = 0;
- * err_code = tel_get_sim_msisdn(&msisdn);
- * if(err_code == TAPI_API_SUCCESS)
- * {
- *      printf(" ============================================");
- *      printf("name[%s]",msisdn.name);
- *      printf("num[%s]",msisdn.num);
- *      if(msisdn.name == '\0';) //If current SIM does not have, Null string will be returned.
- *              printf("name is null string");
- *
- *      if(msisdn.num == '\0';) //If current SIM does not have, Null string will be returned.
- *              printf("number is null string");
- * }
- * else
- * {
- *      printf("TAPI API FAIL: Error Code [0x%x]",err_code);
- * }
- *
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_msisdn(TelSimSubscriberInfo_t *subscriber);
-
-/**
- * @brief  This function is used to get current inserted SIM phonebook init status, available phonebook list and first valid index in case of FDN, ADN, 3G phonebook.
- *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
- *
- * @par Sync (or) Async:
- * This is an synchronous API.
- *
- * @par Important Notes:
- * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
- * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
- * pb_list and first_index value are available at init_completed status is '1' only.
- *
- * @warning
- * - None.
- *
- * @param [out] init_completed
- *   - phonebook init status. '0' is not init, '1' is init complete to use.
- *
- * @param [out] pb_list
- *   - available SIM phonebook list. This value is valid in phonebook init complete case.
- *
- * @param [out] first_index
- *   - first valid index to use.  only ADN, 3G phonebook and FDN case. This value is valid in phonebook init complete case.
- *
- * @par Async Response Message:
- * - None.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int valid_index = 0; // usim or sim adn first valid index
- * TelSimPbList_t pb_list = {0,};
- * int pPbInitCompleted = 0; // init or not
- *
- * // GET SIM PHONEBOOK INIT INFORMATION
- * err_code = tel_get_sim_pb_init_info(&pPbInitCompleted, &pb_list, &valid_index);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_pb_init_info(int *init_completed, TelSimPbList_t *pb_list, int *first_index);
-
-
-/**
- * @brief  This API is used to get number of used records and total records in specific SIM phonebook type.
- *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
- * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
- *
- * @warning
- * - None.
- *
- *
- * @param[in] pb_type
- * -Different storage types to be selected in SIM. #TelSimPbFileType_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF  and the event data is #TelSimPbStorageInfo_t.
- * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimPbFileType_t storage_type = 0x00;
- * storage_type = TAPI_SIM_PB_3GSIM; // usim phonebook
- * err_code = tel_get_sim_pb_count(storage_type, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_pb_count(TelSimPbFileType_t pb_type, int* req_id);
-
-
-/**
- * @brief  This API is used to get max text length and max number length supported by SIM phone book elementary file.
- *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - The max number length includes the storage space provided by the corresponding EXT file for a given Dialling Number file.
- * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
- * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
- *
- * @warning
- * - None.
- *
- * @param[in] pb_type
- * -Different storage types to be selected in SIM. #TelSimPbFileType_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF  and the event data is #TelSimPbEntryInfo_t.
- * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimPbFileType_t storage_type = 0x00;
- * storage_type = TAPI_SIM_PB_3GSIM; // usim phonebook
- * err_code = tel_get_sim_pb_meta_info(storage_type, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_pb_meta_info(TelSimPbFileType_t pb_type, int* req_id);
-
-
-/**
- * @brief  This API is used to get SIM 3G phonebook supported EFs like ANR, SNE, GRP, EMAIL etc and corresponding EFs max text length, number length and size.
- *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
- * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
- *
- * @warning
- * - None.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * - The event associated is TAPI_SIM_EVENT_PB_3G_CAPABILITY_INFO_CNF  and the event data is #TelSimPbCapabilityInfo_t.
- * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * err_code = tel_get_sim_pb_3g_meta_info(&request_id); // you can find result by receiving asynch event response
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_get_sim_pb_3g_meta_info(int *req_id);
-
-
-/**
- * @brief  This API is used to read SIM phone book entry information from given storage type.
- *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - The index ranges from 1 through to a maximum of 254 for a Linear fixed file and 255 for a cyclic file.
- * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
- * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
- *
- * @warning
- * - None.
- *
- * @param[in] pb_type
- * -Different storage types to be selected in SIM. ##TelSimPbFileType_t
- *
- * @param[in] index
- * -Index for accessing the SIM data.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_PB_ACCESS_READ_CNF  and the event data is #TelSimPbRecordData_t.
- * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * unsigned short index = 1;
- * TelSimPbFileType_t storage_type = 0x00;
- * storage_type = TAPI_SIM_PB_3GSIM; // usim phonebook
- * err_code = tel_read_sim_pb_record(storage_type, index, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_read_sim_pb_record(TelSimPbFileType_t pb_type, unsigned short index, int *req_id );
-
-
-/**
- * @brief  This API is used to add or edit SIM phone book record entry information.
- *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
- * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
- *
- * @warning
- * - None.
- *
- * @param[in] req_data
- * -phonebook data which will be updated or added. #TelSimPbRecordData_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_PB_UPDATE_CNF  and the event data is #TelSimPbUpdateResp_t.
- * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * unsigned short index = 1;
- * TelSimPbRecordData_t data;
- * data.StorageFileType  = TAPI_SIM_PB_3GSIM; // usim phonebook
- * data.Index  = 1; // index which will be updated
- * data.NextIndex  = 0;
- * //data.ContactInfo will be added
- * err_code = tel_update_sim_pb_record(&data, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_update_sim_pb_record(const TelSimPbRecordData_t *req_data, int *req_id );
-
-
-/**
- * @brief  This API is used to delete a SIM phonebook record.
- *     Access to this API is limited to in-house application and we recommend you use phonebook-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - The index ranges from 1 through to a maximum of 254 for a Linear fixed file and 255 for a cyclic file.
- * - We recommend to use phonebook-engine APIs for handling phonebook(including SIM phonebook).
- * If user uses SIM phonebook related APIs directly, it can break device phonebook consistency because all phonebook information managed in phonebook-engine.
- *
- * @warning
- * - None.
- *
- * @param[in] pb_type
- * -Different storage types to be selected in SIM. #TelSimPbFileType_t
- *
- * @param[in] index
- * -Index of the record to be deleted.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * The event associated is TAPI_EVENT_SIM_PB_DELETE_CNF  and the event data is #TelSimPbUpdateResp_t.
- * Asynchronous return status is indicated by #TelSimPbAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * unsigned short index = 1;
- * TelSimPbFileType_t storage_type = 0x00;
- * storage_type = TAPI_SIM_PB_3GSIM; // usim phonebook
- * err_code = tel_delete_sim_pb_record(storage_type, index, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_delete_sim_pb_record(TelSimPbFileType_t pb_type, unsigned short index, int *req_id );
-
-
-/**
- * @brief  This function is used to make a connection request to SIM
- *     Access to this API is limited to in-house application and we recommend you use bluetooth-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend user does not use SAP related APIs directly. Our SAP APIs are provided as interface between BT-engine and Modem Plugin.
- * So without BT-engine, you may not get proper operation with these SAP APIs.
- *
- * @warning
- * - None.
- *
- * @param[in] req_data
- * - This input has the SAP message request to connect. #TelSimSapConnect_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_SAP_CONNECT_CNF  and the event data is #TelSimSapConnect_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimSapConnect_t con_req = {0,};
- * con_req.MsgId = TAPI_SIM_SAP_CONNECT_REQ;   // connection req id
- * con_req.MaxMsgSize = 10; //temp for testing only - not clear
- * err_code = tel_req_sap_connection(&con_req, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sap_connection( TelSimSapConnect_t *req_data, int *req_id);
-
-
-/**
- * @brief  This function is used to get connection status information
- *     Access to this API is limited to in-house application and we recommend you use bluetooth-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend user does not use SAP related APIs directly. Our SAP APIs are provided as interface between BT-engine and Modem Plugin.
- * So without BT-engine, you may not get proper operation with these SAP APIs.
- *
- * @warning
- * - None.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_SAP_CONNECT_STATUS_CNF  and the event data is #TelSimSapConnectionStatus_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * err_code = tel_req_sap_connection_status(&request_id);      //you can find status value by receiving async event value
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sap_connection_status( int *req_id);
-
-
-/**
- * @brief  This function is used to get ATR request from SIM
- *     Access to this API is limited to in-house application and we recommend you use bluetooth-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend user does not use SAP related APIs directly. Our SAP APIs are provided as interface between BT-engine and Modem Plugin.
- * So without BT-engine, you may not get proper operation with these SAP APIs.
- *
- * @warning
- * - None.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_SAP_TRANSFER_ATR_CNF  and the event data is #TelSimSapAtrInfo_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * err_code = tel_req_sap_transfer_atr(&request_id);   //you can find transfer atr request resut with async event
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sap_transfer_atr( int *req_id);
-
-
-/**
- * @brief  This function is used to transfer APDU to SIM
- *     Access to this API is limited to in-house application and we recommend you use bluetooth-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend user does not use SAP related APIs directly. Our SAP APIs are provided as interface between BT-engine and Modem Plugin.
- * So without BT-engine, you may not get proper operation with these SAP APIs.
- *
- * @warning
- * - None.
- *
- * @param[in] apdu_data
- * - This input has the APDU data to be passed to SIM card. #TelSimSapApduData_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_SAP_TRANSFER_APDU_CNF  and the event data is #TelSimSapApduData_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * int file_id = TAPI_SIM_EFILE_ICCID;
- * TelSimSapApduData_t apdu_data;      // for selecting EF ICCID
- * apdu_data.ApduLength = 7;
- * apdu_data.Apdu[0] = 0xA0; // class
- * apdu_data.Apdu[1] = 0xA4; // instruction
- * apdu_data.Apdu[2] = 0; // p1 = parameter 1
- * apdu_data.Apdu[3] = 0; // p2 = parameter 2
- * apdu_data.Apdu[4] = 2; // p3 - parameter 3
- * memcpy(&apdu_data.Apdu[5], &file_id, sizeof(unsigned short));
- * err_code = tel_req_sap_transfer_apdu(&apdu_data, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sap_transfer_apdu(TelSimSapApduData_t *apdu_data, int *req_id);
-
-
-/**
- * @brief      This function is used to select either of the protocols.
- *     Access to this API is limited to in-house application and we recommend you use bluetooth-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend user does not use SAP related APIs directly. Our SAP APIs are provided as interface between BT-engine and Modem Plugin.
- * So without BT-engine, you may not get proper operation with these SAP APIs.
- *
- * @warning
- * - None.
- *
- * @param[in] protocol
- * - This input is the protocol to set in SIM for SAP. #TelSimSapProtocol_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_SAP_SET_PROTOCOL_CNF  and the event data is #TelSimSapResultCode_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimSapProtocol_t protocol = TAPI_SIM_SAP_PROTOCOL_T0; // protocol set
- * err_code = tel_req_sap_transport_protocol(protocol, &request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sap_transport_protocol(TelSimSapProtocol_t protocol, int *req_id);
-
-
-/**
- * @brief  This function is used to set the power ON/OFF/RESET the SIM card
- *     Access to this API is limited to in-house application and we recommend you use bluetooth-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend user does not use SAP related APIs directly. Our SAP APIs are provided as interface between BT-engine and Modem Plugin.
- * So without BT-engine, you may not get proper operation with these SAP APIs.
- *
- * @warning
- * - None.
- *
- * @param[in] req_data
- * - This input is to power on or off the SIM card.#TelSimSapMsgId_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_SAP_SET_SIM_POWER_CNF  and the event data is #TelSimSapPower_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimSapMsgId_t    msdId = 0;
- * msdId = TAPI_SIM_SAP_POWER_SIM_ON_REQ; //power on operation
- * err_code = tel_req_sap_power_operation(msdId, &request_id);// only for testing
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sap_power_operation(TelSimSapMsgId_t req_data, int *req_id );
-
-
-/**
- * @brief  This function is used to transfer card reader status
- *     Access to this API is limited to in-house application and we recommend you use bluetooth-engine APIs.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - We recommend user does not use SAP related APIs directly. Our SAP APIs are provided as interface between BT-engine and Modem Plugin.
- * So without BT-engine, you may not get proper operation with these SAP APIs.
- *
- * @warning
- * - None.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_SAP_CARD_READER_STATUS_CNF  and the event data is #TelSimCardReaderStatus_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *  - User can get valid return value or make operations after SIM init complete(card status is TAPI_SIM_STATUS_SIM_INIT_COMPLETED).
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * err_code = tel_req_sap_cardreader_status(&request_id);      //you can find card reader status with async event
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sap_cardreader_status(int *req_id);
-
-
-/**
- * @brief  This API is used to execute the authentication procedure by using SIM.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- * This function supports IMS, 3G and GSM authentication.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * -NONE
- *
- * @warning
- * - None.
- *
- * @param[in] authentication_data
- * - This input has the authentication code to be validated by ISIM,3G and GSM application in the SIM card. #TelSimAuthenticationData_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_AUTHENTICATION_CNF  and the event data is #TelSimAuthenticationResponse_t.
- * Asynchronous return status is indicated by #TelSimAccessResult_t.
- *
- *
- * @pre
- *  - A dbus connection is established with #tel_init
- *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- * - Negative integer : it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- * @see None
- *
- * @code
- * #include <ITapiSim.h>
- * int err_code = 0;
- * int request_id = 0;
- * TelSimAuthenticationData_t pAuthenticationData;
- * strcpy((char*)pAuthenticationData.rand_data, "username@operator.com"); //access data
- * pAuthenticationData.rand_length= strlen("username@operator.com");
- * strcpy((char*)pAuthenticationData.autn_data,  "+1-212-555-12345"); // auth data
- * pAuthenticationData.autn_length = strlen("+1-212-555-12345");
- * err_code = tel_req_sim_authentication(&pAuthenticationData,&request_id);
- * @endcode
- *
- * @remarks None
- *
- */
-/*================================================================================================*/
-int tel_req_sim_authentication( TelSimAuthenticationData_t *authentication_data, int *req_id);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_SIM_H_ */
-
-/**
-* @}
-*/
diff --git a/include/tapi/ITapiSound.h b/include/tapi/ITapiSound.h
deleted file mode 100644 (file)
index 3ae0a16..0000000
+++ /dev/null
@@ -1,597 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
- /**
-* @open
-* @ingroup             TelephonyAPI
-* @addtogroup  TAPI_SOUND      SOUND
-* @{
-*
-* @file ITapiSound.h
-
-     @brief This file serves as a "C" header file defines functions for Tapi Sound Services.\n
-      It contains a sample set of function prototypes that would be required by applications.
-
-         Note: TAPI sound service API's are used by applications for configuration and control of MIC,SPEAKER and audio path\n
-
-*/
-
-#ifndef        _ITAPI_SOUND_H_
-#define _ITAPI_SOUND_H_
-
-#include <TelDefines.h>
-#include <TelErr.h>
-#include <TelUtility.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-#define TAPI_SOUND_VOLUME_TYPE         20      /**<Sound volume type   length is 20*/
-
-/**
-* @enum tapi_sound_type_t
-*Sound type
-*/
-typedef enum {
-       TAPI_SND_VOLUMN_CTRL                    = 0x1,  /**< Sound Volume Control Message */
-       TAPI_SND_MIC_MUTE_CTRL,                 /**< Sound MIC Mute Control Message */
-       TAPI_SND_AUDIO_PATH_CTRL,                       /**< Audio Path Control Message */
-       TAPI_SND_VOICE_RECORDING_CTRL    = 0x06,
-       TAPI_SND_AUDIO_LOOPBACK_CTRL    = 0x10, /**< Audio Loobpack Message */
-       TAPI_SND_MASTER_CLOCK_CTRL,                                     /**< Audio Master Clock Message */
-       TAPI_SND_MAX
-} tapi_sound_type_t;
-
-/**
-* @enum tapi_sound_volume_t
-*Sound volume
-*/
-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_volume_t;
-
-/**
-* @enum tapi_sound_volume_type_t
-* Sound volume Type
-*/
-typedef enum {
-      TAPI_SOUND_VOL_VOICE                     =0x01,  /**< Voice volume*/
-      TAPI_SOUND_VOL_KEYTONE       =0x02,      /**< keytone volume*/
-      TAPI_SOUND_VOL_BELL              =0x03,  /**< bell volume                */
-      TAPI_SOUND_VOL_MESSAGE       =0x04,      /**< message tone volume*/
-      TAPI_SOUND_VOL_ALARM             =0x05,  /**< alarm volume*/
-      TAPI_SOUND_VOL_SPK_PHONE     =0x11,      /**< Voice volume*/
-      TAPI_SOUND_VOL_HFK_VOICE     =0x21,      /**< HFK Voice volume*/
-      TAPI_SOUND_VOL_HFK_KEYTONE    =0x22,     /**< HFK keytone volume*/
-      TAPI_SOUND_VOL_HFK_BELL  =0x23,  /**< HFK bell volume*/
-      TAPI_SOUND_VOL_HFK_MESSAGE       =0x24,  /**< HFK message volume*/
-      TAPI_SOUND_VOL_HFK_ALARM =0x25,  /**< HFK alarm volume*/
-      TAPI_SOUND_VOL_HFK_PDA_MISC   =0x26,     /**< HFK PDA misc volume*/
-      TAPI_SOUND_VOL_HEADSET_VOICE  =0x31,     /**< HFK Voice volume*/
-      TAPI_SOUND_VOL_BT_VOICE  =0x41,  /**< HFK Voice volume*/
-      TAPI_SOUND_VOL_TYPE_ALL  =0xFF,  /**< All volume types*/
-} tapi_sound_volume_type_t;
-
-typedef enum {
-      TAPI_SOUND_MIC_UNMUTE        =0x00,
-      TAPI_SOUND_MIC_MUTE              =0x01,
-} tapi_sound_mic_mute_t;
-
-/**
-* @enum tapi_sound_audio_path_type
-* Sound audio path type
-*/
-typedef enum {
-      TAPI_SOUND_HANDSET                       =0x01,          /**<Audio path is handset*/
-      TAPI_SOUND_HEADSET               =0x02,          /**<Audio path is handset*/
-      TAPI_SOUND_HANDSFREE             =0x03,          /**<Audio path is Handsfree*/
-      TAPI_SOUND_BLUETOOTH             =0x04,  /**<Audio path is bluetooth*/
-      TAPI_SOUND_STEREO_BLUETOOTH   =0x05,     /**<Audio path is stereo bluetooth*/
-      TAPI_SOUND_SPK_PHONE             =0x06,  /**<Audio path is speaker phone*/
-      TAPI_SOUND_HEADSET_3_5PI     =0x07,      /**<Audio path is headset_3_5PI*/
-      TAPI_SOUND_BT_NSEC_OFF       =0x08,
-      TAPI_SOUND_MIC1              =0x09,
-      TAPI_SOUND_MIC2              =0x0A,
-      TAPI_SOUND_HEADSET_HAC       =0x0B,
-} tapi_sound_audio_path_t;
-
-typedef enum {
-      TAPI_SOUND_SOURCE_PHONE  =0x01,  //Audio source is phone
-      TAPI_SOUND_SOURCE_PDA        =0x02,  //Audio source is pda
-} tapi_sound_voice_source_t;
-
-typedef enum {
-       TAPI_SOUND_AUDIO_SOURCE_ON      = 0x01,
-       TAPI_SOUND_AUDIO_SOURCE_OFF
-} tapi_sound_audio_source_type_t;
-
-typedef enum {
-       TAPI_SOUND_VOICE_RECORDING_OFF  = 0x00,
-       TAPI_SOUND_VOICE_RECORDING_ON   = 0x01,
-} tapi_sound_voice_recording_status_t;
-
-typedef enum {
-       TAPI_SOUND_AUDIO_LOOPBACK_OFF,
-       TAPI_SOUND_AUDIO_LOOPBACK_PCM_ON,
-       TAPI_SOUND_AUDIO_LOOPBACK_PACKET_ON,
-       TAPI_SOUND_AUDIO_LOOPBACK_MAX,
-} TelAudioLoopbackStatus_t;
-
-typedef struct {
-       tapi_sound_audio_path_t path;
-       TelAudioLoopbackStatus_t status;
-} TelAudioLoopbackMode_t;
-
-/**
-* This structure defines sound volume info result control type.
-*/
-typedef struct {
-       tapi_sound_volume_type_t        type;                           /**<volume type*/
-       tapi_sound_volume_t             level;                          /**<volume level*/
-} tapi_sound_volumn_info_res;
-
-/**
-* This structure defines sound volume control result type.
-*/
-typedef struct {
-       char                                            num_record;                                     /**<Number of record*/
-       tapi_sound_volumn_info_res      pinfo[TAPI_SOUND_VOLUME_TYPE];  /**<Volume info result*/
-} tapi_sound_volumn_ctrl_res;
-
-/**
-* This structure defines sound volume control type.
-*/
-typedef struct {
-       tapi_sound_volume_t             volume;                 /**<volume*/
-       tapi_sound_volume_type_t        vol_type;               /**<volume type*/
-} tapi_sound_volume_control_t;
-
-typedef struct {
-       tapi_sound_type_t       type;
-       tapi_phone_err_t        cause;
-} tapi_sound_error_info_t;
-
-/**
- *
- * @brief  This function is used to send to Telephony Server to get the volume status of the phone.
- * Application can make use this API.
- * This is permitted to the Samsung inhouse application only.
- *
- * This function makes Dbus method call to Telephony Sever and returns immediate value.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered in the corresponding event asynchronously.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- *
- *
- * @param[in]  vol_control_type
- * -#tapi_sound_volume_type_t is the type of sound volume
- *
- * @param[out] pRequestId
- *  - Unique identifier for a particular request.
- *  (pRequestId value can be any value from 0 to 255. Invalid request_id has value -1)
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SOUND_VOLUMECTRL_RSP and the event data is #tapi_sound_volumn_ctrl_res.  Asynchronous return status
- *  is always success as TAPI_API_SUCCESS.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embeded call application
- *
- * @code
- * #include <ITapiSound.h>
- *
- * int ret_val = 0;
- * int requestId = -1;
- * tapi_sound_volume_type_t vol_type = TAPI_SOUND_VOL_VOICE;
- *
- * // GET VOLUME INFO
- * ret_val= tel_get_sound_volume_info (vol_type, &requestId);
- *
- * @endcode
- *
- * @see
- * - None
- *
- * @remarks
- * - None
- *
- *
- */
-int    tel_get_sound_volume_info(tapi_sound_volume_type_t vol_control_type, int *pRequestId);
-
-/**
- *
- * @brief  This function is used to send to Telephony Server to control the phone volume .
- * Application can make use this API.
- * This is permitted to the Samsung inhouse application only.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- *
- *
- * @param[in]  vol_control
- * -#tapi_sound_volume_control_t  is the sound volume control type
- *
- * @param [out] pRequestId
- *  - Unique identifier for a particular request.
- *  (pRequestId value can be any value from 0 to 255. Invalid request_id has value -1)
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embeded call application
- *
- * @code
- * #include <ITapiSound.h>
- *
- * int ret_val=0;
- * int requestId=-1;
- * tapi_sound_volume_control_t vol_control;
- * vol_control.volume=TAPI_SOUND_VOLUME_LEVEL_3;
- * vol_control.vol_type=TAPI_SOUND_VOL_VOICE;
- *
- * ret_val= tel_set_sound_volume_info(vol_control,&requestId); // volume level set
- *
- * @endcode
- *
- * @see
- * - None
- *
- * @remarks
- * - None
- *
- *
- */
-int tel_set_sound_volume_info(tapi_sound_volume_control_t vol_control, int *pRequestId);
-
-/**
- * @brief  This function is used to Send to Telephony Server to set voice path .
- * Application can make use this API.
- * This is permitted to the Samsung inhouse application only.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- *
- *
- * @param[in]   vc_path
- * -#tapi_sound_audio_path_t is the sound audio path
- *
- * @param [out] pRequestId
- *  - Unique identifier for a particular request.
- *  (pRequestId value can be any value from 0 to 255. Invalid request_id has value -1)
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embeded call application
- *
- *
- * @code
- * #include <ITapiSound.h>
- * tapi_sound_audio_path_t  vc_path;
- *
- * //VOICE PATH
- * vc_path=TAPI_SOUND_HANDSET;
- * ret_val= tel_set_sound_path (vc_path,&requestId); // sound path
- *
- * @endcode
- *
- * @see
- * - None
- *
- * @remarks
- * - None
- *
- *
- */
-int tel_set_sound_path(tapi_sound_audio_path_t  vc_path, int *pRequestId);
-
-/**
- * @brief  This function is used to Send to Telephony Server to control  the microphone as mute during the call.
- * Application can make use this API.
- * This is permitted to the Samsung inhouse application only.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- *
- *
- * @param[in]   micmute_set
- * -#tapi_sound_mic_mute_t is the status of mic mute
- *
- * @param [out] pRequestId
- *  - Unique identifier for a particular request.
- *  (pRequestId value can be any value from 0 to 255. Invalid request_id has value -1)
-
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embeded call application
- *
- * @code
- * #include <ITapiSound.h>
- *
- * tapi_sound_mic_mute_t  set_micmute;
- * set_micmute=TAPI_SOUND_MIC_MUTE;
- * printf("tel_set_sound_mute_status \n");
- * ret_val= tel_set_sound_mute_status (set_micmute,&requestId); // set mute status
- *
- * @endcode
- *
- * @see
- * - None
- *
- * @remarks
- * - None
- *
- *
- */
-int    tel_set_sound_mute_status(tapi_sound_mic_mute_t micmute_set, int * pRequestId);
-
-/**
- * @brief  This function is used to Send to Telephony Server to get whether the microphone is muted or not .
- * Application can make use this API.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * Do not use this function. This function is dedicated to the embedded call application only.
- *
- * @param [out] pRequestId
- *  - Unique identifier for a particular request.
- *  (pRequestId value can be any value from 0 to 255. Invalid request_id has value -1)
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SOUND_MICMUTECTRL_RSP and the event data is #tapi_sound_mic_mute_t.  Asynchronous return status
- *  is always success as TAPI_API_SUCCESS.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * Embeded call application
- *
- * @code
- * #include <ITapiSound.h>
- *
- * // GET MUTE STATUS
- * ret_val = tel_get_sound_mute_status(&requestId);
- *
- * @endcode
- *
- * @see
- * - None
- *
- * @remarks
- * - None
- *
- *
- */
-int tel_get_sound_mute_status(int *pRequestId);
-
-
-/**
- *
- * @brief  This function is invoked to test audio loopback
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [in]  Mode
- *    -  Audioloopback parameter
- *
- * @param  [in]  pRequestId
- *    -  Request ID
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (TapiResult_t) \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_set_sound_loopback(TelAudioLoopbackMode_t *Mode, int *pRequestId);
-
-/**
- *
- * @brief  This function is invoked to control audio clock
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param  [in]  bEnable
- *    -  Enable/Disable
- *
- * @param  [in]  pRequestId
- *    -  Request ID
- *
- * @par Async Response Message:
- * - NA
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (TapiResult_t) \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_set_sound_clock(int bEnable, int *pRequestId);
-
-/**
- * @brief  This function is used to send to Telephony Server to control whether Voice recording is started or not.
- * Application can make use this API.
- * This is permitted to the Samsung inhouse application only.
- *
- * @par Sync (or) Async:
- * - This is an Asynchronous API
- *
- * @par Important Notes:
- * - None
- *
- * @warning
- * - None.
- *
- *
- * @param[in] voice_record
- *    -  tapi_sound_voice_recording_status_t
- *
- * @param [out] pRequestId
- *  - Unique identifier for a particular request.
- *  (pRequestId value can be any value from 0 to 255. Invalid request_id has value -1)
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- *
- */
-int tel_control_sound_voice_recording(tapi_sound_voice_recording_status_t voice_record, int *pRequestId);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif //_ITAPI_SOUND_H_
-
-/**
-* @}
-*/
diff --git a/include/tapi/ITapiSs.h b/include/tapi/ITapiSs.h
deleted file mode 100644 (file)
index 0db1586..0000000
+++ /dev/null
@@ -1,1125 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-/**
-* @open
-* @ingroup             TelephonyAPI
-* @addtogroup  SS_TAPI         SS(Supplementary services)
-* @{
-*
-* @file ITapiSs.h
-
-     @brief This file serves as a "C" header file defines functions for Tapi Supplementary services\n
-      It contains a sample set of function prototypes that would be required by applications.
- */
-
-#ifndef _ITAPI_SS_H_
-#define _ITAPI_SS_H_
-
-#include <TelSs.h>
-#include <TelUtility.h>
-#include <TelDefines.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
- /**
- * @brief  This function sends a request to activate/deactivate call barring.
- *
- *  This service makes it possible for a mobile subscriber
- *  to activate barring of certain categories of outgoing or incoming calls according to a barring program which is selected from a set
- *  of one or more barring programs chosen at provision time and is valid for all outgoing or incoming calls, or just those associated
- *   with a specific basic service group. Also this API allows deactivating call barring based on categories set.
- * If the user call this function with wrong password 3 times subsequently, the barring service can be blocked.
- * If this function is called normally, the asynchronous response comes in a few second from network. The response indicates
- * the service request has been granted or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pBarringInfo
- *   - Contains the information about call barring
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  An asynchronous notification event is returned as a confirmation
- *  The event associated is TAPI_EVENT_SS_BARRING_CNF and asynchronous return status is indicated by #TelSsCause_t.
- *  The event data is #TelSsBarringStatusInfo_t. \n
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * \see tel_get_ss_barring_status, tel_change_ss_barring_password
- *
- * @code
- * #include<ITapiSS.h>
- *
- * int ret_status = -1;
- * TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
- * int pRequestId=0;
- * char bar_pwd[5]="0000";
- *
- * pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
- * pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
- * pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
- * strcpy(pBarringInfo.szPassword,bar_pwd);
- * ret_status = tel_set_ss_barring (&pBarringInfo,&pRequestId);
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
- /*================================================================================================*/
-int   tel_set_ss_barring(const  TelSsCallBarringInfo_t *pBarringInfo,int * req_id);
-
-/**
- *
- * @brief  This function gets call barring status.
- *
- * The mobile subscriber may determine by subscription of a set of one or more unique barring
- * programs what kind of outgoing or incoming calls should be barred.
- * If this function is called normally, the asynchronous response comes in a few second from network.
- * The response indicates the service status.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] BarType
- *   - Specifies barring type i.e. Outgoing international, outgoing all, Incoming all etc.
- *
- * @param [in] CallType
- *   - Specifies the type of call i.e. Voice call, Video Call etc.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF and asynchronous return status is indicated by #TelSsCause_t.
- *  The event data is #TelSsBarringStatusInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @post
- *  - None.
- *
- * @return Return Type (#TapiResult_t) \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.
- *
- * \see tel_set_ss_barring, tel_change_ss_barring_password
- *
- * @code
- * #include<ITapiSS.h>
- *
- * int ret_status;
- * TelSsCallBarType_t BarType =TAPI_CALL_BARRING_ALL_OUTGOING_INTERN_CALL;
- * TelSsCallType_t CallType = TAPI_CALL_TYPE_VOICE_EV;
- * int pRequestId=0;
- *
- * ret_status = tel_get_ss_barring_status(BarType,CallType,&pRequestId); // get barring status
- * printf ("The return value is %d\n", ret_status);
- *
- * @endcode
- *
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int   tel_get_ss_barring_status(TelSsCallBarType_t  BarType, TelSsCallType_t  CallType,int * req_id);
-
- /**
- *
- * @brief  This function allows changing of the barring password in Network.
- *
- * User can request network to change his own barring password. If the old password is not same with
- * what network knows, it will be rejected by network. Also new password should be same with another new password
- * which is to confirm user input. Otherwise the request must be rejected by Telephony Sever.
- * If the user call this function with wrong old password 3 times subsequently, the barring service can be blocked.
- * If this function is called normally, the asynchronous response comes in a few second from network.
- * The response indicates the service request has been granted or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - Based on 3GPP TS 22.030 section 6.5.4 Registration of New Password. Only one Change Barring Password request is allowed
- *   at a time and TS might return TAPI_API_REQUEST_MAX_IN_PROGRESS if another request is received.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pOldPassword
- *   - Old password set for Barring in Network. This is Null terminated string
- *
- * @param [in] pNewPassword
- *   - New password for Barring to be set in Network. This is Null terminated string.
- *
- * @param [in] pNewPasswordAgain
- *   - New password again. This is Null terminated string.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF and asynchronous return status is indicated by #TelSsCause_t.
- *  There is no event data with this event.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @see
- * - None
- *
- * @code
- * #include<ITapiSS.h>
- *
- * int ret_status;
- * int pRequestId=0;
- *
- * ret_status = tel_change_ss_barring_password ("0000","0000","0000",&pRequestId); // change barring password
- *
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int   tel_change_ss_barring_password(const char*  pOldPassword, const char*  pNewPassword, const char * pNewPasswordAgain,int * req_id);
-
- /**
- *
- * @brief  This function allows to set (register/erase/activate/deactivate) call forwarding option at the Network.
- *
- * This enables to forward the calls to another party. This service permits a called mobile subscriber
- * to have the network send all incoming calls, or just those associated with a specific Basic service group,
- * addressed to the called mobile subscriber's directory number and which meet
- * various call FORWARD condition to another directory number.
- * The ability of the served mobile subscriber to originate calls is unaffected.
- * If the service is activated, a call is forwarded only if under this call forward condition.
- * Application has to call this API in order to explicitly register/erase/activate/deactivate
- * the call forwarding. Request will be passed irrespective of whether already
- * another SS call forward is ongoing.
- *
- * If this function is called normally, the asynchronous response comes in a few second from network. The response indicates
- * the service request has been granted or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] pForwardInfo
- *   - Contains the Call forward information like forward mode, forward type, etc.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_FORWARD_CNF and asynchronous return status is indicated by #TelSsCause_t.
- *  The event data will be #TelSsForwardingStatusInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- *
- * \image html CallForward.jpg
- * \image latex CallForward.jpg
- *
- * \see tel_get_ss_forward_status
- *
- * @code
- * #include<ITapiSS.h>
- *
- * int ret_status =0;
- * int pRequestId=0;
- * TelSsForwardInfo_t pForwardInfo;
- * pForwardInfo.Mode =TAPI_CALL_FORWARD_MODE_ENABLE_EV;
- * pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
- * pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
- * pForwardInfo.NoReplyConditionTimer = 10;
- * int len;
- * char cf_number[20]= {"9986529874"};//number to which calles need to be forwarded.
- *
- * len = strlen(cf_number);
- * printf("Length of CF number :%d \n",len);
- * memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
- *
- * ret_status = tel_set_ss_forward (&pForwardInfo,&pRequestId);
- *
- * @endcode
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int   tel_set_ss_forward( const  TelSsForwardInfo_t *pForwardInfo,int * req_id);
-
- /**
- *
- * @brief  This function provides option to get the call forwarding status of different calls from Network.
- *
- * The data request procedure enables the mobile subscriber to obtain information about the data stored in the PLMN.
- * After having requested this procedure the network shall return the following information:
- * -   in response to a general data request the served mobile subscriber should be given a list of all Basic service groups
- *     to which call forwarding unconditional is registered, including information whether or not it is active and operative,
- *     and the associated forwarded-to numbers
- * -   in response to a specific request concerning one particular Basic service group,
- *     the served mobile subscriber should be informed whether or not call forwarding unconditional is registered,
- *     including information whether or not it is active and operative for that Basic service group.
- *     If CFU is registered, the associated forwarded-to number shall be given.
- *
- * If this function is called normally, the asynchronous response comes in a few second from network.
- * The response indicates the service status.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] Type
- *   - Specifying the Forward call type i.e. voice call, Video Call, Data Calls etc.
- *
- * @param [in] Condition
- *   - Used to specify the forward condition i.e. unconditional, When no reply, when busy, when not reachable etc.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF  and asynchronous return status is indicated by #TelSsCause_t.
- *  The event data is #TelSsForwardingStatusInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * \see tel_set_ss_forward
- *
- * @code
- * #include<ITapiSS.h>
- * int  ret_status = 0;
- * TelSsForwardType_t Type =TAPI_CS_FORWARD_TYPE_VOICE_EV;
- * TelSsForwardWhen_t  Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
- * int pRequestId=0;
- *
- * ret_status = tel_get_ss_forward_status(Type,Condition,&pRequestId); // get forward status
- *
- * @endcode
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int   tel_get_ss_forward_status(TelSsForwardType_t Type, TelSsForwardWhen_t  Condition,int * req_id);
-
- /**
- *
- * @brief  This function activates/deactivates the call waiting service.
- * The call waiting service permits a mobile to be notified of an incoming
- * call (as per basic call procedures) while the traffic channel (BM or LM) is not available for the incoming call and the mobile subscriber
- * is engaged in an active or held call. Subsequently, the subscriber can accept, reject, or ignore the incoming call.
- * If this function is called normally, the asynchronous response comes in a few second from network. The response indicates
- * the service request has been granted or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] waitInfo
- *   - Specifies the status of call-waiting service i.e. On (TRUE) or off (FALSE)
- *
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_WAITING_CNF and asynchronous return status is indicated by #TelSsCause_t.
- *  The event data is #TelSsWaitingStatusInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * \see tel_get_ss_waiting_status
- *
- * @code
- * #include<ITapiSS.h>
- *
- * int   ret_status;
- * TelSsWaitingInfo_t waitInfo;
- * waitInfo.Mode = TAPI_SS_CW_ACTIVATE;
- * waitInfo.CallType =TAPI_CALL_TYPE_VOICE_EV;
- * int RequestID;
- *
- * ret_status = tel_set_ss_waiting (&waitInfo,&RequestID); // set call waiting
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int   tel_set_ss_waiting( const TelSsWaitingInfo_t *waitInfo, int * req_id);
-
- /**
- *
- * @brief  This function queries the status of call waiting service.
- *
- * @par Notes:
- * The call waiting service permits a mobile to be notified of an incoming call
- * (as per basic call procedures) while the traffic channel (BM or LM) is not available for the incoming call and the mobile subscriber
- * is engaged in an active or held call. Subsequently, the subscriber can accept, reject, or ignore the incoming call.
- * If this function is called normally, the asynchronous response comes in a few second from network.
- * The response indicates the service status.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [in] CallType
- *   - TelSsCallType
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF and asynchronous return status is indicated by #TelSsCause_t.
- *  The event data is #TelSsWaitingInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * \see tel_set_ss_waiting
- * @code
- * #include<ITapiSS.h>
- *
- * int   ret_status;
- * TelSsCallType_t CallType = TAPI_CALL_TYPE_VOICE_EV;
- * int RequestID;
- *
- * ret_status = tel_get_ss_waiting_status ( CallType,&RequestID); // get call waiting info
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int   tel_get_ss_waiting_status( const TelSsCallType_t CallType,int * req_id);
-
- /**
- *
- * @brief  This function queries the status of calling line identity service.
- *
- * @par Notes:
- * The group of Line Identification Supplementary Services is divided into the following six Supplementary Services:
- * CLIP - Calling line identification presentation
- *        This Supplementary Service provides for the ability to indicate the line identity of the calling party to the called party.
- *        The network shall deliver the calling line identity to the called party at call set-up time,
- *        regardless of the terminal capability to handle the information.
- * CLIR - Calling line identification restriction
- *       the CLIR Supplementary Service is a Supplementary Service offered to the calling party
- *       to prevent presentation of the calling party's line identity, to the called party.
- * COLP - Connected line identification presentation
- *        This Supplementary Service is not a dialing check but an indication to the calling subscriber
- *        of the connected line identity in a full ISDN/PLMN environment,
- *        the connected line identity shall include all the information necessary to unambiguously identify the connected party.
- *        The network shall deliver the connected line identity to the calling party
- *        regardless of the terminal capability to handle the information.
- * COLR - Connected line identification restriction
- *        The COLR Supplementary Service is a Supplementary Service offered
- *        to the connected party to prevent presentation of the connected line identity, to the calling party.
- *        In the case where the calling party has an override category.
- * CDIP - Called line identification presentation
- * CNAP - Calling name presentation
- * This function queries the service status with #TelSsCliType_t
- *
- * If this function is called normally, the asynchronous response comes in a few second from network.
- * The response indicates the service status.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [in] CliType
- *   - TelSsCliType_t
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_CLI_QUERYSTATUS_CNF and asynchronous return status is indicated by #TelSsCause_t.
- *  The event data is #TelCliStatusInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * @code
- * #include<ITapiSS.h>
- *
- * int  ret_status = 0;
- * TelSsCliType_t CliType =TAPI_SS_CLI_CDIP;
- * int pRequestId;
- *
- * ret_status = tel_get_ss_cli_status(CliType,&pRequestId); // get cli info
- * @endcode
- *
- * @see
- * - None
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int   tel_get_ss_cli_status(TelSsCliType_t CliType,int * req_id);
-
- /**
- *
- * @brief  This function is used to send a USSD string or User response to the Network.
- *
- * The unstructured supplementary service data (USSD) mechanism allows the Mobile Station (MS) user and
- * a PLMN operator defined application to communicate in a way which is transparent
- * to the MS and to intermediate network entities.
- * The mechanism allows development of PLMN specific supplementary services.
- * USSD string is like *109, *109*72348937857623#.
- * There are two modes of USSD: MMI-mode and application mode.
- * MMI-mode USSD is for the transparent transport of MMI strings entered by the user to the network using this function
- * and for the transparent transport of text strings from the network that are displayed
- * by the mobile for user information.
- * Application mode USSD is for the transparent transport of data between the network and the UE.
- * Application mode USSD is intended to be used by applications in the network and their peer applications in the UE.
- * The peer application in the UE send response with #tel_send_ss_ussd_response
- *
- * If this function is called normally, the asynchronous response comes in a few second from the telephony server.
- * The response indicates whether the sending request is successfully delivered or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is delivered with the async response as below.
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [in] szUssdString
- *   - Data coding scheme used (GSM 7bit or 8bit default alphabet etc, defined as 3GPP TS 23.038)
- *   - USSD String data length
- *   - ANSI string passed by the client
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_USSD_CNF and asynchronous return status is indicated by #TelSsCause_t. The event data
- *  is #TelSsUssdMsgInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *  - No SS and USSD Transaction should be ongoing. If there an ongoing transaction, new USSD request will be returned to the Application
- *   with an error (USSD_BUSY)
- *
- * @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.
- *
- * \see #tel_send_ss_ussd_response, #tel_send_ss_ussd_cancel
- *
- *\image html ussd.jpg
- *\image latex ussd.jpg
- *
- * @code
- * #include<ITapiSS.h>
- *
- * char ussdString[TAPI_SS_USSD_DATA_SIZE_MAX];
- * int  ret;
- *
- * memset(ussdString, 0, TAPI_SS_USSD_DATA_SIZE_MAX);
- * strcpy(ussdString , "*124#");
- *
- * ret = tel_send_ss_ussd_request(ussdString, &request_id); // request ussd
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int tel_send_ss_ussd_request(const TelSsUssdMsgInfo_t *ussd_info, int *req_id);
-
- /**
- *
- * @brief  This function is used to send a USSD User response to the Network.
- *
- * @par Notes:
- * Refer #tel_send_ss_ussd_request. In the application mode, the network initiates USSD string
- * to the peer application at UE. The UE might reply a USSD string with this function.
- *
- * If this function is called normally, the asynchronous response comes in a few second from Telephony Server.
- * The response indicates whether the string is delivered successfully to network or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered asynchronously.
- * @par Sync (or) Async:
- *
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] ussdRspRecord
- *   - Data coding scheme used (GSM 7bit or 8bit default alphabet etc, defined as 3GPP TS 23.038)
- *   - USSD String data length
- *   - ANSI string passed by the client
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_USSD_CNF and asynchronous return status is indicated by #TelSsCause_t. The event data
- *  is #TelSsUssdMsgInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * \see #tel_send_ss_ussd_request, #tel_send_ss_ussd_cancel
- *
- *\image html ussd.jpg
- *\image latex ussd.jpg
- *
- * @code
- * #include<ITapiSS.h>
- *
- * char ussd_str[25] = {"*123*0#"};
- * unsigned char len =0;
- * int ret = 0;
- * len = strlen(ussd_str);
- *
- * TelSsUssdMsgRspInfo_t * ussdRspRecord;
- * ussdRspRecord = (TelSsUssdMsgRspInfo_t*)malloc(sizeof(TelSsUssdMsgRspInfo_t));
- * ussdRspRecord->SsRespType=TAPI_USSD_RES_OK;
- * ussdRspRecord->IndType=TAPI_USSD_IND_NOTIFY;
- * ussdRspRecord->UssdInfo.Dcs=0x0f;
- * ussdRspRecord->UssdInfo.RequestedBySAT=0;
- * strcpy(ussdRspRecord->UssdInfo.szUssdString,ussd_str);
- * ussdRspRecord->UssdInfo.szUssdString[strlen(ussdRspRecord->UssdInfo.szUssdString)]='\0';
- * ussdRspRecord->UssdInfo.UssdStringLength=strlen(ussd_str);
- * int pRequestId=0;
- *
- * ret = tel_send_ss_ussd_response( ussdRspRecord,&pRequestId); // send ussd response
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int  tel_send_ss_ussd_response(const TelSsUssdMsgInfo_t *ussd_info, int *req_id);
-
-
- /**
- *
- * @brief  This function is used to send a USSD cancel to release ussd session
- *
- * If this function is called normally, the asynchronous response comes in a few second from Telephony Server.
- * The response indicates whether the string is delivered successfully to network or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_USSD_CNF and asynchronous return status is indicated by #TelSsCause_t. The event data
- *  is #TelSsUssdMsgInfo_t.
- *
- * @pre
- *  - Initialize Dbus connection with #tel_init
- *  - Register caller's application name with #tel_register_app_name
- *  - Register telephony events to listen
- *  - A event loop is running to listen events
- *
- * @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.
- *
- * \see #tel_send_ss_ussd_request, #tel_send_ss_ussd_response.
- *
- *\image html ussd.jpg
- *\image latex ussd.jpg
- * @code
- * #include<ITapiSS.h>
- *
- * char ussdString[TAPI_SS_USSD_DATA_SIZE_MAX];
- * int  ret;
- * int request_id;
- *
- * memset(ussdString, 0, TAPI_SS_USiSD_DATA_SIZE_MAX);
- * strcpy(ussdString , "*124#");
- *
- * ret= tel_send_ss_ussd_request(ussdString,&request_id);
- *
- * ret = tel_send_ss_ussd_cancel(&equestId); // ussd cancel
- * @endcode
- *
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int tel_send_ss_ussd_cancel(int *req_id);
-
- /**
- *
- * @brief  This function is used to Read AOC parameter values on the SIM.
- *
- * @par Notes
- * This supplementary service provides the MS with the information to produce an estimate
- * of the cost of the service used. Charges are indicated for the call(s) in progress
- * when mobile originated or for the roaming leg only when mobile terminated.
- * Any charges for non-call related transactions, and for certain supplementary services,
- * such as Call Forwarding are not indicated.
- * The MS will receive at the beginning of each call (and as necessary during the call)
- * a message, the Charge Advice Information. This message contains the elements which together define
- * the rate at which the call is to be charged, time dependence,
- * data dependence and for unit increments - see TS 22.024 [3].
- * The MS shall still indicate appropriate charges even when roaming, based on Home PLMN units.
- * Where applicable, the volume charge for Packet data service,
- * in addition to the normal time dependent and incremental charges, shall be indicated.
- * To indicate the charge per call the Mobile station shall display the units consumed
- * so far during the present call(s) and maintain this value until the MS is switched off or a new call set-up is attempted.
- * Where required to indicate the total accumulated charge, the MS shall be able to display,
- * and the SIM/USIM shall store in the ACM, the running cumulative unit charge.
- * This value must be stored securely, and all reasonable steps shall be taken to ensure that
- * the written value cannot be interrupted, reset or corrupted (except resetting under control of the unblocking key).
- * This function get the AOC configuration information from PLMN
- *
- * If this function is called normally, the asynchronous response comes in a few second from Telephony Server.
- * The response indicates whether the query is delivered successfully to network or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] AocType
- *   - Specifies which type of Advice of charge information to be read namely Maximum ACM,
- *     Price per unit currency, Current call meter and Accumulated call meter values.
- *
- * @param [out] req_id
- *   - Unique identifier for a particular request.
- *   - request_id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_AOC_RSP and asynchronous return status is indicated by #TelSsCause_t. The event data
- *  is #TelCallAocInfo_t.
- *
- * @pre
- *  - Advice of charge depends on the SIM for setting or reading AOC parameters.
- *  - Setting of AOC needs PIN2 Verification
- *
- * @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.
- *
- * \see tel_set_ss_aoc_info
- *
- *\image html ussd.jpg
- *\image latex ussd.jpg
- * @code
- * #include<ITapiSS.h>
- *
- * TelSsAocType_t AocType = TAPI_SS_AOC_TYPE_ACM;
- * ret_status = tel_get_ss_aoc_info (AocType,&pRequestId); // get AOC info
- * @endcode
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int  tel_get_ss_aoc_info( TelSsAocType_t AocType,int * req_id);
-
- /**
- *
- * @brief  This function is used to Read AOC parameter values on the SIM.
- *
- * @par Notes:
- * Refer #tel_get_ss_aoc_info
- *
- * If this function is called normally, the asynchronous response comes in a few second from Telephony Server.
- * The response indicates whether the query is delivered successfully to network or not.
- *
- * This API makes Dbus method call to Telephony Sever and gets immediate feedback.
- * However it just means that the API request has been transfered to the CP successfully.
- * The actual operation result is being delivered asynchronously.
- *
- * @par Sync (or) Async:
- * This is an Asynchronous API.
- *
- * @par Important Notes:
- * - None.
- *
- * @warning
- * - None.
- *
- *
- * @param [in] AocSetInfo
- *   - Specifies which type of Advice of charge information to be set namely Maximum ACM,
- *     Price per unit currency, Current call meter and Accumulated call meter values.
- *
- * @param [out] RequestId
- *   - Unique identifier for a particular request.
- *   - RequestId value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.  *
- *
- * @par Async Response Message:
- *  The event associated is TAPI_EVENT_SS_SET_AOC_CNF and asynchronous return status is indicated by #TelSsCause_t. The event data
- *  is #TelSsErrorInfo_t.
- *
- * @pre
- *  - Advice of charge depends on the SIM for setting or reading AOC parameters.
- *  - Setting of AOC needs PIN2 Verification
- *
- * @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.
- *
- * \see tel_get_ss_aoc_info
- *
- *\image html ussd.jpg
- *\image latex ussd.jpg
- * @code
- * #include<ITapiSS.h>
- *
- * TelCallAocInfo_t  *pAocSetInfo;
- * int request_id=0;
- * pAocSetInfo = (TelCallAocInfo_t *)calloc(1,sizeof(TelCallAocInfo_t));
- * pAocSetInfo->AocType = TAPI_SS_AOC_TYPE_RESET;
- * int ret_status =0;
- *
- * ret = tel_set_ss_aoc_info (pAocSetInfo,&request_id); // set aoc info
- * @endcode
- *
- *
- * @remarks
- * - None
- *
- *
- */
-/*================================================================================================*/
-int  tel_set_ss_aoc_info( TelCallAocInfo_t * AocSetInfo, int * RequestId);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _ITAPI_SS_H_ */
-
-/**
-* @}
-*/
diff --git a/include/tapi/tapi_proxy.h b/include/tapi/tapi_proxy.h
deleted file mode 100644 (file)
index a945c7f..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 _TAPI_PROXY_H_
-#define _TAPI_PROXY_H_
-
-#include <glib-2.0/glib.h>
-#include <dbus/dbus-protocol.h>
-#include <dbus/dbus-glib.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/*
- * This function is used to check the connection status with telephony server through DBUS.
- *
- * @return             True / False
- * @param[in]          NONE
- * @param[out] None
- * @remark
- * @Refer
- */
-int tapi_check_dbus_status(void);
-
- /*
- *     This function is invoked to start as a thread and this thread will be in gmain loop to serve the
- *     the requests from clients (Tapi API's).
- *
- * @param      None
- * @return     None
- * @remark     If this functions exits, then it is an error or crash
- *
- */
-int tapi_send_request( int tapi_service, int tapi_service_function,
-                       GArray *in_param1, GArray *in_param2, GArray *in_param3, GArray *in_param4,
-                       GArray **out_param1, GArray **out_param2, GArray **out_param3,GArray **out_param4);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*_TAPI_PROXY_H_ */
diff --git a/include/tapi/tapi_proxy_internal.h b/include/tapi/tapi_proxy_internal.h
deleted file mode 100644 (file)
index 6995bed..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 _TAPI_PROXY_INTERNAL_H_
-#define _TAPI_PROXY_INTERNAL_H_
-
-#include <glib-2.0/glib.h>
-#include <dbus/dbus-protocol.h>
-#include <dbus/dbus-glib.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/*
- * This function is used to check the connection status with telephony server through DBUS.
- *
- * @return             True / False
- * @param[in]          NONE
- * @param[out] None
- * @remark
- * @Refer
- */
-int tapi_check_dbus_status_internal(void);
-
- /*
- *     This function is invoked to start as a thread and this thread will be in gmain loop to serve the
- *     the internal requests from clients (Tapi API's).
- *
- * @param      None
- * @return     None
- * @remark     If this functions exits, then it is an error or crash
- *
- */
-int tapi_send_request_internal( int tapi_service, int tapi_service_function,
-                       GArray *in_param1, GArray *in_param2, GArray *in_param3, GArray *in_param4,
-                       GArray **out_param1, GArray **out_param2, GArray **out_param3,GArray **out_param4);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*_TAPI_PROXY_H_ */
diff --git a/include/tapi_common.h b/include/tapi_common.h
new file mode 100644 (file)
index 0000000..480b051
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 _TAPI_COMMON_H_
+#define _TAPI_COMMON_H_
+
+#include <stdio.h>
+
+#include <tapi_type.h>
+#include <tapi_event.h>
+
+__BEGIN_DECLS
+
+
+char**       tel_get_cp_name_list(void);
+
+TapiHandle*  tel_init(const char *cp_name);
+int          tel_deinit(TapiHandle *handle);
+
+int          tel_register_noti_event(TapiHandle *handle, const char *noti_id,
+                 tapi_notification_cb callback, void *user_data);
+int          tel_deregister_noti_event(TapiHandle *handle, const char *noti_id);
+
+int          tel_get_property_int(TapiHandle *h, const char *property, int *result);
+
+__END_DECLS
+
+#endif /* _TAPI_COMMON_H_ */
+
+/**
+ *  @}
+ */
diff --git a/include/tapi_event.h b/include/tapi_event.h
new file mode 100644 (file)
index 0000000..f467ca1
--- /dev/null
@@ -0,0 +1,132 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 __TAPI_EVENT_H__
+#define __TAPI_EVENT_H__
+
+#include <tapi_type.h>
+
+__BEGIN_DECLS
+
+#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"
+#define TAPI_NOTI_CALL_INFO_CLIR_SUPPRESSION_REJECT    DBUS_TELEPHONY_CALL_INTERFACE":ClirSuppressionReject"
+#define TAPI_NOTI_CALL_INFO_FORWARD_UNCONDITIONAL      DBUS_TELEPHONY_CALL_INTERFACE":ForwardUnconditional"
+#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":Held"
+#define TAPI_NOTI_CALL_INFO_ACTIVE                                     DBUS_TELEPHONY_CALL_INTERFACE":Active"
+#define TAPI_NOTI_CALL_INFO_JOINED                                     DBUS_TELEPHONY_CALL_INTERFACE":Joined"
+#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_SOUND_PATH                                      DBUS_TELEPHONY_CALL_INTERFACE":SoundPath"
+#define TAPI_NOTI_CALL_SOUND_RINGBACK_TONE                     DBUS_TELEPHONY_CALL_INTERFACE":SoundRingbackToneControl"
+#define TAPI_NOTI_CALL_SOUND_WBAMR                                     DBUS_TELEPHONY_CALL_INTERFACE":SoundWbamr"
+#define TAPI_NOTI_CALL_SOUND_EQUALIZATION                      DBUS_TELEPHONY_CALL_INTERFACE":SoundEqualiztion"
+#define TAPI_NOTI_CALL_SOUND_NOISE_REDUCTION           DBUS_TELEPHONY_CALL_INTERFACE":SoundNoiseReduction"
+
+
+#define DBUS_TELEPHONY_MODEM_INTERFACE                         DBUS_TELEPHONY_SERVICE".Modem"
+#define TAPI_NOTI_MODEM_POWER                                          DBUS_TELEPHONY_MODEM_INTERFACE":Power"
+#define TAPI_NOTI_MODEM_DUN_PIN_CTRL                           DBUS_TELEPHONY_MODEM_INTERFACE":DunPinCtrl"
+#define TAPI_NOTI_MODEM_DUN_EXTERNAL_CALL                      DBUS_TELEPHONY_MODEM_INTERFACE":DunExternalCall"
+#define TAPI_PROP_MODEM_POWER                                          DBUS_TELEPHONY_MODEM_INTERFACE":power"
+
+#define DBUS_TELEPHONY_SIM_INTERFACE                           DBUS_TELEPHONY_SERVICE".Sim"
+#define TAPI_NOTI_SIM_STATUS                                           DBUS_TELEPHONY_SIM_INTERFACE":Status"
+
+#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_SESSION_END_EVENT                                DBUS_TELEPHONY_SAT_INTERFACE":EndProactiveSession"
+#define TAPI_NOTI_SAT_MO_SMS_CTRL                                      DBUS_TELEPHONY_SAT_INTERFACE":MoSmsCtrl"
+
+#define DBUS_TELEPHONY_PB_INTERFACE                                    DBUS_TELEPHONY_SERVICE".Phonebook"
+#define TAPI_NOTI_PB_STATUS                                                    DBUS_TELEPHONY_PB_INTERFACE":Status"
+
+// 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"
+
+// SS
+#define DBUS_TELEPHONY_SS_INTERFACE                                    DBUS_TELEPHONY_SERVICE".Ss"
+#define TAPI_NOTI_SS_USSD                                                      DBUS_TELEPHONY_SS_INTERFACE":NotifyUSSD"
+
+// PS
+#define TAPI_NOTI_PS_DUN_PIN_CONTROL "org.tizen.telephony.Ps.PinCtrl"
+
+// SMS
+#define DBUS_TELEPHONY_SMS_INTERFACE   DBUS_TELEPHONY_SERVICE".sms"
+#define TAPI_NOTI_SMS_INCOM_MSG                        DBUS_TELEPHONY_SMS_INTERFACE":IncommingMsg"     /* This is an unsolicited Incoming SMS Event*/
+#define TAPI_NOTI_SMS_CB_INCOM_MSG             DBUS_TELEPHONY_SMS_INTERFACE":IncommingCbMsg"   /* This is an unsolicited Incoming cell broadcast message*/
+#if 0
+#define TAPI_NOTI_SMS_INCOM_EX_MSG "org.tizen.telephony. "             /* This is an extended unsolicited Incoming SMS Event*/
+#define TAPI_NOTI_SMS_CB_INCOM_EX_MSG "org.tizen.telephony. "  /* This is an extended unsolicited Incoming cell broadcast message*/
+#endif
+#define TAPI_NOTI_SMS_MEMORY_STATUS            DBUS_TELEPHONY_SMS_INTERFACE":MemoryStatus"     /* This event is an unsolicited event indicating SIM memory status */
+#define TAPI_NOTI_SMS_DEVICE_READY             DBUS_TELEPHONY_SMS_INTERFACE":DeviceReady"      /* Device Ready indication */
+
+__END_DECLS
+
+#endif /* __TAPI_EVENT_H__ */
diff --git a/include/tapi_sat.h b/include/tapi_sat.h
new file mode 100644 (file)
index 0000000..a34832c
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 _TAPI_SAT_H_
+#define _TAPI_SAT_H_
+
+#include <tapi_type.h>
+
+__BEGIN_DECLS
+
+int tapi_get_sat_main_menu_info(TapiHandle *handle, TelSatSetupMenuInfo_t* pMainMenu);
+int tapi_send_ui_display_status(TapiHandle *handle, int command_id, TelSatUiDisplayStatusType_t status);
+int tapi_send_sat_ui_user_confirm(TapiHandle *handle, TelSatUiUserConfirmInfo_t * pUserConfirmData);
+int tapi_send_sat_app_exec_result(TapiHandle handle, TelSatAppsRetInfo_t* pAppRetInfo);
+
+int tapi_sat_req_menu_selection(TapiHandle *handle, const TelSatMenuSelectionReqInfo_t *menu_select_data, tapi_response_cb callback, void *user_data);
+int tapi_download_sat_event(TapiHandle *handle, const TelSatEventDownloadReqInfo_t *event_data, tapi_response_cb callback, void *user_data);
+
+__END_DECLS
+
+#endif /* _TAPI_SAT_H_ */
diff --git a/include/tapi_type.h b/include/tapi_type.h
new file mode 100644 (file)
index 0000000..866c6b4
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 __TAPI_TYPE_H__
+#define __TAPI_TYPE_H__
+
+__BEGIN_DECLS
+
+#define DBUS_TELEPHONY_SERVICE      "org.tizen.telephony"
+#define DBUS_TELEPHONY_DEFAULT_PATH "/org/tizen/telephony"
+
+typedef struct tapi_handle TapiHandle;
+
+typedef void (*tapi_notification_cb)(TapiHandle *handle, const char *noti_id, void *data, void *user_data);
+typedef void (*tapi_response_cb)(TapiHandle *handle, int result, void *data, void *user_data);
+
+__END_DECLS
+
+#endif /* __TAPI_TYPE_H__ */
index 60d4a0b64f4f97ad150a0b77cd80aff1b8aa359b..c6f54c5344c879bae80a90e0c6879f3258dac3ef 100644 (file)
@@ -1,26 +1,22 @@
-Name:       libslp-tapi
-Summary:    Telephony client API
-Version:    0.5.81
+#sbs-git:slp/pkgs/l/libslp-tapi libslp-tapi 0.1.1
+Name: libslp-tapi
+Summary: Telephony dbus client library
+Version: 0.6.4
 Release:    1
 Group:      System/Libraries
-License:    Apache-2.0
+License:    Apache
 Source0:    libslp-tapi-%{version}.tar.gz
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 BuildRequires:  cmake
-BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(glib-2.0)
-BuildRequires:  pkgconfig(dbus-1)
-BuildRequires:  pkgconfig(gthread-2.0)
+BuildRequires:  pkgconfig(gobject-2.0)
 BuildRequires:  pkgconfig(dlog)
-BuildRequires:  pkgconfig(dbus-glib-1)
 BuildRequires:  pkgconfig(security-server)
 
 %description
 Telephony client API library
 
-
-
 %package devel
 Summary:    Telephony client API (devel)
 Group:      Development/Libraries
@@ -41,30 +37,24 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
 make %{?jobs:-j%jobs}
 
 %install
+rm -rf %{buildroot}
 %make_install
 
 rm -rf %{buildroot}/usr/include/telephony/tapi/.gitignore
 
-
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 
-
-
-
 %files
+%defattr(-,root,root,-)
+#%doc COPYING
 %{_libdir}/*.so.*
-
+#%{_bindir}/tapitest
 
 %files devel
-%{_includedir}/telephony/common/*.h
-%{_includedir}/telephony/tapi/*.h
-%exclude %{_includedir}/telephony/tapi/tapi-lib-proxy.h
-%exclude %{_includedir}/telephony/common/tel_cs_conn.h
+%defattr(-,root,root,-)
+%{_includedir}/telephony-client/*.h
 %{_libdir}/pkgconfig/*.pc
 %{_libdir}/*.so
-
-
diff --git a/src/common.h b/src/common.h
new file mode 100644 (file)
index 0000000..0c63ebe
--- /dev/null
@@ -0,0 +1,65 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 _COMMON_H_
+#define _COMMON_H_
+
+#include <stdio.h>
+#include <glib.h>
+#include <glib-object.h>
+#include <gio/gio.h>
+
+__BEGIN_DECLS
+
+#define MAKE_RESP_CB_DATA(data,handle,cb,user_data)  \
+       if (!handle || !cb) { 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
+
+struct tapi_handle {
+       gpointer dbus_connection;
+       char *path;
+       char *cp_name;
+       GHashTable *evt_list;
+       char cookie[20];
+};
+
+struct tapi_resp_data {
+       tapi_response_cb cb_fn;
+       void* user_data;
+       struct tapi_handle *handle;
+};
+
+struct tapi_evt_cb {
+       int evt_id;
+       tapi_notification_cb cb_fn;
+       void* user_data;
+       struct tapi_handle *handle;
+};
+
+__END_DECLS
+
+#endif /* _TAPI_COMMON_H_ */
+
+/**
+ *  @}
+ */
diff --git a/src/common_tapi_lib.c b/src/common_tapi_lib.c
deleted file mode 100644 (file)
index 51fa5bf..0000000
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <errno.h>
-#include <string.h>
-
-#include <unistd.h>
-#include <stdlib.h>
-#include <security-server.h>
-
-#include <glib-2.0/glib.h>
-
-#include "TelDefines.h"
-#include "tapi-lib-proxy.h"
-#include "tel_cs_conn.h"
-#include "TapiUtility.h"
-#include "tapi_proxy.h"
-
-/* This global stores the proxy connection to dbus */
-DBusGProxy* tapi_cs_proxy = NULL;
-
-extern tapi_dbus_connection_name conn_name;
-
-char *g_cookie_name;
-int g_cookie_size;
-
-/* This global stores error if any during establishing an dbus connection */
-
-static void _dump_cookie(char *data, int size)
-{
-       char buf[255] = { 0, };
-       char tmp[3] = { 0, };
-       int i = 0;
-
-       for (i = 0; i < size; i++) {
-               snprintf(tmp, 3, "%02X", data[i]);
-               strncat(buf, tmp, 3);
-               if ((i + 1) % 8 == 0)
-                       strncat(buf, "  ", 2);
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "cookie=[%s]", buf);
-}
-
-static int _cookie_init(void)
-{
-       int ret;
-
-       ret = security_server_get_cookie_size();
-       if (ret < 0) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "get_cookie_size() failed. ret=%d", ret);
-               return FALSE;
-       }
-       g_cookie_size = ret;
-
-       g_cookie_name = (char *) calloc(1, g_cookie_size + 1);
-       if (!g_cookie_name) {
-               g_cookie_size = 0;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "cookie alloc failed");
-               return FALSE;
-       }
-       else {
-               ret = security_server_request_cookie(g_cookie_name, g_cookie_size);
-               if (ret < 0) {
-                       free(g_cookie_name);
-                       g_cookie_name = NULL;
-                       g_cookie_size = 0;
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "request_cookie() failed. ret=%d", ret);
-                       return FALSE;
-               }
-
-               _dump_cookie(g_cookie_name, g_cookie_size);
-       }
-
-       return TRUE;
-}
-
-/**
- *
- * This function is used to initialise a connnection with telephony server through DBUS.
- *
- * @return                     True / False
- * @param[in]          NONE
- * @param[out]         None
- * @remark
- * @Refer
- */
-static int tapi_init_cs()
-{
-       DBusGConnection* tapi_cs_connection = NULL;
-       GError* err = NULL;
-
-       g_type_init();
-
-       tapi_cs_connection = dbus_g_bus_get(DBUS_BUS_SYSTEM, &err);
-       TAPI_LIB_DEBUG(LEVEL_ERR, "tapi_cs_connection = %x");
-
-       /*      No need to assert but, need to return FALSE     */
-       if (tapi_cs_connection == NULL) {
-               if (err != NULL) {
-                       fprintf(stderr, "[FAILED]connection to dbus failed: %s\n", err->message);
-                       TAPI_LIB_DEBUG(LEVEL_ERR, "failed to get CS connection with error cause");
-                       g_error_free(err);
-               }
-               else {
-                       TAPI_LIB_DEBUG(LEVEL_ERR, "failed to get CS connection with NULL error cause");
-               }
-               return FALSE;
-       }
-
-       tapi_cs_proxy = dbus_g_proxy_new_for_name(tapi_cs_connection, "org.projectx.telephony", "/org/projectx/app",
-                       "org.projectx.telephony");
-
-       /*      No need to assert but, need to return FALSE     */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_cs_proxy, FALSE);
-
-       return TRUE;
-}
-
-/**
- *
- * This function is used to check the connnection status with telephony server through DBUS.
- *
- * @return                     True / False
- * @param[in]          NONE
- * @param[out]         None
- * @remark
- * @Refer
- */
-int tapi_check_dbus_status(void)
-{
-       TS_BOOL result = TRUE;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "DBUS-CS tapi_check_dbus_status");
-
-       if (tapi_cs_proxy != NULL && dbus_g_proxy_get_interface(tapi_cs_proxy)) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "DBUS-CS Ready to use");
-               return TRUE;
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "DBUS-CS Initializing...");
-               if (tapi_init_cs()) {
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "DBUS-CS INIT completed");
-                       result = TRUE;
-               }
-               else {
-                       TAPI_LIB_DEBUG(LEVEL_ERR, "FAIL TO DBUS-CS INIT");
-                       result = FALSE;
-               }
-       }
-
-       return result;
-}
-
-/**
- *
- * This function is used to send the service request to telephony server through DBUS.
- *
- * @return                     True / False
- * @param[in]          tapi_service,tapi_service_function,in_param1,in_param2,in_param3,in_param4
- * @param[out]         out_param1,out_param2,out_param3,out_param4
- * @remark
- * @Refer
- */
-int tapi_send_request(int tapi_service, int tapi_service_function, GArray* in_param1, GArray* in_param2,
-               GArray* in_param3, GArray* in_param4, GArray** out_param1, GArray** out_param2, GArray** out_param3,
-               GArray** out_param4)
-{
-       int error_occurred;
-       TS_BOOL ret = FALSE;
-       TS_BOOL api_ret = TRUE;
-       GError* error = NULL;
-       GArray* in_param5 = ((void *) 0);
-
-       /**
-        * Add d-bus connection name to ALL REQUEST
-        *  - If already appended conn_name to in_param4[0] before tapi_send_request(),
-        *    then append conn_name to in_param4[1] and ignore by telephony-server.
-        */
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-       if (conn_name.length_of_name > 0) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "conn_name=[%s]", conn_name.name);
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "no conn_name. pid=%d", getpid());
-       }
-
-       /**
-        * Add security cookie to ALL REQUEST
-        */
-       if (!g_cookie_name) {
-               if (_cookie_init() != TRUE) {
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "no cookie name. pid=%d", getpid());
-                       return FALSE;
-               }
-       }
-
-       in_param5 = g_array_new(FALSE, FALSE, sizeof(gchar));
-       g_array_append_vals(in_param5, g_cookie_name, g_cookie_size + 1);
-
-       /**
-        * D-Bus send
-        */
-       api_ret = org_projectx_telephony_service_request(tapi_cs_proxy, tapi_service, tapi_service_function, in_param1,
-                       in_param2, in_param3, in_param4, in_param5, out_param1, out_param2, out_param3, out_param4, &error_occurred,
-                       &error);
-
-       if (api_ret != TRUE) {
-               // dBUS-RPC is failed
-               ret = FALSE;
-
-               // We can not say only TS is killed. This is dBUS-RPC failure including TS crash case
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "dBUS-RPC is failed %d", api_ret);
-
-               if (error != NULL) {
-                       // dBUS gives error cause
-                       TAPI_LIB_DEBUG(LEVEL_ALERT,
-                                       "D-Bus API failure: errCode[0x%x], message: [%s], service type=%d, service function=0x%x",
-                                       error_occurred, error->message, tapi_service, tapi_service_function);
-
-                       g_error_free(error);
-               }
-               else {
-                       // dBUS does not give error cause even though dBUS-RPC is failed
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "dBUS RPC is failed but error returned was NULL");
-               }
-       }
-       else {
-               // dBUS-RPC is successfully done
-               ret = TRUE;
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "dBUS RPC is successfully done. service type=%d, service function=0x%x",
-                               tapi_service, tapi_service_function);
-       }
-
-       g_array_free(in_param5, TRUE);
-
-       return ret;
-}
diff --git a/src/common_tapi_lib_internal.c b/src/common_tapi_lib_internal.c
deleted file mode 100644 (file)
index 21aedbf..0000000
+++ /dev/null
@@ -1,246 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <errno.h>
-#include <string.h>
-
-#include <glib-2.0/glib.h>
-
-#include <unistd.h>
-#include <stdlib.h>
-#include <security-server.h>
-
-#include <TelDefines.h>
-#include <TapiCommon.h>
-
-#include "tapi-lib-proxy.h"
-#include "TapiUtility.h"
-#include "tapi_proxy_internal.h"
-
-/* This global stores the proxy connection to dbus */
-DBusGProxy* tapi_cs_proxy_internal;
-
-static char g_priv_cookie_name[255] = { 0, };
-static int g_priv_cookie_size = 0;
-
-/**
- *
- * This function is used to initialise a connnection with telephony server through DBUS.
- *
- * @return                     True / False
- * @param[in]          NONE
- * @param[out]         None
- * @remark
- * @Refer
- */
-static int tapi_init_cs_internal()
-{
-       DBusGConnection* tapi_cs_connection = NULL;
-       GError* err = NULL;
-       g_type_init();
-
-       tapi_cs_connection = dbus_g_bus_get(DBUS_BUS_SYSTEM, &err);
-       TAPI_LIB_DEBUG(LEVEL_ERR, "tapi_cs_connection = 0x%x");
-
-       /*      No need to assert but, need to return FALSE     */
-       if (tapi_cs_connection == NULL) {
-               if (err != NULL) {
-                       fprintf(stderr, "[FAILED]connection to dbus failed: %s\n", err->message);
-                       TAPI_LIB_DEBUG(LEVEL_ERR, "failed to get CS connection with error cause");
-                       g_error_free(err);
-               }
-               else {
-                       TAPI_LIB_DEBUG(LEVEL_ERR, "failed to get CS connection with NULL error cause");
-               }
-               return FALSE;
-       }
-
-       tapi_cs_proxy_internal = dbus_g_proxy_new_for_name(tapi_cs_connection, "org.projectx.telephony",
-                       "/org/projectx/app", "org.projectx.telephony");
-
-       /*      No need to assert but, need to return FALSE     */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_cs_proxy_internal, FALSE);
-
-       return TRUE;
-}
-
-/**
- *
- * This function is used to check the connnection status with telephony server through DBUS.
- *
- * @return                     True / False
- * @param[in]          NONE
- * @param[out]         None
- * @remark
- * @Refer
- */
-int tapi_check_dbus_status_internal(void)
-{
-       TS_BOOL result = TRUE;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "DBUS-CS tapi_check_dbus_status");
-
-       if (tapi_cs_proxy_internal != NULL && dbus_g_proxy_get_interface(tapi_cs_proxy_internal)) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "DBUS-CS Ready to use");
-               return TRUE;
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "DBUS-CS Initializing...");
-               if (tapi_init_cs_internal()) {
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "DBUS-CS INIT completed");
-                       result = TRUE;
-               }
-               else {
-                       TAPI_LIB_DEBUG(LEVEL_ERR, "FAIL TO DBUS-CS INIT");
-                       result = FALSE;
-               }
-       }
-       return result;
-}
-
-static void _dump_cookie(char *data, int size)
-{
-       char buf[255] = { 0, };
-       char tmp[3] = { 0, };
-       int i = 0;
-
-       for (i = 0; i < size; i++) {
-               snprintf(tmp, 3, "%02X", data[i]);
-               strncat(buf, tmp, 3);
-               if ((i + 1) % 8 == 0)
-                       strncat(buf, "  ", 2);
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "cookie=[%s]", buf);
-}
-
-static int _cookie_init(void)
-{
-       int ret;
-
-       ret = security_server_get_cookie_size();
-       if (ret < 0) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "get_cookie_size() failed. ret=%d", ret);
-               return FALSE;
-       }
-       g_priv_cookie_size = ret;
-
-       ret = security_server_request_cookie(g_priv_cookie_name, g_priv_cookie_size);
-       if (ret < 0) {
-               memset(g_priv_cookie_name, 0, 255);
-               g_priv_cookie_size = 0;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "request_cookie() failed. ret=%d", ret);
-               return FALSE;
-       }
-
-       _dump_cookie(g_priv_cookie_name, g_priv_cookie_size);
-
-       return TRUE;
-}
-/**
- *
- * This function is used to send the service request to telephony server through DBUS.
- *
- * @return                     True / False
- * @param[in]          tapi_service,tapi_service_function,in_param1,in_param2,in_param3,in_param4
- * @param[out]         out_param1,out_param2,out_param3,out_param4
- * @remark
- * @Refer
- */
-
-TS_BOOL tapi_send_request_internal(int tapi_service, int tapi_service_function, GArray* in_param1, GArray* in_param2,
-               GArray* in_param3, GArray* in_param4, GArray** out_param1, GArray** out_param2, GArray** out_param3,
-               GArray** out_param4)
-{
-       TS_BOOL ret = FALSE;
-       int error_occurred;
-       GError* error = NULL;
-       TS_BOOL api_ret = TRUE;
-
-       GArray* in_param5 = ((void *) 0);
-
-       /**
-        * Add d-bus connection name to ALL REQUEST
-        *  - If already appended conn_name to in_param4[0] before tapi_send_request(),
-        *    then append conn_name to in_param4[1] and ignore by telephony-server.
-        */
-       tapi_dbus_connection_name app_name;
-       tel_get_app_name(&app_name);
-       if (app_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "No dbus connection name (pid=%d)", getpid());
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "conn_name=[%s]", app_name.name);
-       }
-       g_array_append_vals(in_param4, &app_name, sizeof(tapi_dbus_connection_name));
-
-       /**
-        * Add security cookie to ALL REQUEST
-        */
-       if (g_priv_cookie_size == 0) {
-               if (_cookie_init() != TRUE) {
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "no cookie name. pid=%d", getpid());
-                       return FALSE;
-               }
-       }
-
-       in_param5 = g_array_new(FALSE, FALSE, sizeof(gchar));
-       g_array_append_vals(in_param5, g_priv_cookie_name, g_priv_cookie_size + 1);
-
-       /**
-        * D-Bus send
-        */
-       api_ret = org_projectx_telephony_service_request_sec(tapi_cs_proxy_internal, tapi_service, tapi_service_function,
-                       in_param1, in_param2, in_param3, in_param4, in_param5, out_param1, out_param2, out_param3, out_param4,
-                       &error_occurred, &error);
-
-       if (api_ret != TRUE) {
-               // dBUS-RPC is failed
-               ret = FALSE;
-
-               // We can not say only TS is killed. This is dBUS-RPC failure including TS crash case
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "dBUS-RPC is failed %d", api_ret);
-
-               if (error != NULL) {
-                       // dBUS gives error cause
-                       TAPI_LIB_DEBUG(LEVEL_ALERT,
-                                       " D-Bus API failure: errCode[0x%x], message:[%s], service type=%d, service function=0x%x",
-                                       error_occurred, error->message, tapi_service, tapi_service_function);
-
-                       g_error_free(error);
-               }
-               else {
-                       // dBUS does not give error cause even though dBUS-RPC is failed
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "dBUS RPC is failed but error returned was NULL ");
-               }
-       }
-       else {
-               // dBUS-RPC is successfully done
-               ret = TRUE;
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "dBUS RPC is successfully done. service type=%d, service function=0x%x",
-                               tapi_service, tapi_service_function);
-       }
-
-       g_array_free(in_param5, TRUE);
-
-       return ret;
-}
diff --git a/src/porting/tel_marshaler.c b/src/porting/tel_marshaler.c
deleted file mode 100644 (file)
index 4c01c65..0000000
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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       <glib-object.h>
-
-#ifdef G_ENABLE_DEBUG
-#define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
-#define g_marshal_value_peek_char(v)     g_value_get_char (v)
-#define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
-#define g_marshal_value_peek_int(v)      g_value_get_int (v)
-#define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
-#define g_marshal_value_peek_long(v)     g_value_get_long (v)
-#define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
-#define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
-#define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
-#define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
-#define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
-#define g_marshal_value_peek_float(v)    g_value_get_float (v)
-#define g_marshal_value_peek_double(v)   g_value_get_double (v)
-#define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
-#define g_marshal_value_peek_param(v)    g_value_get_param (v)
-#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
-#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
-#define g_marshal_value_peek_object(v)   g_value_get_object (v)
-#else /* !G_ENABLE_DEBUG */
-/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
- *          Do not access GValues directly in your code. Instead, use the
- *          g_value_get_*() functions
- */
-#define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
-#define g_marshal_value_peek_char(v)     (v)->data[0].v_int
-#define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
-#define g_marshal_value_peek_int(v)      (v)->data[0].v_int
-#define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
-#define g_marshal_value_peek_long(v)     (v)->data[0].v_long
-#define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
-#define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
-#define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
-#define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
-#define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
-#define g_marshal_value_peek_float(v)    (v)->data[0].v_float
-#define g_marshal_value_peek_double(v)   (v)->data[0].v_double
-#define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
-#define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
-#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
-#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
-#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
-#endif /* !G_ENABLE_DEBUG */
-
-/* VOID:INT,STRING (mashal.in:1) */
-void g_cclosure_user_marshal_VOID__INT_STRING(
-               GClosure *closure,
-               GValue *return_value G_GNUC_UNUSED,
-               guint n_param_values,
-               const GValue *param_values,
-               gpointer invocation_hint G_GNUC_UNUSED,
-               gpointer marshal_data)
-{
-       typedef void (*GMarshalFunc_VOID__INT_STRING)(gpointer data1, gint arg_1, gpointer arg_2, gpointer data2);
-
-       register GMarshalFunc_VOID__INT_STRING callback;
-       register GCClosure *cc = (GCClosure*) closure;
-       register gpointer data1, data2;
-
-       g_return_if_fail (n_param_values == 3);
-
-       if (G_CCLOSURE_SWAP_DATA (closure)) {
-               data1 = closure->data;
-               data2 = g_value_peek_pointer(param_values + 0);
-       }
-       else {
-               data1 = g_value_peek_pointer(param_values + 0);
-               data2 = closure->data;
-       }
-       callback = (GMarshalFunc_VOID__INT_STRING) (marshal_data ? marshal_data : cc->callback);
-
-       callback(data1, g_marshal_value_peek_int (param_values + 1), g_marshal_value_peek_string (param_values + 2), data2);
-}
-
-/* VOID:INT,INT,INT,STRING (mashal.in:2) */
-void g_cclosure_user_marshal_VOID__INT_INT_INT_STRING(
-               GClosure *closure,
-               GValue *return_value G_GNUC_UNUSED,
-               guint n_param_values,
-               const GValue *param_values,
-               gpointer invocation_hint G_GNUC_UNUSED,
-               gpointer marshal_data)
-{
-       typedef void (*GMarshalFunc_VOID__INT_INT_INT_STRING)(
-                       gpointer data1,
-                       gint arg_1,
-                       gint arg_2,
-                       gint arg_3,
-                       gpointer arg_4,
-                       gpointer data2);
-
-       register GMarshalFunc_VOID__INT_INT_INT_STRING callback;
-       register GCClosure *cc = (GCClosure*) closure;
-       register gpointer data1, data2;
-
-       g_return_if_fail (n_param_values == 5);
-
-       if (G_CCLOSURE_SWAP_DATA (closure)) {
-               data1 = closure->data;
-               data2 = g_value_peek_pointer(param_values + 0);
-       }
-       else {
-               data1 = g_value_peek_pointer(param_values + 0);
-               data2 = closure->data;
-       }
-       callback = (GMarshalFunc_VOID__INT_INT_INT_STRING) (marshal_data ? marshal_data : cc->callback);
-
-       callback(data1, g_marshal_value_peek_int (param_values + 1), g_marshal_value_peek_int (param_values + 2),
-                       g_marshal_value_peek_int (param_values + 3), g_marshal_value_peek_string (param_values + 4), data2);
-}
-
-/* VOID:INT,INT,INT,INT,STRING (mashal.in:3) */
-void g_cclosure_user_marshal_VOID__INT_INT_INT_INT_STRING(
-               GClosure *closure,
-               GValue *return_value G_GNUC_UNUSED,
-               guint n_param_values,
-               const GValue *param_values,
-               gpointer invocation_hint G_GNUC_UNUSED,
-               gpointer marshal_data)
-{
-       typedef void (*GMarshalFunc_VOID__INT_INT_INT_INT_STRING)(
-                       gpointer data1,
-                       gint arg_1,
-                       gint arg_2,
-                       gint arg_3,
-                       gint arg_4,
-                       gpointer arg_5,
-                       gpointer data2);
-
-       register GMarshalFunc_VOID__INT_INT_INT_INT_STRING callback;
-       register GCClosure *cc = (GCClosure*) closure;
-       register gpointer data1, data2;
-
-       g_return_if_fail (n_param_values == 6);
-
-       if (G_CCLOSURE_SWAP_DATA (closure)) {
-               data1 = closure->data;
-               data2 = g_value_peek_pointer(param_values + 0);
-       }
-       else {
-               data1 = g_value_peek_pointer(param_values + 0);
-               data2 = closure->data;
-       }
-       callback = (GMarshalFunc_VOID__INT_INT_INT_INT_STRING) (marshal_data ? marshal_data : cc->callback);
-
-       callback(data1, g_marshal_value_peek_int (param_values + 1), g_marshal_value_peek_int (param_values + 2),
-                       g_marshal_value_peek_int (param_values + 3), g_marshal_value_peek_int (param_values + 4),
-                       g_marshal_value_peek_string (param_values + 5), data2);
-}
-
diff --git a/src/tapi-lib.xml b/src/tapi-lib.xml
deleted file mode 100644 (file)
index 4691b40..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<node name="/org/projectx/app">
-  <interface name="org.projectx.telephony">
-    <method name="service_request">
-      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="telephony_service_requests_cb"/>
-      <!-- This parameter is used to identify the tapi service -->
-      <arg type="i" name="tapi_service" direction="in" />
-      <!-- This parameter is used to identify the tapi service function  -->
-      <arg type="i" name="tapi_service_function" direction="in" />
-      <!-- INPUT PARAMS FOR SERVICE FUNCTION  -->
-      <arg type="ay" name="service_func_input_param1" direction="in" />
-      <arg type="ay" name="service_func_input_param2" direction="in" />
-      <arg type="ay" name="service_func_input_param3" direction="in" />
-      <arg type="ay" name="service_func_input_param4" direction="in" /> <!-- connection name -->
-      <arg type="ay" name="service_func_input_param5" direction="in" /> <!-- security cookie -->
-      <!-- OUTPUT PARAMS FOR SERVICE FUNCTION  -->
-            <!-- here we are taking four output params , we may not need 4, for future uses -->
-      <arg type="ay" name="service_func_output_param1" direction="out" />
-      <arg type="ay" name="service_func_output_param2" direction="out" />
-      <arg type="ay" name="service_func_output_param3" direction="out" />
-      <arg type="ay" name="service_func_output_param4" direction="out" />
-      <!-- send error code if any -->
-      <arg type="i" name="error_code" direction="out" />
-    </method>
-
-    <method name="service_request_sec">
-      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="telephony_service_requests_sec_cb"/>
-      <!-- This parameter is used to identify the tapi service -->
-      <arg type="i" name="tapi_service" direction="in" />
-      <!-- This parameter is used to identify the tapi service function  -->
-      <arg type="i" name="tapi_service_function" direction="in" />
-      <!-- INPUT PARAMS FOR SERVICE FUNCTION  -->
-      <arg type="ay" name="service_func_input_param1" direction="in" />
-      <arg type="ay" name="service_func_input_param2" direction="in" />
-      <arg type="ay" name="service_func_input_param3" direction="in" />
-      <arg type="ay" name="service_func_input_param4" direction="in" /> <!-- connection name -->
-      <arg type="ay" name="service_func_input_param5" direction="in" /> <!-- security cookie -->
-      <!-- OUTPUT PARAMS FOR SERVICE FUNCTION  -->
-      <!-- here we are taking four output params , we may not need 4, for future uses -->
-      <arg type="ay" name="service_func_output_param1" direction="out" />
-      <arg type="ay" name="service_func_output_param2" direction="out" />
-      <arg type="ay" name="service_func_output_param3" direction="out" />
-      <arg type="ay" name="service_func_output_param4" direction="out" />
-      <!-- send error code if any -->
-      <arg type="i" name="error_code" direction="out" />
-    </method>
-  </interface>
-</node>
-
diff --git a/src/tapi_call.c b/src/tapi_call.c
new file mode 100644 (file)
index 0000000..50bb282
--- /dev/null
@@ -0,0 +1,981 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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 "TelCall.h"
+#include "tapi_common.h"
+#include "TapiUtility.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiCall.h"
+
+static void on_response_call_dial(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_call_answer(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelCallAnswerCnf_t data;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_call_end(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelCallEndCnf_t data;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_call_hold(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelCallHoldCnf_t data;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+
+}
+
+static void on_response_call_active(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelCallActiveCnf_t data;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+
+
+}
+
+static void on_response_call_swap(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelCallSwapCnf_t data;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_call_join(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelCallJoinCnf_t data;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_call_split(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelCallSplitCnf_t data;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_call_transfer(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelCallTransferCnf_t data;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_call_dtmf(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_call_deflect(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_get_call_volume_info(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1, i = 0;
+       TelCallGetVolumeInfoResp_t resp;
+
+       GVariant *dbus_result = 0, *value = 0;
+       GVariantIter *iter = 0;
+       GVariantIter *iter_row = 0;
+       const gchar *key = 0;
+
+
+       memset(&resp, '\0', sizeof(TelCallGetVolumeInfoResp_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(aa{sv}i)", &iter, &result);
+
+       resp.record_num = g_variant_iter_n_children(iter);
+
+       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") ) {
+                               int type = g_variant_get_int32(value);
+
+                               resp.record[i].device = (type & 0xf0);
+                               resp.record[i].type = (type & 0x0f);
+                       }
+
+                       if ( !g_strcmp0(key, "level") ) {
+                               resp.record[i].volume = g_variant_get_int32(value);
+                       }
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+}
+
+static void on_response_set_call_volume_info(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_set_call_sound_path(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_set_call_mute_status(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_get_call_mute_status(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1, status = 0;
+       TelCallGetMuteStatusResp_t resp;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(ii)", &result, &resp.status);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &status, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_set_call_sound_recording(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_set_call_sound_equalization(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_set_call_sound_noise_reduction(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+EXPORT_API int tel_dial_call(TapiHandle *handle, const TelCallDial_t *pParams, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(is)", pParams->CallType, pParams->szNumber);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Dial", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_dial, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+
+EXPORT_API int tel_answer_call(TapiHandle *handle, unsigned int CallHandle, TelCallAnswerType_t AnsType, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ii)", CallHandle, AnsType);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Answer", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_answer, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_end_call(TapiHandle *handle, unsigned int CallHandle, TelCallEndType_t EndType, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ii)", CallHandle, EndType);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "End", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_end, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_hold_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", CallHandle);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Hold", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_hold, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_active_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", CallHandle);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Active", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_active, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_swap_call(TapiHandle *handle, unsigned int CallHandle1, unsigned int CallHandle2, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", CallHandle1, CallHandle2);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Swap", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_swap, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_join_call(TapiHandle *handle, unsigned int CallHandle1, unsigned int CallHandle2, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", CallHandle1, CallHandle2);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Join", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_join, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_split_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", CallHandle);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Split", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_split, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_transfer_call(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", CallHandle);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Transfer", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_transfer, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_activate_call_ccbs(TapiHandle *handle, unsigned int CallHandle, tapi_response_cb callback, void *user_data )
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_call_dtmf(TapiHandle *handle, const char *pDtmfString, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(s)", pDtmfString);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Dtmf", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_dtmf, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_deflect_call(TapiHandle *handle, unsigned int CallHandle, const TelCallDeflectDstInfo_t *pInfo, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(is)", CallHandle, pInfo->number);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "Deflect", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_call_deflect, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_call_status(TapiHandle *handle, int call_id, TelCallStatus_t *out )
+{
+       GVariant *gv = 0;
+       GVariant *param = 0;
+
+       GError *gerr = 0;
+
+       gchar *call_number;
+       gint call_type = 0;
+       gboolean call_direction = FALSE;
+       gint call_state = 0;
+       gboolean call_multiparty_state = FALSE;
+
+       if ( !out ) {
+               dbg("[ error ] out : 0 ");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       param = g_variant_new("(i)", call_id);
+
+       gv = g_dbus_connection_call_sync(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "GetStatus", param, 0, G_DBUS_CALL_FLAGS_NONE, -1, 0,   &gerr);
+
+       if ( gv ) {
+               g_variant_get(gv, "(isibib)", &call_id, &call_number, &call_type, &call_direction, &call_state, &call_multiparty_state);
+
+               out->CallHandle = (int)call_id;
+               out->bMoCall = (int)call_direction;
+               strncpy( out->pNumber, call_number, TAPI_CALL_DIALDIGIT_LEN_MAX );
+
+               dbg("[ check ] call_number : %s", call_number);
+               dbg("[ check ] out->pNumber : %s", out->pNumber);
+
+               out->CallType = (TelCallType_t)call_type;
+               out->CallState = (TelCallStates_t)call_state;
+               out->bConferenceState = (int)call_multiparty_state;
+
+               g_free( call_number );
+
+       } else {
+
+               dbg("[ error ] fail to get call status : (0x%x)", call_id);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_call_status_all( TapiHandle *handle, TelCallStatusCallback cb, void *user_data )
+{
+       GVariant *gv = 0;
+       GVariantIter *iter = 0, *iter_row = 0;  
+       GError *gerr = 0;
+
+       if ( !cb ) {
+               dbg("[ error ] out : 0 ");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       gv = g_dbus_connection_call_sync(handle->dbus_connection,
+                                                                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                                                                       "GetStatusAll", 0, 0, G_DBUS_CALL_FLAGS_NONE, -1, 0, &gerr);
+
+       if ( gv ) {
+
+               TelCallStatus_t data;
+               gchar *key = 0;
+               GVariant *value = 0;
+
+               g_variant_get(gv, "(aa{sv})", &iter);
+
+               while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+
+                       while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+
+                               if (!g_strcmp0(key, "call_id")) {
+                                       data.CallHandle = g_variant_get_int32(value);
+                               }
+                               if (!g_strcmp0(key, "call_number")) {
+                                       strncpy(data.pNumber, g_variant_get_string(value, 0), TAPI_CALL_DIALDIGIT_LEN_MAX);
+                               }
+                               if (!g_strcmp0(key, "call_type")) {
+                                       data.CallType = (int)g_variant_get_int32(value);
+                               }
+                               if (!g_strcmp0(key, "call_direction")) {
+                                       data.bMoCall = (int)g_variant_get_boolean(value);
+                               }
+                               if (!g_strcmp0(key, "call_state")) {
+                                       data.CallState = (int)g_variant_get_int32(value);
+                               }
+                               if (!g_strcmp0(key, "call_multiparty_state")) {
+                                       data.bConferenceState = (int)g_variant_get_boolean(value);
+                               }
+
+                       }
+
+                       g_variant_iter_free(iter_row);
+
+                       cb( &data, user_data );
+               }
+               g_variant_iter_free(iter);
+       } else {
+
+               dbg("[ error ] fail to get call status");
+               return TAPI_API_OPERATION_FAILED;
+
+       }
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_call_act_line(TapiHandle *handle, tapi_response_cb callback, void *user_data )
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_call_act_line(TapiHandle *handle, TelCallActiveLine_t active_line, tapi_response_cb callback, void *user_data )
+{
+       return TAPI_API_SUCCESS;
+}
+
+/*================================================================================================*/
+
+EXPORT_API int tel_get_call_duration(TapiHandle *handle, unsigned int CallHandle, unsigned int *pDurationInSecs)
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_call_conf_list(TapiHandle *handle, unsigned int CallHandle, unsigned int *pCallList, int *pNoOfCalls)
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_call_privacy_mode(TapiHandle *handle, TelCallPrivacyType_t PrivacyType, tapi_response_cb callback, void *user_data )
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_call_privacy_mode(TapiHandle *handle, TelCallVoicePrivacyInfo_t PrivacyInfo, tapi_response_cb callback, void *user_data )
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_exe_call_flash_info(TapiHandle *handle, const char *pDialNumber, tapi_response_cb callback, void *user_data )
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_exit_call_emergency_mode(TapiHandle *handle, tapi_response_cb callback, void *user_data )
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_call_time(TapiHandle *handle, unsigned short req_mask, tapi_response_cb callback, void *user_data )
+{
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_call_volume_info(TapiHandle *handle, TelSoundDevice_t device, TelSoundType_t type, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ii)", device, type);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "GetVolume", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_call_volume_info, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_call_volume_info(TapiHandle *handle, TelCallVolumeInfo_t *info, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(iii)", info->device, info->type, info->volume);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "SetVolume", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_set_call_volume_info, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_call_sound_path(TapiHandle *handle, TelCallSoundPathInfo_t *info, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ib)", info->path, info->ex_volume);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       "SetSoundPath", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_set_call_sound_path, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_call_mute_status(TapiHandle *handle, TelSoundMuteStatus_t mute, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       char *method = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       if ( mute == TAPI_SOUND_MUTE_STATUS_ON ) 
+               method = "Mute";
+       else
+               method = "Unmute";
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_CALL_INTERFACE,
+                       method, 0, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_set_call_mute_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_call_mute_status(TapiHandle *handle, tapi_response_cb callback, void *user_data )
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+
+       dbg("Func Entrance ");
+
+       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_CALL_INTERFACE,
+                       "GetMuteStatus", 0, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_call_mute_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API  int tel_set_call_sound_recording(TapiHandle *handle, TelSoundRecording_t *on, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       param = g_variant_new("(i)", on);
+
+       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_CALL_INTERFACE,
+                       "SetSoundRecording", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_set_call_sound_recording, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API  int tel_set_call_sound_equalization(TapiHandle *handle, TelCallSoundEqualization_t *eq, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       param = g_variant_new("(iis)", eq->mode, eq->direction, eq->parameter);
+
+       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_CALL_INTERFACE,
+                       "SetSoundEqualization", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_set_call_sound_equalization, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API  int tel_set_call_sound_noise_reduction(TapiHandle *handle, TelSoundNoiseReduction_t noise, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       param = g_variant_new("(i)", noise);
+
+       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_CALL_INTERFACE,
+                       "SetSoundNoiseReduction", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_set_call_sound_noise_reduction, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+
+/*     EOF  */
+
diff --git a/src/tapi_common.c b/src/tapi_common.c
new file mode 100644 (file)
index 0000000..b830a0c
--- /dev/null
@@ -0,0 +1,1007 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 <glib.h>
+#include <glib-object.h>
+#include <gio/gio.h>
+
+#include "tapi_common.h"
+#include "TapiUtility.h"
+
+//
+#include "ITapiPS.h"
+#include "TelNetwork.h"
+#include "TelSms.h"
+#include "TelSat.h"
+#include "TelSs.h"
+#include "TelCall.h"
+
+//
+#include "common.h"
+#include "tapi_log.h"
+
+extern char *g_cookie_name;
+extern int g_cookie_size;
+
+TelSatEventDownloadType_t g_event_list[TAPI_SAT_EVENT_LIST_MAX_COUNT] = {-1};
+
+/*static void _cookie_deinit(void)
+{
+       if (g_cookie_name)
+               free(g_cookie_name);
+
+       g_cookie_name = NULL;
+       g_cookie_size = 0;
+}*/
+
+static void on_signal_callback(GDBusConnection *conn, const gchar *name, const gchar *path, const gchar *interface,
+               const gchar *sig, GVariant *param, gpointer user_data)
+{
+       TapiHandle *handle = user_data;
+       struct tapi_evt_cb *evt_cb_data = NULL;
+       char *noti_id;
+       void *noti_data = NULL;
+
+       if (!handle) {
+               dbg("handle is NULL");
+               return;
+       }
+
+       noti_id = g_strdup_printf("%s:%s", interface, sig);
+
+       evt_cb_data = g_hash_table_lookup(handle->evt_list, noti_id);
+       if (!evt_cb_data) {
+               dbg("can't find noti_id(%s) callback info", noti_id);
+               g_free(noti_id);
+               return;
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_NETWORK_INTERFACE)) {
+               if (!g_strcmp0(sig, "RegistrationStatus")) {
+                       struct tel_noti_network_registration_status noti;
+
+                       g_variant_get(param, "(iiib)", &noti.cs, &noti.ps, &noti.type, &noti.is_roaming);
+                       noti_data = &noti;
+               }
+               else if (!g_strcmp0(sig, "Info")) {
+                       struct tel_noti_network_info noti;
+
+                       memset(&noti, 0, sizeof(struct tel_noti_network_info));
+                       g_variant_get(param, "(ii)", &noti.rssi, &noti.battery);
+
+                       noti_data = &noti;
+               }
+               else if (!g_strcmp0(sig, "CellInfo")) {
+                       struct tel_noti_network_cell_info noti;
+
+                       memset(&noti, 0, sizeof(struct tel_noti_network_cell_info));
+                       g_variant_get(param, "(ii)", &noti.lac, &noti.cell_id);
+
+                       noti_data = &noti;
+               }
+               else if (!g_strcmp0(sig, "Change")) {
+                       struct tel_noti_network_change noti;
+                       char *plmn = NULL;
+
+                       memset(&noti, 0, sizeof(struct tel_noti_network_change));
+
+                       g_variant_get(param, "(isi)", &noti.act, &plmn, &noti.lac);
+
+                       if (plmn) {
+                               snprintf(noti.plmn, 7, "%s", plmn);
+                       }
+
+                       noti_data = &noti;
+               }
+               else if (!g_strcmp0(sig, "TimeInfo")) {
+                       struct tel_noti_network_time_info noti;
+                       char *plmn = NULL;
+
+                       memset(&noti, 0, sizeof(struct tel_noti_network_time_info));
+                       g_variant_get(param, "(iiiiiiiiibs)", &noti.year, &noti.month, &noti.day,
+                                       &noti.hour, &noti.minute, &noti.second,
+                                       &noti.wday, &noti.gmtoff, &noti.dstoff, &noti.isdst,
+                                       &plmn);
+
+                       if (plmn) {
+                               snprintf(noti.plmn, 7, "%s", plmn);
+                       }
+
+                       noti_data = &noti;
+               }
+               else if (!g_strcmp0(sig, "Identity")) {
+                       struct tel_noti_network_identity noti;
+                       char *plmn = NULL, *s_name = NULL, *f_name = NULL;
+
+                       memset(&noti, 0, sizeof(struct tel_noti_network_identity));
+
+                       g_variant_get(param, "(sss)", &plmn, &s_name, &f_name);
+
+                       if (plmn) {
+                               snprintf(noti.plmn, 7, "%s", plmn);
+                       }
+                       if (s_name) {
+                               snprintf(noti.short_name, 17, "%s", s_name);
+                       }
+                       if (f_name) {
+                               snprintf(noti.full_name, 33, "%s", f_name);
+                       }
+
+                       noti_data = &noti;
+               }
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_SMS_INTERFACE)) {
+               if (!g_strcmp0(sig, "IncommingMsg")) {
+                       struct tel_noti_sms_incomming_msg noti;
+
+                       const char *sca = NULL;
+                       const char *tpdu = NULL;
+                       gsize length;
+                       guchar *decoded_sca = NULL;
+                       guchar *decoded_tpdu = NULL;
+
+                       memset(&noti, 0, sizeof(struct tel_noti_sms_incomming_msg));
+
+                       g_variant_get(param, "(sis)", &sca, &noti.MsgLength, &tpdu);
+
+                       decoded_sca = g_base64_decode(sca, &length);
+                       memcpy(&(noti.Sca[0]), decoded_sca, TAPI_SIM_SMSP_ADDRESS_LEN);
+
+                       decoded_tpdu = g_base64_decode(tpdu, &length);
+                       memcpy(&(noti.szData[0]), decoded_tpdu, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
+
+                       noti_data = &noti;
+
+                       if(decoded_sca)
+                               g_free(decoded_sca);
+
+                       if(decoded_tpdu)
+                               g_free(decoded_tpdu);
+
+               }
+               else if (!g_strcmp0(sig, "IncommingCbMsg")) {
+                       struct tel_noti_sms_incomming_cb_msg noti;
+
+                       const char *cbMsg = NULL;
+                       gsize length;
+                       guchar *decoded_cbMsg = NULL;
+
+                       memset(&noti, 0, sizeof(struct tel_noti_sms_incomming_cb_msg));
+                       g_variant_get(param, "(iis)", &noti.CbMsgType, &noti.Length, &cbMsg);
+
+                       decoded_cbMsg = g_base64_decode(cbMsg, &length);
+                       memcpy(&(noti.szMsgData[0]), decoded_cbMsg, TAPI_NETTEXT_CB_PAGE_SIZE_MAX + 1);
+
+                       noti_data = &noti;
+
+                       if(decoded_cbMsg)
+                               g_free(decoded_cbMsg);
+
+               }
+               else if (!g_strcmp0(sig, "MemoryStatus")) {
+                       int noti = 0;
+
+                       g_variant_get(param, "(i)", &noti);
+                       noti_data = &noti;
+               }
+               else if (!g_strcmp0(sig, "SmsReady")) {
+                       gboolean noti = 0;
+
+                       g_variant_get(param, "(b)", &noti);
+                       noti_data = &noti;
+               }
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_CALL_INTERFACE)) {
+               if (!g_strcmp0(sig, "VoiceCallStatusIdle") || !g_strcmp0(sig, "VideoCallStatusIdle") ) {
+                       TelCallStatusIdleNoti_t data;
+                       int start_time = 0, end_time = 0;
+                       g_variant_get(param, "(iiii)", &data.id, &data.cause, &start_time, &end_time);
+                       dbg("[ check ] %s : call_id(%d), end_cause(0x%x)", "Status Idle noti", data.id, data.cause);
+                       noti_data = &data;
+               }
+               if (!g_strcmp0(sig, "VoiceCallStatusDialing") || !g_strcmp0(sig, "VideoCallStatusDialing")) {
+                       TelCallStatusDialingNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : call_id(%d)", "Status Dialing noti", data.id);
+                       noti_data = &data;
+               }
+               if (!g_strcmp0(sig, "VoiceCallStatusAlert") || !g_strcmp0(sig, "VideoCallStatusAlert")) {
+                       TelCallStatusAlertNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : call_id(%d)", "Status Alert noti", data.id);
+                       noti_data = &data;
+               }
+               if (!g_strcmp0(sig, "VoiceCallStatusActive") || !g_strcmp0(sig, "VideoCallStatusActive")) {
+                       TelCallStatusActiveNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : call_id(%d)", "Status Active noti", data.id);
+                       noti_data = &data;
+               }
+               if (!g_strcmp0(sig, "VoiceCallStatusHeld") ) {
+                       TelCallStatusHeldNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : call_id(%d)", "Status Held noti", data.id);
+                       noti_data = &data;
+               }
+               if (!g_strcmp0(sig, "VoiceCallStatusIncoming") || !g_strcmp0(sig, "VideoCallStatusIncoming")) {
+                       TelCallStatusIncomingNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : call_id(%d)", "Status Incoming noti", data.id);
+                       noti_data = &data;
+               }
+               if (!g_strcmp0(sig, "Waiting")) {
+                       TelCallInfoWaitingNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Waiting noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "Forwarded")) {
+                       TelCallInfoForwardedNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Forwarded noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "BarredIncoming")) {
+                       TelCallInfoBarredIncomingNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Barred Incoming noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "BarredOutgoing")) {
+                       TelCallInfoBarredOutgoingNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Barred Outgoing noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "ForwardConditional")) {
+                       TelCallInfoForwardConditionalNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Forward Conditional noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "ForwardUnconditional")) {
+                       TelCallInfoForwardUnconditionalNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Forward Unconditional noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "CallActive")) {
+                       TelCallInfoActiveNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Call Active noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "CallHeld")) {
+                       TelCallInfoHeldNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Call Held noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "CallJoined")) {
+                       TelCallInfoJoinedNoti_t data;
+                       g_variant_get(param, "(i)", &data.id);
+                       dbg("[ check ] %s : data.id(%d)", "Call Info Call Joined noti", data.id);
+                       noti_data = &data.id;
+               }
+               if (!g_strcmp0(sig, "CallSoundPath")) {
+                       TelCallSoundPathNoti_t data;
+                       g_variant_get(param, "(i)", &data.path);
+                       dbg("[ check ] %s : path(%d)", "Call Sound Path noti", data.path);
+                       noti_data = &data;
+               }
+               if (!g_strcmp0(sig, "CallSoundRingbackTone")) {
+                       TelCallSoundRingbackToneNoti_t status;
+                       g_variant_get(param, "(i)", &status);
+                       dbg("[ check ] %s : status(%d)", "Call Sound Ringbacktone noti", status);
+                       noti_data = &status;
+               }
+               if (!g_strcmp0(sig, "CallSoundWbamr")) {
+                       TelCallSoundWbamrNoti_t status;
+                       g_variant_get(param, "(i)", &status);
+                       dbg("[ check ] %s : status(%d)", "Call Sound Wbamr noti", status);
+                       noti_data = &status;
+               }
+               if (!g_strcmp0(sig, "CallSoundEqualization")) {
+                       TelCallSoundEqualizationNoti_t data;
+                       g_variant_get(param, "(ii)", &data.mode, &data.direction);
+                       dbg("[ check ] %s : mode(%d), direction(%d)", "Call Sound Equalization noti", data.mode, data.direction);
+                       noti_data = &data;
+               }
+               if (!g_strcmp0(sig, "CallSoundNoiseReduction")) {
+                       TelCallSoundNoiseReductionNoti_t data;
+                       g_variant_get(param, "(i)", &data.status);
+                       dbg("[ check ] %s : status(%d)", "Call Sound Noise Reduction noti", data.status);
+                       noti_data = &data;
+               }
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_SAT_INTERFACE)) {
+               if (!g_strcmp0(sig, "SetupMenu")) {
+                       TelSatSetupMenuInfo_t setup_menu;
+
+                       gchar *title;
+                       gint command_id, item_cnt;
+                       gboolean b_present, b_helpinfo, b_updated;
+                       GVariant *items = NULL, *icon_id, *icon_list;
+
+                       memset(&setup_menu, 0, sizeof(TelSatSetupMenuInfo_t));
+
+                       g_variant_get(param, "(ibs@vibb@v@v)", &command_id, &b_present, &title, &items, &item_cnt,
+                                               &b_helpinfo, &b_updated, &icon_id, &icon_list);
+
+                       setup_menu.commandId = command_id;
+                       setup_menu.bIsMainMenuPresent = (b_present ? 1 : 0);
+                       memcpy(setup_menu.satMainTitle, title, TAPI_SAT_DEF_TITLE_LEN_MAX+1);
+                       setup_menu.satMainMenuNum = item_cnt;
+                       if(items && item_cnt > 0){
+                               int index = 0;
+                               GVariant *unbox;
+                               GVariantIter *iter;
+
+                               gchar *item_str;
+                               gint item_id;
+                               unbox = g_variant_get_variant(items);
+                               dbg("items(%p) items type_format(%s)", items, g_variant_get_type_string(unbox));
+
+                               g_variant_get(unbox, "a(si)", &iter);
+                               while(g_variant_iter_loop(iter,"(si)",&item_str, &item_id)){
+                                       setup_menu.satMainMenuItem[index].itemId = item_id;
+                                       memcpy(setup_menu.satMainMenuItem[index].itemString, item_str, TAPI_SAT_DEF_ITEM_STR_LEN_MAX + 6);
+                                       dbg("item index(%d) id(%d) str(%s)",index, setup_menu.satMainMenuItem[index].itemId, setup_menu.satMainMenuItem[index].itemString);
+                                       //dbg("item index(%d) id(%d) str(%s)",index, item_id, item_str);
+                                       index++;
+                               }
+                               g_variant_iter_free(iter);
+                       }
+                       setup_menu.bIsSatMainMenuHelpInfo = (b_helpinfo ? 1 : 0);
+                       setup_menu.bIsUpdatedSatMainMenu = (b_updated ? 1 : 0);
+
+                       dbg("command id (%d)", setup_menu.commandId);
+                       dbg("menu present (%d)", setup_menu.bIsMainMenuPresent);
+                       dbg("menu title (%s)", setup_menu.satMainTitle);
+                       dbg("item cnt (%d)", setup_menu.satMainMenuNum);
+                       dbg("menu help info (%d)", setup_menu.bIsSatMainMenuHelpInfo);
+                       dbg("menu updated (%d)", setup_menu.bIsUpdatedSatMainMenu);
+
+                       noti_data = &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;
+                       GVariant *icon_id = NULL;
+
+                       memset(&display_text, 0, sizeof(TelSatDisplayTextInd_t));
+
+                       g_variant_get(param, "(isiibbb@v)", &command_id, &text, &text_len, &duration,
+                               &high_priority, &user_rsp_required, &immediately_rsp, &icon_id);
+
+                       display_text.commandId = command_id;
+                       memcpy(display_text.text.string, text, TAPI_SAT_DEF_TEXT_STRING_LEN_MAX+1);
+                       display_text.text.stringLen = text_len;
+                       display_text.duration = duration;
+                       display_text.bIsPriorityHigh = (high_priority ? 1 : 0);
+                       display_text.bIsUserRespRequired = (user_rsp_required ? 1 : 0);
+
+                       dbg("command id (%d)", display_text.commandId);
+                       dbg("display text (%s)", display_text.text.string);
+                       dbg("string len(%d)", display_text.text.stringLen);
+                       dbg("duration (%d)", display_text.duration);
+                       dbg("high priority (%d)", display_text.bIsPriorityHigh);
+                       dbg("user response required(%d)", display_text.bIsUserRespRequired);
+
+                       noti_data = &display_text;
+               }
+               else if (!g_strcmp0(sig, "SelectItem")) {
+                       TelSatSelectItemInd_t select_item;
+
+                       gboolean help_info ;
+                       gchar *selected_text;
+                       gint command_id, default_item_id, menu_cnt, text_len =0;
+                       GVariant *menu_items, *icon_id, *icon_list;
+
+                       memset(&select_item, 0, sizeof(TelSatSelectItemInd_t));
+
+                       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);
+
+                       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);
+                       select_item.text.stringLen = text_len;
+                       select_item.defaultItemIndex = default_item_id;
+                       select_item.menuItemCount = menu_cnt;
+                       if(menu_items && menu_cnt > 0){
+                               int index = 0;
+                               GVariant *unbox;
+                               GVariantIter *iter;
+
+                               gchar *item_str;
+                               gint item_id, item_len;
+                               unbox = g_variant_get_variant(menu_items);
+                               dbg("items(%p) items type_format(%s)", menu_items, g_variant_get_type_string(unbox));
+
+                               g_variant_get(unbox, "a(iis)", &iter);
+                               while(g_variant_iter_loop(iter,"(iis)",&item_id, &item_len, &item_str)){
+                                       select_item.menuItem[index].itemId = item_id;
+                                       select_item.menuItem[index].textLen = item_len;
+                                       memcpy(select_item.menuItem[index].text, item_str, TAPI_SAT_ITEM_TEXT_LEN_MAX + 1);
+                                       dbg("item index(%d) id(%d) len(%d) str(%s)", index,
+                                                       select_item.menuItem[index].itemId, select_item.menuItem[index].textLen, select_item.menuItem[index].text);
+                                       index++;
+                               }
+                               g_variant_iter_free(iter);
+                       }
+
+                       dbg("command id (%d)", select_item.commandId);
+                       dbg("help info(%d)", select_item.bIsHelpInfoAvailable);
+                       dbg("selected item string(%s)", select_item.text.string);
+                       dbg("string len(%d)", select_item.text.stringLen);
+                       dbg("default item index(%d)", select_item.defaultItemIndex);
+                       dbg("item count(%d)", select_item.menuItemCount);
+
+                       noti_data = &select_item;
+               }
+               else if (!g_strcmp0(sig, "GetInkey")) {
+                       TelSatGetInkeyInd_t get_inkey;
+
+                       gint command_id, key_type, input_character_mode;
+                       gint text_len, duration;
+                       gboolean b_numeric, b_help_info;
+                       gchar *text;
+                       GVariant *icon_id;
+
+                       memset(&get_inkey, 0, sizeof(TelSatGetInkeyInd_t));
+
+                       g_variant_get(param, "(iiibbsii@v)", &command_id, &key_type, &input_character_mode,
+                               &b_numeric,&b_help_info, &text, &text_len, &duration, &icon_id);
+
+                       get_inkey.commandId = command_id;
+                       get_inkey.keyType = key_type;
+                       get_inkey.inputCharMode = input_character_mode;
+                       get_inkey.bIsNumeric = (b_numeric ? 1 : 0);
+                       get_inkey.bIsHelpInfoAvailable = (b_help_info ? 1 : 0);
+                       memcpy(get_inkey.text.string, text, TAPI_SAT_DEF_TEXT_STRING_LEN_MAX+1);
+                       get_inkey.text.stringLen = text_len;
+                       get_inkey.duration = duration;
+
+                       dbg("command id(%d)", get_inkey.commandId);
+                       dbg("key type(%d)", get_inkey.keyType);
+                       dbg("input character mode(%d)", get_inkey.inputCharMode);
+                       dbg("numeric(%d)", get_inkey.bIsNumeric);
+                       dbg("help info available(%d)", get_inkey.bIsHelpInfoAvailable);
+                       dbg("text (%s)", get_inkey.text.string);
+                       dbg("text length", get_inkey.text.stringLen);
+                       dbg("duration", get_inkey.duration);
+
+                       noti_data = &get_inkey;
+               }
+               else if (!g_strcmp0(sig, "GetInput")) {
+                       TelSatGetInputInd_t get_input;
+
+                       gint command_id, input_character_mode;
+                       gint text_len, def_text_len, rsp_len_min, rsp_len_max;
+                       gboolean b_numeric, b_help_info, b_echo_input;
+                       gchar *text, *def_text;
+                       GVariant *icon_id;
+
+                       memset(&get_input, 0, sizeof(TelSatGetInputInd_t));
+
+                       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);
+
+                       get_input.commandId = command_id;
+                       get_input.inputCharMode = input_character_mode;
+                       get_input.bIsNumeric = (b_numeric ? 1 : 0);
+                       get_input.bIsHelpInfoAvailable = (b_help_info ? 1 : 0);
+                       get_input.bIsEchoInput = (b_echo_input ? 1 : 0);
+                       memcpy(get_input.text.string, text, TAPI_SAT_DEF_TEXT_STRING_LEN_MAX+1);
+                       get_input.text.stringLen = text_len;
+                       get_input.respLen.max = rsp_len_max;
+                       get_input.respLen.min = rsp_len_min;
+                       memcpy(get_input.defaultText.string, def_text, TAPI_SAT_DEF_TEXT_STRING_LEN_MAX+1);
+                       get_input.defaultText.stringLen = def_text_len;
+
+                       dbg("command id(%d)", get_input.commandId);
+                       dbg("input character mode(%d)", get_input.inputCharMode);
+                       dbg("numeric(%d)", get_input.bIsNumeric);
+                       dbg("help info avaiable(%d)", get_input.bIsHelpInfoAvailable);
+                       dbg("echo input(%d)", get_input.bIsEchoInput);
+                       dbg("text(%s)", get_input.text.string);
+                       dbg("text length(%d)", get_input.text.stringLen);
+                       dbg("response length max(%d)", get_input.respLen.max);
+                       dbg("response length min(%d)", get_input.respLen.min);
+                       dbg("default text(%s)", get_input.defaultText.string);
+                       dbg("default text length(%d)", get_input.defaultText.stringLen);
+
+                       noti_data = &get_input;
+               }
+               else if (!g_strcmp0(sig, "SendSMS")) {
+                       TelSatSendSmsIndSmsData_t send_sms;
+
+                       gint command_id, ton, npi, tpdu_type;
+                       gboolean b_packing_required;
+                       gint text_len, number_len, tpdu_data_len, tmp_data_len;
+                       gchar* text, *dialling_number;
+                       GVariant *tpdu_data, *icon_id;
+
+                       memset(&send_sms, 0, sizeof(TelSatSendSmsIndSmsData_t));
+
+                       g_variant_get(param, "(isi@vbiisii@vi)", &command_id, &text, &text_len, &icon_id, &b_packing_required, &ton, &npi,
+                                               &dialling_number, &number_len, &tpdu_type, &tpdu_data, &tpdu_data_len);
+
+                       send_sms.commandId = command_id;
+                       send_sms.bIsPackingRequired = (b_packing_required ? 1 : 0);
+
+                       send_sms.address.ton = ton;
+                       send_sms.address.npi = npi;
+                       send_sms.address.diallingNumberLen = number_len;
+                       memcpy(send_sms.address.diallingNumber, dialling_number, TAPI_SAT_DIALLING_NUMBER_LEN_MAX);
+
+                       send_sms.smsTpdu.tpduType = tpdu_type;
+                       send_sms.smsTpdu.dataLen = tpdu_data_len;
+
+                       if(tpdu_data){
+                               int index = 0;
+                               guchar data;
+                               GVariantIter *iter = NULL;
+                               GVariant *inner_gv = NULL;
+
+                               inner_gv = g_variant_get_variant(tpdu_data);
+                               dbg("tpdu data exist type_format(%s)", g_variant_get_type_string(inner_gv));
+
+                               g_variant_get(inner_gv, "ay", &iter);
+                               while( g_variant_iter_loop (iter, "y", &data)){
+                                       dbg("index(%d) data(%c)", index, data);
+                                       send_sms.smsTpdu.data[index] = data;
+                                       index++;
+                               }
+                               g_variant_iter_free(iter);
+                               g_variant_unref(inner_gv);
+                               tmp_data_len = index - 1;
+                       }
+
+                       dbg("command id(%d)", send_sms.commandId);
+                       dbg("packing required(%d)", send_sms.bIsPackingRequired);
+                       dbg("address ton(%d)", send_sms.address.ton);
+                       dbg("address npi(%d)", send_sms.address.npi);
+                       dbg("address dialing number (%s)", send_sms.address.diallingNumber);
+                       dbg("address number length (%d)", send_sms.address.diallingNumberLen);
+                       dbg("tpdu type (%d)", send_sms.smsTpdu.tpduType);
+                       dbg("tpdu length (%d)", send_sms.smsTpdu.dataLen);
+
+                       noti_data = &send_sms;
+               }
+               else if (!g_strcmp0(sig, "SetupEventList")) {
+                       int g_index = 0;
+                       gint event_cnt;
+                       GVariant *evt_list;
+                       TelSatEventListData_t event_list;
+
+                       memset(&event_list, 0, sizeof(TelSatEventListData_t));
+
+                       g_variant_get(param, "(i@v)", &event_cnt, &evt_list);
+
+                       if(evt_list){
+                               guchar data;
+                               GVariantIter *iter = NULL;
+                               GVariant *inner_gv = NULL;
+
+                               inner_gv = g_variant_get_variant(evt_list);
+                               dbg("event list exist type_format(%s)", g_variant_get_type_string(inner_gv));
+
+                               g_variant_get(inner_gv, "ai", &iter);
+                               while( g_variant_iter_loop (iter, "i", &data)){
+                                       dbg("g_index(%d) event(%d)", g_index, data);
+                                       g_event_list[g_index] = data;
+
+                                       if(data == TAPI_EVENT_SAT_DW_TYPE_IDLE_SCREEN_AVAILABLE){
+                                               event_list.bIsIdleScreenAvailable = 1;
+                                       }
+                                       else if(data == TAPI_EVENT_SAT_DW_TYPE_LANGUAGE_SELECTION){
+                                               event_list.bIsLanguageSelection = 1;
+                                       }
+                                       else if(data == TAPI_EVENT_SAT_DW_TYPE_BROWSER_TERMINATION){
+                                               event_list.bIsBrowserTermination = 1;
+                                       }
+                                       else if(data == TAPI_EVENT_SAT_DW_TYPE_DATA_AVAILABLE){
+                                               event_list.bIsDataAvailable = 1;
+                                       }
+                                       else if(data == TAPI_EVENT_SAT_DW_TYPE_CHANNEL_STATUS){
+                                               event_list.bIsChannelStatus = 1;
+                                       }
+
+                                       g_index++;
+                               }
+                               //while end
+                               g_variant_iter_free(iter);
+                               g_variant_unref(inner_gv);
+                       }
+
+                       dbg("event list cnt(%d)", event_cnt);
+
+                       noti_data = &event_list;
+               }
+               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);
+                       noti_data = &command_type;
+               }
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_SIM_INTERFACE)) {
+               if (!g_strcmp0(sig, "Status")) {
+                       int noti = 0;
+                       g_variant_get(param, "(i)", &noti);
+                       noti_data = &noti;
+               } else {
+                       dbg("not handled SIM noti[%s]",sig );
+               }
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_PB_INTERFACE)) {
+               if (!g_strcmp0(sig, "Status")) {
+                       int noti = 0;
+                       g_variant_get(param, "(i)", &noti);
+                       noti_data = &noti;
+               } else {
+                       dbg("not handled Phonebook noti[%s]",sig );
+               }
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_SAP_INTERFACE)) {
+               if (!g_strcmp0(sig, "Status")) {
+                       int noti = 0;
+                       g_variant_get(param, "(i)", &noti);
+                       noti_data = &noti;
+               } else if (!g_strcmp0(sig, "Disconnect")) {
+                       int disconnect = 0;
+                       g_variant_get(param, "(i)", &disconnect);
+                       noti_data = &disconnect;
+               } else {
+                       dbg("not handled SAP noti[%s]",sig );
+               }
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_MODEM_INTERFACE)) {
+               if (!g_strcmp0(sig, "Power")) {
+                       int noti = 0;
+                       g_variant_get(param, "(i)", &noti);
+                       noti_data = &noti;
+               } else if (!g_strcmp0(sig, "DunPinCtrl")) {
+                       tapi_ps_btdun_pincontrol pin_ctrl;
+                       int signal = 0, status = 0;
+
+                       memset(&pin_ctrl, 0, sizeof(tapi_ps_btdun_pincontrol));
+                       g_variant_get(param, "(ib)", &signal, &status);
+                       pin_ctrl.signal = signal;
+                       pin_ctrl.status = status;
+
+                       noti_data = &pin_ctrl;
+               } else if (!g_strcmp0(sig, "DunExternalCall")) {
+                       gboolean external_call;
+
+                       g_variant_get(param, "(b)", &external_call);
+
+                       noti_data = &external_call;
+               }
+               else {
+                       dbg("not handled Modem noti[%s]", sig);
+               }
+       }
+
+       if (!g_strcmp0(interface, DBUS_TELEPHONY_SS_INTERFACE)) {
+               if (!g_strcmp0(sig, "NotifyUSSD")) {
+                       TelSsUssdMsgInfo_t noti;
+                       char *str = NULL;
+                       memset(&noti, 0, sizeof(TelSsUssdMsgInfo_t));
+
+                       g_variant_get(param, "(iis)", &noti.Type, &noti.Length, &str);
+
+                       if (str)
+                               g_strlcpy(noti.szString, str, TAPI_SS_USSD_DATA_SIZE_MAX);
+
+                       noti_data = &noti;
+               }
+               else {
+                       dbg("not handled SS noti[%s]", sig);
+               }
+       }
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(handle, noti_id, noti_data, evt_cb_data->user_data);
+       }
+
+       g_free(noti_id);
+       return;
+}
+
+EXPORT_API char** tel_get_cp_name_list(void)
+{
+       GError *error = NULL;
+       GDBusProxy *proxy = NULL;
+
+       GVariantIter *iter = NULL;
+       GVariant *rst = NULL;
+
+       gchar *modem_path = NULL;
+       GSList *list = NULL;
+       GSList *l = NULL;
+
+       int i = 0, element_cnt = 0;
+       gchar **cp_list = NULL;
+
+       proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, NULL,
+                               "org.tizen.telephony", "/org/tizen/telephony", "org.tizen.telephony.Manager",
+                               NULL, &error);
+       if (!proxy) {
+               dbg("g_dbus_proxy_new_for_bus_sycn() failed. (%s)", error->message);
+               g_error_free (error);
+               return NULL;
+       }
+
+       rst = g_dbus_proxy_call_sync (proxy, "GetModems", NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
+       if (!rst) {
+               dbg( "GetModems() failed. (%s)", error->message);
+               g_error_free (error);
+               goto OUT;
+       }
+
+       g_variant_get (rst, "(as)", &iter);
+       while (g_variant_iter_next(iter, "s", &modem_path)){
+               list = g_slist_append(list, modem_path);
+       }
+       g_variant_iter_free (iter);
+
+       if (!list) {
+               dbg( "No CP name");
+               goto OUT;
+       }
+
+       element_cnt = g_slist_length(list);
+       cp_list = g_new0(char*, element_cnt + 1);
+       if (!cp_list) {
+               goto OUT;
+       }
+
+       for (l = list; l; l = l->next, i++) {
+               cp_list[i] = g_strdup(l->data);
+               dbg("cp name[%d] = %s", i, cp_list[i]);
+       }
+       cp_list[element_cnt] = NULL;
+
+       g_slist_free(list);
+
+OUT:
+       if (proxy)
+               g_object_unref(proxy);
+
+       return cp_list;
+}
+
+EXPORT_API int tel_get_property_int(TapiHandle *handle, const char *property, int *result)
+{
+       char **dbus_info;
+       GDBusProxy *proxy = NULL;
+       GVariant *value = NULL;
+       GError *error = NULL;
+       int ret = TAPI_API_SUCCESS;
+
+       if (!handle || !property)
+               return TAPI_API_INVALID_INPUT;
+
+       dbus_info = g_strsplit(property, ":", 2);
+       if (!dbus_info) {
+               dbg("invalid property");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       if (!dbus_info[0] || !dbus_info[1]) {
+               dbg("invalid property");
+               ret = TAPI_API_INVALID_INPUT;
+               goto OUT;
+       }
+
+       proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, NULL,
+                               DBUS_TELEPHONY_SERVICE, handle->path, dbus_info[0],
+                               NULL, &error);
+       if (!proxy) {
+               dbg("g_dbus_proxy_new_for_bus_sycn() failed. (%s)", error->message);
+               g_error_free (error);
+               ret = TAPI_API_OPERATION_FAILED;
+               goto OUT;
+       }
+
+       value = g_dbus_proxy_get_cached_property(proxy, dbus_info[1]);
+       if (!value) {
+               dbg("g_dbus_proxy_get_cached_property('power') failed.");
+               ret = TAPI_API_OPERATION_FAILED;
+               goto OUT;
+       }
+
+       g_variant_get(value, "i", result);
+       g_variant_unref(value);
+
+OUT:
+       if (proxy)
+               g_object_unref(proxy);
+
+       g_strfreev(dbus_info);
+
+       return ret;
+}
+
+EXPORT_API TapiHandle* tel_init(const char *cp_name)
+{
+       GError *error = NULL;
+       struct tapi_handle *handle;
+
+       g_type_init();
+
+       handle = g_new0(struct tapi_handle, 1);
+       if (!handle)
+               return NULL;
+
+       if (cp_name) {
+               handle->cp_name = g_strdup(cp_name);
+       }
+       else {
+               char **list = NULL;
+
+               list = tel_get_cp_name_list();
+               if (!list)
+                       return NULL;
+
+               if (!list[0])
+                       return NULL;
+
+               dbg("use default plugin(%s)", list[0]);
+               handle->cp_name = g_strdup(list[0]);
+       }
+
+       handle->dbus_connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
+       if (!handle->dbus_connection) {
+               dbg("Error creating connection: %s\n", error->message);
+               g_free(handle->cp_name);
+               g_free(handle);
+               g_error_free (error);
+               return NULL;
+       }
+
+       handle->evt_list = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
+
+       handle->path = g_strdup_printf("%s/%s",
+                       DBUS_TELEPHONY_DEFAULT_PATH, handle->cp_name);
+
+       return handle;
+}
+
+EXPORT_API int tel_deinit(TapiHandle* handle)
+{
+       if (!handle)
+               return -1;
+
+       if (handle->cp_name)
+               g_free(handle->cp_name);
+
+       if (handle->path)
+               g_free(handle->path);
+
+       dbg( "remove all signal");
+       /*
+        * TODO
+        */
+
+       memset(handle, 0, sizeof(struct tapi_handle));
+       g_free(handle);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_register_noti_event(TapiHandle *handle, const char *noti_id, tapi_notification_cb callback, void *user_data)
+{
+       gchar **dbus_str = NULL;
+       gpointer tmp = NULL;
+       struct tapi_evt_cb *evt_cb_data = NULL;
+
+       if (!handle || !handle->dbus_connection || !callback || !noti_id) {
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       tmp = g_hash_table_lookup(handle->evt_list, noti_id);
+       if (tmp != NULL) {
+               dbg("noti_id(%s) is already registered", noti_id);
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       dbus_str = g_strsplit(noti_id, ":", 2);
+       if (!dbus_str) {
+               dbg("invalid noti_id");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       if (!dbus_str[0] || !dbus_str[1]) {
+               g_strfreev(dbus_str);
+               dbg("invalid noti_id");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       evt_cb_data = g_new0(struct tapi_evt_cb, 1);
+       evt_cb_data->cb_fn = callback;
+       evt_cb_data->user_data = user_data;
+
+       dbg("path(%s) interface (%s) signal (%s)", handle->path, dbus_str[0], dbus_str[1]);
+
+       evt_cb_data->evt_id = g_dbus_connection_signal_subscribe(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, /* Sender */
+                       dbus_str[0], /* Interface */
+                       dbus_str[1], /* Member */
+                       handle->path, /* Object path */
+                       NULL, /* arg0 */
+                       G_DBUS_SIGNAL_FLAGS_NONE,
+                       on_signal_callback, handle,
+                       NULL);
+
+       g_hash_table_insert(handle->evt_list, g_strdup(noti_id), evt_cb_data);
+
+       g_strfreev(dbus_str);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_deregister_noti_event(TapiHandle *handle, const char *noti_id)
+{
+       struct tapi_evt_cb *evt_cb_data = NULL;
+       gboolean rv = FALSE;
+
+       if (!handle || !handle->dbus_connection){
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       evt_cb_data = g_hash_table_lookup(handle->evt_list, noti_id);
+
+       if(!evt_cb_data){
+               dbg("event does not registered");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       g_dbus_connection_signal_unsubscribe(handle->dbus_connection, evt_cb_data->evt_id);
+
+       rv = g_hash_table_remove(handle->evt_list, noti_id);
+       if(!rv){
+               dbg("fail to deregister noti event(%s)", noti_id);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       return TAPI_API_SUCCESS;
+}
+/*     EOF     */
diff --git a/src/tapi_log.h b/src/tapi_log.h
new file mode 100644 (file)
index 0000000..197bfcf
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 __TAPI_LOG_H__
+#define __TAPI_LOG_H__
+
+__BEGIN_DECLS
+
+#ifdef FEATURE_DLOG_DEBUG
+
+#include <dlog.h>
+
+#ifndef TAPI_LOG_TAG
+#define TAPI_LOG_TAG "LIBTAPI"
+#endif
+
+#define msg(fmt,args...)  { RLOG(LOG_INFO, TAPI_LOG_TAG, fmt "\n", ##args); }
+#define dbg(fmt,args...)  { RLOG(LOG_DEBUG, TAPI_LOG_TAG, "<%s:%d> " fmt "\n", __func__, __LINE__, ##args); }
+#define warn(fmt,args...)  { RLOG(LOG_WARN, TAPI_LOG_TAG, "<%s:%d> " fmt "\n", __func__, __LINE__, ##args); }
+#define err(fmt,args...)  { RLOG(LOG_FATAL, TAPI_LOG_TAG, "<%s:%D> " fmt "\n", __func__, __LINE__, ##args); }
+
+#else
+
+#define msg(fmt,args...)
+#define dbg(fmt,args...)
+#define warn(fmt,args...)
+#define err(fmt,args...)
+
+#endif
+
+__END_DECLS
+
+#endif
diff --git a/src/tapi_modem.c b/src/tapi_modem.c
new file mode 100644 (file)
index 0000000..379eb15
--- /dev/null
@@ -0,0 +1,377 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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 "TelMisc.h"
+#include "TelPower.h"
+#include "ITapiModem.h"
+#include "ITapiPS.h"
+
+#include "common.h"
+#include "tapi_log.h"
+
+static void on_response_default_set(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_get_version(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelMiscVersionInformation data;
+       char *sw = NULL, *hw = NULL, *rf = NULL, *product = NULL;
+
+       GVariant *dbus_result;
+
+       memset(&data, 0, sizeof(TelMiscVersionInformation));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(issss)", &result,
+                       &sw, &hw, &rf, &product);
+
+       dbg("product code [%s]", product);
+
+       g_strlcpy((gchar *)data.szSwVersion, sw, MAX_VERSION_LEN);
+       g_strlcpy((gchar *)data.szHwVersion, hw, MAX_VERSION_LEN);
+       g_strlcpy((gchar *)data.szRfCalDate, rf, MAX_VERSION_LEN);
+       g_strlcpy((gchar *)data.szProductCode, product, TAPI_MISC_PRODUCT_CODE_LEN_MAX);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_serial_number(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       char *sn = NULL;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(is)", &result, &sn);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, sn, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_imei(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       char *imei = NULL;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(is)", &result, &imei);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, imei, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_set_dun_pin_ctrl(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(i)", &result);
+       dbg("dun pin ctrl result(%d)", result);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, 0, evt_cb_data->user_data);
+       }
+}
+
+/**
+ *
+ * Turn Off or Turn On the Modem.
+ *
+ * @param[in]  tapi_power_phone_cmd_t  Turn ON or OFF.
+ * @param[out] NONE
+ * @return             TapiResult_t API result code. Either Success or some Error Code.
+ * @exception  In case of exceptions return value contains appropriate error code.
+ * @remarks            None.
+ * @see                        tapi_power_phone_cmd_t, TapiResult_t.
+ */
+EXPORT_API int tel_process_power_command(TapiHandle *handle, tapi_power_phone_cmd_t cmd, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance");
+
+       if (cmd > TAPI_PHONE_POWER_RESET)
+               return TAPI_API_INVALID_INPUT;
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", cmd);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
+                       "SetPower", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * Enter in to or Leave from Flight Mode.
+ *
+ * @param[in]  Enable (if 1, Enable and if 0, Disable)
+ * @param[out] NONE
+ * @return             TapiResult_t API result code. Either Success or some Error Code.
+ * @exception  In case of exceptions return value contains appropriate error code.
+ * @remarks            None
+ * @see                        None.
+ */
+EXPORT_API int tel_set_flight_mode(TapiHandle *handle, tapi_power_flight_mode_type_t mode, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+       gboolean b_mode;
+
+       dbg("Func Entrance");
+
+       if (mode == TAPI_POWER_FLIGHT_MODE_ENTER) {
+               b_mode = TRUE;
+       }
+       else if (mode == TAPI_POWER_FLIGHT_MODE_LEAVE) {
+               b_mode = FALSE;
+       }
+       else {
+               return TAPI_API_INVALID_INPUT;
+       };
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(b)", b_mode);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
+                       "SetFlightMode", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_misc_me_version(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetVersion", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_version, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API TelMiscVersionInformation *tel_get_misc_me_version_sync(TapiHandle *handle)
+{
+       GVariant *dbus_result;
+       int result = -1;
+       TelMiscVersionInformation *data = NULL;
+       char *sw = NULL, *hw = NULL, *rf = NULL, *product = NULL;
+
+       dbg("Func Entrance");
+
+       if (!handle)
+               return NULL;
+
+       dbus_result = g_dbus_connection_call_sync(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
+                       "GetVersion", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
+
+       g_variant_get (dbus_result, "(issss)", &result,
+                       &sw, &hw, &rf, &product);
+
+       dbg("product code[%s]", product);
+
+       data = calloc(sizeof(TelMiscVersionInformation), 1);
+       if (!data)
+               return NULL;
+
+       g_strlcpy((gchar *)data->szSwVersion, sw, MAX_VERSION_LEN);
+       g_strlcpy((gchar *)data->szHwVersion, hw, MAX_VERSION_LEN);
+       g_strlcpy((gchar *)data->szRfCalDate, rf, MAX_VERSION_LEN);
+       g_strlcpy((gchar *)data->szProductCode, product, TAPI_MISC_PRODUCT_CODE_LEN_MAX);
+
+       return data;
+}
+
+EXPORT_API int tel_get_misc_me_imei(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetIMEI", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_imei, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API char *tel_get_misc_me_imei_sync(TapiHandle *handle)
+{
+       GVariant *dbus_result;
+       char *imei = NULL;
+       int result = 0;
+
+       dbg("Func Entrance");
+
+       if (!handle)
+               return NULL;
+
+       dbus_result = g_dbus_connection_call_sync(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
+                       "GetIMEI", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
+
+       g_variant_get (dbus_result, "(is)", &result, &imei);
+
+       return imei;
+}
+
+EXPORT_API int tel_get_misc_me_sn(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetSerialNumber", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_serial_number, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API char *tel_get_misc_me_sn_sync(TapiHandle *handle)
+{
+       GVariant *dbus_result;
+       char *sn = NULL;
+       int result = 0;
+
+       dbg("Func Entrance");
+
+       if (!handle)
+               return NULL;
+
+       dbus_result = g_dbus_connection_call_sync(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
+                       "GetSerialNumber", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
+
+       g_variant_get (dbus_result, "(is)", &result, &sn);
+
+       return sn;
+}
+
+EXPORT_API int tel_check_modem_power_status(TapiHandle *handle, int *result)
+{
+       return tel_get_property_int(handle, TAPI_PROP_MODEM_POWER, result);
+}
+
+EXPORT_API int tel_control_modem_dun_pin_ctrl(TapiHandle *handle, tapi_ps_btdun_pincontrol *pincontrol, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       if (!handle || !handle->dbus_connection || !pincontrol){
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ib)", pincontrol->signal, pincontrol->status);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_MODEM_INTERFACE,
+                       "SetDunPinCtrl", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_set_dun_pin_ctrl, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
diff --git a/src/tapi_network.c b/src/tapi_network.c
new file mode 100644 (file)
index 0000000..fea75e8
--- /dev/null
@@ -0,0 +1,654 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 "TelNetwork.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiNetwork.h"
+
+static int _convert_act_to_systemtype(int act)
+{
+       switch (act) {
+               case 0x1:
+                       return TAPI_NETWORK_SYSTEM_GSM;
+                       break;
+
+               case 0x2:
+                       return TAPI_NETWORK_SYSTEM_GPRS;
+                       break;
+
+               case 0x3:
+                       return TAPI_NETWORK_SYSTEM_EGPRS;
+                       break;
+
+               case 0x4:
+                       return TAPI_NETWORK_SYSTEM_UMTS;
+                       break;
+
+               case 0x5:
+                       return TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
+                       break;
+
+               case 0x11:
+                       return TAPI_NETWORK_SYSTEM_IS95A;
+                       break;
+
+               case 0x12:
+                       return TAPI_NETWORK_SYSTEM_IS95B;
+                       break;
+
+               case 0x13:
+                       return TAPI_NETWORK_SYSTEM_CDMA_1X;
+                       break;
+
+               case 0x14:
+                       return TAPI_NETWORK_SYSTEM_EVDO_REV_0;
+                       break;
+
+               case 0x15:
+                       return TAPI_NETWORK_SYSTEM_1X_EVDO_REV_0_HYBRID;
+                       break;
+
+               case 0x16:
+                       return TAPI_NETWORK_SYSTEM_EVDO_REV_A;
+                       break;
+
+               case 0x17:
+                       return TAPI_NETWORK_SYSTEM_1X_EVDO_REV_A_HYBRID;
+                       break;
+
+               case 0x18:
+                       return TAPI_NETWORK_SYSTEM_EVDV;
+                       break;
+
+               default:
+                       break;
+       }
+
+       return TAPI_NETWORK_SYSTEM_NO_SRV;
+}
+
+static void on_response_search_network(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       int i;
+
+       TelNetworkPlmnList_t list;
+
+       GVariant *dbus_result = NULL;
+       GVariant *value = NULL;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+
+       memset(&list, 0, sizeof(TelNetworkPlmnList_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+       if (!dbus_result) {
+               if (evt_cb_data->cb_fn) {
+                       evt_cb_data->cb_fn(evt_cb_data->handle, -1, NULL, evt_cb_data->user_data);
+               }
+               return;
+       }
+
+       g_variant_get (dbus_result, "(aa{sv}i)", &iter, &result);
+
+       list.networks_count = g_variant_iter_n_children(iter);
+
+       i = 0;
+       while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+               while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+                       if (!g_strcmp0(key, "plmn")) {
+                               list.network_list[i].plmn_id = atoi(g_variant_get_string(value, NULL));
+                       }
+                       if (!g_strcmp0(key, "act")) {
+                               list.network_list[i].access_technology = _convert_act_to_systemtype(g_variant_get_int32(value));
+                       }
+                       if (!g_strcmp0(key, "type")) {
+                               list.network_list[i].type_of_plmn = g_variant_get_int32(value);
+                       }
+                       if (!g_strcmp0(key, "name")) {
+                               strncpy(list.network_list[i].network_name, g_variant_get_string(value, NULL), 40);
+                       }
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+}
+
+static void on_response_get_network_selection_mode(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+       int mode = 0;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_default_set(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_get_network_preferred_plmn(GDBusConnection *conn, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       int i;
+
+       TelNetworkPreferredPlmnList_t list;
+
+       GVariant *dbus_result = NULL;
+       GVariant *value = NULL;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+
+       memset(&list, 0, sizeof(TelNetworkPreferredPlmnList_t));
+
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       dbg("dbus_result = %p", dbus_result);
+       dbg("res = %p", res);
+       dbg("conn = %p", conn);
+
+       if (!dbus_result) {
+               dbg("error");
+               if (evt_cb_data->cb_fn) {
+                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &list, evt_cb_data->user_data);
+               }
+               return;
+       }
+
+       g_variant_get (dbus_result, "(aa{sv}i)", &iter, &result);
+
+       list.NumOfPrefPlmns = g_variant_iter_n_children(iter);
+
+       if (list.NumOfPrefPlmns == 0) {
+               dbg("num_of_.. = 0");
+               if (evt_cb_data->cb_fn) {
+                       evt_cb_data->cb_fn(evt_cb_data->handle, result, &list, evt_cb_data->user_data);
+               }
+               return;
+       }
+
+       i = 0;
+       while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+               while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+                       if (!g_strcmp0(key, "plmn")) {
+                               strncpy(list.PrefPlmnRecord[i].Plmn, g_variant_get_string(value, NULL), 6);
+                       }
+                       if (!g_strcmp0(key, "act")) {
+                               list.PrefPlmnRecord[i].SystemType = _convert_act_to_systemtype(g_variant_get_int32(value));
+                       }
+                       if (!g_strcmp0(key, "ef_index")) {
+                               list.PrefPlmnRecord[i].Index = g_variant_get_int32(value);
+                       }
+                       if (!g_strcmp0(key, "name")) {
+                               strncpy(list.PrefPlmnRecord[i].network_name, g_variant_get_string(value, NULL), 40);
+                       }
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+}
+
+static void on_response_get_network_band(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+       int band = 0;
+       int mode = 0;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(iii)", &band, &mode, &result);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &band, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_network_mode(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+       int mode = 0;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_get_network_service_domain(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result;
+       int domain = 0;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(ii)", &domain, &result);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &domain, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_network_serving(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       TelNetworkServing_t data;
+
+       GVariant *dbus_result;
+       char *plmn;
+
+       memset(&data, 0, sizeof(TelNetworkServing_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(isii)",
+                       &data.act,
+                       &plmn,
+                       &data.lac,
+                       &result);
+
+       if (plmn) {
+               snprintf(data.plmn, 7, "%s", plmn);
+               free(plmn);
+       }
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       }
+}
+
+EXPORT_API int tel_search_network(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "Search", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, 60000, NULL,
+                       on_response_search_network, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_network_selection_mode(struct tapi_handle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetSelectionMode", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_network_selection_mode, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_select_network_automatic(struct tapi_handle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(isi)",
+                       0, /* Automatic */
+                       "",
+                       0);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_NETWORK_INTERFACE,
+                       "SetSelectionMode", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_select_network_manual(struct tapi_handle *handle, const char *plmn, int act, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(isi)",
+                       1, /* Manual */
+                       plmn,
+                       act);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_NETWORK_INTERFACE,
+                       "SetSelectionMode", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_network_preferred_plmn(
+               TapiHandle *handle,
+               TelNetworkPreferredPlmnOp_t operation,
+               TelNetworkPreferredPlmnInfo_t *info,
+               tapi_response_cb callback,
+               void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+       int act = 0;
+
+       dbg("Func Entrance");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       switch (info->SystemType) {
+               case TAPI_NETWORK_SYSTEM_GSM:
+                       act = 1;
+                       break;
+
+               case TAPI_NETWORK_SYSTEM_UMTS:
+                       act = 4;
+                       break;
+
+               case TAPI_NETWORK_SYSTEM_GPRS:
+                       act = 2;
+                       break;
+
+               case TAPI_NETWORK_SYSTEM_EGPRS:
+                       act = 3;
+                       break;
+
+               case TAPI_NETWORK_SYSTEM_GSM_AND_UMTS:
+                       act = 4;
+                       break;
+
+               default:
+                       act = 4;
+                       break;
+       }
+
+       param = g_variant_new("(iiis)",
+                       operation,
+                       info->Index,
+                       act,
+                       info->Plmn);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_NETWORK_INTERFACE,
+                       "SetPreferredPlmn", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_network_preferred_plmn(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetPreferredPlmn", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       (GAsyncReadyCallback) on_response_get_network_preferred_plmn, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_network_band(TapiHandle *handle, TelNetworkBandPreferred_t mode, TelNetworkBand_t band, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ii)",
+                       band,
+                       mode);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_NETWORK_INTERFACE,
+                       "SetBand", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_network_band(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetBand", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_network_band, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_network_mode(TapiHandle *handle, int mode, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)",
+                       mode);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_NETWORK_INTERFACE,
+                       "SetMode", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_network_mode(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetMode", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_network_mode, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_network_service_domain(TapiHandle *handle, TelNetworkServiceDomain_t domain, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", domain);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_NETWORK_INTERFACE,
+                       "SetServiceDomain", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_network_service_domain(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetServiceDomain", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_network_service_domain, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_cancel_network_manual_search(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "SearchCancel", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_default_set, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_network_serving(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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,
+                       "GetServingNetwork", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_network_serving, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
diff --git a/src/tapi_phonebook.c b/src/tapi_phonebook.c
new file mode 100644 (file)
index 0000000..3b46c5b
--- /dev/null
@@ -0,0 +1,540 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 "TelSim.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiPhonebook.h"
+
+static int _tel_check_pb_state(TapiHandle *handle)
+{
+       GError *gerr = NULL;
+       GVariant *sync_gv = NULL;
+       int api_err = TAPI_API_SUCCESS;
+       TelSimPbList_t pb_list;
+       int init_status = 0;
+
+       sync_gv = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+                       handle->path, DBUS_TELEPHONY_PB_INTERFACE, "GetInitStatus", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, &gerr);
+
+       if (sync_gv) {
+               g_variant_get(sync_gv, "(ibbbbbb)",
+                               &init_status,
+                               &pb_list.b_fdn,
+                               &pb_list.b_adn,
+                               &pb_list.b_sdn,
+                               &pb_list.b_3g,
+                               &pb_list.b_aas,
+                               &pb_list.b_gas);
+
+               if(init_status == 1)
+                       api_err = TAPI_API_SUCCESS;
+               else
+                       api_err = TAPI_API_INVALID_OPERATION;
+
+       } else {
+               dbg( "g_dbus_conn failed in _tel_check_pb_state. error (%s)", gerr->message);
+               g_error_free(gerr);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       return api_err;
+}
+
+static void on_response_get_sim_pb_count(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;
+       TelSimPbAccessResult_t result = TAPI_SIM_PB_SUCCESS;
+       TelSimPbStorageInfo_t pb_cnt ;
+       gint used = 0, total = 0;
+
+       memset(&pb_cnt, 0, sizeof(TelSimPbStorageInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(iiii)",
+                       &result,
+                       &pb_cnt.StorageFileType,
+                       &used,
+                       &total);
+
+       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);
+       }
+}
+
+static void on_response_get_sim_pb_meta_info(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;
+       TelSimPbAccessResult_t result = TAPI_SIM_PB_SUCCESS;
+       TelSimPbEntryInfo_t pb_entry ;
+
+       gint imin = 0, imax = 0, nmax = 0, tmax = 0;
+
+       memset(&pb_entry, 0, sizeof(TelSimPbEntryInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(iiiiii)",
+                       &result,
+                       &pb_entry.StorageFileType,
+                       &imin,
+                       &imax,
+                       &nmax,
+                       &tmax);
+
+       pb_entry.PbIndexMin = imin;
+       pb_entry.PbIndexMax = imax;
+       pb_entry.PbNumLenMax =nmax;
+       pb_entry.PbTextLenMax = tmax;
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &pb_entry, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_pb_usim_meta_info(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       GVariant *value = NULL;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimPbAccessResult_t result = TAPI_SIM_PB_SUCCESS;
+       TelSimPbCapabilityInfo_t list ;
+       int i = 0;
+
+       dbg("Func Entrance");
+       memset(&list, 0, sizeof(TelSimPbCapabilityInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iaa{sv})", &result, &iter);
+       list.FileTypeCount = g_variant_iter_n_children(iter);
+
+       i = 0;
+       while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+               while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+                       if (!g_strcmp0(key, "filed_type")) {
+                               list.FileTypeInfo[i].field_type = g_variant_get_int32(value);
+                       }
+                       if (!g_strcmp0(key, "index_max")) {
+                               list.FileTypeInfo[i].index_max = g_variant_get_int32(value);
+                       }
+                       if (!g_strcmp0(key, "text_max")) {
+                               list.FileTypeInfo[i].text_max = g_variant_get_int32(value);
+                       }
+                       if (!g_strcmp0(key, "used_count")) {
+                               list.FileTypeInfo[i].used_count = g_variant_get_int32(value);
+                       }
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+}
+
+static void on_response_read_sim_pb_record(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;
+       TelSimPbAccessResult_t result = TAPI_SIM_PB_SUCCESS;
+       TelSimPbRecord_t pb_rec ;
+
+       gint i = 0, ni = 0;
+       gchar *name = NULL;
+       gchar *number = NULL;
+       gchar *anr1 = NULL;
+       gchar *anr2 = NULL;
+       gchar *anr3 = NULL;
+       gchar *email1 = NULL;
+       gchar *email2 = NULL;
+       gchar *email3 = NULL;
+       gchar *email4 = NULL;
+
+       memset(&pb_rec, 0, sizeof(TelSimPbRecord_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(iiiisisisisisissssi)",
+                       &result,
+                       &pb_rec.phonebook_type,
+                       &i,
+                       &ni,
+                       &name,
+                       &pb_rec.dcs,
+                       &number,
+                       &pb_rec.ton,
+                       &anr1,
+                       &pb_rec.anr1_ton,
+                       &anr2,
+                       &pb_rec.anr2_ton,
+                       &anr3,
+                       &pb_rec.anr3_ton,
+                       &email1,
+                       &email2,
+                       &email3,
+                       &email4,
+                       &pb_rec.group_index);
+
+       pb_rec.index = i;
+       pb_rec.next_index = ni;
+
+       if(strlen(name))
+               snprintf((char*)pb_rec.name, strlen(name) + 1, "%s", name);
+
+       if(strlen(number))
+               snprintf((char*)pb_rec.number, strlen(number) + 1, "%s", number);
+
+       if(strlen(anr1))
+               snprintf((char*)pb_rec.anr1, strlen(anr1) + 1, "%s", anr1);
+
+       if(strlen(anr2))
+               snprintf((char*)pb_rec.anr2, strlen(anr2) + 1, "%s", anr2);
+
+       if(strlen(anr3))
+               snprintf((char*)pb_rec.anr3, strlen(anr3) + 1, "%s", anr3);
+
+       if(strlen(email1))
+               snprintf((char*)pb_rec.email1, strlen(email1) + 1, "%s", email1);
+
+       if(strlen(email2))
+               snprintf((char*)pb_rec.email2, strlen(email2) + 1, "%s", email2);
+
+       if(strlen(email3))
+               snprintf((char*)pb_rec.email3, strlen(email3) + 1, "%s", email3);
+
+/*     dbg("pb_rec.phonebook_type[%d]",pb_rec.phonebook_type );
+       dbg("pb_rec.index[%d]",pb_rec.index );
+       dbg("pb_rec.next_index[%d]",pb_rec.next_index );
+       dbg("pb_rec.name[%s]",pb_rec.name );
+       dbg("pb_rec.dcs[%d]",pb_rec.dcs );
+       dbg("pb_rec.number[%s]",pb_rec.number );
+       dbg("pb_rec.ton[%d]",pb_rec.ton );*/
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &pb_rec, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_update_sim_pb_record(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;
+       TelSimPbAccessResult_t result = TAPI_SIM_PB_SUCCESS;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_delete_sim_pb_record(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;
+       TelSimPbAccessResult_t result = TAPI_SIM_PB_SUCCESS;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+EXPORT_API int tel_get_sim_pb_init_info(TapiHandle *handle, int *init_completed, TelSimPbList_t *pb_list)
+{
+       GError *gerr = NULL;
+       GVariant *sync_gv = NULL;
+       int api_err = TAPI_API_SUCCESS;
+       int init_status = 0;
+
+       dbg("Func Entrance");
+
+       TAPI_RETURN_VAL_IF_FAIL(init_completed, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(pb_list, TAPI_API_INVALID_PTR);
+
+       sync_gv = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+                       handle->path, DBUS_TELEPHONY_PB_INTERFACE, "GetInitStatus", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, &gerr);
+
+       if (sync_gv) {
+               g_variant_get(sync_gv, "(ibbbbbb)",
+                               &init_status,
+                               &pb_list->b_fdn,
+                               &pb_list->b_adn,
+                               &pb_list->b_sdn,
+                               &pb_list->b_3g,
+                               &pb_list->b_aas,
+                               &pb_list->b_gas);
+               *init_completed = init_status;
+       }
+
+       return api_err;
+}
+
+EXPORT_API int tel_get_sim_pb_count(TapiHandle *handle, TelSimPbType_t pb_type, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int pb_ready = 0;
+
+       dbg("Func Entrance");
+       pb_ready = _tel_check_pb_state(handle);
+       if(pb_ready != 0)
+               return pb_ready;
+
+       if ( (pb_type != TAPI_SIM_PB_FDN) && (pb_type != TAPI_SIM_PB_ADN) && (pb_type != TAPI_SIM_PB_SDN)
+                       && (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);
+
+       param = g_variant_new("(i)", pb_type);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_PB_INTERFACE,
+                       "GetCount", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_sim_pb_count, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_pb_meta_info(TapiHandle *handle, TelSimPbType_t pb_type, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int pb_ready = 0;
+
+       dbg("Func Entrance");
+       pb_ready = _tel_check_pb_state(handle);
+       if(pb_ready != 0)
+               return pb_ready;
+
+       if ( (pb_type != TAPI_SIM_PB_FDN) && (pb_type != TAPI_SIM_PB_ADN) && (pb_type != TAPI_SIM_PB_SDN)
+                       && (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);
+
+       param = g_variant_new("(i)", pb_type);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_PB_INTERFACE,
+                       "GetInfo", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_sim_pb_meta_info, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_pb_usim_meta_info(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int pb_ready = 0;
+
+       dbg("Func Entrance");
+       pb_ready = _tel_check_pb_state(handle);
+       if(pb_ready != 0)
+               return pb_ready;
+
+       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,
+                       "GetUsimMetaInfo", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_get_sim_pb_usim_meta_info, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_read_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type, unsigned short index, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int pb_ready = 0;
+
+       dbg("Func Entrance");
+       pb_ready = _tel_check_pb_state(handle);
+       if(pb_ready != 0)
+               return pb_ready;
+
+       if (index == 0)
+               return TAPI_API_INVALID_INPUT;
+
+       if ( (pb_type != TAPI_SIM_PB_FDN) && (pb_type != TAPI_SIM_PB_ADN) && (pb_type != TAPI_SIM_PB_SDN)
+                       && (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);
+
+       param = g_variant_new("(ii)", pb_type, index);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_PB_INTERFACE,
+                       "ReadRecord", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_read_sim_pb_record, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_update_sim_pb_record(TapiHandle *handle, const TelSimPbRecord_t *req_data, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int pb_ready = 0;
+
+       dbg("Func Entrance");
+       pb_ready = _tel_check_pb_state(handle);
+       if(pb_ready != 0)
+               return pb_ready;
+
+       TAPI_RETURN_VAL_IF_FAIL((req_data != NULL) , TAPI_API_INVALID_PTR);
+
+       if (req_data->index == 0) {
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       if ((req_data->phonebook_type != TAPI_SIM_PB_FDN)
+                       && (req_data->phonebook_type != TAPI_SIM_PB_ADN) && (req_data->phonebook_type != TAPI_SIM_PB_SDN)
+                       && (req_data->phonebook_type != TAPI_SIM_PB_3GSIM) && (req_data->phonebook_type != TAPI_SIM_PB_AAS)
+                       && (req_data->phonebook_type != TAPI_SIM_PB_GAS)) {
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       dbg("req_data->phonebook_type[%d]",req_data->phonebook_type );
+       dbg("req_data->index[%d]",req_data->index );
+       dbg("req_data->name[%s]",req_data->name );
+       dbg("req_data->dcs[%d]",req_data->dcs );
+       dbg("req_data->number[%s]",req_data->number );
+       dbg("req_data->ton[%d]",req_data->ton );
+
+       param = g_variant_new("(iisisisisisissssi)",
+                       req_data->phonebook_type,
+                       req_data->index,
+                       req_data->name,
+                       req_data->dcs,
+                       req_data->number,
+                       req_data->ton,
+                       req_data->anr1,
+                       req_data->anr1_ton,
+                       req_data->anr2,
+                       req_data->anr2_ton,
+                       req_data->anr3,
+                       req_data->anr3_ton,
+                       req_data->email1,
+                       req_data->email2,
+                       req_data->email3,
+                       req_data->email4,
+                       req_data->group_index);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_PB_INTERFACE,
+                       "UpdateRecord", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_update_sim_pb_record, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+
+}
+
+EXPORT_API int tel_delete_sim_pb_record(TapiHandle *handle, TelSimPbType_t pb_type, unsigned short index, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int pb_ready = 0;
+
+       dbg("Func Entrance");
+       pb_ready = _tel_check_pb_state(handle);
+       if(pb_ready != 0)
+               return pb_ready;
+
+       if (index == 0)
+               return TAPI_API_INVALID_INPUT;
+
+       if ( (pb_type != TAPI_SIM_PB_FDN) && (pb_type != TAPI_SIM_PB_ADN) && (pb_type != TAPI_SIM_PB_SDN)
+                       && (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);
+
+       param = g_variant_new("(ii)", pb_type, index);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_PB_INTERFACE,
+                       "DeleteRecord", param, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+                       on_response_delete_sim_pb_record, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
diff --git a/src/tapi_proxy_call.c b/src/tapi_proxy_call.c
deleted file mode 100644 (file)
index 0906180..0000000
+++ /dev/null
@@ -1,2113 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <string.h>
-
-#include "TelDefines.h"
-#include "TelSs.h"
-#include "TelCall.h"
-#include "tel_cs_conn.h"
-#include "tapi_proxy.h"
-#include "TapiUtility.h"
-#include "TelUtility.h"
-
-extern tapi_dbus_connection_name conn_name;
-
-/******************************************************************************
- *******************************************************************************
- *
- *                                                     G L O B A L   V A R I A B L E S
- *
- ******************************************************************************
- ******************************************************************************/
-//     None.
-
-
-/******************************************************************************
- *******************************************************************************
- *
- *                                             P R O X Y   C A L  L   A P I's
- *
- *
- ******************************************************************************
- ******************************************************************************/
-
-/**
- *
- * Initiate a new call. Call could be either voice or video.
- *
- * The client specifies the telephone number and the desired call parameters via the
- *
- * tapi_call_setup_info_t argument. After successful completion of the dial request a call identifier is
- *
- * returned back to the client via the ptr_call_handle argument. The call identifier is needed to hold,
- *
- * resume, swap, and terminate the call. It is also needed to monitor the status of the call.
- *
- * This is an asynchronous API. After successful completion of the request in Phone Alert Event is
- *
- * published. otherwise Error event is published.
- *
- * @param[in]          * TelCallSetupParams_t          telephone number and desired call parameters.
- * @param[out]         * pCallHandle , *pRequestID.   Handle of the call. specifies the request identifier.
- * @Interface          Synchronous.
- * @return                     int                             API Result Code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    ptr_call_setup_info, and ptr_call_handle can not be NULL.
- * @see                                See below API's also.
- *                                     - tel_answer_call(),
- *                                     - tel_release_call(),
- *                                     - tel_hold_call(),
- *                                     - tel_retrieve_call(),
- *                                     .
- */
-EXPORT_API int tel_exe_call_mo(const TelCallSetupParams_t *pParams, unsigned int *pCallHandle, int *pRequestID)
-{
-       int num_len = 0;
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /* check for invalid ptr etc etc if applicable.... */
-       TAPI_RET_ERR_NUM_IF_FAIL((pParams && pCallHandle && pRequestID ),
-                       TAPI_API_INVALID_PTR);
-
-       num_len = strlen(pParams->szNumber);
-
-       /* check for invalid ptr etc etc if applicable.... */
-       if ((TAPI_CALL_DIALDIGIT_LEN_MAX < num_len) || (0 >= num_len)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_ : Invalid telephone no length [%+d]", num_len);
-               return TAPI_API_INVALID_INPUT;
-       }
-       else {
-               // Do Nothing........
-       }
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /* check for the RPC link.... */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       /* Check input range for possible call types */
-       if ((TAPI_CALL_TYPE_VOICE == pParams->CallType) || (TAPI_CALL_TYPE_DATA == pParams->CallType)
-                       || (TAPI_CALL_TYPE_E911 == pParams->CallType)) {
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param1);
-
-               g_array_append_vals(in_param1, pParams, sizeof(TelCallSetupParams_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Setup Call: Call Type [%d], Number [%s]",
-                               pParams->CallType, pParams->szNumber);
-
-               TAPI_PRINT_TIME("tel_exe_call_mo() is called..");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_SETUP, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /* API return value */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /* Request ID */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-
-                       /* Call handle */
-                       *pCallHandle = g_array_index(out_param3, unsigned int, 0);
-               }
-               else {
-                       /* RPC API failed, return FALSE to APP */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               /* Invalid input range given by the APP. */
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid Input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d] RequestId [%+d] Hanlde [%+d]", api_err, *pRequestID, *pCallHandle);
-
-       return api_err;
-}
-
-/**
- * Accept or Reject an incoming new call.
- *
- * Answering an incoming call is possible only when the call status is incoming or waiting.
- *
- * Client can choose to answer an incoming call, even when an active call exists, by specifying argument
- *
- * TelCallAnswerType_t.  The TelCallAnswerType_t can be accept a single call, or hold a current call and
- *
- * accept the incoming call, or replace the current active call with waiting incoming call, or reject the call.
- *
- * @param[in]          CallHandle, a call identifier
- * @param[in]          TelCallAnswerType_t, accept / reject /hold and accept etc.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API Result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    tapi_call_handle should refer a call state which is in incoming/waiting state.
- * @see                                See below API's also.
- *                                     - tel_exe_call_mo(),
- *                                     - tel_release_call(),
- *                                     - tel_hold_call(),
- *                                     - tel_retrieve_call(),
- *                                     .
- */
-EXPORT_API int tel_answer_call(unsigned int CallHandle, TelCallAnswerType_t AnsType, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       /* check for invalid ptr etc etc if applicable.... */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /* Check the call handle value... */
-       if (CallHandle <= 0) {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_ : Invalid Call Handle.");
-               return api_err;
-       }
-
-       /* Check input range for tapi_answer_type_t */
-       if ((TAPI_CALL_ANSWER_ACCEPT <= AnsType) && (TAPI_CALL_ANSWER_HOLD_AND_ACCEPT >= AnsType)) {
-               /* check for the RPC link.... */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-               g_array_append_vals(in_param2, &AnsType, sizeof(TelCallAnswerType_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, " Answer Call: Answer Type [%d], Call Handle [%d]",
-                               AnsType, CallHandle);
-
-               TAPI_PRINT_TIME("tel_answer_call() is called..");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_ANSWER, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /* Get the API error value as out param 1, from the server. */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /* Get the Request ID as out param 2, from the server. */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /* RPC API failed, return FALSE to APP */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-       }
-       else {
-               /* Invalid Input Range */
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid Answer Type");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- * Hangup calls. This is only for calls you dialed or answered with Telephony.
- *
- * The client specifies the call handle via the call_handle argument.
- *
- * Upon successful completion of Hangup, the information related to this call handle is destroyed.
- *
- * client can specify to Hangup a single call, all active calls, or all calls via argument tapi_release_type_t.
- *
- * @param[in]          CallHandle              Handle of the call which needs to be Hungup.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int      API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    tapi_call_handle should contain a call handle which is in connected or held state.
- * @see                                See below API's also.
- *                                     - tel_exe_call_mo(),
- *                                     - tel_answer_call(),
- *                                     - tel_hold_call(),
- *                                     - tel_retrieve_call(),
- *                                     .
- */
-
-EXPORT_API int tel_release_call(unsigned int CallHandle, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /* check for invalid ptr etc etc if applicable.... */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if (0 < CallHandle) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Release Call: Call Handle [%d]", CallHandle);
-
-               TAPI_PRINT_TIME("tel_release_call() is called..");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_RELEASE, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /* Get the API error value as out param 1, from the server. */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /* Get the Request ID as out param 2, from the server. */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /* RPC API failed, return FALSE to APP */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-       }
-       else {
-               /* Invalid Input Range.. */
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_:: Invalid Call Handle.");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- * Hangup calls. This is only for calls you dialed or answered with Telephony.
- *
- * The client specifies the call handle via the call_handle argument.
- *
- * Upon successful completion of Hangup, the information related to this call handle is destroyed.
- *
- * client can specify to Hangup a single call, all active calls, or all calls via argument tapi_release_type_t.
- *
- * @param[in]          NONE.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int     API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    tapi_call_handle should contain a call handle which is in connected or held state.
- * @see                                See below API's also.
- *                                     - tel_exe_call_mo(),
- *                                     - tel_answer_call(),
- *                                     - tel_hold_call(),
- *                                     - tel_retrieve_call(),
- *                                     .
- */
-
-EXPORT_API int tel_release_call_all(int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /* check for invalid ptr etc etc if applicable.... */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       /* check for the RPC link.... */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(),
-                       TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Release all calls:");
-
-       TAPI_PRINT_TIME("tel_release_call_all() is called..");
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_RELEASEALL, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /* Get the API error value as out param 1, from the server. */
-               api_err = g_array_index(out_param1, int, 0);
-
-               /* Get the Request ID as out param 2, from the server. */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               /* RPC API failed, return FALSE to APP */
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- * Hangup calls. This is only for calls you dialed or answered with Telephony.
- *
- * Upon successful completion of Hangup, the information related to this call handle is destroyed.
- *
- *
- * @param[in]          NONE.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    tapi_call_handle should contain a call handle which is in connected or held state.
- * @see                                See below API's also.
- *                                     - tel_exe_call_mo(),
- *                                     - tel_answer_call(),
- *                                     - tel_hold_call(),
- *                                     - tel_retrieve_call(),
- *                                     .
- */
-EXPORT_API int tel_release_call_all_active(int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(),
-                       TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Release all active calls:");
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_RELEASEALL_ACTIVE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-
-               /* Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               /*      RPC API failed, return FALSE to APP     */
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-
-}
-
-/**
- * Hangup all held calls. This is only for calls you dialed or answered with Telephony.
- *
- *
- * Upon successful completion of Hangup, the information related to this call handle is destroyed.
- *
- *
- * @param[in]          NONE.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int                     API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    tapi_call_handle should contain a call handle which is in connected or held state.
- * @see                                See below API's also.
- *                                     - tel_exe_call_mo(),
- *                                     - tel_answer_call(),
- *                                     - tel_hold_call(),
- *                                     - tel_retrieve_call(),
- *                                     .
- */
-EXPORT_API int tel_release_call_all_held(int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(),
-                       TAPI_API_SYSTEM_RPC_LINK_DOWN);
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Release all held calls:");
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_RELEASEALL_HELD, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-
-               /* Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               /*      RPC API failed, return FALSE to APP     */
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-
-}
-
-/**
- *
- * Places a call on hold. This is only for calls you dialed or answered with Telephony.
- *
- * The client specifies the call handle via the call_handle argument.
- *
- * @param[in]          CallHandle,     Hndle of active call.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @return                     int             API result code.
- * @Interface          Asynchronous.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    tapi_call_handle should refer a call which is in ACTIVE state
- * @see                                See below API's also.
- *                                     - tel_retrieve_call().
- *                                     .
- */
-EXPORT_API int tel_hold_call(unsigned int CallHandle, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the call handle  value... */
-       if (0 < CallHandle) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(),
-                               TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Hold Call Handle [%d]", CallHandle);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_HOLD, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * Retrieve held calls. This is only for calls you dialed or answered with Telephony.
- *
- * The client specifies the call handle via the call_handle argument.
- *
- * @param[in]          CallHandle,     Handle of the held call
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    tapi_call_handle should refer a call which is in HELD state..
- * @see                                None.
- */
-EXPORT_API int tel_retrieve_call(unsigned int CallHandle, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the call handle  value... */
-       if (0 < CallHandle) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Activate Call Handle [%d]", CallHandle);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_ACTIVATE, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-       }
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * Swap calls. This is only for calls you dialed or answered with Telephony.
- *
- * The client specifies the call handles via the active_call and held_call arguments.
- *
- * Swap is only available for the voice calls.
- *
- * @param[in]          CallHandle1     Handle of the active call.
- * @param[in]          CallHandle2     Handle of the held call.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    NONE.
- * @see                                NONE.
- */
-EXPORT_API int tel_swap_call(unsigned int CallHandle1, unsigned int CallHandle2, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if ((0 < CallHandle1) && (0 < CallHandle2)) {
-               if (CallHandle1 == CallHandle2) {
-                       return TAPI_API_INVALID_CALL_HANDLE;
-               }
-
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle1, sizeof(unsigned int));
-               g_array_append_vals(in_param2, &CallHandle2, sizeof(unsigned int));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Swap calls with handles [%d], and [%d]",
-                               CallHandle1, CallHandle2);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_SWAP, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-       }
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * Setup a conference call.
- *
- * The client specifies the call handles via the active_call and held_call arguments.
- *
- * Setup a conference call is only available for the voice calls.
- *
- * @param[in]          CallHandle1     Handle of the active call.
- * @param[in]          CallHandle2     Handle of the held call.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    NONE.
- * @see                                NONE.
- */
-EXPORT_API int tel_join_call(unsigned int CallHandle1, unsigned int CallHandle2, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((0 < CallHandle1) && (0 < CallHandle2)) {
-               if (CallHandle1 == CallHandle2) {
-                       return TAPI_API_INVALID_CALL_HANDLE;
-               }
-
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle1, sizeof(unsigned int));
-               g_array_append_vals(in_param2, &CallHandle2, sizeof(unsigned int));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Join Calls with Handles [%d], [%d]",
-                               CallHandle1, CallHandle2);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_SETUPCONFCALL, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-       }
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * Split a call from conference call.
- *
- * The client specifies the call handle via the call_handle argument.
- *
- * Split a conference call is only available for the voice calls.
- *
- * @param[in]          CallHandle      Handle of the call which needs to be seperated.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    NONE.
- * @see                                NONE.
- */
-EXPORT_API int tel_split_call(unsigned int CallHandle, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((0 < CallHandle)) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(),
-                               TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Split Call Handle [%d]", CallHandle);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_SPLITCONFCALL, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * Transfers a call to another call.
- *
- * client specifies the handle  of the calls via active_call, held_call arguments.
- *
- * Transfer call is only available for the voice calls.
- *
- * @param[in]          CallHandle,     Handle of the active call.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    NONE.
- * @see                                NONE.
- */
-EXPORT_API int tel_exe_call_explicit_transfer(unsigned int CallHandle, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if (0 < CallHandle) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "ECT Call Handle [%d]", CallHandle);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_TRANSFERCALL, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-       }
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * Activate Call Completion to a Busy Subscriber.
- *
- * client specifies the handle  of the call via call_handle argument.
- *
- * Activate CCBS is only available for the voice calls.
- *
- * @param[in]          CallHandle,     Handle of the call.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    NONE.
- * @see                                NONE.
- */
-EXPORT_API int tel_activate_call_ccbs(unsigned int CallHandle, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the call handle  value... */
-       if (0 < CallHandle) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "CCBS Call Handle [%d]", CallHandle);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_ACTIVATECCBS, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *  Send DTMF digits to the network.
- *
- * Client specifies the Handle of the active call via call_handle argument.
- *
- * The handle of the call is voice call only.
- *
- * @param[in]          tapi_call_dtmf_t        DTMF digits.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    tapi_call_dtmf_t can not be NULL.
- * @see                                NONE.
- */
-EXPORT_API int tel_send_call_dtmf(const char *pDtmfString, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int length = 0;
-       int app_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL( (pRequestID && pDtmfString), TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       length = strlen(pDtmfString);
-
-       /*      Check the input value...        */
-       if (length != 0) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Send DTMF digits [%s] and len [%d]",
-                               pDtmfString, length);
-
-               /*      to allocate for null termiated string   */
-               g_array_append_vals(in_param1, pDtmfString, (length + 1));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_DTMF, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       app_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       app_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               app_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]", app_err, *pRequestID);
-
-       return app_err;
-}
-
-/**
- *
- * Call Deflection.
- *
- * If informed about an incoming call this call may be redirected to an another destination by
- *
- * entering the destination Number. The cleint spcifies the dstiantion number to which the current
- *
- * incoming call needs to be redirected is specifed via info argument.
- *
- * @param[in]          call_handle,                    Incoming call handle.
- * @param[in]          TelCallDeflectDstInfo_t Destination Number.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    info can not be NULL.
- * @see                                None.
- */
-EXPORT_API int tel_deflect_call(unsigned int CallHandle, const TelCallDeflectDstInfo_t *pInfo, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*       check for the input pointer .. */
-       TAPI_RET_ERR_NUM_IF_FAIL( (pRequestID && pInfo), TAPI_API_INVALID_PTR);
-
-       /*      Check the input value...        */
-       if (0 < CallHandle) {
-               /*       check for the RPC link.... */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-               g_array_append_vals(in_param2, pInfo, sizeof(TelCallDeflectDstInfo_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Deflect Call Handle [%d] to [%s]",
-                               CallHandle, pInfo->number);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_DEFLECT, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid CALL HANDLE");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * Get the current calling line identification number.
- *
- * The line id is returned via the argument ptr_active_line.
- *
- * @param[in]          NONE
- * @param[out]         TelCallActiveLine_t     current active line id, *pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    TelCallActiveLine_t can not be NULL.
- * @see                                None.
- */
-EXPORT_API int tel_get_call_act_line(int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL( pRequestID, TAPI_API_INVALID_PTR);
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Get Active Line");
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_GETACTIVELINE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-
-       }
-       else {
-               /*      RPC API failed, return FALSE to APP     */
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * Set the current calling line identification number.
- *
- * Client specifies the desired line id via the argument active_line.
- *
- * @param[in]          TelCallActiveLine_t     calling line identification.
- * @param[out]         pRequestID.   specifies the request identifier.
- * @Interface          Asynchronous.
- * @return                     int             API result code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks                    NONE.
- * @see                                NONE.
- */
-EXPORT_API int tel_set_call_act_line(TelCallActiveLine_t active_line, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((TAPI_CALL_ACTIVE_LINE1 == active_line) || (TAPI_CALL_ACTIVE_LINE2 == active_line)) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &active_line, sizeof(TelCallActiveLine_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Set Active Line ID [%d]", active_line);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_SETACTIVELINE, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1,out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- * @brief This function gets status for the current call identified by Call Handle whenever
- *     application wants the call status. Call handle must be valid.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in] CallHandle
- *  - Unique handle for referring the call.
- *
- * @param [out] pCallStatus
- *   - Call status information like destination number, call direction (MO or MT), call type (voice or data etc), whether
- *      the call is in conference state or not, present call state etc are returned through this parameter.
- *
- * @par Async Response Message:
- *   - None.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- */
-EXPORT_API int tel_get_call_status(unsigned int CallHandle, TelCallStatus_t *pCallStatus)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "CallHandle:[%d]\n",CallHandle);
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pCallStatus, TAPI_API_INVALID_PTR);
-
-       if (CallHandle > 0) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "Call Service Request: .(Get Call Status)");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_GETSTATUS, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the call status as out param 3, from the server.    */
-                       *pCallStatus = g_array_index(out_param3, TelCallStatus_t , 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       pCallStatus = NULL;
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               pCallStatus = NULL;
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "#####Invalid Handle");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/*================================================================================================*/
-
-/**
- * \addtogroup  tel_get_call_duration
- * @{
- */
-
-/**
- * @brief This function gets duration of the given call. This is a synchronous function. Duration is accounted from the moment
- *          the connection is established, i.e. call goes into active state for first time.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in] CallHandle
- *  - Unique handle for referring the call.
- *
- * @param [out] pDurationInSecs
- *   - The total call duration in seconds from the call connecting time to the present time is returned through this parameter.
- *
- * @par Async Response Message:
- *  - None.
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- *
- */
-EXPORT_API int tel_get_call_duration(unsigned int CallHandle, unsigned int *pDurationInSecs)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance \n");
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"CallHandle:[%d]\n",CallHandle);
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pDurationInSecs, TAPI_API_INVALID_PTR);
-
-       if (CallHandle > 0) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "Call Service Request: .(Get Call Duration)");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_GETDURATION, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the call durations as out param 3, from the server. */
-                       *pDurationInSecs = g_array_index(out_param3, unsigned int , 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       *pDurationInSecs = 0;
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-       }
-       else {
-               *pDurationInSecs = 0;
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "#####Invalid Handle.");
-       }
-
-       return api_err;
-}
-
-/**
- * @brief This is a synchronous function returns all call handles within the given conference call.
- *
- *
- * @par Sync (or) Async:
- * This is a Synchronous API.
- *
- * @par Important Notes:
- *  - Call should be a Multi-party conference call in order to return actual no of calls and call handles in the conference calls.
- *
- * @warning
- * - None.
- *
- *
- * @param[in] CallHandle
- *  - Handle of call which is associated with the conference.
- *
- * @param [out] pCallList
- *   - list of call joined in the conference call. In case there is no active conference. The list will be zero and
- *      number of calls parameter value will also be zero. Maximum number of calls in a conference can be upto 5
- *      (Based on 3GPP TS 22.084). Memory allocation for calllist is integer array of size 5.
- *
- * @param [out] pNoOfCalls
- *   - Number of the calls present in conference.
- *
- * @par Async Response Message:
- *  -None.
- *
- * @pre
- *  -None.
- *
- * @post
- *  -None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- */
-EXPORT_API int tel_get_call_conf_list(unsigned int CallHandle, unsigned int *pCallList, int *pNoOfCalls)
-{
-       TS_BOOL ret = FALSE;
-       unsigned int * tempCallList;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"<PROXY> Func Entrance \n");
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"CallHandle:[%d]\n",CallHandle);
-
-       /*       check for the input pointer .. */
-       TAPI_RET_ERR_NUM_IF_FAIL( (pCallList && pNoOfCalls), TAPI_API_INVALID_PTR);
-
-       *pNoOfCalls = 0;
-       *pCallList = 0;
-
-       if (0 < CallHandle) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &CallHandle, sizeof(unsigned int));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "Call Service Request: .(Get Conference List)");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_GETCONFERENCELIST, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the No. of Calls as out param 4, from the server.    */
-                       *pNoOfCalls = g_array_index(out_param4, int , 0);
-
-                       if (*pNoOfCalls > 0) {
-                               /*      Get the Call List as out param 3, from the server.    */
-                               tempCallList = &g_array_index(out_param3, unsigned int , 0);
-                       }
-                       else {
-                               tempCallList = NULL;
-                       }
-
-                       if (tempCallList != NULL)
-                               memcpy(pCallList, tempCallList, sizeof(unsigned int) * (*pNoOfCalls));
-
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-       }
-       else {
-               api_err = TAPI_API_INVALID_CALL_HANDLE;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "#####Invalid Handle.");
-       }
-
-       return api_err;
-}
-
-/**
- *
- * @brief This function gets voice privacy option mode in phone(CDMA only).
- *
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in]
- * - None.
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_GET_PRIVACYMODE_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t. #TelCallPrivacyMode_t is included in this event.
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- *
- */
-EXPORT_API int tel_get_call_privacy_mode(TelCallPrivacyType_t PrivacyType, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((TAPI_CALL_PRIVACY_TYPE_MS <= PrivacyType) && (PrivacyType <= TAPI_CALL_PRIVACY_TYPE_CURRENT)) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &PrivacyType, sizeof(TelCallPrivacyType_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Get Request PrivacyType:[%d]", PrivacyType);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_GETPRIVACYMODE, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d], Reuest ID [%+d]",api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * @brief This function sets voice privacy option mode in phone. It is available only where call exists(CDMA only).
- *
- * Access to this API is limited, we recommand you use Voice Call engine API.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in] PrivacyMode
- * - voice privacy option mode(ENHANCED or STANDARD)
- *
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_SET_PRIVACYMODE_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t.
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- *
- */
-EXPORT_API int tel_set_call_privacy_mode(TelCallVoicePrivacyInfo_t PrivacyInfo, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (((TAPI_CALL_PRIVACY_TYPE_MS <= PrivacyInfo.PrivacyType) && (TAPI_CALL_PRIVACY_TYPE_CURRENT
-                       >= PrivacyInfo.PrivacyType)) && ((TAPI_CALL_PRIVACY_MODE_STANDARD == PrivacyInfo.PrivacyMode)
-                       || (TAPI_CALL_PRIVACY_MODE_ENHANCED == PrivacyInfo.PrivacyMode))) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &PrivacyInfo, sizeof(TelCallVoicePrivacyInfo_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Set PrivacyType:[%d], PrivacyMode:[%d]", PrivacyInfo.PrivacyType, PrivacyInfo.PrivacyMode);
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_SETPRIVACYMODE, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return FALSE to APP     */
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                               out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_CALL_ERR_: Invalid input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- *
- * @brief This function requests to send a Flash with Information Message(CDMA only).
- *
- * Access to this API is limited, we recommand you use Voice Call engine API.
- *
- * @par Sync (or) Async:
- * This is a Asynchronous API.
- *
- * @par Important Notes:
- *   - None.
- *
- * @warning
- * - None.
- *
- *
- * @param[in] pDialNumber
- * - this is the calling number for 3 way call. But in the call waiting, this param should be NULL.
- *
- *
- * @param [out] pRequestId
- *   - Unique identifier for a particular request.
- *   - Request Id value can be any value from 0 to 255 if the API is returned successfully
- *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
- *
- *
- * @par Async Response Message:
- * - The event associated with this request is TAPI_EVENT_CALL_FLASHINFO_CNF. Asynchronous return status
- *    is indicated by #TelCallCause_t.
- *
- *
- * @pre
- *  - None.
- *
- * @post
- *  - None.
- *
- * @return Return Type (int) \n
- * - 0 - indicating that the operation has completed successfully. \n
- * - Else it will return failure and error code (Refer Doxygen doc or TapiResult_t)
- *
- * @par Prospective Clients:
- * External Apps.
- *
- *
- *
- */
-EXPORT_API int tel_exe_call_flash_info(const char *pDialNumber, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int length = 0;
-       int app_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL( pRequestID, TAPI_API_INVALID_PTR);
-
-       if (pDialNumber) {
-               length = strlen(pDialNumber);
-               TAPI_LIB_DEBUG(LEVEL_INFO, "DialNumber: [%s] and len:[%d]", pDialNumber, length);
-       }
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       /*      to allocate for null termiated string   */
-
-       if (length > 0)
-               g_array_append_vals(in_param1, pDialNumber, (length + 1));
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_FLASHINFO, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               app_err = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               /*      RPC API failed, return FALSE to APP     */
-               app_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d], Reuest ID [%+d]",app_err, *pRequestID);
-
-       return app_err;
-}
-
-/**
- * tel_exit_call_emergency_mode
- *
- *
- */
-EXPORT_API int tel_exit_call_emergency_mode(int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL( pRequestID, TAPI_API_INVALID_PTR);
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_EXITEMERGENCYMODE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/**
- * tel_get_call_time
- *
- *
- */
-EXPORT_API int tel_get_call_time(unsigned short req_mask, int *pRequestID)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for invalid ptr etc etc if applicable....        */
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &req_mask, sizeof(unsigned short));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Get Call time req type:[%x]", req_mask);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_CALL, TAPI_CS_CALL_GETCALLTIME, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, TapiResult_t, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               /*      RPC API failed, return FALSE to APP     */
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "_CALL_ERR_ : RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                       out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d], Reuest ID [%+d]", api_err, *pRequestID);
-
-       return api_err;
-}
-
-/*     EOF  */
-
diff --git a/src/tapi_proxy_cfg.c b/src/tapi_proxy_cfg.c
deleted file mode 100644 (file)
index 272fb49..0000000
+++ /dev/null
@@ -1,769 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <dlog.h>
-
-#include <TelDefines.h>
-
-#include <ITapiCfg.h>
-#include <TapiUtility.h>
-#include <TelErr.h>
-
-#include "tel_cs_conn.h"
-#include "tapi_proxy_internal.h"
-
-
-/******************************************************************************
- ******************************************************************************
- *
- *                                             P R O X Y   C A L  L   A P I's
- *
- ******************************************************************************
- ******************************************************************************/
-
-/**
- * Set default configuration to modem.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_set_cfg_default_configuration(TelDefaultCfg_t bType)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       if ((TAPI_CFG_DEFAULT_FULL > bType) || (TAPI_CFG_DEFAULT_CUSTOM < bType)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input -Default Configuration");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &bType, sizeof(TelDefaultCfg_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_DEFAULTCONFGURATION_EXE,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-/**
- * get A-Key.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_akey(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /* check for the RPC link.... */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_A_KEY,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * verify A-Key.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_verify_cfg_akey(const TelCfgAKeyInfo_t *pAKey_info)
-{
-       TS_BOOL ret = FALSE;
-       int app_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "A-key:[%s]", pAKey_info->A_key);
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, pAKey_info, sizeof(TelCfgAKeyInfo_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_VERIFY_A_KEY,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               app_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               app_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", app_err);
-
-       return app_err;
-}
-
-/**
- * get MSL_info.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_msl_info(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_MSL_INFO,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * get vocoder option.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_vocoder_option(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_VOCODER_OPTION,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * set vocoder option.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_set_cfg_vocoder_option(TelCfgVocOption_t option)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if ((TAPI_CFG_VOC_OPTION_DEFAULT <= option) && (option <= TAPI_CFG_VOC_OPTION_RESERVED)) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-               TAPI_GLIB_INIT_PARAMS();
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &option, sizeof(TelCfgVocOption_t));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "option:[%d]", option);
-
-               ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_SET_VOCODER_OPTION,
-                               in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-               }
-               /*      RPC API failed, return FALSE to APP     */
-               else {
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, " Invalid Input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * get hidden menu access.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_hidden_menu_access(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_HIDDEN_MENU_ACCESS,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * set hidden menu access.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_set_cfg_hidden_menu_access(TelCfgHiddenMenuAccessType_t type)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if ((TAPI_CFG_HIDDEN_MENU_DISABLE <= type) && (type <= TAPI_CFG_HIDDEN_MENU_ENABLE)) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-               TAPI_GLIB_INIT_PARAMS();
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &type, sizeof(TelCfgHiddenMenuAccessType_t));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "type:[%d]", type);
-
-               ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_SET_HIDDEN_MENU_ACCESS,
-                               in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-               }
-               /*      RPC API failed, return FALSE to APP     */
-               else {
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * get current carrier.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_serving_carrier(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_CURRENT_CARRIER,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * set current carrier.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_set_cfg_serving_carrier(TelCfgCurrentCarrier_t Carrier)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if ((TAPI_CFG_CARRIER_TEST <= Carrier) && (Carrier <= TAPI_CFG_CARRIER_MTS)) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-               TAPI_GLIB_INIT_PARAMS();
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &Carrier, sizeof(TelCfgCurrentCarrier_t));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Carrier:[%d]", Carrier);
-
-               ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_SET_CURRENT_CARRIER,
-                               in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-               }
-               /*      RPC API failed, return FALSE to APP     */
-               else {
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, " Invalid Input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * get sio mode.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_sio_mode(void) {
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_SIO_MODE,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * set sio mode.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_set_cfg_sio_mode(TelCfgSIOMode_t Mode)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if ((TAPI_CFG_SIO_U1_DIAG_USB2_GPS <= Mode) && (Mode <= TAPI_CFG_SIO_U1_HFK_USB2_DIAG)) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-               TAPI_GLIB_INIT_PARAMS();
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &Mode, sizeof(TelCfgSIOMode_t));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "Mode:[%d]", Mode);
-
-               ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_SET_SIO_MODE,
-                               in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-               }
-               /*      RPC API failed, return FALSE to APP     */
-               else {
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, " Invalid Input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * get activation date.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_activated_date_of_phone(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_ACTIVATION_DATE,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * get reconditioned status and date.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_reconditioned_data_of_phone(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_RECONDITIONED_DATE,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * get tty mode. CDMA only
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_get_cfg_tty_mode(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_GET_TTY_MODE,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       /*      RPC API failed, return FALSE to APP     */
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, " Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**
- * Set tty mode. CDMA only
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_set_cfg_tty_mode(TelCfgTTYMode_t Mode)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if ((Mode >= TAPI_CFG_TTY_MODE_DISABLE) && (Mode <= TAPI_CFG_TTY_MODE_ENABLE_FULL)) {
-               /*       check for the RPC link....     */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-               TAPI_GLIB_INIT_PARAMS();
-               TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-               g_array_append_vals(in_param1, &Mode, sizeof(TelCfgTTYMode_t));
-
-               TAPI_LIB_DEBUG(LEVEL_INFO, "TTY Mode:[%d]", Mode);
-
-               ret = tapi_send_request_internal(TAPI_CS_SERVICE_CFG, TAPI_CS_CFG_SET_TTY_MODE,
-                               in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-               }
-               /*      RPC API failed, return FALSE to APP     */
-               else {
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC link is down");
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, " Invalid Input");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-//eof
diff --git a/src/tapi_proxy_common.c b/src/tapi_proxy_common.c
deleted file mode 100644 (file)
index d617fec..0000000
+++ /dev/null
@@ -1,588 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <string.h>
-#include <stdlib.h>
-
-#include <dbus/dbus-glib.h>
-#include <dbus/dbus-glib-lowlevel.h>
-#include <dbus/dbus.h>
-
-#include <vconf.h>
-
-#include "TelDefines.h"
-#include "tel_cs_conn.h"
-#include "TapiUtility.h"
-#include "TelUtility.h"
-#include "TapiCommon.h"
-#include "tapi_proxy.h"
-
-#include "tel_marshaler.h"
-
-enum {
-       TAPI_SIGNAL0,
-       TAPI_SIGNAL1,
-       TAPI_SIGNAL2,
-       TAPI_SIGNAL3,
-       TAPI_SIGNAL_MAX
-};
-
-static char *_evt_sig_members[] = {
-       TAPI_SIGNAL_MEMBER_ARG0,
-       TAPI_SIGNAL_MEMBER_ARG2,
-       TAPI_SIGNAL_MEMBER_ARG4,
-       TAPI_SIGNAL_MEMBER_ARG5,
-};
-
-extern char *g_cookie_name;
-extern int g_cookie_size;
-
-tapi_dbus_connection_name conn_name;
-
-typedef enum {
-       TAPI_EVTMODE_NONE,
-       TAPI_EVTMODE_GLIB,
-       TAPI_EVTMODE_ECORE,
-} TelTapiEvtMode_t;
-
-typedef struct GDBusEvtItem_t {
-       unsigned int id;
-       DBusGProxy *robj;
-       GCallback cb[4];
-       void *data;
-} GDBusEvtItem_t;
-
-typedef struct {
-       void *data;
-       TelAppCallback cb;
-} UserData_t;
-
-typedef GCallback (*GDBusConnSig_t)(DBusGProxy *, const char *, void *);
-
-static GCallback gdbus_conn_signal0(DBusGProxy *robj, const char *member, void *data);
-static GCallback gdbus_conn_signal2(DBusGProxy *robj, const char *member, void *data);
-static GCallback gdbus_conn_signal4(DBusGProxy *robj, const char *member, void *data);
-static GCallback gdbus_conn_signal5(DBusGProxy *robj, const char *member, void *data);
-
-static GDBusConnSig_t GDBusConnSig[TAPI_SIGNAL_MAX] = { gdbus_conn_signal0, gdbus_conn_signal2, gdbus_conn_signal4,
-               gdbus_conn_signal5 };
-
-static DBusGConnection *GDBusHandle = NULL;
-
-static int _tapi_init_ref_count = 0;
-
-static GSList *EvtList = NULL;
-static long int EvtId = 0;
-
-static TelTapiEvtMode_t EvtMode = TAPI_EVTMODE_NONE;
-
-#define CHK_EVENT_MODE(MODE) \
-       if (EvtMode != MODE) { \
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Event MODE check failed (current: %d)", EvtMode); \
-               return TAPI_API_OPERATION_FAILED; \
-       }
-
-#define CHK_EVENT_INIT_MODE(MODE) \
-       if (EvtMode != MODE && EvtMode != TAPI_EVTMODE_NONE) { \
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Event MODE check failed (current: %d)", EvtMode); \
-               return TAPI_API_OPERATION_FAILED; \
-       }
-
-#define EVENT_DUMP(Event) \
-       { \
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, " Received group is :0x%x", Event.EventClass); \
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, " received event type is :0x%x", Event.EventType); \
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, " received requestid is :0x%x", Event.RequestId); \
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, " received status is :%d", Event.Status); \
-       } \
-
-static void on_gdbus_event_receive0(DBusGProxy *proxy, void *local_data)
-{
-       TelTapiEvent_t Event;
-
-       Event.EventClass = -1;
-       Event.EventType = 0;
-       Event.RequestId = -1;
-       Event.Status = 0;
-       Event.pData = NULL;
-       Event.pDataLen = 0;
-
-       EVENT_DUMP(Event);
-
-       /* Contents of parameters is defined by every notification. */
-       UserData_t *user_data;
-       user_data = (UserData_t *) local_data;
-       user_data->cb(&Event, user_data->data);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG," Application Callback Invoked successfully ");
-}
-
-static void on_gdbus_event_receive2(DBusGProxy *proxy, int type, const char *data, void *local_data)
-{
-       TelTapiEvent_t Event;
-       guchar *result = NULL;
-       size_t out_len;
-
-       Event.EventClass = -1;
-       Event.EventType = type;
-       Event.RequestId = -1;
-       Event.Status = 0;
-       Event.pData = NULL;
-
-       EVENT_DUMP(Event);
-
-       TAPI_BASE64_DECODE(data, result, &out_len);
-       if (out_len > 0)
-               Event.pData = result;
-       Event.pDataLen = out_len;
-
-       /* Contents of parameters is defined by every notification. */
-       UserData_t *user_data;
-       user_data = (UserData_t *) local_data;
-       user_data->cb(&Event, user_data->data);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG," Application Callback Invoked successfully ");
-
-       if (result)
-               g_free(result);
-}
-
-static void on_gdbus_event_receive4(
-               DBusGProxy *proxy,
-               int grp,
-               int type,
-               int status,
-               const char *data,
-               void *local_data)
-{
-       TelTapiEvent_t Event;
-       guchar *result = NULL;
-       size_t out_len;
-
-       Event.EventClass = grp;
-       Event.EventType = type;
-       Event.RequestId = -1;
-       Event.Status = status;
-       Event.pData = NULL;
-
-       EVENT_DUMP(Event);
-
-       TAPI_BASE64_DECODE(data, result, &out_len);
-       if (out_len > 0)
-               Event.pData = result;
-       Event.pDataLen = out_len;
-
-       /* Contents of parameters is defined by every notification. */
-       UserData_t *user_data;
-       user_data = (UserData_t *) local_data;
-       user_data->cb(&Event, user_data->data);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG," Application Callback Invoked successfully ");
-       if (result)
-               g_free(result);
-}
-
-static void on_gdbus_event_receive5(
-               DBusGProxy *proxy,
-               int grp,
-               int type,
-               int req_id,
-               int status,
-               const char *data,
-               void *local_data)
-{
-       TelTapiEvent_t Event;
-       guchar *result = NULL;
-       size_t out_len = 0;
-
-       Event.EventClass = grp;
-       Event.EventType = type;
-       Event.RequestId = req_id;
-       Event.Status = status;
-       Event.pData = NULL;
-
-       EVENT_DUMP(Event);
-
-
-       TAPI_BASE64_DECODE(data, result, &out_len);
-       Event.pData = result;
-       if (result == NULL){
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "result =0x%p", result);
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "out_len =%d", out_len);
-               Event.pDataLen = 0;
-       }
-       else{
-               Event.pDataLen = out_len;
-       }
-
-       /* Contents of parameters is defined by every notification. */
-       UserData_t *user_data;
-       user_data = (UserData_t *) local_data;
-
-       user_data->cb(&Event, user_data->data);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG," Application Callback Invoked successfully ");
-       if (result)
-               g_free(result);
-}
-
-static GCallback gdbus_conn_signal0(DBusGProxy *robj, const char *member, void *data)
-{
-       dbus_g_proxy_add_signal(robj, member, G_TYPE_INVALID);
-       dbus_g_proxy_connect_signal(robj, member, G_CALLBACK(on_gdbus_event_receive0), data, NULL);
-       return G_CALLBACK(on_gdbus_event_receive0);
-}
-
-static GCallback gdbus_conn_signal2(DBusGProxy *robj, const char *member, void *data)
-{
-       dbus_g_proxy_add_signal(robj, member, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INVALID);
-       dbus_g_proxy_connect_signal(robj, member, G_CALLBACK(on_gdbus_event_receive2), data, NULL);
-       return G_CALLBACK(on_gdbus_event_receive2);
-}
-
-static GCallback gdbus_conn_signal4(DBusGProxy *robj, const char *member, void *data)
-{
-       dbus_g_proxy_add_signal(robj, member, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INVALID);
-       dbus_g_proxy_connect_signal(robj, member, G_CALLBACK(on_gdbus_event_receive4), data, NULL);
-       return G_CALLBACK(on_gdbus_event_receive4);
-}
-
-static GCallback gdbus_conn_signal5(DBusGProxy *robj, const char *member, void *data)
-{
-       dbus_g_proxy_add_signal(robj, member, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INVALID);
-       dbus_g_proxy_connect_signal(robj, member, G_CALLBACK(on_gdbus_event_receive5), data, NULL);
-       return G_CALLBACK(on_gdbus_event_receive5);
-}
-
-static void gdbus_del_signal(GDBusEvtItem_t *it)
-{
-       int i;
-       for (i = 0; i < TAPI_SIGNAL_MAX; i++) {
-               dbus_g_proxy_disconnect_signal(it->robj, _evt_sig_members[i], G_CALLBACK(it->cb[i]), it->data);
-       }
-       if (it->data) {
-               free(it->data);
-       }
-       g_free(it);
-}
-
-static GDBusEvtItem_t *gdbus_add_signal(const char *event_string, void *data)
-{
-       GDBusEvtItem_t *it = NULL;
-       DBusGProxy *robj;
-       int i;
-
-       robj = dbus_g_proxy_new_for_name(GDBusHandle, TAPI_SIGNAL_SENDER, TAPI_SIGNAL_OBJPATH, event_string);
-       if (!robj) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"failed to get proxy for iface: %s", event_string);
-               return it;
-       }
-
-       it = (GDBusEvtItem_t *) g_malloc0(sizeof(GDBusEvtItem_t));
-       if (!it) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"failed to allocate item memory");
-               return it;
-       }
-
-       it->id = EvtId;
-       it->robj = robj;
-       it->data = data;
-
-       if ((EvtList = g_slist_append(EvtList, it)) == NULL) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "failed to event info append");
-               g_free(it);
-               return NULL;
-       }
-
-       for (i = 0; i < TAPI_SIGNAL_MAX; i++)
-               it->cb[i] = GDBusConnSig[i](robj, _evt_sig_members[i], data);
-
-       return it;
-}
-
-static void _cookie_deinit(void)
-{
-       if (g_cookie_name)
-               free(g_cookie_name);
-
-       g_cookie_name = NULL;
-       g_cookie_size = 0;
-}
-
-EXPORT_API int tel_init(void)
-{
-       DBusGConnection *conn;
-       GError *err = NULL;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "TelTapiInit");
-
-       if (++_tapi_init_ref_count > 1) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "Already initialized. (ref_count=%d)", _tapi_init_ref_count);
-               return TAPI_API_SUCCESS;
-       }
-
-       CHK_EVENT_INIT_MODE(TAPI_EVTMODE_GLIB);
-       EvtMode = TAPI_EVTMODE_GLIB;
-
-       if (GDBusHandle)
-               return TAPI_API_SUCCESS;
-
-       g_type_init();
-
-       conn = dbus_g_bus_get(DBUS_BUS_SYSTEM, &err);
-       if (conn == NULL) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "dbus_bus_get failed: %s", (char *)err->message);
-               EvtMode = TAPI_EVTMODE_NONE;
-               return TAPI_API_OPERATION_FAILED;
-       }
-       GDBusHandle = conn;
-
-       EvtId = 0;
-
-       dbus_g_object_register_marshaller(g_cclosure_user_marshal_VOID__INT_INT_INT_INT_STRING, G_TYPE_NONE, G_TYPE_INT,
-                       G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INVALID);
-
-       dbus_g_object_register_marshaller(g_cclosure_user_marshal_VOID__INT_INT_INT_STRING, G_TYPE_NONE, G_TYPE_INT,
-                       G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INVALID);
-
-       dbus_g_object_register_marshaller(g_cclosure_user_marshal_VOID__INT_STRING, G_TYPE_NONE, G_TYPE_INT, G_TYPE_STRING,
-                       G_TYPE_INVALID);
-
-       /* Check TAPI READY vconf */
-       int ts_status = 0;
-       int ret_val;
-
-       ret_val = vconf_get_int(VCONFKEY_TELEPHONY_TAPI_STATE, &ts_status);
-       if (ret_val < 0) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "[%s] vconf key default set (value=%d)",
-                               VCONFKEY_TELEPHONY_TAPI_STATE,
-                               VCONFKEY_TELEPHONY_TAPI_STATE_NONE);
-               vconf_set_int(VCONFKEY_TELEPHONY_TAPI_STATE, VCONFKEY_TELEPHONY_TAPI_STATE_NONE);
-       }
-
-       return TAPI_API_SUCCESS;
-}
-
-EXPORT_API int tel_register_event(int EventType, unsigned int *SubscriptionId, TelAppCallback AppCallBack, void *data)
-{
-       char event_string[IF_NAME_MAX];
-       GDBusEvtItem_t *it = NULL;
-
-       CHK_EVENT_MODE(TAPI_EVTMODE_GLIB);
-
-       /*      CHECK THE INPUT */
-       TAPI_RET_ERR_NUM_IF_FAIL(AppCallBack, TAPI_API_INVALID_PTR);
-       TAPI_RET_ERR_NUM_IF_FAIL(SubscriptionId, TAPI_API_INVALID_PTR);
-       /*
-        if ((EventType < TAPI_EVENT_CALL_SETUP_CNF) || (EventType > TAPI_EVENT_TYPE_MAX)) {
-        TAPI_LIB_DEBUG(LEVEL_DEBUG,"Unknown EventClass");
-        return TAPI_EVENT_CLASS_UNKNOWN;
-        }
-        */
-       UserData_t *user_data;
-       user_data = (UserData_t *) malloc(sizeof(UserData_t));
-       user_data->data = data;
-       user_data->cb = AppCallBack;
-
-       TAPI_GET_EVENT_NAME(EventType, event_string);
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"PROXY COMMON EVENT STRING=%s", event_string);
-       it = gdbus_add_signal(event_string, (void *) user_data);
-       if (!it) {
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       *SubscriptionId = EvtId++;
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Noti Subscribe Successful with id %d", *SubscriptionId);
-
-       return TAPI_API_SUCCESS;
-}
-
-EXPORT_API int tel_deregister_event(unsigned int SubscriptionId)
-{
-       GSList *iter;
-       GDBusEvtItem_t *it;
-       CHK_EVENT_MODE(TAPI_EVTMODE_GLIB);
-       for (iter = EvtList; iter != NULL; iter = iter->next) {
-               it = (GDBusEvtItem_t *) iter->data;
-               if (it->id == SubscriptionId) {
-                       gdbus_del_signal(it);
-                       EvtList = g_slist_delete_link(EvtList, iter);
-                       return TAPI_API_SUCCESS;
-               }
-       }
-
-       return TAPI_API_INVALID_INPUT;
-}
-
-static void _tel_remove_signal(gpointer data, gpointer user_data)
-{
-       GDBusEvtItem_t *it;
-       it = (GDBusEvtItem_t *) data;
-       if (it) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "TEL_REGI deletenode it=0x%x id=%d",it, it->id);
-               gdbus_del_signal(it);
-       }
-}
-
-EXPORT_API int tel_deinit(void)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "TelTapiDeinit");
-
-       if (--_tapi_init_ref_count > 0) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "no work. (ref_count=%d)", _tapi_init_ref_count);
-               return TAPI_API_SUCCESS;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "remove all signal");
-
-       g_slist_foreach(EvtList, _tel_remove_signal, NULL);
-       EvtList = NULL;
-       EvtId = 0;
-       EvtMode = TAPI_EVTMODE_NONE;
-       g_slist_free(EvtList);
-
-       _cookie_deinit();
-
-       return TAPI_API_SUCCESS;
-}
-
-EXPORT_API int tel_register_app_name(char *name)
-{
-       if (name == NULL) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "The 1st parameter, the connection name, is NULL\n");
-               return TAPI_API_INVALID_PTR;
-       }
-
-       DBusConnection *dbus_connection = NULL;
-       DBusError err;
-       dbus_error_init(&err);
-
-       if (GDBusHandle) {
-               dbus_connection = dbus_g_connection_get_connection(GDBusHandle);
-               if (dbus_bus_request_name(dbus_connection, name, DBUS_NAME_FLAG_DO_NOT_QUEUE, &err) < 0) {
-                       TAPI_LIB_DEBUG(LEVEL_ERR, "Fail to request dbus connection name\n");
-                       return TAPI_API_INVALID_OPERATION;
-               }
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No valid dbus connection\n");
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Request connection name = %s", name );
-       snprintf(conn_name.name, 255, "%s", name);
-       conn_name.length_of_name = strlen(conn_name.name);
-
-       return TAPI_API_SUCCESS;
-}
-
-EXPORT_API int tel_get_app_name(tapi_dbus_connection_name *app_name)
-{
-       if (app_name == NULL) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "The 1st parameter, the application name, is NULL\n");
-               return TAPI_API_INVALID_PTR;
-       }
-
-       snprintf(app_name->name, TAPI_DBUS_CONNECTION_NAME_LEN_MAX, "%s", conn_name.name);
-       app_name->length_of_name = strlen(app_name->name);
-
-       return TAPI_API_SUCCESS;
-}
-
-/*
- This Api interacts with Telephony servers STATUS library to get the ready status
- According to Lee this new code will be opened only in rel 1.0. Ramu is the author.
- */
-EXPORT_API int tel_check_service_ready(int *bStatus)
-{
-       int ts_status = 0;
-       int ret_val = 0;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(bStatus, TAPI_API_INVALID_PTR);
-
-       ret_val = vconf_get_int(VCONFKEY_TELEPHONY_TAPI_STATE, (int*) &ts_status);
-       if (ret_val == 0) {
-               ret_val = 1;
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "[FAIL] GET VCONFKEY_TELEPHONY_TAPI_STATE");
-               ret_val = -1;
-       }
-
-       /*      for testing     */
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "NEW: Status Check value is %d", ts_status);
-
-       if (ret_val != 1) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "GETTING STATUS_TAPI_STATE Failed............\n");
-               return TAPI_API_SERVER_LAYER_FAILURE;
-       }
-       else {
-               *bStatus = ts_status;
-               return TAPI_API_SUCCESS;
-       }
-       return api_err;
-}
-
-EXPORT_API int tel_request_tunnel(const TelTunnelInfo_t *pTunnelInfo, int *pRequestId)
-{
-       int ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-       TAPI_RET_ERR_NUM_IF_FAIL(pTunnelInfo, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pTunnelInfo, sizeof(TelTunnelInfo_t));
-       g_array_append_vals(in_param2, (unsigned char *) (pTunnelInfo->pTunnelData), pTunnelInfo->TunnelDataLen);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_EVENT_CLASS_UTIL, TAPI_CS_UTIL_TUNNEL_REQ, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               returnStatus = g_array_index(out_param1, int , 0);
-               *pRequestId = g_array_index(out_param2, int , 0);
-       }
-       else {
-               *pRequestId = -1;
-               returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Tunnel Request: Return Status : %d", returnStatus);
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "RequestId: %d", *pRequestId);
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return returnStatus;
-}
-
-/*     EOF     */
-
diff --git a/src/tapi_proxy_data.c b/src/tapi_proxy_data.c
deleted file mode 100644 (file)
index abc9d83..0000000
+++ /dev/null
@@ -1,569 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 "tel_cs_conn.h"
-#include "TapiUtility.h"
-#include "ITapiData.h"
-#include "TelUtility.h"
-#include "tapi_proxy_internal.h"
-
-EXPORT_API int tel_get_data_mobile_ipnai (TelDataNAIIndex_t *pMipNaiIdx, unsigned short *pParamMask, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL((pMipNaiIdx && pParamMask && pRequestID ), TAPI_API_INVALID_PTR);
-
-       if(*pMipNaiIdx < TAPI_DATA_FACTORY_NAI || *pMipNaiIdx > TAPI_DATA_CUSTOM_NAI)
-               return TAPI_API_INVALID_INPUT;
-
-       if(*pParamMask == 0)
-               return TAPI_API_INVALID_INPUT;
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                                                  out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, pMipNaiIdx, sizeof(TelDataNAIIndex_t));
-       g_array_append_vals(in_param2, pParamMask, sizeof(unsigned short));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_MOBILE_IP_NAI_GET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_set_data_mobile_ipnai(TelDataMipNaiParam_t *pMipNaiParam, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL((pMipNaiParam && pRequestID ), TAPI_API_INVALID_PTR);
-
-       if(pMipNaiParam->naiIndex < TAPI_DATA_FACTORY_NAI || pMipNaiParam->naiIndex  > TAPI_DATA_CUSTOM_NAI)
-               return TAPI_API_INVALID_INPUT;
-
-       if(pMipNaiParam->paramMask == 0)
-               return TAPI_API_INVALID_INPUT;
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pMipNaiParam, sizeof(TelDataMipNaiParam_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_MOBILE_IP_NAI_SET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_data_current_nai_index (int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_CURRENT_NAI_INDEX_GET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_data_te2_status (int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_TE2_STATUS_GET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_data_roam_guard (int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_ROAM_GUARD_GET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_set_data_roam_guard (TelDataRoamGuardMode_t *pRoamGuard, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL((pRoamGuard && pRequestID), TAPI_API_INVALID_PTR);
-
-       if(*pRoamGuard < TAPI_DATA_ROAM_GUARD_DEFAULT || *pRoamGuard > TAPI_DATA_ROAM_ROAM_GUARD_ON)
-               return TAPI_API_INVALID_INPUT;
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pRoamGuard, sizeof(TelDataRoamGuardMode_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_ROAM_GUARD_SET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                             out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_data_nai(int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_MODEM_NAI_GET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_set_data_nai(TelDataModemNAIMode_t *pModemNai, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL((pModemNai && pRequestID), TAPI_API_INVALID_PTR);
-
-       if(*pModemNai < TAPI_DATA_MODEM_NAI_OFF || *pModemNai > TAPI_DATA_MODEM_NAI_ON)
-               return TAPI_API_INVALID_INPUT;
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pModemNai, sizeof(TelDataModemNAIMode_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_MODEM_NAI_SET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_data_evdo_rev_config(int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret=tapi_send_request_internal( TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_EVDO_REV_CONFIG_GET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_set_data_evdo_rev_config (TelDataRevConfig_t *pRevConfig, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL((pRevConfig &&pRequestID), TAPI_API_INVALID_PTR);
-
-       if(*pRevConfig < TAPI_DATA_REVA || *pRevConfig > TAPI_DATA_REV0)
-               return TAPI_API_INVALID_INPUT;
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pRevConfig, sizeof(TelDataRevConfig_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_EVDO_REV_CONFIG_SET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_restore_data_nai(int *pRequestID)
-{
-       TS_BOOL ret;
-       int     ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret=tapi_send_request_internal( TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_RESTORE_NAI,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_data_ddtm_config (int *pRequestID)
-{
-       TS_BOOL ret;
-       int     ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_DDTM_CONFIGURATION_GET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_set_data_ddtm_config(TelDataDDTMStatus_t *pDDTMStatus, int *pRequestID)
-{
-       TS_BOOL ret;
-       int     ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL((pDDTMStatus && pRequestID), TAPI_API_INVALID_PTR);
-
-       if(*pDDTMStatus < TAPI_DATA_DDTM_MODE_OFF || *pDDTMStatus > TAPI_DATA_DDTM_MODE_ON)
-               return TAPI_API_NOT_SUPPORTED;
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pDDTMStatus, sizeof(TelDataDDTMStatus_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_DATA,TAPI_CS_DATA_DDTM_CONFIGURATION_SET,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
diff --git a/src/tapi_proxy_gprs.c b/src/tapi_proxy_gprs.c
deleted file mode 100644 (file)
index f494128..0000000
+++ /dev/null
@@ -1,398 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 "tel_cs_conn.h"
-#include "ITapiPS.h"
-#include "TapiUtility.h"
-#include "TelUtility.h"
-#include "tapi_proxy.h"
-
-extern tapi_dbus_connection_name conn_name;
-
-/**
- * Sends a request to Telephony Server to set pdp context define info, pdp activation
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]          tapi_ps_net_start_req_t
- * @param[out] None
- * @Interface          Asynchronous.
- * @remark
- * @Refer
- */
-EXPORT_API int tel_activate_gprs_pdp(const tapi_ps_net_start_req_t *net_start_req_info, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_RETURN_VAL_IF_FAIL((pRequestID&&net_start_req_info) , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /* cont_id: 1,2,..MAX_PDP_CONTEXTS_ALLOWED */
-       if (net_start_req_info->cont_id <= 0 || net_start_req_info->cont_id > MAX_PDP_CONTEXTS_ALLOWED) {
-               ret_val = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR, " Invalid GPRS context id");
-               return ret_val;
-       }
-
-       if (net_start_req_info->pdp_info.auth_type >= TAPI_PDP_AUTH_NONE
-                       && net_start_req_info->pdp_info.auth_type < TAPI_PDP_AUTH_MAX) {
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1, out_param2,out_param3,out_param4);
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Connection Name=%s",conn_name.name);
-
-               g_array_append_vals(in_param1, net_start_req_info, sizeof(tapi_ps_net_start_req_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_GPRS, TAPI_CS_GPRS_STARTNETWORK, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       ret_val = g_array_index(out_param1, int, 0);
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %d ",ret_val);
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               ret_val = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Invalid PTR  =%d ",ret_val);
-       }
-
-       return ret_val;
-}
-
-/**
- * Sends  to Telephony Server to deactivate the pdp service
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]  tapi_ps_net_stop_req_t
- * @param[out] None
- * @Interface  Asynchronous.
- * @remark
- * @Refer              tel_activate_gprs_pdp
- *
- */
-EXPORT_API int tel_deactivate_gprs_pdp(const tapi_ps_net_stop_req_t *net_stop_req_info, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_RETURN_VAL_IF_FAIL((pRequestID&&net_stop_req_info) , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if (net_stop_req_info->pdp_info.auth_type >= TAPI_PDP_AUTH_NONE
-                       && net_stop_req_info->pdp_info.auth_type < TAPI_PDP_AUTH_MAX) {
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, net_stop_req_info, sizeof(tapi_ps_net_stop_req_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_GPRS, TAPI_CS_GPRS_PDP_DEACTIVATION_SET, in_param1, in_param2,
-                               in_param3, in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       ret_val = g_array_index(out_param1, int, 0);
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Proxy error =%d ",ret_val);
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               ret_val = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Invalid PTR  =%d ",ret_val);
-       }
-
-       return ret_val;
-}
-
-/**
- * Sends  to Telephony Server to know whether Signal line is on or net
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]  tapi_ps_btdun_pincontrol
- * @param[out] None
- * @Interface  Asynchronous.
- * @remark             This means that the MS is ready to start Data Service using DPRAM.
- * @Refer
- *
- */
-EXPORT_API int tel_control_gprs_btdun_pin(tapi_ps_btdun_pincontrol pincontrol, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestID, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       switch (pincontrol.signal) {
-               case GPRS_SIGNAL_DCD:
-               case GPRS_DATA_SIGNAL_DTR:
-               case GPRS_DATA_SIGNAL_DSR:
-               case GPRS_DATA_SIGNAL_RTS:
-               case GPRS_DATA_SIGNAL_CTS:
-               case GPRS_DATA_SIGNAL_RI:
-                       break;
-
-               default:
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "invalid signal(%d:0x%x)", pincontrol.signal, pincontrol.signal);
-                       ret_val = TAPI_API_INVALID_INPUT;
-       }
-
-       switch (pincontrol.status) {
-               case GPRS_SIGNAL_STATUS_OFF:
-               case GPRS_SIGNAL_STATUS_ON:
-                       break;
-
-               default:
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "invalid status(%d:0x%x)", pincontrol.status, pincontrol.status);
-                       ret_val = TAPI_API_INVALID_INPUT;
-       }
-
-       if (ret_val != TAPI_API_SUCCESS) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "failed. ret_val = %d", ret_val);
-               return ret_val;
-       }
-
-       if ((pincontrol.signal >= GPRS_SIGNAL_DCD && pincontrol.signal <= GPRS_DATA_SIGNAL_RI)
-                       && (pincontrol.status >= GPRS_SIGNAL_STATUS_OFF && pincontrol.status <= GPRS_SIGNAL_STATUS_ON)) {
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, &pincontrol, sizeof(tapi_ps_btdun_pincontrol));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_GPRS, TAPI_CS_GPRS_BTDUN_PINCTRL_GET, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       ret_val = g_array_index(out_param1, int, 0);
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Proxy error =%d ",ret_val);
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-
-       return ret_val;
-}
-
-/**
- * This function is used to set white or black port list to the modem
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]
- * @remark
- *
- */
-EXPORT_API int tel_set_gprs_port_list(tapi_gprs_pdp_port_list_setting_info_t *info, int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_RETURN_VAL_IF_FAIL((pRequestID&&info) , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if (info->tcp_list.len == 0 && info->udp_list.len == 0) {
-               return TAPI_API_INVALID_DATA_LEN;
-       }
-
-       if (((info->tcp_list.type >= TAPI_GPRS_PORT_LIST_NOT_USE) && (info->tcp_list.type <= TAPI_GPRS_PORT_LIST_BLACK))
-                       && ((info->udp_list.type >= TAPI_GPRS_PORT_LIST_NOT_USE) && (info->udp_list.type <= TAPI_GPRS_PORT_LIST_BLACK))) {
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, info, sizeof(tapi_gprs_pdp_port_list_setting_info_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_GPRS, TAPI_CS_GPRS_PORT_LIST_SET, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       ret_val = g_array_index(out_param1, int, 0);
-                       *pRequestID = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Proxy error =%d ",ret_val);
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               ret_val = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Invalid PTR  =%d ",ret_val);
-       }
-
-       return ret_val;
-}
-
-/**
- * This function is used to get white or black port list from modem
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]
- * @remark
- *
- */
-EXPORT_API int tel_get_gprs_port_list(int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestID , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_GPRS, TAPI_CS_GPRS_PORT_LIST_GET, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Proxy error =%d ",ret_val);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-}
-
-/**
- * This function is used to send modem data channels to dormant state for power saving when there is no data flowing for certain time
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]
- * @remark
- *
- */
-EXPORT_API int tel_set_gprs_dormant(int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestID , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_GPRS, TAPI_CS_GPRS_DATA_DORMANT, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Proxy error =%d ",ret_val);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-}
diff --git a/src/tapi_proxy_gps.c b/src/tapi_proxy_gps.c
deleted file mode 100644 (file)
index 1d2c5b5..0000000
+++ /dev/null
@@ -1,632 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 "tel_cs_conn.h"
-#include "TapiUtility.h"
-#include "ITapiGps.h"
-#include "TelDefines.h"
-#include "tapi_proxy_internal.h"
-
-EXPORT_API int tel_init_gps(void)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_INIT,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_deinit_gps(void)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_DEINIT,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_gps_prefix_info(tapi_gps_fix_request_msg_t *type)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       if (!type)
-       {
-               return TAPI_API_INVALID_PTR;
-       }
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter gps_session_params as in_param1*/
-       g_array_append_vals(in_param1, type, sizeof(tapi_gps_fix_request_msg_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_FIX_REQUEST,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-    return api_err;
-}
-
-EXPORT_API int tel_stop_gps_session(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_STOP_SESSION,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_gps_parameters(void)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_GET_PARAMETERS,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_gps_parameters(tapi_gps_param_t *gps_params)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       if (!gps_params) {
-               return TAPI_API_INVALID_PTR;
-       }
-
-       /*
-       if(!tapi_gps_check_param(gps_params))
-               return TAPI_API_INVALID_INPUT;
-       */
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter gps_session_params as in_param1*/
-       g_array_append_vals(in_param1, gps_params, sizeof(tapi_gps_param_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_SET_PARAMETERS,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_confirm_gps_data_connection(tapi_gps_data_conn_cnf_t *pdp_cnf)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (!pdp_cnf)
-       {
-               return TAPI_API_INVALID_PTR;
-       }
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter time_info as in_param1*/
-       g_array_append_vals(in_param1, pdp_cnf, sizeof(tapi_gps_data_conn_cnf_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_AGPS_PDP_CONN_CNF,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_confirm_gps_dns_lookup(tapi_gps_dns_lookup_cnf_t *dns_cof)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (!dns_cof) {
-               return TAPI_API_INVALID_PTR;
-       }
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter time_info as in_param1*/
-       g_array_append_vals(in_param1, dns_cof, sizeof(tapi_gps_dns_lookup_cnf_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_AGPS_DNS_LOOKUP_CNF,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-       return api_err;
-}
-
-EXPORT_API int tel_confirm_gps_verification(tapi_gps_verification_cnf_t result)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       if (result == TAPI_GPS_VER_CNF_NO||result == TAPI_GPS_VER_CNF_YES||result == TAPI_GPS_VER_CNF_NORESPONSE) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                          out_param1,out_param2,out_param3,out_param4);
-
-               /* Passing parameter gps_session_params as in_param1*/
-               g_array_append_vals(in_param1, &result, sizeof(tapi_gps_verification_cnf_t));
-
-               ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_SEND_VER_CNF,
-                                                        in_param1,in_param2,in_param3,in_param4,
-                                                        &out_param1,&out_param2,&out_param3,&out_param4);
-
-               if (ret) {
-                       api_err = g_array_index(out_param1, int, 0);
-               }
-               else {
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                     out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               api_err = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"##### Received Invalid Input ####");
-       }
-
-       return api_err;
-}
-
-EXPORT_API int tel_init_gps_xtra(void)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_XTRA_INIT,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_deinit_gps_xtra(void)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_XTRA_DEINIT,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_enable_gps_xtra(void)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_XTRA_ENABLE,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_disable_gps_xtra(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_XTRA_DISABLE,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_gps_xtra_time(tapi_gps_xtra_time_info_t *time_info)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       if (!time_info) {
-               return TAPI_API_INVALID_PTR;
-       }
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter time_info as in_param1*/
-       g_array_append_vals(in_param1, time_info, sizeof(tapi_gps_xtra_time_info_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_XTRA_SET_TIMEINFO,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_gps_xtra_data(tapi_gps_xtra_data_info_t *data_info)
-{
-       TS_BOOL ret = FALSE;
-       int             api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       if (!data_info)
-       {
-               return TAPI_API_INVALID_PTR;
-       }
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter time_info as in_param1*/
-       g_array_append_vals(in_param1, data_info, sizeof(tapi_gps_xtra_data_info_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_XTRA_SET_DATA,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_confirm_gps_measure_pos(tapi_gps_measure_position_confirm_t *data)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       if (!data) {
-               return TAPI_API_INVALID_PTR;
-       }
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter time_info as in_param1*/
-       g_array_append_vals(in_param1, data, sizeof(tapi_gps_measure_position_confirm_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_MEASURE_POS_CNF,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_gps_frequency_aiding(unsigned char state)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       if (state != 1 && state != 0) {
-               return TAPI_API_INVALID_PTR;
-       }
-
-       /*      Check if D-Bus service is available. If Failed then return FALSE        */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter time_info as in_param1*/
-       g_array_append_vals(in_param1, &state, sizeof(unsigned char));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_GPS,TAPI_CS_GPS_SET_FREQ_AIDING,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
diff --git a/src/tapi_proxy_misc.c b/src/tapi_proxy_misc.c
deleted file mode 100644 (file)
index 5a42a84..0000000
+++ /dev/null
@@ -1,392 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <vconf.h>
-
-#include <TapiUtility.h>
-#include <TelErr.h>
-#include <ITapiMisc.h>
-
-#include "tel_cs_conn.h"
-#include "tapi_proxy_internal.h"
-
-
-static int _tel_check_tapi_state()
-{
-       int vconf_ret = 0;
-       int tapi_state = 0;
-
-       vconf_ret = vconf_get_int(VCONFKEY_TELEPHONY_TAPI_STATE, (int *) &tapi_state);
-
-       if (vconf_ret != 0 || tapi_state != 1) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "FAIL TO GET VCONFKEY_TELEPHONY_TAPI_STATE or SERVICE NOT READY");
-               return TAPI_API_SERVICE_NOT_READY;
-       }
-
-       return 0;
-}
-
-TS_BOOL __tel_check_misc_valid(tapi_misc_time_zone_info_type *zone_info)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if (0x00 > zone_info->time_zone_valid || zone_info->time_zone_valid > 0x04)
-               return FALSE;
-
-       if (1 > zone_info->month || zone_info->month > 12)
-               return FALSE;
-       if (1 > zone_info->day || zone_info->day > 31)
-               return FALSE;
-       if (0 > (int) zone_info->hour || (int) zone_info->hour > 23)
-               return FALSE;
-       if ((int) zone_info->minute > 59)
-               return FALSE;
-       if ((int) zone_info->second > 59)
-               return FALSE;
-
-       //no need check  (TS_UINT8)zone_info->time_zone
-
-       if (0x00 > zone_info->daylight_adjust || zone_info->daylight_adjust > 0x02)
-               return FALSE;
-       if (0x00 > zone_info->day_of_week || zone_info->day_of_week > 0x06)
-               return FALSE;
-
-       return TRUE;
-}
-
-EXPORT_API int tel_get_misc_timezone_mode(int* bTimezone_valid)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_MISC, TAPI_CS_MISC_TIMEZONE_GETMODE,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               *bTimezone_valid = g_array_index(out_param3,int ,0);
-               api_err = TAPI_API_SUCCESS;
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_misc_timezone_info(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_MISC, TAPI_CS_MISC_TIMEZONE_GETINFO,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = TAPI_API_SUCCESS;
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_misc_timezone_info(tapi_misc_time_zone_info_type *timezone_info)
-{
-       TS_BOOL bValid = FALSE;
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(timezone_info, TAPI_API_MISC_INPUTPARM_ERROR);
-
-       //check validity of variable.
-       bValid = __tel_check_misc_valid(timezone_info);
-       if (bValid == FALSE) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "TAPI_API_MISC_VALIDITY_ERROR");
-               return TAPI_API_MISC_VALIDITY_ERROR;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, timezone_info, sizeof(tapi_misc_time_zone_info_type));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_MISC, TAPI_CS_MISC_TIMEZONE_SETINFO,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = TAPI_API_SUCCESS;
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_confirm_misc_timezone_Info(tapi_misc_time_zone_info_type *timezone_info)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(timezone_info, TAPI_API_MISC_INPUTPARM_ERROR);
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, timezone_info, sizeof(tapi_misc_time_zone_info_type));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_MISC, TAPI_CS_MISC_TIMEZONE_CONFIRMINFO,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = TAPI_API_SUCCESS;
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_misc_me_version(TelMiscVersionInformation* ver_info)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_MISC, TAPI_CS_MISC_ME_VERSION_GET,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-
-               if (api_err == TAPI_API_SUCCESS) {
-                       *ver_info = g_array_index(out_param2, TelMiscVersionInformation, 0);
-
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "ver_mask[0x%02x]", ver_info->ver_mask);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "szHwVersion[%s]", ver_info->szHwVersion);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "szSwVersion[%s]", ver_info->szSwVersion);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "szRfCalDate[%s]", ver_info->szRfCalDate);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "szProductCode[%s]", ver_info->szProductCode);
-               }
-               else {
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "api_err[%d]", api_err);
-               }
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "tapi_send_request_internal fail");
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_misc_me_sn(TelMiscSNIndexType_t sn_index, TelMiscSNInformation* sn_info)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &sn_index, sizeof(TelMiscSNIndexType_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_MISC, TAPI_CS_MISC_SERIAL_NUMBER_GET,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-
-               if (api_err == TAPI_API_SUCCESS) {
-                       *sn_info = g_array_index(out_param2, TelMiscSNInformation, 0);
-
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "sn_index[%d]", sn_info->sn_index);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "sn_len[%d]", sn_info->sn_len);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "szNumber[%s]", sn_info->szNumber);
-               }
-               else {
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "api_err[%d]", api_err);
-               }
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_misc_nam_info(unsigned short nam_info_mask, TelMiscNamIndex_t nam_index)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &nam_info_mask, sizeof(unsigned short));
-       g_array_append_vals(in_param2, &nam_index, sizeof(TelMiscNamIndex_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_MISC, TAPI_CS_MISC_NAM_INFO_GET,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = TAPI_API_SUCCESS;
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_misc_nam_info(TelMiscNamInfo_t *nam_info)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, nam_info, sizeof(TelMiscNamInfo_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_MISC, TAPI_CS_MISC_NAM_INFO_SET,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = TAPI_API_SUCCESS;
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_misc_emergency_mode(int mode) {
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance with request mode[%d]", mode);
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (mode != 0 && mode != 1)
-               return TAPI_API_INVALID_INPUT;
-
-       if (vconf_set_int("db/telephony/emergency", mode) != 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "[FAIL]UPDATE db/telephony/emergency");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       return TAPI_API_SUCCESS;
-}
-
-EXPORT_API int tel_get_misc_emergency_mode(int *mode) {
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (vconf_get_int("db/telephony/emergency", mode) != 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "[FAIL]GET db/telephony/emergency");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "emergency mode[%d]", *mode);
-       return TAPI_API_SUCCESS;
-}
diff --git a/src/tapi_proxy_nettext.c b/src/tapi_proxy_nettext.c
deleted file mode 100644 (file)
index 2b8730f..0000000
+++ /dev/null
@@ -1,1239 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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.
- */
-
-
-/**
- * @ingroup            TAPI
- * @defgroup   NetText
- * @{
- *
- * NetText APIs allow a client to accomplish the following features: @n
- * - Send,Recieve ,Save,Delete,Read short messages  @n
- * - Set and Get information like Service Center Address, Cell Broadcast configuration,Preferred Bearer, SMS parameters @n
- * - Retrieve information like Current Memory selected, NetTextCount related to the messages @n
- * - Set delivery report @n
- */
-
-#include "tel_cs_conn.h"
-#include "tapi_proxy.h"
-#include "TelNetText.h"
-#include "TapiUtility.h"
-
-#include <vconf.h>
-
-extern tapi_dbus_connection_name conn_name;
-
-/**
- *
- * This function enables the applications to send nettext to the network.
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]         pDataPackage - SMS-SUBMIT TPDU or SMS-COMMAND, and its length have to be passed in this structure.
- *                             tapi_sms_more_to_send_t parameter denotes whether the sms is short or concatenated.
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark
- * @Refer              tapi_nettext_datapackage, tapi_sms_more_to_send_t.
- */
-EXPORT_API int tel_send_sms(const TelSmsDatapackageInfo_t *pDataPackage, int bMoreMsgToSend, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-       int emergency_mode = 0;
-
-       if (vconf_get_int("db/telephony/emergency", &emergency_mode) != 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "[FAIL]GET db/telephony/emergency");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       if (emergency_mode) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "emergency mode on");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pDataPackage ,TAPI_API_INVALID_PTR);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pDataPackage, sizeof(TelSmsDatapackageInfo_t));
-       g_array_append_vals(in_param2, &bMoreMsgToSend, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SEND, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to set the deliver report for an incoming message(MT).
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]         pDataPackage - SMS-DELIVER-REPORT, and its length have to be passed in this structure.
- * @param[in]          RPCause - the result cause
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Synchronous.
- * @remark
- * @Refer             tapi_nettext_deliver_report
- */
-EXPORT_API int tel_send_sms_deliver_report(
-               const TelSmsDatapackageInfo_t *pDataPackage,
-               TelSmsResponse_t RPCause,
-               int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pDataPackage , TAPI_API_INVALID_PTR);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pDataPackage, sizeof(TelSmsDatapackageInfo_t));
-       g_array_append_vals(in_param2, &RPCause, sizeof(TelSmsResponse_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SETDELIVERREPORT, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to read nettext from the preferred storage.
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          index - the message to be read
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark             tapi_nettext_selmem_set is to be called always to select the
- *                             preferred memory before calling this api.
- * @Refer
- */
-EXPORT_API int tel_read_sms_in_sim(int Index, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if (Index < 0) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "Invalid Input -Read Nettext %d",Index);
-
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &Index, sizeof(unsigned int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_READ, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to write/save nettext to the preferred storage.
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          index - the message to be saved, msg_status will denote the status
- *                             of the message whether Sent, Unsent, Read, Unread, Unknown.
- *                             pDataPackage- the SMS-SUBMIT PDU or SMS-DELIVER,SMS-STATUSREPORT
- *                             being passed to be saved in memory.
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @Refer              tapi_nettext_datapackage, tapi_nettext_status_type.
- */
-EXPORT_API int tel_write_sms_in_sim(const TelSmsData_t *pWriteData, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pWriteData ,TAPI_API_INVALID_PTR);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((pWriteData->MsgStatus < TAPI_NETTEXT_STATUS_READ) || (pWriteData->MsgStatus > TAPI_NETTEXT_STATUS_RESERVED)) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "Invalid Input -Write Nettext %d",pWriteData->MsgStatus);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pWriteData, sizeof(TelSmsData_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_WRITE, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to delete nettext to the preferred storage.
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          index - the message to be deleted. if index is -1, all sms in the sim are deleted.
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark             tapi_nettext_selmem_set has to be called always before calling this API
- * @Refer
- */
-EXPORT_API int tel_delete_sms_in_sim(int Index, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if ((Index < 0) || (Index > TAPI_NETTEXT_MAX_INDEX)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Index Input");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &Index, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_DELETE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to get the count of the messages stored in the memory
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]  None
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *              Its value can be any value from 0 to 255 if the API is returned successfully
- *                 -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface  Asynchronous
- * @remark             The requested memory details come in response API
- * @Refer          None
- */
-EXPORT_API int tel_get_sms_count(int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_GETCOUNT, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-
-}
-
-/**
- *
- * This function enables the application to set the status of a message
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          index - the message to be changed
- *                             msgStatus -SMS message status
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark
- * @Refer             tapi_nettext_memory_type,tapi_nettext_status_type
- */
-EXPORT_API int tel_set_sms_message_status(int Index, TelSmsMsgStatus_t msgStatus, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((Index < 0) || (Index > TAPI_NETTEXT_MAX_INDEX) || (msgStatus < TAPI_NETTEXT_STATUS_READ) || (msgStatus
-                       > TAPI_NETTEXT_STATUS_RESERVED)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input -MsgStatus Set Nettext");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &Index, sizeof(int));
-       g_array_append_vals(in_param2, &msgStatus, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SETMSGSTATUS, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to set the phone memory status whether full or available
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          memory_status whether full or available
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark
- * @Refer             tapi_nettext_memstatus_type
- */
-EXPORT_API int tel_set_sms_memory_status(int memoryStatus, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((memoryStatus < TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE) || (memoryStatus
-                       > TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input -MemoryStatus Nettext");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &memoryStatus, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SETMEMSTATUS, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to set the configuration for cell broadcast messages
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          tapi_nettext_cb_config the configuration details to be set
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark
- * @Refer             tapi_nettext_cb_config
- */
-EXPORT_API int tel_set_sms_cb_config(const TelSmsCbConfig_t *pCBConfig, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pCBConfig , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, " CBEnabled(%d)",pCBConfig->bCBEnabled);
-
-       if ((pCBConfig->SelectedId >= 3) || (pCBConfig->MsgIdCount < 0)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input -SelectedId(%d)",pCBConfig->SelectedId);
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input -MsgIdCount(%d)",pCBConfig->MsgIdCount);
-
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pCBConfig, sizeof(TelSmsCbConfig_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SETCBCONFIG, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to set the configuration for cell broadcast messages
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          None
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark
- * @Refer             None
- */
-EXPORT_API int tel_get_sms_cb_config(int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_GETCBCONFIG, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to set the service center address in the SIM storage
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          pSCA - the service center address that is to be set in the SIM storage
- *                                         refer to 3GPP TS 23.040:9.1.2.5 Address fields
- *                             index - the index that is to be set in the SIM storage
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          ASynchronous.
- * @remark
- * @Refer             tapi_nettext_sms_addr_info
- */
-EXPORT_API int tel_set_sms_sca(const TelSmsAddressInfo_t *pSCA, int Index, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pSCA , TAPI_API_INVALID_PTR);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((Index < 0) || (Index > TAPI_NETTEXT_MAX_INDEX)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Index Input");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pSCA, sizeof(TelSmsAddressInfo_t));
-       g_array_append_vals(in_param2, &Index, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SETSCA, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to get the service center address from the SIM storage
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          pSCA - the service center address that is to be set in the SIM storage
- *                                         refer to 3GPP TS 23.040:9.1.2.5 Address fields
- *                             index - the index that is to be set in the SIM storage
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark
- * @Refer             tapi_nettext_sms_addr_info
- */
-EXPORT_API int tel_get_sms_sca(int Index, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((Index < 0) || (Index > TAPI_NETTEXT_MAX_INDEX)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input -SMS Param Get Nettext");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &Index, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_GETSCA, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to set the preferred bearer
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          service option ie the bearer type to be set
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark
- * @Refer             tapi_nettext_bearer_type
- */
-EXPORT_API int tel_set_sms_preferred_bearer(TelSmsBearerType_t BearerType, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((TAPI_NETTEXT_BEARER_PS_ONLY > BearerType) || (TAPI_NETTEXT_NO_PREFERRED_BEARER < BearerType)) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "Invalid Input -PrefBearer Set Nettext");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &BearerType, sizeof(TelSmsBearerType_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SETPREFBEARER, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function is used to get SMS preferred bearer on which SMS has to be transmitted. This is a synchronous function
- *
- * @return             TRUE in case of success and FALSE in case of error .
- * @param[in]        None
- *
- * @param[out] requestId-Unique identifier for a particular request
- *                          Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          Asynchronous.
- * @remark
- * @Refer
- */
-EXPORT_API int tel_get_sms_preferred_bearer(int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_GETPREFBEARER, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-
-}
-
-/**
- *
- * This function enables to application to get the sms parameter count from the EFsmsp file.
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          None
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          ASynchronous.
- * @remark             Requested details come in response API
- * @Refer
- */
-EXPORT_API int tel_get_sms_parameter_count(int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_GETPARAMCNT, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables to application to get the sms parameters
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          record index of the record in which the sms parameters are stored in the EFsmsp file
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          ASynchronous.
- * @remark             Requested details come in response API
- * @Refer
- */
-EXPORT_API int tel_get_sms_parameters(int index, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((index < 0) || (index > TAPI_NETTEXT_MAX_INDEX)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input -SMS Param Get Nettext");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &index, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_GETPARAMS, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables to application to get the sms parameters
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          tapi_smsp_set_param_t sms parameters to be set in the EFsmsp file
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- * @Interface          ASynchronous.
- * @remark
- * @Refer             tapi_smsp_set_param_t
- */
-EXPORT_API int tel_set_sms_parameters(const TelSmsParams_t *pSmsSetParameters, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_RETURN_VAL_IF_FAIL(pSmsSetParameters, TAPI_API_INVALID_PTR);
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pSmsSetParameters, sizeof(TelSmsParams_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SETPARAMS, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- *  This API is used to send an SMS message to the network. This API allows keeping
- *  the dedicated link at lower layers by passing information as more messages to send in parameters.
- * This will enable not to release if a dedicated connection is used for transmission.
- *
- * @return             TRUE in case of success and FALSE in case of error .
- * @param[in]          TelSmsMsgInfo_t - SMS_SUBMIT/ACK/CANCEL and its length have to be passed in this structure.
- *
- *                             unsigned int MoreMsgToSend will be set to TRUE when there are more than one message to be
- *                         send or Multiple segmented concatenated message to be send, otherwise FALSE. This flag
- *                         indicates OEM that more messages to send.
- *
- * @param[out] RequestId-Unique identifier for a particular request
- *                         Its value can be any value from 0 to 255 if the API is returned successfully
- *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
- *
- * @Interface          Asynchronous.
- * @remark
- * @Refer              TelSmsMsgInfo_t.
- */
-EXPORT_API int tel_send_sms_msg(const TelSmsMsgInfo_t *pSmsMsgInfo, unsigned int MoreMsgToSend, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-       int emergency_mode = 0;
-
-       if (vconf_get_int("db/telephony/emergency", &emergency_mode) != 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "[FAIL]GET db/telephony/emergency");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       if (emergency_mode) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "emergency mode on");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pSmsMsgInfo ,TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pSmsMsgInfo, sizeof(TelSmsMsgInfo_t));
-       g_array_append_vals(in_param2, &MoreMsgToSend, sizeof(unsigned int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SEND_EX, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables the applications to check the device status
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          None
- *
- *
- * @param[out] Device status whether Ready or Not Ready
- * @Interface          Synchronous.
- * @remark
- * @Refer
- */
-EXPORT_API int tel_check_sms_device_status(int *pDeviceStatus)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pDeviceStatus, TAPI_API_INVALID_PTR);
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_DEVICESTATUS,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pDeviceStatus = g_array_index(out_param3, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * This function enables to application to set that the device is ready to recieve messages from network.
- *
- * @return             Returns appropriate error code. Refer TapiResult_t .
- * @param[in]          None
- *
- * @param[out] None
- * @Interface          Synchronous.
- * @remark
- * @Refer
- */
-EXPORT_API int tel_set_sms_device_status(void)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_DEVICEREADY,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-//eof
diff --git a/src/tapi_proxy_network.c b/src/tapi_proxy_network.c
deleted file mode 100644 (file)
index 159ba6f..0000000
+++ /dev/null
@@ -1,1021 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 "tel_cs_conn.h"
-#include "tapi_proxy.h"
-#include "ITapiNetwork.h"
-#include "TelNetwork.h"
-#include "TapiUtility.h"
-
-#include <vconf.h>
-
-extern tapi_dbus_connection_name conn_name;
-
-static int _tel_check_tapi_state()
-{
-       int vconf_ret = 0;
-       int tapi_state = 0;
-
-       vconf_ret = vconf_get_int(VCONFKEY_TELEPHONY_TAPI_STATE, (int*) &tapi_state);
-
-       if (vconf_ret != 0 || tapi_state !=1) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT,"FAIL TO GET VCONFKEY_TELEPHONY_TAPI_STATE or SERVICE NOT READY");
-               return TAPI_API_SERVICE_NOT_READY;
-       }
-       return 0;
-}
-
-EXPORT_API int tel_select_network_automatic(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SELECT_AUTOMATIC, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_select_network_manual(unsigned int Plmn, int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &Plmn, sizeof(unsigned int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SELECT_MANUAL, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_search_network(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SEARCH, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_selection_mode(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETSELECTIONMODE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_network_preferred_plmn(
-               TelNetworkPrefferedPlmnOp_t Operation,
-               TelNetworkPrefferedPlmnInfo_t *pPreffPlmnInfo,
-               int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance : Operation[%d]", Operation);
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       TAPI_RET_ERR_NUM_IF_FAIL(pPreffPlmnInfo ,TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((Operation > TAPI_NETWORK_PREF_PLMN_DELETE) || (Operation < TAPI_NETWORK_PREF_PLMN_ADD)
-                       || (pPreffPlmnInfo->SystemType > TAPI_NETWORK_SYSTEM_HSDPA) || (pPreffPlmnInfo->SystemType
-                       <= TAPI_NETWORK_SYSTEM_NO_SRV)) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "INVALID INPUT [%d],[%d]", Operation, pPreffPlmnInfo->SystemType);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &Operation, sizeof(TelNetworkPrefferedPlmnOp_t));
-       g_array_append_vals(in_param2, pPreffPlmnInfo, sizeof(TelNetworkPrefferedPlmnInfo_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SETPREFPLMN, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_preferred_plmn(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETPREFPLMN, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_band(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETNETWORKBAND, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_network_band(TelNetworkBandPreferred_t BandMode, TelNetworkBand_t Band, int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance Band Mode[%d] Band[%d]",BandMode, Band);
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((BandMode > TAPI_NETWORK_BAND_MODE_ONLY) || (BandMode < TAPI_NETWORK_BAND_MODE_PREFERRED) || (Band
-                       > TAPI_NETWORK_BAND_TYPE_GSM_850_1900) || (Band < TAPI_NETWORK_BAND_TYPE_ANY)) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "INVALID INPUT [%d],[%d]", BandMode, Band);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &BandMode, sizeof(TelNetworkBandPreferred_t));
-       g_array_append_vals(in_param2, &Band, sizeof(TelNetworkBand_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SETNETWORKBAND, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_network_service_domain(TelNetworkServiceDomain_t ServiceDomain, int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance : Service Domain[%d]", ServiceDomain);
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((ServiceDomain > TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC) || (ServiceDomain
-                       < TAPI_NETWORK_SERVICE_DOMAIN_COMBINED)) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "INVALID INPUT [%d]", ServiceDomain);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &ServiceDomain, sizeof(TelNetworkServiceDomain_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SETSERVICEDOMAIN, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, TapiResult_t, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_service_domain(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETSERVICEDOMAIN, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_network_mode(TelNetworkMode_t NwMode, int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance : Network Mode[%d]", NwMode);
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((NwMode > TAPI_NETWORK_MODE_WLAN) || (NwMode <= TAPI_NETWORK_MODE_NONE)) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "INVALID INPUT [%d]", NwMode);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter network_mode as in_param1*/
-       g_array_append_vals(in_param1, &NwMode, sizeof(TelNetworkMode_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SETNETWORKMODE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_mode(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETNETWORKMODE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_network_roaming(TelNetworkRoamingMode_t *RoamingMode, int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(RoamingMode , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((RoamingMode->pref_net_type > TAPI_NETWORK_PREF_NET_TYPE_ROAM_ONLY) || (RoamingMode->pref_net_type
-                       < TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       /* Passing parameter service_domain as in_param1*/
-       g_array_append_vals(in_param1, RoamingMode, sizeof(TelNetworkRoamingMode_t));
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SETROAMINGMODE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_roaming(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETROAMINGMODE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_network_hybrid_in_cdma(TelNetworkCDMAHybridMode_t CDMAHybridMode, int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance : Hybrid Mode[%d]", CDMAHybridMode);
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((CDMAHybridMode > TAPI_NETWORK_CDMA_EVDO_ONLY) || (CDMAHybridMode < TAPI_NETWORK_CDMA_HYBRID)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &CDMAHybridMode, sizeof(TelNetworkCDMAHybridMode_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SETCDMAHYBRIDMODE, in_param1, in_param2,
-                       in_param3, in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_hybrid_in_cdma(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId , TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETCDMAHYBRIDMODE, in_param1, in_param2,
-                       in_param3, in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_network_acquisition_order(TelNetworkMode_t *pPrefNwOrder, int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-       tapi_dbus_connection_name app_name;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(pPrefNwOrder, TAPI_API_INVALID_PTR);
-
-       tel_get_app_name(&app_name);
-       if (app_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       /* Passing parameter network_order as in_param1*/
-       g_array_append_vals(in_param1, pPrefNwOrder, (sizeof(TelNetworkMode_t) * TAPI_NETWORK_ORDER_MAX));
-       g_array_append_vals(in_param4, &app_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SETNETWORKORDER,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_acquisition_order(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-       tapi_dbus_connection_name app_name;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       tel_get_app_name(&app_name);
-       if (app_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param4, &app_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETNETWORKORDER,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_set_network_power_on_attach(TelNetworkPowerOnAttach_t PowerOnAttach, int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-       tapi_dbus_connection_name app_name;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance Power On Attach[%d]", PowerOnAttach);
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       tel_get_app_name(&app_name);
-       if (app_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((PowerOnAttach > TAPI_NETWORK_POWERON_ATTACH_ENABLE) || (PowerOnAttach < TAPI_NETWORK_POWERON_ATTACH_DISABLE)) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT, "INVALID INPUT [%d]", PowerOnAttach);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &PowerOnAttach, sizeof(TelNetworkPowerOnAttach_t));
-       g_array_append_vals(in_param4, &app_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_SETPOWERONATTACH,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_network_power_on_attach(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-       tapi_dbus_connection_name app_name;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       tel_get_app_name(&app_name);
-       if (app_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param4, &app_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_GETPOWERONATTACH,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_cancel_network_manual_search(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-       tapi_dbus_connection_name app_name;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       tel_get_app_name(&app_name);
-       if (app_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param4, &app_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_CANCELMANUALSEARCH,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_cancel_network_manual_selection(int *pRequestId)
-{
-       int api_err = TAPI_API_SUCCESS;
-       TS_BOOL ret;
-       tapi_dbus_connection_name app_name;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       tel_get_app_name(&app_name);
-       if (app_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param4, &app_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETWORK, TAPI_CS_NETWORK_CANCELMANUALSELECTION,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int ,0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
diff --git a/src/tapi_proxy_omadm.c b/src/tapi_proxy_omadm.c
deleted file mode 100644 (file)
index 4e7ead0..0000000
+++ /dev/null
@@ -1,256 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 "tel_cs_conn.h"
-#include "TapiUtility.h"
-#include "ITapiOmadm.h"
-#include "TelUtility.h"
-#include "tapi_proxy_internal.h"
-
-EXPORT_API int tel_get_omadm_prl_size(int *pRequestID)
-{
-       TS_BOOL ret;
-       int     ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_OMADM, TAPI_CS_OMADM_PRL_SIZE_GET,
-                                          in_param1, in_param2, in_param3, in_param4,
-                                          &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_omadm_model_name(int *pRequestID)
-{
-       TS_BOOL ret;
-       int     ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_OMADM, TAPI_CS_OMADM_MODEL_NAME_GET,
-                                          in_param1, in_param2, in_param3, in_param4,
-                                          &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_omadm_oem_name(int *pRequestID)
-{
-       TS_BOOL ret;
-       int     ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_OMADM, TAPI_CS_OMADM_OEM_NAME_GET,
-                                          in_param1, in_param2, in_param3, in_param4,
-                                          &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_get_omadm_sw_ver(int *pRequestID)
-{
-       TS_BOOL ret;
-       int ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_OMADM, TAPI_CS_OMADM_SW_VER_GET,
-                                          in_param1, in_param2, in_param3, in_param4,
-                                          &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int tel_read_omadm_ril(int *pRequestID)
-{
-       TS_BOOL ret;
-       int     ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_OMADM, TAPI_CS_OMADM_PRL_READ_GET,
-                                          in_param1, in_param2, in_param3, in_param4,
-                                  &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
-
-EXPORT_API int  tel_write_omadm_prl(TelOMADMPRLData_t *pPrlData, int *pRequestID)
-{
-       TS_BOOL ret;
-       int     ret_val;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RET_ERR_NUM_IF_FAIL(pPrlData, TAPI_API_INVALID_PTR);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pPrlData, sizeof(TelOMADMPRLData_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_OMADM, TAPI_CS_OMADM_PRL_WRITE_SET,
-                                          in_param1, in_param2, in_param3, in_param4,
-                                          &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               /*      Get the API error value as out param 1, from the server.        */
-               ret_val = g_array_index(out_param1, int, 0);
-
-               /*      Get the Request ID as out param 2, from the server.    */
-               *pRequestID = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"RPC link is down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%d], Reuest ID [%d]",ret_val, *pRequestID);
-
-       return ret_val;
-}
diff --git a/src/tapi_proxy_power.c b/src/tapi_proxy_power.c
deleted file mode 100644 (file)
index 0dfd7fb..0000000
+++ /dev/null
@@ -1,207 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 "tel_cs_conn.h"
-#include "TelDefines.h"
-#include "TelPower.h"
-#include "TapiUtility.h"
-#include "TelErr.h"
-#include "ITapiPower.h"
-#include "tapi_proxy_internal.h"
-
-/**
- *
- * Turn Off or Turn On the Modem.
- *
- * @param[in]          tapi_power_phone_cmd_t  Turn ON or OFF.
- * @param[out] NONE
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks            None.
- * @see                        tapi_power_phone_cmd_t, TapiResult_t.
- */
-EXPORT_API int tel_process_power_command(tapi_power_phone_cmd_t cmd)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       if ((cmd < TAPI_PHONE_POWER_OFF) || (cmd > TAPI_PHONE_POWER_RESET)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input [%d]", cmd);
-
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &cmd, sizeof(tapi_power_phone_cmd_t));
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Power Service Request: Power Off /On/Reset..[ %d ]", cmd);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_POWER, TAPI_CS_POWER_PHONE_POWER_ON_OFF, in_param1, in_param2,
-                       in_param3, in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * Enter in to or Leave from Flight Mode.
- *
- * @param[in]  Enable (if 1, Enable and if 0, Disable)
- * @param[out] NONE
- * @return             TapiResult_t      API result code. Either Success or some Error Code.
- * @exception  In case of exceptions return value contains appropriate error code.
- * @remarks            None
- * @see                        None.
- */
-EXPORT_API int tel_set_flight_mode(tapi_power_flight_mode_type_t mode)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       /*       check for the RPC link.... */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       if ((mode < TAPI_POWER_FLIGHT_MODE_ENTER) || (mode >= TAPI_POWER_FLIGHT_MODE_MAX)) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Invalid Input [%d]", mode);
-
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &mode, sizeof(tapi_power_flight_mode_type_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_POWER, TAPI_CS_POWER_FLIGHT_MODE, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * Reset the Modem.
- *
- * @param[in]          NONE
- * @param[out] NONE
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @exception          In case of exceptions return value contains appropriate error code.
- * @remarks            None.
- * @see                        TapiResult_t.
- */
-EXPORT_API int tel_reset_modem(void)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_POWER, TAPI_CS_POWER_REBOOT, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * Enforce ramdump of phone.
- *
- * @param[in]  NONE
- * @param[out] NONE
- * @return             TapiResult_t      API result code. Either Success or some Error Code.
- * @exception  In case of exceptions return value contains appropriate error code.
- * @remarks            None
- * @see                        None.
- */
-EXPORT_API int tel_enforce_ramdump_of_modem(void)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Enterance.");
-
-       TS_BOOL ret = FALSE;
-
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_POWER, TAPI_CS_POWER_RAMDUMP, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_ERR, "_COMMON_ERR_: Phone Service Down");
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-/*     EOF     */
diff --git a/src/tapi_proxy_productivity.c b/src/tapi_proxy_productivity.c
deleted file mode 100644 (file)
index b7d469b..0000000
+++ /dev/null
@@ -1,383 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 "tel_cs_conn.h"
-#include "ITapiProductivity.h"
-#include "TapiUtility.h"
-#include "TelErr.h"
-#include "tapi_proxy_internal.h"
-
-/**********************************************************************************************
- *
- *                      NEW API
- *
-***********************************************************************************************/
-
-
-/**********************************************************************************************
- *
- * This function is used to start the service mode.
- *
- * @param      svc_mode    tapi_service_mode_t , test_sub     tapi_test_mode_sub_t
- * @return     enum type TapiResult_t
- * @remark     NONE
- *
-***********************************************************************************************/
-EXPORT_API int tel_start_svcmode(tapi_service_mode_t svc_mode, tapi_test_mode_sub_t test_sub)
-{
-       TS_BOOL ret;
-       int     ret_val = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &svc_mode, sizeof(tapi_service_mode_t));
-       g_array_append_vals(in_param2, &test_sub, sizeof(tapi_test_mode_sub_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_SVCMODE,TAPI_CS_SVCMODE_ENTERSVCMODE,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-                       ret_val = g_array_index(out_param1, int, 0);
-       }
-       else {
-                       ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-}
-
-/**********************************************************************************************
- *
- * This function is used to end the service mode.
- *
- * @param      svc_mode    tapi_service_mode_t
- * @return     enum type TapiResult_t
- * @remark     NONE
- *
-***********************************************************************************************/
-EXPORT_API int tel_end_svcmode(tapi_service_mode_t  svc_mode)
-{
-       TS_BOOL ret;
-       int     ret_val = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &svc_mode, sizeof(tapi_service_mode_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_SVCMODE,TAPI_CS_SVCMODE_ENDSVCMODE,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-                       ret_val = g_array_index(out_param1, int, 0);
-       }
-       else {
-                       ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-}
-
-/**********************************************************************************************
- *
- * This function is used to process the code enterred when service mode is running.
- *
- * @param      key_code  char type
- * @return     enum type TapiResult_t
- * @remark     NONE
- *
-***********************************************************************************************/
-EXPORT_API int tel_send_svcmode_keycode(char key_code)
-{
-       TS_BOOL ret;
-       int     ret_val = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &key_code, sizeof(char));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_SVCMODE,TAPI_CS_SVCMODE_PROCESS_KEYCODE,
-                                               in_param1,in_param2,in_param3,in_param4,
-                                               &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (ret) {
-                       ret_val = g_array_index(out_param1, int, 0);
-       }
-       else {
-                       ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-}
-
-/**********************************************************************************************
- *
- * This function is invoked to dump cp debug.
- *
- * @param      tapi_service_mode_debug_cp_dump_t [in] type  - cp dump type. refer #tapi_service_mode_debug_cp_dump_t
- * @return     Return Type (int) \n
- *             - Integer '0' ( same with TAPI_API_SUCCESS )  - indicating that the operation has completed successfully. \n
- *             - Negative integer : it provides an error code (Refer #TapiResult_t)
- * @remark     NONE
- *
-***********************************************************************************************/
-EXPORT_API int tel_request_svcmode_dump(tapi_service_mode_debug_cp_dump_t type)
-{
-       TS_BOOL ret = FALSE;
-       int ret_val = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &type, sizeof(tapi_service_mode_debug_cp_dump_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_SVCMODE, TAPI_CS_SVCMODE_DEBUG_DUMP,
-                                       in_param1, in_param2, in_param3, in_param4,
-                                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4,
-                                 out_param1, out_param2, out_param3, out_param4);
-
-       return ret_val;
-}
-
-/**
- * Process the starting Factory Process.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_start_imei_process(void)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_IMEI,TAPI_CS_IMEI_STARTFACTORYPROCESS,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- * Process the tapi_imei_CompareItemIND
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_compare_imei_item(unsigned char nItemID, unsigned char bResult)
-{
-       TS_BOOL ret = FALSE;
-       int     api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                  out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &nItemID, sizeof(unsigned char));
-       g_array_append_vals(in_param2, &bResult, sizeof(unsigned char));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_IMEI,TAPI_CS_IMEI_COMPARE_ITEM_IND,
-                                                in_param1,in_param2,in_param3,in_param4,
-                                                &out_param1,&out_param2,&out_param3,&out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                                                 out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_factory_omission_avoidance(tapi_factory_omission_avoidance_read_cmd_t cmd)
-{
-       int ret = 0;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       /*      Check input range for tele service type and call barring flavour        */
-       if ((cmd >= TAPI_FACTORY_OMISSION_AVOIDANCE_ITEM_READ)
-                       && (cmd <= TAPI_FACTORY_OMISSION_AVOIDANCE_FAILDATA_READ_FULL)) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, &cmd, sizeof(tapi_factory_omission_avoidance_read_cmd_t));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func");
-
-               ret = tapi_send_request_internal(TAPI_CS_SERVICE_FACTORY, TAPI_CS_FACTORY_OMISSION_AVOIDANCE_GET,
-                               in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       ret = g_array_index(out_param1, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       ret = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               /*      Invalid input range given by the APP.   */
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input ");
-               ret = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", ret);
-
-       return ret;
-}
-
-EXPORT_API int tel_set_factory_omission_avoidance(tapi_factory_omission_avoidance_info_t *info)
-{
-       int ret = 0;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       /*      Check input range for tele service type and call barring flavour        */
-       if ((info->cmd.write_cmd >= TAPI_FACTORY_OMISSION_AVOIDANCE_ITEM_WRITE)
-                       && (info->cmd.write_cmd <= TAPI_FACTORY_OMISSION_AVOIDANCE_FAILDATA_WRITE_FULL)) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, info, sizeof(tapi_factory_omission_avoidance_info_t));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func");
-
-               ret = tapi_send_request_internal(TAPI_CS_SERVICE_FACTORY, TAPI_CS_FACTORY_OMISSION_AVOIDANCE_SET,
-                               in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       ret = g_array_index(out_param1, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       ret = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               /*      Invalid input range given by the APP.   */
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input ");
-               ret = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", ret);
-
-       return ret;
-}
-
-//eof
diff --git a/src/tapi_proxy_sat.c b/src/tapi_proxy_sat.c
deleted file mode 100644 (file)
index 67378a5..0000000
+++ /dev/null
@@ -1,396 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <string.h>
-
-#include <vconf.h>
-
-#include "TelDefines.h"
-#include "tel_cs_conn.h"
-#include "tapi_proxy.h"
-#include "TelUtility.h"
-#include "TapiUtility.h"
-#include "TelSat.h"
-
-extern tapi_dbus_connection_name conn_name;
-
-/**
- *
- * To send envelope command (MENU SELECTION) to USIM.
- *
- * @return             values in enum TapiResult_t.
- * @param[in]          TelSatMenuSelectionReqInfo_t    menu selection evelope data.
- * @Interface          Asynchronous.
- * @remark
- * @Refer              TelSatMenuSelectionReqInfo_t
- */
-EXPORT_API int tel_select_sat_menu(TelSatMenuSelectionReqInfo_t *pMenuSelect, int *pRequestId)
-{
-       int ret_val;
-       TS_BOOL ret = FALSE;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (pMenuSelect == NULL)
-               return TAPI_API_INVALID_PTR;
-
-       if (pRequestId == NULL)
-               return TAPI_API_INVALID_PTR;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pMenuSelect, sizeof(TelSatMenuSelectionReqInfo_t));
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, " Send env cmd... menu selection");
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIMATK, TAPI_CS_SIMATK_SEND_MENU_SELECTION_ENVELOPE, in_param1, in_param2,
-                       in_param3, in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               *pRequestId = INVALID_REQUEST_ID;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, " ret: %d \n", ret);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, " ret_val: %d \n", ret_val);
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-}
-
-/**
- *
- * API to send event download to SIM.
- *
- * @return             values in enum TapiResult_t.
- * @param[in]          TelSatEventDownloadReqInfo_t    event download data.
- * @Interface          Asynchronous.
- * @remark
- * @Refer              TelSatEventDownloadReqInfo_t
- */
-EXPORT_API int tel_download_sat_event(TelSatEventDownloadReqInfo_t *pEventData, int *pRequestId)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Enter");
-
-       int ret_val;
-       TS_BOOL ret = FALSE;
-
-       return TAPI_API_NOT_SUPPORTED;
-#if 0
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (pEventData == NULL){
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Error: 1st param is NULL");
-               return TAPI_API_INVALID_PTR;
-       }
-
-       if (pRequestId == NULL){
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Error: 2nd param is NULL");
-               return TAPI_API_INVALID_PTR;
-       }
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "Error: No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pEventData, sizeof(TelSatEventDownloadReqInfo_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, " event download: event=0x%x", pEventData->eventDownloadType);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIMATK, TAPI_CS_SIMATK_SEND_EVENT_DOWNLOAD, in_param1, in_param2,
-                       in_param3, in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-       //prevent 2223
-       if (TRUE == ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               *pRequestId = INVALID_REQUEST_ID;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-#endif
-}
-
-/**
- *
- * API to get main menu information.
- *
- * @return             values in enum TapiResult_t.
- * @param[out]         TelSatSetupMenuInfo_t   main menu data.
- * @Interface          Synchronous.
- * @remark
- * @Refer              TelSatSetupMenuInfo_t
- */
-EXPORT_API int tel_get_sat_main_menu_info(TelSatSetupMenuInfo_t *pMainMenu)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, " Get Main Menu Information");
-       int ret_val;
-       TS_BOOL ret = FALSE;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (pMainMenu == NULL)
-               return TAPI_API_INVALID_PTR;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pMainMenu, sizeof(TelSatSetupMenuInfo_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIMATK, TAPI_CS_SIMATK_GET_MAIN_MENU_INFO, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-               if (ret_val == TAPI_API_SUCCESS)
-                       *pMainMenu = g_array_index(out_param2,TelSatSetupMenuInfo_t,0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-}
-
-/**
- *
- * API to send application excution result.
- *
- * @return             values in enum TapiResult_t.
- * @param[in]          TelSatAppsRetInfo_t     application result information data.
- * @Interface          Asynchronous.
- * @remark
- * @Refer              TelSatAppsRetInfo_t
- */
-EXPORT_API int tel_send_sat_app_exec_result(TelSatAppsRetInfo_t *pAppRetInfo)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, " tel_send_sat_app_exec_result");
-       int ret_val;
-       TS_BOOL ret = FALSE;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (pAppRetInfo == NULL)
-               return TAPI_API_INVALID_PTR;
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pAppRetInfo, sizeof(TelSatAppsRetInfo_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIMATK, TAPI_CS_SIMATK_SEND_APP_EXEC_RESULT, in_param1, in_param2,
-                       in_param3, in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-}
-
-/**
- *
- * API to send UI display status.
- *
- * @return             values in enum TapiResult_t.
- * @param[in]          TelSatUiDisplayStatusType_t     display status data.
- command_id    command identifier
- * @Interface          Asynchronous.
- * @remark
- * @Refer              TelSatUiDisplayStatusType_t
- */
-EXPORT_API int tel_send_ui_display_status(int commandId, TelSatUiDisplayStatusType_t status)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, " tel_send_ui_display_status");
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"status [%d]\n", status);
-       int ret_val;
-       TS_BOOL ret = FALSE;
-
-       return TAPI_API_NOT_SUPPORTED;
-
-#if 0
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (commandId < 0) {
-               TAPI_LIB_DEBUG(LOG_DEBUG,"command id should be positive");
-               return TAPI_API_SAT_INVALID_COMMAND_ID;
-       }
-
-       if ((status != TAPI_SAT_DISPLAY_SUCCESS) && (status != TAPI_SAT_DISPLAY_FAIL)) {
-               TAPI_LIB_DEBUG(LOG_DEBUG,"invalid status sent");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &commandId, sizeof(int));
-       g_array_append_vals(in_param1, &status, sizeof(TelSatUiDisplayStatusType_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIMATK, TAPI_CS_UI_DISPLAY_STATUS, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-       if (TRUE == ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return ret_val;
-#endif
-}
-
-/**
- *
- * API to send UI user confirmation data.
- *
- * @return             values in enum TapiResult_t.
- * @param[in]          command_id      command identifier
- command_type          command type
- key_type                      user confirmation value
- addtional_data                addtional data
- data_len                      data length
- * @Interface          Asynchronous.
- * @remark
- * @Refer
- */
-EXPORT_API int tel_send_sat_ui_user_confirm(TelSatUiUserConfirmInfo_t *pUserConfirmData)
-{
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, " tel_send_sat_ui_user_confirm");
-       int ret_val;
-       TS_BOOL ret = FALSE;
-       TelSatTextInfo_t add_data;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (pUserConfirmData == NULL) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, " pUserConfirmData is NULL");
-               return TAPI_API_INVALID_PTR;
-       }
-
-       if (pUserConfirmData->commandId < 0) {
-               TAPI_LIB_DEBUG(LOG_DEBUG,"command id should be positive");
-               return TAPI_API_SAT_INVALID_COMMAND_ID;
-       }
-
-       if (pUserConfirmData->dataLen < 0) {
-               TAPI_LIB_DEBUG(LOG_DEBUG,"data length should not be negative [%d]", pUserConfirmData->dataLen);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if ((pUserConfirmData->keyType < TAPI_SAT_USER_CONFIRM_YES) || (pUserConfirmData->keyType
-                       > TAPI_SAT_USER_CONFIRM_TIMEOUT)) {
-               TAPI_LIB_DEBUG(LOG_DEBUG,"invalid key type");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if ((pUserConfirmData->pAdditionalData == NULL && pUserConfirmData->dataLen != 0)) {
-               TAPI_LIB_DEBUG(LOG_DEBUG,"essential data(pAdditionalData or dataLen) is absent");
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &pUserConfirmData->commandId, sizeof(int));
-       g_array_append_vals(in_param1, &pUserConfirmData->commandType, sizeof(int));
-       g_array_append_vals(in_param1, &pUserConfirmData->keyType, sizeof(int));
-       g_array_append_vals(in_param1, &pUserConfirmData->dataLen, sizeof(int));
-
-       if (pUserConfirmData->pAdditionalData != NULL && pUserConfirmData->dataLen != 0) {
-               memset(&add_data, 0x00, sizeof(TelSatTextInfo_t));
-               memcpy(add_data.string, pUserConfirmData->pAdditionalData, pUserConfirmData->dataLen);
-               add_data.stringLen = pUserConfirmData->dataLen;
-               g_array_append_vals(in_param2, &add_data, sizeof(TelSatTextInfo_t));
-       }
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIMATK, TAPI_CS_UI_USER_CONFIRM, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-       if (TRUE == ret) {
-               ret_val = g_array_index(out_param1, int, 0);
-       }
-       else {
-               ret_val = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       if (ret_val == TAPI_API_SUCCESS) {
-               return TRUE;
-       }
-
-       return FALSE;
-}
diff --git a/src/tapi_proxy_sim.c b/src/tapi_proxy_sim.c
deleted file mode 100644 (file)
index d7eb6ac..0000000
+++ /dev/null
@@ -1,2096 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <string.h>
-
-#include <vconf.h>
-
-#include "tel_cs_conn.h"
-#include "tapi_proxy.h"
-#include "TelDefines.h"
-#include "TelUtility.h"
-#include "TelSim.h"
-#include "TapiUtility.h"
-
-extern tapi_dbus_connection_name conn_name;
-
-static int _tel_check_tapi_state()
-{
-       int vconf_ret = 0;
-       int tapi_state = 0;
-
-       vconf_ret = vconf_get_int(VCONFKEY_TELEPHONY_TAPI_STATE, (int*) &tapi_state);
-
-       if (vconf_ret != 0 || tapi_state !=1) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT,"FAIL TO GET VCONFKEY_TELEPHONY_TAPI_STATE or SERVICE NOT READY");
-               return TAPI_API_SERVICE_NOT_READY;
-       }
-       return 0;
-}
-
-EXPORT_API int tel_get_sim_init_info(TelSimCardStatus_t *sim_status, int *card_changed)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-       int vconf_ret = 0;
-       TelSimCardStatus_t CardStatus = 0;
-
-       TAPI_RETURN_VAL_IF_FAIL(sim_status, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       /* for reducing dbus connection request on boot time - start */
-       vconf_ret = vconf_get_int(VCONFKEY_TELEPHONY_SIM_CHV, (int*) &CardStatus);
-
-       if (vconf_ret != 0) {
-               TAPI_LIB_DEBUG(LEVEL_ALERT,"FAIL TO GET VCONFKEY_TELEPHONY_SIM_CHV ");
-               return TAPI_API_SERVICE_NOT_READY;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT,"VCONFKEY_TELEPHONY_SIM_CHV api ret[%d], return value[%d] ",vconf_ret,CardStatus);
-
-       if (CardStatus != TAPI_SIM_STATUS_SIM_INIT_COMPLETED) {
-               *sim_status = CardStatus;
-               if (card_changed != NULL)
-                       *card_changed = 0;
-
-               return api_err;
-       }
-       /* for reducing dbus connection request on boot time - end */
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETSIMINITINFO, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS) {
-                       *sim_status = g_array_index(out_param2, TelSimCardStatus_t ,0);
-                       if (card_changed != NULL)
-                               *card_changed = g_array_index(out_param3, int ,0);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_verifiy_sim_pins(const TelSimSecPw_t *pin_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(pin_data , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(pin_data->pw , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "PIN Type [%d]", pin_data->type);
-
-       if (pin_data->type != TAPI_SIM_PTYPE_PIN1 && pin_data->type != TAPI_SIM_PTYPE_PIN2 && pin_data->type
-                       != TAPI_SIM_PTYPE_SIM) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "PIN Code [%s]", pin_data->pw);
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "PIN Code length[%d]", pin_data->pw_len);
-
-       if (((pin_data->type == TAPI_SIM_PTYPE_PIN1) || (pin_data->type == TAPI_SIM_PTYPE_PIN2) || (pin_data->type
-                       == TAPI_SIM_PTYPE_SIM)) && ((pin_data->pw_len < 4) || (pin_data->pw_len > 8))) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pin_data, sizeof(TelSimSecPw_t));
-       g_array_append_vals(in_param2, pin_data->pw, pin_data->pw_len);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_VERIFYSEC, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_verify_sim_puks(const TelSimSecPw_t *puk_data, const TelSimSecPw_t *new_pin_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL((puk_data != NULL && new_pin_data != NULL), TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL((puk_data->pw != NULL && new_pin_data->pw != NULL), TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "Unblock PIN Type [%d]", puk_data->type);
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "New PIN Type [%d]", new_pin_data->type);
-
-       if ((puk_data->type != TAPI_SIM_PTYPE_PUK1 && puk_data->type != TAPI_SIM_PTYPE_PUK2) || (new_pin_data->type
-                       != TAPI_SIM_PTYPE_PIN1 && new_pin_data->type != TAPI_SIM_PTYPE_PIN2)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if ((puk_data->type != TAPI_SIM_PTYPE_PUK1 || new_pin_data->type != TAPI_SIM_PTYPE_PIN1) && (puk_data->type
-                       != TAPI_SIM_PTYPE_PUK2 || new_pin_data->type != TAPI_SIM_PTYPE_PIN2)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       //pin and puk code length validation check
-       if ((puk_data->pw_len < 4) || (puk_data->pw_len > 8) || (new_pin_data->pw_len < 4) || (new_pin_data->pw_len > 8)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "Unblock PIN Code [%s]", puk_data->pw);
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "New PIN Code [%s]", new_pin_data->pw);
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, puk_data, sizeof(TelSimSecPw_t));
-       g_array_append_vals(in_param1, new_pin_data, sizeof(TelSimSecPw_t));
-       g_array_append_vals(in_param2, puk_data->pw, puk_data->pw_len);
-       g_array_append_vals(in_param3, new_pin_data->pw, new_pin_data->pw_len);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_VERIFYPUK, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_change_sim_pins(const TelSimSecPw_t *old_pin, const TelSimSecPw_t *new_pin, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL((old_pin != NULL && new_pin != NULL) , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL((old_pin->pw != NULL && new_pin->pw != NULL) , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "old_pin->type[%d], new_pin->type[%d]",old_pin->type, new_pin->type);
-
-       if ((old_pin->type != TAPI_SIM_PTYPE_PIN1) && (old_pin->type != TAPI_SIM_PTYPE_PIN2) && (new_pin->type
-                       != TAPI_SIM_PTYPE_PIN1) && (new_pin->type != TAPI_SIM_PTYPE_PIN2)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (old_pin->type != new_pin->type) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       //Old Pin code length check
-       if ((old_pin->pw_len < 4) || (old_pin->pw_len > 8)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       //New Pin code length check
-       if ((new_pin->pw_len < 4) || (new_pin->pw_len > 8)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "Old PIN Code [%s]", old_pin->pw);
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "New PIN Code [%s]", new_pin->pw);
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, old_pin, sizeof(TelSimSecPw_t));
-       g_array_append_vals(in_param1, new_pin, sizeof(TelSimSecPw_t));
-       g_array_append_vals(in_param2, old_pin->pw, sizeof(unsigned char) * (old_pin->pw_len));
-       g_array_append_vals(in_param3, new_pin->pw, sizeof(unsigned char) * new_pin->pw_len);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_CHANGEPIN, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_security_status(TelSimPinType_t type, TelSimPinStatus_t *status)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(status, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       if ((type != TAPI_SIM_PTYPE_PIN1) && (type != TAPI_SIM_PTYPE_PIN2) && (type != TAPI_SIM_PTYPE_SIM)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &type, sizeof(TelSimPinType_t));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETSECSTATUS, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS ) {
-                       *status = g_array_index(out_param2,TelSimPinStatus_t ,0);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "api_err[%d],PIN type[%d], Status[%d]",api_err, type,*status);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_disable_sim_security(TelSimSecPw_t *sec_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL((sec_data != NULL && req_id != NULL) , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(sec_data->pw, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "PIN Type [%d]", sec_data->type);
-
-       if ((sec_data->type != TAPI_SIM_PTYPE_PIN1) && (sec_data->type != TAPI_SIM_PTYPE_SIM)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if ((sec_data->pw_len < 4) || (sec_data->pw_len > 8)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "PIN Code [%s]", sec_data->pw);
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, sec_data, sizeof(TelSimSecPw_t));
-       g_array_append_vals(in_param2, sec_data->pw, sec_data->pw_len);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_DISABLESEC, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_enable_sim_security(TelSimSecPw_t *sec_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL((sec_data != NULL && req_id != NULL) , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(sec_data->pw , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "PIN Type [%d]", sec_data->type);
-
-       if ((sec_data->type != TAPI_SIM_PTYPE_PIN1) && (sec_data->type != TAPI_SIM_PTYPE_SIM)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if ((sec_data->pw_len < 4) || (sec_data->pw_len > 8)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "PIN Code [%s]", sec_data->pw);
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, sec_data, sizeof(TelSimSecPw_t));
-       g_array_append_vals(in_param2, sec_data->pw, sec_data->pw_len);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_ENABLESEC, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_personalization_status(TelSimPersType_t type, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       if ((type != TAPI_SIM_PERS_NET) && (type != TAPI_SIM_PERS_NS) && (type != TAPI_SIM_PERS_SP) && (type
-                       != TAPI_SIM_PERS_CP)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &type, sizeof(TelSimPersType_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETPERSSTATUS, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_disable_sim_personalization(TelSimPersPw_t *pers_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(pers_data, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(pers_data->pw, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "PIN Type [%d]", pers_data->type);
-
-       if ((pers_data->type != TAPI_SIM_PERS_NET) && (pers_data->type != TAPI_SIM_PERS_NS) && (pers_data->type
-                       != TAPI_SIM_PERS_SP) && (pers_data->type != TAPI_SIM_PERS_CP)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       //personalization code length check - need to fix
-       if ((pers_data->pw_len < 6)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "Personalization Password[%s]", pers_data->pw);
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pers_data, sizeof(TelSimPersPw_t));
-       g_array_append_vals(in_param2, pers_data->pw, pers_data->pw_len);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_DISABLEPERS, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_enable_sim_personalization(TelSimPersPw_t *pers_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(pers_data, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(pers_data->pw , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "personalization type[%d]", pers_data->type);
-
-       if ((pers_data->type != TAPI_SIM_PERS_NET) && (pers_data->type != TAPI_SIM_PERS_NS) && (pers_data->type
-                       != TAPI_SIM_PERS_SP) && (pers_data->type != TAPI_SIM_PERS_CP)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       //personalization password length check - need to fix
-       if ((pers_data->pw_len < 6)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "personalization password[%s]", pers_data->pw);
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pers_data, sizeof(TelSimPersPw_t));
-       g_array_append_vals(in_param2, pers_data->pw, pers_data->pw_len);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_ENABLEPERS, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_fdn_status(int *fdn_status)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(fdn_status , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETFDNSTATUS, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS) {
-                       *fdn_status = g_array_index(out_param2,TS_BOOL ,0);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "FDN Status [%d]", *fdn_status);
-               }
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-       return api_err;
-}
-
-EXPORT_API int tel_disable_sim_fdn(const unsigned char *pin2, int *pin2_len, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL((pin2 != NULL && req_id != NULL) , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (*pin2_len < 4 || *pin2_len > 8) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "password [%s]", pin2);
-
-       ret = tapi_check_dbus_status();
-
-       if (FALSE == ret) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pin2, *pin2_len);
-       g_array_append_vals(in_param2, pin2_len, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_DISABLEFDN, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_enable_sim_fdn(const unsigned char *pin2, int *pin2_len, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL((pin2 != NULL && pin2_len != NULL && req_id != NULL) , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (*pin2_len < 4 || *pin2_len > 8) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "password [%s]", pin2);
-
-       ret = tapi_check_dbus_status();
-
-       if (FALSE == ret) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, pin2, *pin2_len);
-       g_array_append_vals(in_param2, pin2_len, sizeof(int));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_ENABLEFDN, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sim_access(const TelSimRSimReq_t *rsim_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(rsim_data , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      input param validation check    */
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, rsim_data, sizeof(TelSimRSimReq_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       if ((rsim_data->rsim_cmd == TAPI_SIM_UPDATE_BINARY) || (rsim_data->rsim_cmd == TAPI_SIM_UPDATE_RECORD)) {
-               g_array_append_vals(in_param2, rsim_data->data, sizeof(char*) * rsim_data->p3);
-       }
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_RSIMACCESS, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sim_apdu(TelSimApdu_t* apdu_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(apdu_data , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      input param validation check    */
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, apdu_data, sizeof(TelSimApdu_t));
-       g_array_append_vals(in_param2, apdu_data->apdu, apdu_data->apdu_len);
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_APDU, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sim_atr(int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      input param validation check    */
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_ATR, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-
-EXPORT_API int tel_get_sim_ecc(TelSimEccData_t *ecc_data, int *ecc_count)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL((ecc_data != NULL && ecc_count != NULL) , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETECCINFO, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS ){
-                       *ecc_data = g_array_index(out_param2, TelSimEccData_t ,0);
-                       *ecc_count = g_array_index(out_param3, int ,0);
-
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "ECC count [%d]", *ecc_count);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "1st ECC data is  [%s]", ecc_data->EccInfo.szEcc1);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "1st UECC data is  [%s]", ecc_data->UeccInfo[0].szEcc);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_language(TelSimLanguageInfo_t *sim_language)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(sim_language, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETLANGUAGEINFO, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS ){
-                       *sim_language = g_array_index(out_param2, TelSimLanguageInfo_t ,0);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "Language count [%lu]", sim_language->LpCount);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-       return api_err;
-}
-
-EXPORT_API int tel_set_sim_language(TelSimLanguagePreferenceCode_t language, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ( language > TAPI_SIM_LP_JAPANESE )
-               return TAPI_API_INVALID_INPUT;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &language, sizeof(TelSimLanguagePreferenceCode_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_SETLANGUAGE, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_type(TelSimCardType_t *card_type)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(card_type, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETCARDTYPE, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS ) {
-                       *card_type = g_array_index(out_param2,int ,0);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "Card type [%d]", *card_type);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_imsi(TelSimImsiInfo_t *imsi)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(imsi , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETIMSIINFO, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS ) {
-                       *imsi = g_array_index(out_param2, TelSimImsiInfo_t ,0);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "IMSI valid [%d]", imsi->bValid);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_iccid(TelSimIccIdInfo_t *iccid)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(iccid , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETICCIDINFO, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS) {
-                       *iccid = g_array_index(out_param2, TelSimIccIdInfo_t ,0);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "ICCID length[%d]", iccid->icc_length);
-               } else {
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "api_err[%d]",api_err);
-               }
-       } else  {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_mailbox_info(TelSimMailboxNumbers_s *mbox)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(mbox , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETMBINFO, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS) {
-                       *mbox = g_array_index(out_param2, TelSimMailboxNumbers_s ,0);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "chps?[%d]",mbox->b_cphs);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_callforwarding_info(TelSimCallForwarding_s *cf)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(cf , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETCFINFO, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS ) {
-                       *cf = g_array_index(out_param2, TelSimCallForwarding_s ,0);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "chps?[%d]",cf->b_cphs);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_messagewaiting_info(TelSimMessageWaiting_s *mw)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(mw , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETMWINFO, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS) {
-                       *mw = g_array_index(out_param2, TelSimMessageWaiting_s ,0);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "chps?[%d]",mw->b_cphs);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_cphs_info(TelSimCphsLocalInfo_t *cphs)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(cphs , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETCPHSINFO, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS ) {
-                       *cphs = g_array_index(out_param2, TelSimCphsLocalInfo_t ,0);
-                       TAPI_LIB_DEBUG(LEVEL_DEBUG, "chps?[%d]",cphs->b_used);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-
-EXPORT_API int tel_get_sim_msisdn(TelSimSubscriberInfo_t *subscriber)
-{
-       char *t_name, *t_num;
-       int name_len, num_len;
-       TAPI_RETURN_VAL_IF_FAIL(subscriber, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       t_name = vconf_get_str(VCONFKEY_TELEPHONY_SUBSCRIBER_NAME);
-       t_num = vconf_get_str(VCONFKEY_TELEPHONY_SUBSCRIBER_NUMBER);
-
-       if (t_name == NULL || t_num == NULL) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "FAIL TO GET VCONFKEY");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       name_len = strlen(t_name);
-       num_len = strlen(t_num);
-
-       if (name_len > TAPI_SIM_XDN_ALPHA_ID_MAX_LEN) {
-               strncpy(subscriber->name, t_name, TAPI_SIM_XDN_ALPHA_ID_MAX_LEN);
-               subscriber->name[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN] = '\0';
-       } else {
-               strncpy(subscriber->name, t_name, name_len);
-               subscriber->name[name_len] = '\0';
-       }
-
-       if (num_len > TAPI_SIM_XDN_DIALING_NUMBER_LEN) {
-               strncpy(subscriber->num, t_num, TAPI_SIM_XDN_DIALING_NUMBER_LEN);
-               subscriber->num[TAPI_SIM_XDN_DIALING_NUMBER_LEN] = '\0';
-       } else {
-               strncpy(subscriber->num, t_num, num_len);
-               subscriber->num[num_len] = '\0';
-       }
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "MSISDN name[%s]num[%s]",subscriber->name,subscriber->num);
-
-       return TAPI_API_SUCCESS;
-}
-
-EXPORT_API int tel_get_sim_pb_init_info(int *init_completed, TelSimPbList_t *pb_list, int *first_index)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-       int vconf_ret = 0;
-       int vconf_val = 0;
-
-       TAPI_RETURN_VAL_IF_FAIL((init_completed != NULL && pb_list != NULL && first_index != NULL), TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       vconf_ret = vconf_get_int(VCONFKEY_TELEPHONY_SIM_PB_INIT, &vconf_val);
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT,"VCONFKEY_TELEPHONY_SIM_PB_INIT api ret[%d], return value[%d] ",vconf_ret,vconf_val);
-
-       if (vconf_val != 1) {
-               *init_completed = 0;
-               memset(pb_list, 0x00, sizeof(TelSimPbList_t));
-               *first_index = 0x00;
-               return api_err;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETPBINITINFO, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS ){
-                       *init_completed = g_array_index(out_param2, int, 0);
-                       *pb_list = g_array_index(out_param3, TelSimPbList_t, 0);
-                       *first_index = g_array_index(out_param4, int, 0);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "PB INIT Completed[%d]", *init_completed);
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "First Valid Index [%d]", *first_index);
-               }
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-       return api_err;
-
-}
-
-EXPORT_API int tel_get_sim_pb_count(TelSimPbFileType_t pb_type, int* req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "Storage type [%d]", pb_type);
-
-       if ((pb_type != TAPI_SIM_PB_EN) && (pb_type != TAPI_SIM_PB_FDN) && (pb_type != TAPI_SIM_PB_LDN) && (pb_type
-                       != TAPI_SIM_PB_MSISDN) && (pb_type != TAPI_SIM_PB_ADN) && (pb_type != TAPI_SIM_PB_SDN) && (pb_type
-                       != TAPI_SIM_PB_3GSIM) && (pb_type != TAPI_SIM_PB_AAS) && (pb_type != TAPI_SIM_PB_GAS)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &pb_type, sizeof(TelSimPbFileType_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_PB_GETCOUNT, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_pb_meta_info(TelSimPbFileType_t pb_type, int* req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "Storage type [%d]", pb_type);
-
-       if ((pb_type != TAPI_SIM_PB_EN) && (pb_type != TAPI_SIM_PB_FDN) && (pb_type != TAPI_SIM_PB_LDN) && (pb_type
-                       != TAPI_SIM_PB_MSISDN) && (pb_type != TAPI_SIM_PB_ADN) && (pb_type != TAPI_SIM_PB_SDN) && (pb_type
-                       != TAPI_SIM_PB_3GSIM) && (pb_type != TAPI_SIM_PB_AAS) && (pb_type != TAPI_SIM_PB_GAS)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &pb_type, sizeof(TelSimPbFileType_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_PB_GETMETAINFO, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_get_sim_pb_3g_meta_info(int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_GETPBCAPABILITYINFO, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_read_sim_pb_record(TelSimPbFileType_t pb_type, unsigned short index, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "Storage type [%d]", pb_type);
-       TAPI_LIB_DEBUG(LEVEL_ALERT, "Record Index [%d]", index);
-
-       if (index == 0) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if ((pb_type != TAPI_SIM_PB_EN) && (pb_type != TAPI_SIM_PB_FDN) && (pb_type != TAPI_SIM_PB_LDN) && (pb_type
-                       != TAPI_SIM_PB_MSISDN) && (pb_type != TAPI_SIM_PB_ADN) && (pb_type != TAPI_SIM_PB_SDN) && (pb_type
-                       != TAPI_SIM_PB_3GSIM) && (pb_type != TAPI_SIM_PB_AAS) && (pb_type != TAPI_SIM_PB_GAS)) {
-
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &pb_type, sizeof(TelSimPbFileType_t));
-       g_array_append_vals(in_param2, &index, sizeof(unsigned short));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_PB_READRECORD, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_update_sim_pb_record(const TelSimPbRecordData_t *req_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL((req_data != NULL && req_id != NULL) , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Storage type [%d]", req_data->StorageFileType);
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Record Index [%d]", req_data->Index);
-
-       if (req_data->Index == 0) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if ((req_data->StorageFileType != TAPI_SIM_PB_EN) && (req_data->StorageFileType != TAPI_SIM_PB_FDN)
-                       && (req_data->StorageFileType != TAPI_SIM_PB_LDN) && (req_data->StorageFileType != TAPI_SIM_PB_MSISDN)
-                       && (req_data->StorageFileType != TAPI_SIM_PB_ADN) && (req_data->StorageFileType != TAPI_SIM_PB_SDN)
-                       && (req_data->StorageFileType != TAPI_SIM_PB_3GSIM) && (req_data->StorageFileType != TAPI_SIM_PB_AAS)
-                       && (req_data->StorageFileType != TAPI_SIM_PB_GAS)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, req_data, sizeof(TelSimPbRecordData_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_PB_UPDATERECORD, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_delete_sim_pb_record(TelSimPbFileType_t pb_type, unsigned short index, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       *req_id = INVALID_REQUEST_ID;
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "pb_type [%d]", pb_type);
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Record Index [%d]", index);
-
-       if ((pb_type != TAPI_SIM_PB_EN) && (pb_type != TAPI_SIM_PB_FDN) && (pb_type != TAPI_SIM_PB_LDN) && (pb_type
-                       != TAPI_SIM_PB_MSISDN) && (pb_type != TAPI_SIM_PB_ADN) && (pb_type != TAPI_SIM_PB_SDN) && (pb_type
-                       != TAPI_SIM_PB_3GSIM) && (pb_type != TAPI_SIM_PB_AAS) && (pb_type != TAPI_SIM_PB_GAS)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (index == 0) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &pb_type, sizeof(TelSimPbFileType_t));
-       g_array_append_vals(in_param2, &index, sizeof(unsigned short));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_PB_DELETERECORD, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sap_connection(TelSimSapConnect_t *req_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL((req_data != NULL && req_id != NULL) , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Msg Id [%d]", req_data->MsgId);
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Msg Max Size [%d]", req_data->MaxMsgSize);
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Msg Connection status [%d]", req_data->ConnectionStatus);
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, req_data, sizeof(TelSimSapConnect_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_SAPCONNECTREQUEST, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sap_connection_status(int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_SAPCONNECTSTATUS, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sap_transfer_atr(int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_SAPATRREQUEST, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sap_transfer_apdu(TelSimSapApduData_t *apdu_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL((apdu_data != NULL && req_id != NULL) , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "APDU length [%d]", apdu_data->ApduLength);
-       TAPI_LIB_DEBUG(LEVEL_INFO, "APDU data [%s]", apdu_data->Apdu);
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, apdu_data, sizeof(TelSimSapApduData_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_SAPTRANSFERAPDU, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sap_transport_protocol(TelSimSapProtocol_t protocol, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "SAP Protocol [%d]", protocol);
-
-       if ((TAPI_SIM_SAP_PROTOCOL_T0 != protocol) && (TAPI_SIM_SAP_PROTOCOL_T1 != protocol)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &protocol, sizeof(TelSimSapProtocol_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_SAPSETPROTOCOL, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sap_power_operation(TelSimSapMsgId_t req_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "SAP Power Msg Id [%d]", req_data);
-
-       if ((req_data < TAPI_SIM_SAP_CONNECT_REQ) || (req_data > TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_RESP)) {
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &req_data, sizeof(TelSimSapMsgId_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_SAPSETSIMPOWER, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sap_cardreader_status(int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-
-       if(_tel_check_tapi_state() != 0 )
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_SAPCARDREADERSTATUS, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-EXPORT_API int tel_req_sim_authentication(TelSimAuthenticationData_t *authentication_data, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(authentication_data, TAPI_API_INVALID_PTR);
-
-       if (authentication_data->auth_type < TAPI_SIM_AUTH_TYPE_IMS || authentication_data->auth_type > TAPI_SIM_AUTH_TYPE_3G)
-               return TAPI_API_INVALID_INPUT;
-
-       if (authentication_data->rand_length == 0)
-               return TAPI_API_INVALID_INPUT;
-
-       if (authentication_data->auth_type != TAPI_SIM_AUTH_TYPE_GSM    && authentication_data->autn_length == 0)
-               return TAPI_API_INVALID_INPUT;
-
-       if (_tel_check_tapi_state() != 0)
-               return TAPI_API_SERVICE_NOT_READY;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "rand_length[%d]", authentication_data->rand_length);
-       TAPI_LIB_DEBUG(LEVEL_INFO, "rand_data[0][0x%x]", authentication_data->rand_data[0]);
-
-       if (authentication_data->autn_length) {
-               TAPI_LIB_DEBUG(LEVEL_INFO, "autn_length [%d]", authentication_data->autn_length);
-               TAPI_LIB_DEBUG(LEVEL_INFO, "autn_data[0][0x%x]", authentication_data->autn_data[0]);
-       }
-
-       if (FALSE == tapi_check_dbus_status())
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, authentication_data, sizeof(TelSimAuthenticationData_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_AUTHENTICATION, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int ,0);
-               if(api_err == TAPI_API_SUCCESS )
-                       *req_id = g_array_index(out_param2, int ,0);
-               else
-                       *req_id = INVALID_REQUEST_ID;
-       } else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
diff --git a/src/tapi_proxy_sound.c b/src/tapi_proxy_sound.c
deleted file mode 100644 (file)
index d292275..0000000
+++ /dev/null
@@ -1,485 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 "tel_cs_conn.h"
-#include "tapi_proxy.h"
-#include "ITapiSound.h"
-#include "TapiUtility.h"
-#include "TelErr.h"
-#include "TelUtility.h"
-
-extern tapi_dbus_connection_name conn_name;
-
-/**
- *
- * send to Telephony Server to get the volume status of the phone
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]          tapi_sound_volume_type_t
- * @param[out] None
- * @Interface          Asynchronous.
- * @remark
- * @Refer              tapi_sound_volume_control_set
- *
- */
-EXPORT_API int tel_get_sound_volume_info(tapi_sound_volume_type_t vol_control_type, int *pRequestId)
-{
-       TS_BOOL ret;
-       int api_err;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if ((vol_control_type != TAPI_SOUND_VOL_VOICE)
-                       && (vol_control_type != TAPI_SOUND_VOL_KEYTONE)
-                       && (vol_control_type != TAPI_SOUND_VOL_BELL)
-                       && (vol_control_type != TAPI_SOUND_VOL_MESSAGE)
-                       && (vol_control_type != TAPI_SOUND_VOL_ALARM)
-                       && (vol_control_type != TAPI_SOUND_VOL_SPK_PHONE)
-                       && (vol_control_type != TAPI_SOUND_VOL_HFK_VOICE)
-                       && (vol_control_type != TAPI_SOUND_VOL_HFK_KEYTONE)
-                       && (vol_control_type != TAPI_SOUND_VOL_HFK_BELL)
-                       && (vol_control_type != TAPI_SOUND_VOL_HFK_MESSAGE)
-                       && (vol_control_type != TAPI_SOUND_VOL_HFK_ALARM)
-                       && (vol_control_type != TAPI_SOUND_VOL_HFK_PDA_MISC)
-                       && (vol_control_type != TAPI_SOUND_VOL_HEADSET_VOICE)
-                       && (vol_control_type != TAPI_SOUND_VOL_BT_VOICE)
-                       && (vol_control_type != TAPI_SOUND_VOL_TYPE_ALL)) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Invalid Input for vol_control_type = %x", vol_control_type);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(),
-                       TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &vol_control_type, sizeof(tapi_sound_volume_type_t));
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SOUND, TAPI_CS_SOUND_VOLUME_GET, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %x ",api_err);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * send to Telephony Server to control the phone voulume
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]          tapi_sound_volume_control_t
- * @param[out] None
- * @Interface          Asynchronous.
- * @remark
- * @Refer              tapi_sound_volume_control_get
- *
- */
-EXPORT_API int tel_set_sound_volume_info(tapi_sound_volume_control_t vol_control, int *pRequestId)
-{
-       TS_BOOL ret;
-       int api_err;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       if ((vol_control.volume > TAPI_SOUND_VOLUME_LEVEL_9) || (vol_control.volume < TAPI_SOUND_MUTE)) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Invalid Input for vol_control.volume = %x", vol_control.volume);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if ((vol_control.vol_type != TAPI_SOUND_VOL_VOICE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_KEYTONE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_BELL)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_MESSAGE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_ALARM)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_SPK_PHONE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_HFK_VOICE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_HFK_KEYTONE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_HFK_KEYTONE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_HFK_MESSAGE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_HFK_ALARM)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_HFK_PDA_MISC)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_HEADSET_VOICE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_BT_VOICE)
-                       && (vol_control.vol_type != TAPI_SOUND_VOL_TYPE_ALL)) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Invalid Input for vol_control.vol_type = %x", vol_control.vol_type);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(),
-                       TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &vol_control, sizeof(tapi_sound_volume_control_t));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SOUND, TAPI_CS_SOUND_VOLUME_SET, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %x ",api_err);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * Send to Telephony Server to set voice path
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]          tapi_sound_audio_path_t
- * @param[out] None
- * @Interface          Asynchronous.
- * @remark
- * @Refer
- *
- **/
-EXPORT_API int tel_set_sound_path(tapi_sound_audio_path_t vc_path, int *pRequestId)
-{
-       TS_BOOL ret;
-       int api_err;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       if ((vc_path > TAPI_SOUND_HEADSET_HAC) || (vc_path < TAPI_SOUND_HANDSET)) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Invalid Input for vc_path = %x", vc_path);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &vc_path, sizeof(tapi_sound_audio_path_t));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SOUND, TAPI_CS_SOUND_AUDIO_PATH_CTRL, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %x ",api_err);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * Send to Telehpny Server to control  the microphone as mute during the call.
- *
- * @param      tapi_sound_mic_mute_t
- * @param[out] None
- * @Interface          Asynchronous.
- * @return     enum type TapiResult_t
- * @remark
- *
- * @Refer              tapi_sound_micmute_control_get
- */
-EXPORT_API int tel_set_sound_mute_status(tapi_sound_mic_mute_t micmute_set, int *pRequestId)
-{
-       TS_BOOL ret;
-       int api_err;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance... mic mute [%s] ", micmute_set? "MUTE" : "UNMUTE");
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       if ((micmute_set > TAPI_SOUND_MIC_MUTE) || (micmute_set < TAPI_SOUND_MIC_UNMUTE)) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Invalid Input for micmute_get = %x", micmute_set);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(),
-                       TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param1, &micmute_set, sizeof(tapi_sound_mic_mute_t));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SOUND, TAPI_CS_SOUND_MIC_MUTE_SET, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %x ", api_err);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * send to Telephony Server to get the status whether mic mute or not
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]          None
- * @param[out] None
- * @Interface          Asynchronous.
- * @remark
- * @Refer              tapi_sound_micgain_control_set
- *
- */
-EXPORT_API int tel_get_sound_mute_status(int *pRequestId)
-{
-       TS_BOOL ret;
-       int api_err;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance ");
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-
-       /*       check for the RPC link....     */
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SOUND, TAPI_CS_SOUND_MIC_MUTE_GET, in_param1, in_param2, in_param3,
-                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %x ",api_err);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return api_err;
-}
-
-
-/**
- * Process the starting Audio Loopback test.
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_set_sound_loopback(TelAudioLoopbackMode_t *Mode, int *pRequestId)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       if (Mode->path > TAPI_SOUND_HEADSET_3_5PI || Mode->path < TAPI_SOUND_HANDSET) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "Invalid Input for path = %x", Mode->path);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       if (Mode->status > TAPI_SOUND_AUDIO_LOOPBACK_PACKET_ON || Mode->status < TAPI_SOUND_AUDIO_LOOPBACK_OFF) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "Invalid Input for status = %x", Mode->status);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, Mode, sizeof(TelAudioLoopbackMode_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_SOUND, TAPI_CS_SOUND_AUDIOLOOPBACK_SET,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %x ",api_err);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-/**
- * Process the control of audio clock
- *
- * @return             TapiResult_t            API result code. Either Success or some Error Code.
- * @param[in]
- * @param[out]
- * @Changes
- */
-EXPORT_API int tel_set_sound_clock(int bEnable, int *pRequestId)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance ");
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       if (bEnable > TRUE || bEnable < FALSE) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "Invalid Input for bEnable = %x", bEnable);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &bEnable, sizeof(int));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_SOUND, TAPI_CS_SOUND_AUDIO_CLOCK_CTRL,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (TRUE == ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %x ",api_err);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-/**
- *
- * send to Telephony Server to control the voice call recording
- *
- * @return             TAPI_API_SUCCESS on success and one of the enum types of  TapiResult_t on failure
- * @param[in]          None
- * @param[out] None
- * @Interface          Asynchronous.
- * @remark
- * @Refer              tapi_sound_micgain_control_set
- *
- */
-EXPORT_API int tel_control_sound_voice_recording(tapi_sound_voice_recording_status_t voice_record, int *pRequestId)
-{
-       TS_BOOL ret;
-       int api_err;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "Func Entrance... voice_record [%d] ", voice_record);
-
-       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
-       TAPI_RETURN_VAL_IF_FAIL(pRequestId, TAPI_API_INVALID_PTR);
-
-       if (voice_record < TAPI_SOUND_VOICE_RECORDING_OFF || voice_record > TAPI_SOUND_VOICE_RECORDING_ON) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "Invalid Input for voice recoring = %x", voice_record);
-               return TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_GLIB_INIT_PARAMS();
-       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       g_array_append_vals(in_param1, &voice_record, sizeof(tapi_sound_voice_recording_status_t));
-
-       ret = tapi_send_request_internal(TAPI_CS_SERVICE_SOUND, TAPI_CS_SOUND_VOICE_RECORDING_SET,
-                       in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               api_err = g_array_index(out_param1, int, 0);
-               *pRequestId = g_array_index(out_param2, int, 0);
-       }
-       else {
-               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"proxy error = %x ", api_err);
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
-
-       return api_err;
-}
-
-// eof
diff --git a/src/tapi_proxy_ss.c b/src/tapi_proxy_ss.c
deleted file mode 100644 (file)
index 5cf8f55..0000000
+++ /dev/null
@@ -1,936 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 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 <string.h>
-
-#include "tel_cs_conn.h"
-#include "tapi_proxy.h"
-#include "TapiUtility.h"
-#include "TelDefines.h"
-#include "TelSs.h"
-
-#include <vconf.h>
-
-extern tapi_dbus_connection_name conn_name;
-
-/**********************************************************************************************
- *
- * This function is used to Activate or Deactivate the call barring feature.
- *
- * @param      barringInfo[IN] of type TelSsCallBarringInfo_t Specifies the Teleservice and barring flavour and CB password.
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark     Call barring password must be known to activate or to deactivate.
- *
- ***********************************************************************************************/
-EXPORT_API int tel_set_ss_barring(const TelSsCallBarringInfo_t *barringInfo, int *req_id)
-{
-
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(barringInfo, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       /*      Check input range for tele service type and call barring flavour        */
-       if (((barringInfo->CallType >= TAPI_CALL_TYPE_VOICE_EV) && (barringInfo->CallType <= TAPI_CALL_TYPE_ALL_TELE))
-                       && ((barringInfo->Type >= TAPI_CALL_BARRING_ALL) && (barringInfo->Type <= TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM))
-                       && ((barringInfo->Mode >= TAPI_SS_CALL_BAR_ACTIVATE) && (barringInfo->Mode <= TAPI_SS_CALL_BAR_DEACTIVATE))
-                       && (strnlen(barringInfo->szPassword, 4) == TAPI_SS_GSM_BARR_PW_LEN_MAX)) {
-               /*       Check for the RPC link.        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, barringInfo, sizeof(TelSsCallBarringInfo_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_BARRSETREQ, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       returnStatus = g_array_index(out_param1, int, 0);
-
-                       *req_id = g_array_index(out_param2, int ,0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input");
-               returnStatus = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", returnStatus);
-
-       return returnStatus;
-
-}
-
-/**********************************************************************************************
- *
- * This function is used to Activate or Deactivate the call barring feature.
- *
- * @param      barType[IN] of type TelSsCallBarType_t Specifies the  barring flavour.
- * @param      callType[IN] of type TelSsCallType_t Specifies the teleservice type.
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_get_ss_barring_status(TelSsCallBarType_t barType, TelSsCallType_t callType, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       /*      Check input range for tele service type and call barring flavour        */
-       if (((barType >= TAPI_CALL_BARRING_ALL) && (barType <= TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM))
-                       && ((callType >= TAPI_CALL_TYPE_VOICE_EV) && (callType <= TAPI_CALL_TYPE_ALL_TELE))) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, &barType, sizeof(TelSsCallBarType_t));
-               g_array_append_vals(in_param2, &callType, sizeof(TelSsCallType_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_BARRQUERYSTATUSREQ, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       returnStatus = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               /*      Invalid input range given by the APP.   */
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input ");
-               returnStatus = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", returnStatus);
-
-       return returnStatus;
-}
-
-/**********************************************************************************************
- *
- * This function is used to change call barring password.
- *
- * @param      pOldPassword[IN] of type char* Specifies the Old Call Barring Password.
- * @param      pNewPassword[IN] of type char* Specifies the New Call Barring Password.
- * @param      pNewPasswordAgain[IN] of type char* Specifies the New Call Barring Password for Confirm.
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_change_ss_barring_password(
-               const char *pOldPassword,
-               const char *pNewPassword,
-               const char *pNewPasswordAgain,
-               int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(pOldPassword, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(pNewPassword, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(pNewPasswordAgain, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       // check should be done at APP
-       if ((strlen(pOldPassword) == TAPI_SS_GSM_BARR_PW_LEN_MAX) && (strlen(pNewPassword) == TAPI_SS_GSM_BARR_PW_LEN_MAX)) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, pOldPassword, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-               g_array_append_vals(in_param2, pNewPassword, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-               g_array_append_vals(in_param3, pNewPasswordAgain, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_BARRCHANGEPWDREQ, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       returnStatus = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               /*      Invalid input range given by the APP.   */
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input  - Password length error");
-               returnStatus = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", returnStatus);
-
-       return returnStatus;
-}
-
-/**********************************************************************************************
- *
- * This function is used to Activate or Deactivate the call forwarding feature.
- *
- * @param      forwardInfo[IN] of type TelSsForwardInfo_t which specifies the Teleservice and CF flavour, Forwarded to number.
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_set_ss_forward(const TelSsForwardInfo_t *forwardInfo, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(forwardInfo, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "szPhoneNumber is [%s]", forwardInfo->szPhoneNumber);
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "szPhoneNumber Length is [%d]", strlen(forwardInfo->szPhoneNumber));
-
-       /*      Check input range for tele service type and call forwarding flavour     */
-       if (((forwardInfo->Condition >= TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV) && (forwardInfo->Condition <= TAPI_SS_FORWARD_WHEN_ALL_CONDITIONAL_EV))
-                       && ((forwardInfo->Mode >= TAPI_CALL_FORWARD_MODE_DISABLE_EV) && (forwardInfo->Mode <= TAPI_CALL_FORWARD_MODE_ERASURE_EV))
-                       && ((forwardInfo->Type >= TAPI_CS_FORWARD_TYPE_VOICE_EV) && (forwardInfo->Type <= TAPI_CS_FORWARD_TYPE_ALL_TELE))
-                       && (strnlen(forwardInfo->szPhoneNumber, (TAPI_CALL_DIALDIGIT_LEN_MAX)) < (TAPI_CALL_DIALDIGIT_LEN_MAX))) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, forwardInfo, sizeof(TelSsForwardInfo_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func ");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_FWDSETREQ, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       returnStatus = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input ");
-               returnStatus = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", returnStatus);
-
-       return returnStatus;
-}
-
-/**********************************************************************************************
- *
- * This function is used to interrogate the status of call forwarding feature.
- *
- * @param      forwardType[IN] of type TelSsForwardType_t which specifies the telecommunication service.
- * @param      condition[IN]   is of type TelSsForwardWhen_t specified the CF flavour
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_get_ss_forward_status(TelSsForwardType_t forwardType, TelSsForwardWhen_t condition, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       /*      Check input range for tele service type and call forwarding flavour     */
-       if (((condition >= TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV)
-                       && (condition <= TAPI_SS_FORWARD_WHEN_ALL_CONDITIONAL_EV))
-                       && ((forwardType >= TAPI_CS_FORWARD_TYPE_VOICE_EV) && (forwardType <= TAPI_CS_FORWARD_TYPE_ALL_TELE))) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, &forwardType, sizeof(TelSsForwardType_t));
-               g_array_append_vals(in_param2, &condition, sizeof(TelSsForwardWhen_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func ");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_FWDQUERYSTATUSREQ, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       returnStatus = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input ");
-               returnStatus = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", returnStatus);
-
-       return returnStatus;
-}
-
-/**********************************************************************************************
- *
- * This function is used to Activate or dectivate call waiting feature.
- *
- * @param      waitInfo[IN] of type TelSsWaitingInfo_t which specifies the telecommunication service and mode.
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_set_ss_waiting(const TelSsWaitingInfo_t *waitInfo, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(waitInfo, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       /*      Check input range for tele service type and call forwarding flavour     */
-       if (((waitInfo->Mode >= TAPI_SS_CW_ACTIVATE)
-                       && (waitInfo->Mode <= TAPI_SS_CW_DEACTIVATE))
-                       && ((waitInfo->CallType >= TAPI_CALL_TYPE_VOICE_EV) && (waitInfo->CallType <= TAPI_CALL_TYPE_ALL_TELE))) {
-
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, waitInfo, sizeof(TelSsWaitingInfo_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func ");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_WAITSETREQ, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       returnStatus = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input ");
-               returnStatus = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", returnStatus);
-
-       return returnStatus;
-}
-
-/**********************************************************************************************
- *
- * This function is used to interrogate the status of call waiting feature.
- *
- * @param      CallType[IN] of type TelSsCallType_t which specifies the telecommunication service .
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-
-EXPORT_API int tel_get_ss_waiting_status(const TelSsCallType_t CallType, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       /*      Check input range for tele service type */
-       if ((CallType >= TAPI_CALL_TYPE_VOICE_EV) && (CallType <= TAPI_CALL_TYPE_ALL_TELE)) {
-
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, &CallType, sizeof(TelSsCallType_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func ");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_WAITQUERYSTATUSREQ, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       returnStatus = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input ");
-               returnStatus = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", returnStatus);
-
-       return returnStatus;
-}
-
-/**********************************************************************************************
- *
- * This function is used to interrogate the status of CLI services feature.
- *
- * @param      CliType[IN] of type TelSsCliType_t which specifies the CLI service .
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_get_ss_cli_status(TelSsCliType_t CliType, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       /*      Check input range for CLI service type  */
-       if ((CliType >= TAPI_SS_CLI_CLIP) && (CliType <= TAPI_SS_CLI_CNAP)) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, &CliType, sizeof(TelSsCliType_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func ");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_CLIQUERYSTATUSREQ, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input ");
-               api_err = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**********************************************************************************************
- *
- * This function is used to send a USSD string and also the User response for a NW intiated USSD.
- *
- * @param      pAppMsg[IN] of type TelSsUssdMsgInfo_t which specifies the USSD String,length of the string, format of the string.
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark     TelSsUssdMsgInfo_t ->IndType is not used while calling this function, This is used for sending the response.
- *                     Limo standard defines only one structure for Request and response.
- *
- ***********************************************************************************************/
-EXPORT_API int tel_send_ss_ussd_request(const TelSsUssdMsgInfo_t *ussd_info, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-       int emergency_mode = 0;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (vconf_get_int("db/telephony/emergency", &emergency_mode) != 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "[FAIL]GET db/telephony/emergency");
-               return TAPI_API_OPERATION_FAILED;
-       }
-       if (emergency_mode) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "emergency mode on");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(ussd_info, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       if (((ussd_info->UssdStringLength > 0) && (ussd_info->UssdStringLength < TAPI_SS_USSD_DATA_SIZE_MAX))) {
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"--- USSD STR(%s),length = %d", ussd_info->szUssdString,ussd_info->UssdStringLength);
-
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, ussd_info, sizeof(TelSsUssdMsgInfo_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func ");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_USSDSENDSTRINGREQ, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input -USSD  length Error ");
-               api_err = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**********************************************************************************************
- *
- * This function is used to send a USSD Rsp.
- *
- * @param      ussdRspRecord, req_id
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_send_ss_ussd_response(const TelSsUssdMsgInfo_t *ussd_rsp, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(ussd_rsp, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       if (((ussd_rsp->UssdStringLength > 0) && (ussd_rsp->UssdStringLength < TAPI_SS_USSD_DATA_SIZE_MAX))) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, ussd_rsp, sizeof(TelSsUssdMsgInfo_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG, "SS Service Request:(Send USSD string req)");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_USSDRSP, in_param1, in_param2, in_param3, in_param4,
-                               &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       returnStatus = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-               }
-               else {
-                       returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               returnStatus = TAPI_API_INVALID_INPUT;
-               TAPI_LIB_DEBUG(LEVEL_ERR,"INVALID INPUT TYPE  \n");
-               TAPI_LIB_DEBUG(LEVEL_ERR, "##### Invalid Response Type ......");
-       }
-
-       return returnStatus;
-}
-
-/**********************************************************************************************
- *
- * This function is used to send a USSD cancel to release ussd session.
- *
- * @param      req_id
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_send_ss_ussd_cancel(int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int returnStatus = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /* Check the input ptr. If NULL then return FALSE */
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       /* Check if D-Bus service is available. If Failed then return FALSE */
-       TAPI_RETURN_VAL_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-       TAPI_GLIB_INIT_PARAMS();
-
-       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG, "SS Service Request:(Send USSD cancel)");
-       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-       ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_USSDCANCEL, in_param1, in_param2, in_param3, in_param4,
-                       &out_param1, &out_param2, &out_param3, &out_param4);
-
-       if (ret) {
-               returnStatus = g_array_index(out_param1, int, 0);
-               *req_id = g_array_index(out_param2, int ,0);
-       }
-       else {
-               returnStatus = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-       }
-
-       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                       out_param1,out_param2,out_param3,out_param4);
-
-       return returnStatus;
-}
-
-/**********************************************************************************************
- *
- * This function is used to Sets AOC information.
- *
- * @param      AocType[IN] of type TelSsAocType_t which specifies the which AOC type to read.
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_get_ss_aoc_info(TelSsAocType_t AocType, int *req_id)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
-
-       /*      Check input range for Aoc type  */
-       if ((AocType == TAPI_SS_AOC_TYPE_ACM)
-                       || (AocType == TAPI_SS_AOC_TYPE_PUC)
-                       || (AocType == TAPI_SS_AOC_TYPE_MAXACM)
-                       || (AocType == TAPI_SS_AOC_TYPE_CCM)) {
-               /*      Check if D-Bus service is available. If Failed then return FALSE        */
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, &AocType, sizeof(TelSsAocType_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func ");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_GETCALLCOSTREQ, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-                       *req_id = g_array_index(out_param2, int ,0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input - Invalid AOC type");
-               api_err = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/**********************************************************************************************
- *
- * This function is used to Sets AOC information.
- *
- * @param      AocSetInfo[IN] of type TelCallAocInfo_t which specifies the AOC info parameters .
- * @return     enum type TapiResult_t Specifies the API's Return result.
- * @remark
- *
- ***********************************************************************************************/
-EXPORT_API int tel_set_ss_aoc_info(TelCallAocInfo_t *AocSetInfo, int *RequestId)
-{
-       TS_BOOL ret = FALSE;
-       int api_err = TAPI_API_SUCCESS;
-
-       TAPI_LIB_DEBUG(LEVEL_DEBUG,"Func Entrance");
-
-       if (conn_name.length_of_name == 0) {
-               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
-               return TAPI_API_OPERATION_FAILED;
-       }
-
-       /*      Check the input ptr. If NULL then return FALSE  */
-       TAPI_RETURN_VAL_IF_FAIL(AocSetInfo, TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(RequestId , TAPI_API_INVALID_PTR);
-
-       if ((AocSetInfo->PPM) < ((float) (TAPI_MAX_ULONG / 1000))) {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Valid ... Input PPM smaller than MAX");
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"INVALID.... INPUT greater than MAX");
-       }
-
-       /*      Check input range for Aoc type  */
-       if ((AocSetInfo->PPM < (float) (TAPI_MAX_ULONG / 1000))
-                       && ((AocSetInfo->AocType == TAPI_SS_AOC_TYPE_RESET)
-                               || (AocSetInfo->AocType == TAPI_SS_AOC_TYPE_PUC)
-                               || (AocSetInfo->AocType == TAPI_SS_AOC_TYPE_MAXACM) )) {
-               TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_DOWN);
-               TAPI_GLIB_INIT_PARAMS();
-
-               TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-
-               g_array_append_vals(in_param1, AocSetInfo, sizeof(TelCallAocInfo_t));
-               g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
-
-               TAPI_LIB_DEBUG(LEVEL_DEBUG,"Calling Call Back func ");
-
-               ret = tapi_send_request(TAPI_CS_SERVICE_SS, TAPI_CS_SS_SETCALLCOSTREQ, in_param1, in_param2, in_param3,
-                               in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
-
-               if (TRUE == ret) {
-                       /*      Get the API error value as out param 1, from the server.        */
-                       api_err = g_array_index(out_param1, int, 0);
-
-                       /*      Get the Request ID as out param 2, from the server.    */
-                       *RequestId = g_array_index(out_param2, int, 0);
-               }
-               else {
-                       /*      RPC API failed, return err to APP       */
-                       TAPI_LIB_DEBUG(LEVEL_ALERT, "RPC Link is down");
-                       api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
-               }
-
-               TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
-                               out_param1,out_param2,out_param3,out_param4);
-       }
-       else {
-               TAPI_LIB_DEBUG(LEVEL_ERR,"Received Invalid Input -Invalid AOC type ");
-               api_err = TAPI_API_INVALID_INPUT;
-       }
-
-       TAPI_LIB_DEBUG(LEVEL_INFO, "Returning TapiResult_t [%+d]", api_err);
-
-       return api_err;
-}
-
-/*     EOF  */
diff --git a/src/tapi_sap.c b/src/tapi_sap.c
new file mode 100644 (file)
index 0000000..627bf4f
--- /dev/null
@@ -0,0 +1,411 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 "TelSim.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiSap.h"
+
+static void on_response_sap_connect(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;
+       TelSimSapConnectionStatus_t result = TAPI_SIM_SAP_CONNECTION_STATUS_OK;
+       gint max_msg_size = 0;
+
+       dbg("Func Entrance");
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+EXPORT_API int tel_req_sap_connect(TapiHandle *handle, int max_msg_size, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+
+       dbg("Func Entrance w/ max_msg_size[%d]",max_msg_size);
+
+       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, handle->path,
+                       DBUS_TELEPHONY_SAP_INTERFACE, "Connect", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_sap_connect, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+static void on_response_sap_disconnect(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;
+       TelSimSapResultCode_t result = TAPI_SIM_SAP_RESULT_CODE_OK;
+
+       dbg("Func Entrance");
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+EXPORT_API int tel_req_sap_disconnect(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance ");
+
+       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_SAP_INTERFACE, "Disconnect", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_sap_disconnect, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+static void on_response_sap_connection_status(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;
+       TelSimSapStatusInfo_t result = TAPI_SIM_SAP_STATUS_UNKNOWN;
+
+       dbg("Func Entrance");
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+EXPORT_API int tel_req_sap_connection_status(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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_SAP_INTERFACE, "GetStatus", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_sap_connection_status, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+static void on_response_sap_transfer_atr(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+
+       GVariantIter *iter = NULL;
+       GVariant *param_gv = NULL;
+       GVariant *inner_gv = NULL;
+       guchar rt_i;
+       int i = 0;
+
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimSapResultCode_t result = TAPI_SIM_SAP_RESULT_CODE_OK;
+       TelSapAtrInfo_t r_atr;
+
+       dbg("Func Entrance");
+       memset(&r_atr, 0, sizeof(TelSapAtrInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if (dbus_result) {
+               /*      dbg("dbus_result type_format(%s)", g_variant_get_type_string(dbus_result));*/
+               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", &rt_i)) {
+                       r_atr.atr_data[i] = rt_i;
+                       i++;
+               }
+               r_atr.atr_len = (int) i;
+               g_variant_iter_free(iter);
+               g_variant_unref(inner_gv);
+               g_variant_unref(param_gv);
+               /*              for(i=0; i < (int)r_atr.atr_len; i++)
+                dbg("r_atr[%d][0x%02x]",i, r_atr.atr_data[i]);*/
+       } else {
+               result = TAPI_SIM_SAP_RESULT_CODE_DATA_NOT_AVAILABLE;
+       }
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, (void*)&r_atr, evt_cb_data->user_data);
+       }
+}
+
+EXPORT_API int tel_req_sap_transfer_atr(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance");
+
+       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_SAP_INTERFACE, "GetATR", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_sap_transfer_atr, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+static void on_response_sap_transfer_apdu(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+
+       GVariantIter *iter = NULL;
+       GVariant *param_gv = NULL;
+       GVariant *inner_gv = NULL;
+       guchar rt_i;
+       int i = 0;
+
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimSapResultCode_t result = TAPI_SIM_SAP_RESULT_CODE_OK;
+       TelSapApduData_t r_apdu;
+
+       dbg("Func Entrance");
+       memset(&r_apdu, 0, sizeof(TelSapApduData_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if (dbus_result) {
+               /*      dbg("dbus_result type_format(%s)", g_variant_get_type_string(dbus_result));*/
+               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", &rt_i)) {
+                       r_apdu.apdu_data[i] = rt_i;
+                       i++;
+               }
+               r_apdu.apdu_len = (int) i;
+               g_variant_iter_free(iter);
+               g_variant_unref(inner_gv);
+               g_variant_unref(param_gv);
+               /*              for(i=0; i < (int)r_apdu.apdu_len; i++)
+                dbg("apdu[%d][0x%02x]",i, r_apdu.apdu_data[i]);*/
+       }
+       else {
+               result = TAPI_SIM_SAP_RESULT_CODE_DATA_NOT_AVAILABLE;
+               dbg( "g_dbus_conn failed. error (%s)", error->message);
+               g_error_free(error);
+       }
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, (void*)&r_apdu, evt_cb_data->user_data);
+       }
+}
+
+EXPORT_API int tel_req_sap_transfer_apdu(TapiHandle *handle, TelSapApduData_t *apdu_data, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariantBuilder *builder = NULL;
+       GVariant *param = NULL;
+       GVariant *inner_gv = NULL;
+       int i = 0;
+
+       dbg("Func Entrance");
+       TAPI_RETURN_VAL_IF_FAIL(apdu_data, TAPI_API_INVALID_PTR);
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       builder = g_variant_builder_new(G_VARIANT_TYPE ("ay"));
+       for (i = 0; i < apdu_data->apdu_len; i++) {
+               dbg("apdu_data->apdu_data[%d][0x%02x]", i,apdu_data->apdu_data[i]);
+               g_variant_builder_add(builder, "y", apdu_data->apdu_data[i]);
+       }
+       inner_gv = g_variant_builder_end(builder);
+       param = g_variant_new("(v)", inner_gv);
+       /*g_variant_builder_unref (builder);*/
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SAP_INTERFACE, "TransferAPDU", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_sap_transfer_apdu, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+static void on_response_sap_transport_protocol(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;
+       TelSimSapResultCode_t result = TAPI_SIM_SAP_RESULT_CODE_OK;
+
+       dbg("Func Entrance");
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+EXPORT_API int tel_req_sap_transport_protocol(TapiHandle *handle, TelSimSapProtocol_t protocol, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+
+       dbg("Func Entrance w/ protocol[%d]", protocol);
+
+       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, handle->path,
+                       DBUS_TELEPHONY_SAP_INTERFACE, "SetProtocol", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_sap_transport_protocol, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+static void on_response_sap_power_operation(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;
+       TelSimSapResultCode_t result = TAPI_SIM_SAP_RESULT_CODE_OK;
+
+       dbg("Func Entrance");
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+EXPORT_API int tel_req_sap_power_operation(TapiHandle *handle, TelSimSapPowerMode_t power_mode, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       gint mode = 0;
+       dbg("Func Entrance w/ power_mode[%d]", power_mode);
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       switch (power_mode) {
+               case TAPI_SIM_SAP_POWER_SIM_ON_REQ:
+                       mode = 0;
+                       break;
+               case TAPI_SIM_SAP_POWER_SIM_OFF_REQ:
+                       mode =1;
+                       break;
+               case TAPI_SIM_SAP_RESET_SIM_REQ:
+                       mode = 2;
+                       break;
+               default:
+                       dbg("not handed value[%d]", power_mode);
+                       break;
+       }
+
+       param = g_variant_new("(i)", mode);
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SAP_INTERFACE, "SetPower", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_sap_power_operation, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+static void on_response_sap_cardreader_status(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;
+       TelSimSapResultCode_t result = TAPI_SIM_SAP_RESULT_CODE_OK;
+       TelSimSapCardStatus_t reader_status = TAPI_SIM_SAP_CARD_STATUS_UNKNOWN;
+
+       dbg("Func Entrance");
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+EXPORT_API int tel_req_sap_cardreader_status(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance ");
+
+       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_SAP_INTERFACE, "GetCardReaderStatus", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_sap_cardreader_status, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
diff --git a/src/tapi_sat.c b/src/tapi_sat.c
new file mode 100644 (file)
index 0000000..10b0519
--- /dev/null
@@ -0,0 +1,597 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 "TelSat.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiSat.h"
+
+extern TelSatEventDownloadType_t g_event_list[TAPI_SAT_EVENT_LIST_MAX_COUNT];
+
+static GVariant* _tapi_sat_gen_app_exec_result_data(TelSatAppsRetInfo_t *result_info)
+{
+       GVariant *result = NULL;
+
+       switch(result_info->commandType)
+       {
+               case TAPI_SAT_CMD_TYPE_SETUP_MENU:{
+                       gint exec_result;
+                       dbg("setup menu : result format (i)");
+
+                       exec_result = result_info->appsRet.setupMenu.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_REFRESH:{
+                       gint app_type, exec_result;
+                       dbg("refresh : result format (ii)");
+
+                       app_type = result_info->appsRet.refresh.appType;
+                       exec_result = result_info->appsRet.refresh.resp;
+                       result = g_variant_new("(ii)", app_type, exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_SETUP_CALL:{
+                       gint exec_result, me_problem, call_ctrl_problem, call_cause;
+                       dbg("setup call : result format (iiii)");
+
+                       exec_result = result_info->appsRet.setupCall.resp;
+                       me_problem = result_info->appsRet.setupCall.meProblem;
+                       call_ctrl_problem = result_info->appsRet.setupCall.permanentCallCtrlProblem;
+                       call_cause = result_info->appsRet.setupCall.tapiCause;
+                       result = g_variant_new("(iiii)", exec_result, exec_result, call_ctrl_problem, call_cause);
+               } break;
+               case TAPI_SAT_CMD_TYPE_SEND_SS:{
+                       gint exec_result;
+                       dbg("send sms : result format (i)");
+
+                       exec_result = result_info->appsRet.sendSs.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_SEND_USSD:{
+                       gint exec_result;
+                       dbg("send ussd : result format (i)");
+
+                       exec_result = result_info->appsRet.sendUssd.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_SEND_SMS:{
+                       gint exec_result;
+                       dbg("send sms: result format (i)");
+
+                       exec_result = result_info->appsRet.sendSms.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_SEND_DTMF:{
+                       gint exec_result;
+                       dbg("send DTMF: result format (i)");
+
+                       exec_result = result_info->appsRet.sendDtmf.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_LAUNCH_BROWSER:{
+                       gint exec_result, browser_problem;
+                       dbg("launch browser: result format (ii)");
+
+                       exec_result = result_info->appsRet.launchBrowser.resp;
+                       browser_problem = result_info->appsRet.launchBrowser.browserProblem;
+                       result = g_variant_new("(ii)", exec_result, browser_problem);
+               } break;
+               case TAPI_SAT_CMD_TYPE_SETUP_IDLE_MODE_TEXT:{
+                       gint exec_result;
+                       dbg("setup idle mode text: result format (i)");
+
+                       exec_result = result_info->appsRet.setupIdleModeText.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_LANGUAGE_NOTIFICATION:{
+                       gint exec_result;
+                       dbg("language notification: result format (i)");
+
+                       exec_result = result_info->appsRet.languageNoti.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_PROVIDE_LOCAL_INFO:{
+                       gint exec_result;
+                       dbg("provide local info: result format (i)");
+
+                       exec_result = result_info->appsRet.provideLocalInfo.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_PLAY_TONE:{
+                       gint exec_result;
+                       dbg("play tone: result format (i)");
+
+                       exec_result = result_info->appsRet.playTone.resp;
+                       result = g_variant_new("(i)", exec_result);
+               } break;
+               case TAPI_SAT_CMD_TYPE_DISPLAY_TEXT:{
+                       gint exec_result, me_problem;
+                       dbg("display text: result format (ii)");
+
+                       exec_result = result_info->appsRet.displayText.resp;
+                       me_problem = result_info->appsRet.displayText.meProblem;
+                       result = g_variant_new("(ii)", exec_result, me_problem);
+               } break;
+               default:
+                       dbg("unhandled command type(0x%x", result_info->commandType);
+                       break;
+       }
+
+       return result;
+}
+
+static GVariant* _tapi_sat_gen_event_download_data(const TelSatEventDownloadReqInfo_t *pEventData)
+{
+       GVariant *result = NULL;
+
+       switch(pEventData->eventDownloadType)
+       {
+               case TAPI_EVENT_SAT_DW_TYPE_IDLE_SCREEN_AVAILABLE:{
+                       gboolean idle_screen;
+                       dbg("idle screen available (%d)", pEventData->u.bIdleScreenAvailable);
+
+                       idle_screen = pEventData->u.bIdleScreenAvailable;
+                       result = g_variant_new("(b)", idle_screen);
+               } break;
+               case TAPI_EVENT_SAT_DW_TYPE_LANGUAGE_SELECTION:{
+                       gint selected_language;
+                       dbg("selected language (%d)", pEventData->u.languageSelectionEventReqInfo.language);
+
+                       selected_language = pEventData->u.languageSelectionEventReqInfo.language;
+                       result = g_variant_new("(i)", selected_language);
+               } break;
+               case TAPI_EVENT_SAT_DW_TYPE_BROWSER_TERMINATION:{
+                       gint browser_termination_cause;
+                       dbg("Cause of browser termination (%d)", pEventData->u.browserTerminationEventReqInfo.browserTerminationCause);
+
+                       browser_termination_cause = pEventData->u.browserTerminationEventReqInfo.browserTerminationCause;
+                       result = g_variant_new("(i)", browser_termination_cause);
+               } break;
+               case TAPI_EVENT_SAT_DW_TYPE_DATA_AVAILABLE:
+               case TAPI_EVENT_SAT_DW_TYPE_CHANNEL_STATUS:
+               default :
+                       dbg("not support download event (%d)", pEventData->eventDownloadType);
+                       break;
+       }
+
+       return result;
+}
+
+static void on_response_menu_selection_envelop(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+
+       GVariant *rst;
+       struct tapi_resp_data *evt_cb_data = user_data;
+
+       int result = -1;
+       int envelop_rsp = 0;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       rst = g_dbus_connection_call_finish(conn, res, &error);
+       if(!rst){
+               dbg( "error to menu selection envelop(%s)", error->message);
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &envelop_rsp, evt_cb_data->user_data);
+
+               g_error_free (error);
+               g_free(evt_cb_data);
+               return;
+       }
+
+       g_variant_get (rst, "(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);
+       }
+
+       g_variant_unref(rst);
+       g_free(evt_cb_data);
+}
+
+static void on_response_download_event_envelop(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+
+       GVariant *rst;
+       struct tapi_resp_data *evt_cb_data = user_data;
+
+       int result = -1;
+       int envelop_rsp = 0;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       rst = g_dbus_connection_call_finish(conn, res, &error);
+       if(!rst){
+               dbg( "error to download event envelop(%s)", error->message);
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &envelop_rsp, evt_cb_data->user_data);
+
+               g_error_free (error);
+               g_free(evt_cb_data);
+               return;
+       }
+
+       g_variant_get (rst, "(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);
+       }
+
+       g_variant_unref(rst);
+       g_free(evt_cb_data);
+}
+
+/**
+ *
+ * To send envelope command (MENU SELECTION) to USIM.
+ *
+ * @return             values in enum TapiResult_t.
+ * @param[in]          TelSatMenuSelectionReqInfo_t    menu selection evelope data.
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer              TelSatMenuSelectionReqInfo_t
+ */
+
+EXPORT_API int tel_select_sat_menu(TapiHandle *handle, const TelSatMenuSelectionReqInfo_t *pMenuSelect, tapi_response_cb callback, void *user_data)
+{
+       gint item_id;
+       gboolean help_req;
+       GVariant *inparam = NULL;
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance ");
+
+       if (!handle || !handle->dbus_connection || !pMenuSelect){
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       item_id = pMenuSelect->itemIdentifier;
+       help_req = ( (pMenuSelect->bIsHelpRequested != 0) ? TRUE : FALSE);
+       dbg("item id(%d) help request(%d)", item_id, help_req);
+       inparam = g_variant_new("(ib)", item_id, help_req);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SAT_INTERFACE, "SelectMenu", inparam, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_menu_selection_envelop, evt_cb_data);
+
+       g_variant_unref(inparam);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * API to send event download to SIM.
+ *
+ * @return             values in enum TapiResult_t.
+ * @param[in]          TelSatEventDownloadReqInfo_t    event download data.
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer              TelSatEventDownloadReqInfo_t
+ */
+EXPORT_API int tel_download_sat_event(TapiHandle *handle, const TelSatEventDownloadReqInfo_t *pEventData, tapi_response_cb callback, void *user_data)
+{
+       gboolean evt_check = FALSE;
+       int g_index = 0;
+       gint event_download_type, src_dev, dest_dev;
+       GVariant *download_data = NULL;
+
+       GVariant *inparam = NULL;
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance ");
+
+       if (!handle || !handle->dbus_connection || !pEventData){
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       for(g_index = 0; g_event_list[g_index] > 0; g_index++){
+               if(g_event_list[g_index] == pEventData->eventDownloadType ){
+                       dbg("event (%d) shoud be passed to sim");
+                       evt_check = TRUE;
+               }
+       }
+
+       if(!evt_check){
+               dbg("sim does not request event(%d)", pEventData->eventDownloadType);
+               return TAPI_API_SAT_EVENT_NOT_REQUIRED_BY_USIM;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       event_download_type = pEventData->eventDownloadType;
+       src_dev = TAPI_SAT_DEVICE_ID_ME;
+       dest_dev = TAPI_SAT_DEVICE_ID_SIM;
+       download_data = _tapi_sat_gen_event_download_data(pEventData);
+       dbg("event type(%d)", event_download_type);
+       inparam = g_variant_new("(iiiv)", event_download_type, src_dev, dest_dev, download_data);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SAT_INTERFACE, "DownloadEvent", inparam, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_download_event_envelop, evt_cb_data);
+
+       g_variant_unref(inparam);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * API to get main menu information.
+ *
+ * @return             values in enum TapiResult_t.
+ * @param[out]         TelSatSetupMenuInfo_t   main menu data.
+ * @Interface          Synchronous.
+ * @remark
+ * @Refer              TelSatSetupMenuInfo_t
+ */
+EXPORT_API int tel_get_sat_main_menu_info(TapiHandle *handle, TelSatSetupMenuInfo_t *pMainMenu)
+{
+       GError *error;
+       GVariant *rst = NULL;
+
+       gchar *title;
+       gint result, command_id, item_cnt;
+       gboolean b_present, b_helpinfo, b_updated;
+       GVariant *items = NULL, *icon_id, *icon_list;
+
+       dbg("Func Entrance ");
+
+       if (!handle || !handle->dbus_connection || !pMainMenu){
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       memset(pMainMenu, 0, sizeof(TelSatSetupMenuInfo_t));
+
+       error = NULL;
+       rst = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE , handle->path,
+                       DBUS_TELEPHONY_SAT_INTERFACE, "GetMainMenuInfo", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
+
+       if(!rst){
+               dbg( "error to get main menu(%s)", error->message);
+               g_error_free (error);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       dbg("menu_info type_format(%s)", g_variant_get_type_string(rst));
+
+       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);
+
+       pMainMenu->commandId = command_id;
+       pMainMenu->bIsMainMenuPresent = (b_present ? 1 : 0);
+       memcpy(pMainMenu->satMainTitle, title, TAPI_SAT_DEF_TITLE_LEN_MAX+1);
+       pMainMenu->satMainMenuNum = item_cnt;
+       if(items && item_cnt > 0){
+               int index = 0;
+               GVariant *unbox;
+               GVariantIter *iter;
+
+               gchar *item_str;
+               gint item_id;
+               unbox = g_variant_get_variant(items);
+               dbg("items(%p) items type_format(%s)", items, g_variant_get_type_string(unbox));
+
+               g_variant_get(unbox, "a(si)", &iter);
+               while(g_variant_iter_loop(iter,"(si)",&item_str, &item_id)){
+                       pMainMenu->satMainMenuItem[index].itemId = item_id;
+                       memcpy(pMainMenu->satMainMenuItem[index].itemString, item_str, TAPI_SAT_DEF_ITEM_STR_LEN_MAX + 6);
+                       dbg("item index(%d) id(%d) str(%s)",index, pMainMenu->satMainMenuItem[index].itemId, pMainMenu->satMainMenuItem[index].itemString);
+                       //dbg("item index(%d) id(%d) str(%s)",index, item_id, item_str);
+                       index++;
+               }
+               g_variant_iter_free(iter);
+       }
+       pMainMenu->bIsSatMainMenuHelpInfo = (b_helpinfo ? 1 : 0);
+       pMainMenu->bIsUpdatedSatMainMenu = (b_updated ? 1 : 0);
+
+       dbg("result (%d)", result);
+       dbg("command id (%d)", pMainMenu->commandId);
+       dbg("menu present (%d)", pMainMenu->bIsMainMenuPresent);
+       dbg("menu title (%s)", pMainMenu->satMainTitle);
+       dbg("item cnt (%d)", pMainMenu->satMainMenuNum);
+       dbg("menu help info (%d)", pMainMenu->bIsSatMainMenuHelpInfo);
+       dbg("menu updated (%d)", pMainMenu->bIsUpdatedSatMainMenu);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * API to send UI display status.
+ *
+ * @return             values in enum TapiResult_t.
+ * @param[in]          TelSatUiDisplayStatusType_t     display status data.
+ command_id    command identifier
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer              TelSatUiDisplayStatusType_t
+ */
+EXPORT_API int tel_send_sat_ui_display_status(TapiHandle *handle, int commandId, TelSatUiDisplayStatusType_t status)
+{
+       GError *error;
+       GVariant *rst = NULL;
+
+       gint result, command_id;
+       gboolean display_status;
+       GVariant *inparam = NULL;
+
+       dbg("Func Entrance ");
+
+       if (!handle || !handle->dbus_connection){
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       command_id = commandId;
+       display_status = ( (status == TAPI_SAT_DISPLAY_SUCCESS) ? TRUE : FALSE);
+       dbg("command id(%d) display status(%d)", command_id, display_status);
+       inparam = g_variant_new("(ib)", command_id, display_status);
+
+       error = NULL;
+       rst = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE , handle->path,
+                       DBUS_TELEPHONY_SAT_INTERFACE, "SendUiDisplayStatus", inparam, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
+
+       if(!rst){
+               dbg( "error to send ui display status(%s)", error->message);
+               g_error_free (error);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       dbg("send ui display status format(%s)", g_variant_get_type_string(rst));
+
+       g_variant_get(rst, "(i)", &result);
+       dbg("result (%d)", result);
+
+       return result;
+}
+
+/**
+ *
+ * API to send UI user confirmation data.
+ *
+ * @return             values in enum TapiResult_t.
+ * @param[in]          command_id      command identifier
+ command_type          command type
+ key_type                      user confirmation value
+ addtional_data                addtional data
+ data_len                      data length
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer
+ */
+EXPORT_API int tel_send_sat_ui_user_confirm(TapiHandle *handle, TelSatUiUserConfirmInfo_t *pUserConfirmData)
+{
+       GError *error;
+       GVariant *rst = NULL;
+       GVariantBuilder *builder = NULL;
+       GVariant *inner_gv = NULL;
+
+       int index = 0;
+       gchar *data;
+       gint result, command_id, command_type, key_type, data_len;
+       GVariant *inparam = NULL;
+
+       dbg("Func Entrance ");
+
+       if (!handle || !handle->dbus_connection || !pUserConfirmData){
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       command_id = pUserConfirmData->commandId;
+       command_type = pUserConfirmData->commandType;
+       key_type = pUserConfirmData->keyType;
+       data = (gchar *)pUserConfirmData->pAdditionalData;
+       data_len = pUserConfirmData->dataLen;
+
+       builder = g_variant_builder_new(G_VARIANT_TYPE ("ay"));
+       for (index = 0; index < data_len; index++) {
+               dbg("index(%d) data(%d)", index, data[index]);
+               g_variant_builder_add(builder, "y", data[index]);
+       }
+       inner_gv = g_variant_builder_end(builder);
+
+       dbg("command id(%d) command type(%d) key type(%d) data len(%d)",
+                       command_id, command_type, key_type, data_len);
+       inparam = g_variant_new("(iiiv)", command_id, command_type, key_type, inner_gv);
+
+       error = NULL;
+       rst = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE , handle->path,
+                       DBUS_TELEPHONY_SAT_INTERFACE, "SendUserConfirm", inparam, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
+
+       if(!rst){
+               dbg( "error to send ui user confirm(%s)", error->message);
+               g_error_free (error);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       dbg("send ui user confirm format(%s)", g_variant_get_type_string(rst));
+
+       g_variant_get(rst, "(i)", &result);
+       dbg("result (%d)", result);
+
+       return result;
+}
+
+/**
+ *
+ * API to send application excution result.
+ *
+ * @return             values in enum TapiResult_t.
+ * @param[in]          TelSatAppsRetInfo_t     application result information data.
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer              TelSatAppsRetInfo_t
+ */
+EXPORT_API int tel_send_sat_app_exec_result(TapiHandle *handle, TelSatAppsRetInfo_t *pAppRetInfo)
+{
+       GError *error;
+       GVariant *rst = NULL;
+
+       gint result, command_id, command_type;
+       GVariant *app_exec_result = NULL;
+       GVariant *inparam = NULL;
+
+       dbg("Func Entrance ");
+
+       if (!handle || !handle->dbus_connection || !pAppRetInfo){
+               dbg("invalid parameter");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       command_id = pAppRetInfo->commandId;
+       command_type = pAppRetInfo->commandType;
+       app_exec_result = _tapi_sat_gen_app_exec_result_data(pAppRetInfo);
+
+       dbg("command id(%d) command type(%d) exec_result(%s)", command_id, command_type, g_variant_get_type_string(app_exec_result));
+       inparam = g_variant_new("(iiv)", command_id, command_type, app_exec_result);
+
+       error = NULL;
+       dbg("test (%s)", g_variant_get_type_string(inparam));
+       rst = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE , handle->path,
+                       DBUS_TELEPHONY_SAT_INTERFACE, "SendAppExecResult", inparam, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
+
+       if(!rst){
+               dbg( "error to send app execution result(%s)", error->message);
+               g_error_free (error);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       dbg("send app execution result format(%s)", g_variant_get_type_string(rst));
+
+       g_variant_get(rst, "(i)", &result);
+       dbg("result (%d)", result);
+
+       return result;
+}
diff --git a/src/tapi_sim.c b/src/tapi_sim.c
new file mode 100644 (file)
index 0000000..b9b4a40
--- /dev/null
@@ -0,0 +1,1702 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2012 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 "TelSim.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiSim.h"
+
+static int _tel_check_tapi_state()
+{
+       return 0;
+}
+
+static int _tel_check_sim_state(TapiHandle *handle)
+{
+       GError *gerr = NULL;
+       GVariant *sync_gv = NULL;
+       int api_err = TAPI_API_SUCCESS;
+       TelSimCardStatus_t init_status = 0;
+       int changed = FALSE;
+
+       sync_gv = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+                       handle->path, DBUS_TELEPHONY_SIM_INTERFACE, "GetInitStatus", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, &gerr);
+
+       if (sync_gv) {
+               g_variant_get(sync_gv, "(ib)", &init_status, &changed);
+               dbg("init_status[%d]",init_status);
+
+               switch(init_status){
+                       case TAPI_SIM_STATUS_CARD_NOT_PRESENT :
+                       case TAPI_SIM_STATUS_CARD_REMOVED :
+                               api_err = TAPI_API_SIM_NOT_FOUND;
+                               break;
+                       case TAPI_SIM_STATUS_CARD_BLOCKED :
+                       case TAPI_SIM_STATUS_CARD_ERROR :
+                               api_err = TAPI_API_SIM_CARD_ERROR;
+                               break;
+                       case TAPI_SIM_STATUS_SIM_INITIALIZING :
+                               api_err = TAPI_API_SIM_NOT_INITIALIZED;
+                               break;
+                       case TAPI_SIM_STATUS_SIM_INIT_COMPLETED :
+                               api_err = TAPI_API_SUCCESS;
+                               break;
+                       case TAPI_SIM_STATUS_SIM_PIN_REQUIRED :
+                       case TAPI_SIM_STATUS_SIM_PUK_REQUIRED :
+                       case TAPI_SIM_STATUS_SIM_NCK_REQUIRED :
+                       case TAPI_SIM_STATUS_SIM_NSCK_REQUIRED :
+                       case TAPI_SIM_STATUS_SIM_SPCK_REQUIRED :
+                       case TAPI_SIM_STATUS_SIM_CCK_REQUIRED :
+                       case TAPI_SIM_STATUS_SIM_LOCK_REQUIRED :
+                               api_err = TAPI_API_SIM_LOCKED;
+                               break;
+                       case TAPI_SIM_STATUS_UNKNOWN:
+                               api_err = TAPI_API_SERVICE_NOT_READY;
+                               break;
+                       default:
+                               dbg("not handled status[%d] in here",init_status);
+                               break;
+               }
+       } else {
+               dbg( "g_dbus_conn failed in _tel_check_sim_state. error (%s)", gerr->message);
+               g_error_free(gerr);
+               return TAPI_API_OPERATION_FAILED;
+       }
+       dbg("api_err[%d]", api_err);
+       return api_err;
+}
+
+static void on_response_get_sim_iccid(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 = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimIccIdInfo_t iccid_info;
+       gchar *iccid = NULL;
+
+       dbg("Func Entrance");
+       memset(&iccid_info, 0, sizeof(TelSimIccIdInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(is)", &result, &iccid);
+       iccid_info.icc_length = strlen(iccid);
+       if(iccid_info.icc_length > TAPI_SIM_ICCID_LEN_MAX){
+               dbg("current tapi support 20 byte but received length[%d] so changed");
+               iccid_info.icc_length = TAPI_SIM_ICCID_LEN_MAX;
+       }
+       memcpy(iccid_info.icc_num, iccid, iccid_info.icc_length);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &iccid_info, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_language(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;
+       TelSimLanguagePreferenceCode_t lang = TAPI_SIM_LP_LANG_UNSPECIFIED;
+       TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
+
+       dbg("Func Entrance");
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(ii)", &result, &lang);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &lang, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_set_sim_language(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 = TAPI_SIM_ACCESS_SUCCESS;
+
+       dbg("Func Entrance");
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+}
+
+static void on_response_get_sim_callforwarding_info(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 = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimCallForwardingInfo_t cf;
+
+       memset(&cf, 0, sizeof(TelSimCallForwardingInfo_t));
+
+       dbg("Func Entrance");
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(ibb)", &result, &cf.line1, &cf.line2);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &cf, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_messagewaiting_info(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 = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimMessageWaitingInfo_t msg;
+
+       dbg("Func Entrance");
+       memset(&msg, 0, sizeof(TelSimMessageWaitingInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iiiii)", &result, &msg.line1, &msg.line2, &msg.fax, &msg.video);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &msg, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_mailbox_info(GObject *source_object, GAsyncResult *res,
+               gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       GVariant *value = NULL;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+       const gchar *str_value = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimMailboxList_t list;
+       int i = 0;
+
+       dbg("Func Entrance");
+       memset(&list, 0, sizeof(TelSimMailboxList_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iaa{sv})", &result, &iter);
+       list.count = g_variant_iter_n_children(iter);
+
+       i = 0;
+       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")) {
+                               list.list[i].type = g_variant_get_int32(value);
+                       }
+                       if (!g_strcmp0(key, "name")) {
+                               str_value = g_variant_get_string(value, NULL);
+                               snprintf(list.list[i].name, strlen(str_value) + 1, "%s", str_value);
+                       }
+                       if (!g_strcmp0(key, "number")) {
+                               str_value = g_variant_get_string(value, NULL);
+                               snprintf(list.list[i].number, strlen(str_value) + 1, "%s", str_value);
+                       }
+                       if (!g_strcmp0(key, "ton")) {
+                               list.list[i].ton = g_variant_get_int32(value);
+                       }
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+}
+
+static void on_response_get_sim_cphs_info(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 = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimCphsInfo_t cphs;
+
+       dbg("Func Entrance");
+       memset(&cphs, 0, sizeof(TelSimCphsInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iibbbbb)", &result, &cphs.CphsPhase,
+                       &cphs.CphsServiceTable.bOperatorNameShortForm, &cphs.CphsServiceTable.bMailBoxNumbers,
+                       &cphs.CphsServiceTable.bServiceStringTable,
+                       &cphs.CphsServiceTable.bCustomerServiceProfile,
+                       &cphs.CphsServiceTable.bInformationNumbers);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &cphs, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_msisdn(GObject *source_object, GAsyncResult *res,
+               gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       GVariant *value = NULL;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+       const gchar *str_value = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimMsisdnList_t list;
+       int i = 0;
+
+       dbg("Func Entrance");
+       memset(&list, 0, sizeof(TelSimMsisdnList_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iaa{sv})", &result, &iter);
+       list.count = g_variant_iter_n_children(iter);
+
+       /*this can be changed regarding concept*/
+       if(list.count > 3){
+               dbg("current list.count[%d] but we fixed maximum with 3", list.count);
+               list.count = 3;
+       }
+       /*this can be changed regarding concept*/
+
+       i = 0;
+       while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+               while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+                       if (!g_strcmp0(key, "name")) {
+                               str_value = g_variant_get_string(value, NULL);
+                               snprintf(list.list[i].name, strlen(str_value) + 1, "%s", str_value);
+                       }
+                       if (!g_strcmp0(key, "number")) {
+                               str_value = g_variant_get_string(value, NULL);
+                               snprintf(list.list[i].num, strlen(str_value) + 1, "%s", str_value);
+                       }
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+               /*this can be changed regarding concept*/
+               if (i == 3)
+                       break;
+               /*this can be changed regarding concept*/
+       }
+       g_variant_iter_free(iter);
+
+       dbg("msisdn count[%d]", list.count);
+       for(i =0; i < list.count; i++){
+               dbg("msisdn[%d]-name[%s]number[%s]",i,list.list[i].name, list.list[i].num);
+       }
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &list, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_oplmnwact(GObject *source_object, GAsyncResult *res,
+               gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+       GVariant *value = NULL;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+       const gchar *str_value = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimOplmnwactList_t list;
+       int i = 0;
+
+       dbg("Func Entrance");
+       memset(&list, 0, sizeof(TelSimOplmnwactList_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iaa{sv})", &result, &iter);
+       list.count = g_variant_iter_n_children(iter);
+
+       i = 0;
+       while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+               while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+                       if (!g_strcmp0(key, "plmn")) {
+                               str_value = g_variant_get_string(value, NULL);
+                               snprintf(list.list[i].plmn, strlen(str_value) + 1, "%s", str_value);
+                       }
+                       if (!g_strcmp0(key, "b_umst")) {
+                               list.list[i].b_umts = g_variant_get_boolean(value);
+                       }
+                       if (!g_strcmp0(key, "b_gsm")) {
+                               list.list[i].b_gsm = g_variant_get_boolean(value);
+                       }
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+}
+
+static void on_response_get_sim_spn(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 = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimSpn_t spn_info;
+       gchar *spn = NULL;
+       guchar dc = 0;
+
+       memset(&spn_info, 0, sizeof(TelSimSpn_t));
+
+       dbg("Func Entrance");
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iys)", &result, &dc, &spn);
+
+       dbg("result[%d]", result);
+       if ( result == TAPI_SIM_ACCESS_SUCCESS) {
+               dbg("spn[%s], display condition[0x%x]", spn, dc);
+               spn_info.display_condition = dc;
+               snprintf((char *)spn_info.spn, strlen(spn)+1, "%s", spn);
+       }
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &spn_info, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_cphs_netname(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 = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimCphsNetName_t cphs_net;
+       gchar *full_name = NULL;
+       gchar *short_name = NULL;
+
+       memset(&cphs_net, 0, sizeof(TelSimCphsNetName_t));
+
+       dbg("Func Entrance");
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iss)", &result, &full_name, &short_name);
+
+       dbg("result[%d]", result);
+       if ( result == TAPI_SIM_ACCESS_SUCCESS) {
+               dbg("full name[%s], short name[%s]", full_name, short_name);
+               snprintf((char *)cphs_net.full_name, strlen(full_name)+1, "%s", full_name);
+               snprintf((char *)cphs_net.short_name, strlen(short_name)+1, "%s", short_name);
+       }
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &cphs_net, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_req_sim_authentication(GObject *source_object, GAsyncResult *res,
+               gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+
+       GVariantIter *iter = NULL;
+       GVariant *ak_gv = NULL;
+       GVariant *cp_gv = NULL;
+       GVariant *it_gv = NULL;
+       GVariant *resp_gv = NULL;
+       GVariant *ak = NULL;
+       GVariant *cp = NULL;
+       GVariant *it = NULL;
+       GVariant *resp = NULL;
+       guchar rt_i;
+       int i = 0;
+
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimAuthenticationResponse_t auth_resp;
+
+       dbg("Func Entrance");
+       memset(&auth_resp, 0, sizeof(TelSimAuthenticationResponse_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if (dbus_result) {
+               dbg("dbus_result type_format(%s)", g_variant_get_type_string(dbus_result));
+               g_variant_get(dbus_result, "(iii@v@v@v@v)",
+                               &result, &auth_resp.auth_type, &auth_resp.auth_result,
+                               &ak_gv, &cp_gv, &it_gv, &resp_gv);
+
+               ak = g_variant_get_variant(ak_gv);
+               g_variant_get(ak, "ay", &iter);
+               while (g_variant_iter_loop(iter, "y", &rt_i)) {
+                       auth_resp.authentication_key[i] = rt_i;
+                       dbg("auth_resp.authentication_key[%d]=[0x%2x]", i, auth_resp.authentication_key);
+                       i++;
+               }
+               auth_resp.authentication_key_length = i;
+               g_variant_iter_free(iter);
+               i = 0;
+
+               cp = g_variant_get_variant(cp_gv);
+               g_variant_get(cp, "ay", &iter);
+               while (g_variant_iter_loop(iter, "y", &rt_i)) {
+                       auth_resp.cipher_data[i] = rt_i;
+                       dbg("auth_resp.cipher_data[%d]=[0x%2x]", i, auth_resp.cipher_data);
+                       i++;
+               }
+               auth_resp.cipher_length = i;
+               g_variant_iter_free(iter);
+               i = 0;
+
+               it = g_variant_get_variant(it_gv);
+               g_variant_get(it, "ay", &iter);
+               while (g_variant_iter_loop(iter, "y", &rt_i)) {
+                       auth_resp.integrity_data[i] = rt_i;
+                       dbg("auth_resp.integrity_data[%d]=[0x%2x]", i, auth_resp.integrity_data);
+                       i++;
+               }
+               auth_resp.integrity_length = i;
+               g_variant_iter_free(iter);
+               i = 0;
+
+               resp = g_variant_get_variant(resp_gv);
+               g_variant_get(resp, "ay", &iter);
+               while (g_variant_iter_loop(iter, "y", &rt_i)) {
+                       auth_resp.resp_data[i] = rt_i;
+                       dbg("auth_resp.resp_data[%d]=[0x%2x]", i, auth_resp.resp_data);
+                       i++;
+               }
+               auth_resp.resp_length = i;
+               g_variant_iter_free(iter);
+               i = 0;
+       }
+       else {
+               result = TAPI_SIM_ACCESS_FAILED;
+               dbg( "g_dbus_conn failed. error (%s)", error->message);
+               g_error_free(error);
+       }
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &auth_resp, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_verify_sim_pins(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;
+       TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
+       TelSimSecResult_t sec_rt;
+
+       dbg("Func Entrance");
+       memset(&sec_rt, 0, sizeof(TelSimSecResult_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iii)", &result, &sec_rt.type, &sec_rt.retry_count);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &sec_rt, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_verify_sim_puks(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;
+       TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
+       TelSimSecResult_t sec_rt;
+
+       dbg("Func Entrance");
+       memset(&sec_rt, 0, sizeof(TelSimSecResult_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iii)", &result, &sec_rt.type, &sec_rt.retry_count);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &sec_rt, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_change_sim_pins(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;
+       TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
+       TelSimSecResult_t sec_rt;
+
+       dbg("Func Entrance");
+       memset(&sec_rt, 0, sizeof(TelSimSecResult_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iii)", &result, &sec_rt.type, &sec_rt.retry_count);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &sec_rt, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_disable_sim_facility(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;
+       TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
+       TelSimFacilityResult_t f_rt;
+
+       dbg("Func Entrance");
+       memset(&f_rt, 0, sizeof(TelSimFacilityResult_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iii)", &result, &f_rt.type, &f_rt.retry_count);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &f_rt, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_enable_sim_facility(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;
+       TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
+       TelSimFacilityResult_t f_rt;
+
+       dbg("Func Entrance");
+       memset(&f_rt, 0, sizeof(TelSimFacilityResult_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iii)", &result, &f_rt.type, &f_rt.retry_count);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &f_rt, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_facility(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;
+       TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
+       TelSimFacilityInfo_t fi;
+
+       dbg("Func Entrance");
+       memset(&fi, 0, sizeof(TelSimFacilityInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iii)", &result, &fi.type, &fi.f_status);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &fi, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_sim_lock_info(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;
+       TelSimPinOperationResult_t result = TAPI_SIM_PIN_OPERATION_SUCCESS;
+       TelSimLockInfo_t lock;
+
+       dbg("Func Entrance");
+       memset(&lock, 0, sizeof(TelSimLockInfo_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get(dbus_result, "(iiii)", &result, &lock.lock_type, &lock.lock_status,
+                       &lock.retry_count);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &lock, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_req_sim_apdu(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+
+       GVariantIter *iter = NULL;
+       GVariant *param_gv = NULL;
+       GVariant *inner_gv = NULL;
+       guchar rt_i;
+       int i = 0;
+
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimApduResp_t r_apdu;
+
+       dbg("Func Entrance");
+       memset(&r_apdu, 0, sizeof(TelSimApduResp_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if (dbus_result) {
+               /*      dbg("dbus_result type_format(%s)", g_variant_get_type_string(dbus_result));*/
+               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", &rt_i)) {
+                       r_apdu.apdu_resp[i] = rt_i;
+                       i++;
+               }
+               r_apdu.apdu_resp_len = (unsigned char) i;
+               g_variant_iter_free(iter);
+               g_variant_unref(inner_gv);
+               g_variant_unref(param_gv);
+               /*              for(i=0; i < (int)r_apdu.apdu_resp_len; i++)
+                dbg("apdu[%d][0x%02x]",i, r_apdu.apdu_resp[i]);*/
+       }
+       else {
+               result = TAPI_SIM_ACCESS_FAILED;
+               dbg( "g_dbus_conn failed. error (%s)", error->message);
+               g_error_free(error);
+       }
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &r_apdu, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_req_sim_atr(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       GVariant *dbus_result;
+
+       GVariantIter *iter = NULL;
+       GVariant *param_gv = NULL;
+       GVariant *inner_gv = NULL;
+       guchar rt_i;
+       int i = 0;
+
+       struct tapi_resp_data *evt_cb_data = user_data;
+       TelSimAccessResult_t result = TAPI_SIM_ACCESS_SUCCESS;
+       TelSimAtrResp_t r_atr;
+
+       dbg("Func Entrance");
+       memset(&r_atr, 0, sizeof(TelSimAtrResp_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if (dbus_result) {
+               /*      dbg("dbus_result type_format(%s)", g_variant_get_type_string(dbus_result));*/
+               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", &rt_i)) {
+                       r_atr.atr_resp[i] = rt_i;
+                       i++;
+               }
+               r_atr.atr_resp_len = (unsigned char) i;
+               g_variant_iter_free(iter);
+               g_variant_unref(inner_gv);
+               g_variant_unref(param_gv);
+               /*              for(i=0; i < (int)r_atr.atr_resp_len; i++)
+                dbg("r_atr[%d][0x%02x]",i, r_atr.atr_resp[i]);*/
+       }
+       else {
+               result = TAPI_SIM_ACCESS_FAILED;
+       }
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &r_atr, evt_cb_data->user_data);
+       }
+}
+
+EXPORT_API int tel_get_sim_init_info(TapiHandle *handle, TelSimCardStatus_t *sim_status,
+               int *card_changed)
+{
+       GError *gerr = NULL;
+       GVariant *sync_gv = NULL;
+       int api_err = TAPI_API_SUCCESS;
+       TelSimCardStatus_t init_status = 0;
+       int changed = FALSE;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(sim_status, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(card_changed, TAPI_API_INVALID_PTR);
+
+       sync_gv = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+                       handle->path, DBUS_TELEPHONY_SIM_INTERFACE, "GetInitStatus", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, &gerr);
+
+       if (sync_gv) {
+               g_variant_get(sync_gv, "(ib)", &init_status, &changed);
+               *sim_status = init_status;
+               *card_changed = changed;
+               dbg("init_status[%d]",init_status); dbg("changed[%d]",changed);
+       } else {
+               dbg( "g_dbus_conn failed. error (%s)", gerr->message);
+               g_error_free(gerr);
+               return TAPI_API_OPERATION_FAILED;
+       }
+       return api_err;
+}
+
+EXPORT_API int tel_get_sim_type(TapiHandle *handle, TelSimCardType_t *card_type)
+{
+       GError *gerr = NULL;
+       GVariant *sync_gv = NULL;
+       int sim_ret =0;
+
+       dbg("Func Entrance");
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(card_type, TAPI_API_INVALID_PTR);
+
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       sim_ret = _tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       sync_gv = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+                       handle->path, DBUS_TELEPHONY_SIM_INTERFACE, "GetCardType", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, &gerr);
+
+       if (sync_gv) {
+               g_variant_get(sync_gv, "(i)", card_type);
+       } else {
+               dbg( "g_dbus_conn failed. error (%s)", gerr->message);
+               g_error_free(gerr);
+               return TAPI_API_OPERATION_FAILED;
+       }
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_imsi(TapiHandle *handle, TelSimImsiInfo_t *imsi)
+{
+       GError *gerr = NULL;
+       GVariant *sync_gv = NULL;
+       gchar *gplmn = NULL;
+       gchar *gmsin = NULL;
+       int sim_ret = 0;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       TAPI_RETURN_VAL_IF_FAIL(imsi, TAPI_API_INVALID_PTR);
+
+       sync_gv = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+                       handle->path, DBUS_TELEPHONY_SIM_INTERFACE, "GetIMSI", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, &gerr);
+
+       if (sync_gv) {
+               dbg("imsi type_format(%s)", g_variant_get_type_string(sync_gv));
+               g_variant_get(sync_gv, "(ss)", &gplmn, &gmsin);
+
+               dbg("gplmn[%s],gmsin[%s]",gplmn,gmsin);
+               snprintf(imsi->szMcc, 3 + 1, "%s", gplmn);
+               snprintf(imsi->szMnc, strlen(gplmn) - 3 + 1, "%s", &gplmn[3]);
+               snprintf(imsi->szMsin, strlen(gmsin) + 1, "%s", gmsin);
+
+               dbg("imsi->szMcc[%s]", imsi->szMnc);
+               dbg("imsi->szMnc[%s]", imsi->szMnc);
+               dbg("imsi->szMcc[%s]", imsi->szMcc);
+       } else {
+               dbg( "g_dbus_conn failed. error (%s)", gerr->message);
+               g_error_free(gerr);
+               return TAPI_API_OPERATION_FAILED;
+       }
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_ecc(TapiHandle *handle, TelSimEccList_t *ecc)
+{
+       GError *gerr = NULL;
+       GVariant *sync_gv;
+       GVariant *value = NULL;
+       GVariantIter *iter = NULL;
+       GVariantIter *iter_row = NULL;
+       const gchar *key = NULL;
+       const gchar *str_value = NULL;
+       int i = 0;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       memset(ecc, 0, sizeof(TelSimEccList_t));
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(ecc, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       sync_gv = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE,
+                       handle->path, DBUS_TELEPHONY_SIM_INTERFACE, "GetECC", NULL, NULL,
+                       G_DBUS_CALL_FLAGS_NONE, -1, NULL, &gerr);
+
+       if (sync_gv) {
+/*             dbg("ecc type_format(%s)", g_variant_get_type_string(sync_gv));*/
+               g_variant_get(sync_gv, "(aa{sv})", &iter);
+               ecc->ecc_count = g_variant_iter_n_children(iter);
+               dbg("ecc->ecc_count[%d]",ecc->ecc_count);
+               i = 0;
+               while (g_variant_iter_next(iter, "a{sv}", &iter_row)) {
+                       while (g_variant_iter_loop(iter_row, "{sv}", &key, &value)) {
+                               if (!g_strcmp0(key, "name")) {
+                                       str_value = g_variant_get_string(value, NULL);
+                                       snprintf(ecc->list[i].name, strlen(str_value) + 1, "%s", str_value);
+                               }
+                               if (!g_strcmp0(key, "number")) {
+                                       str_value = g_variant_get_string(value, NULL);
+                                       snprintf(ecc->list[i].number, strlen(str_value) + 1, "%s", str_value);
+                               }
+                               if (!g_strcmp0(key, "category")) {
+                                       ecc->list[i].category = g_variant_get_int32(value);
+                               }
+                       }
+                       i++;
+                       g_variant_iter_free(iter_row);
+               }
+               g_variant_iter_free(iter);
+       } else {
+               dbg( "g_dbus_conn failed. error (%s)", gerr->message);
+               g_error_free(gerr);
+               return TAPI_API_OPERATION_FAILED;
+       }
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_iccid(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       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, -1, NULL,
+                       on_response_get_sim_iccid, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_language(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       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, -1,
+                       NULL, on_response_get_sim_language, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_set_sim_language(TapiHandle *handle, TelSimLanguagePreferenceCode_t language,
+               tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance w/ lang[%d]",language);
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", language);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "SetLanguage", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_set_sim_language, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_callforwarding_info(TapiHandle *handle, tapi_response_cb callback,
+               void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       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,
+                       -1, NULL, on_response_get_sim_callforwarding_info, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_messagewaiting_info(TapiHandle *handle, tapi_response_cb callback,
+               void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       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,
+                       -1, NULL, on_response_get_sim_messagewaiting_info, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_mailbox_info(TapiHandle *handle, tapi_response_cb callback,
+               void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       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, -1,
+                       NULL, on_response_get_sim_mailbox_info, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_cphs_info(TapiHandle *handle, tapi_response_cb callback,
+               void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       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, -1, NULL,
+                       on_response_get_sim_cphs_info, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_msisdn(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;;
+
+       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, -1, NULL,
+                       on_response_get_sim_msisdn, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_oplmnwact(TapiHandle *handle, tapi_response_cb callback,
+               void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       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, -1,
+                       NULL, on_response_get_sim_oplmnwact, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_spn(TapiHandle *handle, tapi_response_cb callback,
+               void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       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, -1,
+                       NULL, on_response_get_sim_spn, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_cphs_netname(TapiHandle *handle, tapi_response_cb callback,
+               void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       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, -1,
+                       NULL, on_response_get_sim_cphs_netname, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_req_sim_authentication(TapiHandle *handle,
+               TelSimAuthenticationData_t *authentication_data, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariantBuilder *builder = NULL;
+       GVariant *param = NULL;
+       GVariant *rand_gv = NULL;
+       GVariant *autn_gv = NULL;
+       int i =0;
+       int sim_ret = 0;
+
+       dbg("Func Entrance ");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       TAPI_RETURN_VAL_IF_FAIL(authentication_data, TAPI_API_INVALID_PTR);
+
+       if (authentication_data->auth_type > TAPI_SIM_AUTH_TYPE_3G)
+               return TAPI_API_INVALID_INPUT;
+
+       if (authentication_data->rand_length == 0)
+               return TAPI_API_INVALID_INPUT;
+
+       if (authentication_data->auth_type != TAPI_SIM_AUTH_TYPE_GSM
+                       && authentication_data->autn_length == 0)
+               return TAPI_API_INVALID_INPUT;
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       builder = g_variant_builder_new(G_VARIANT_TYPE ("ay"));
+       for (i = 0; i < authentication_data->rand_length; i++) {
+               dbg("authentication_data->rand_data[%d][0x%02x]", i,authentication_data->rand_data[i]);
+               g_variant_builder_add(builder, "y", authentication_data->rand_data[i]);
+       }
+       rand_gv = g_variant_builder_end(builder);
+
+       builder = g_variant_builder_new(G_VARIANT_TYPE ("ay"));
+               for (i = 0; i < authentication_data->autn_length; i++) {
+                       dbg("authentication_data->autn_data[%d][0x%02x]", i,authentication_data->autn_data[i]);
+                       g_variant_builder_add(builder, "y", authentication_data->autn_data[i]);
+               }
+       autn_gv = g_variant_builder_end(builder);
+
+       param = g_variant_new("(ivv)", authentication_data->auth_type, rand_gv, autn_gv);
+       /*g_variant_builder_unref (builder);*/
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "Authentication", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_req_sim_authentication, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_verifiy_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;
+       gchar *gpw = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       TAPI_RETURN_VAL_IF_FAIL(pin_data, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(pin_data->pw, TAPI_API_INVALID_PTR);
+
+       dbg("pin type[%d]", pin_data->type);
+       if (pin_data->type != TAPI_SIM_PTYPE_PIN1 && pin_data->type != TAPI_SIM_PTYPE_PIN2
+                       && pin_data->type != TAPI_SIM_PTYPE_SIM)
+               return TAPI_API_INVALID_INPUT;
+
+       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);
+
+       gpw = calloc(pin_data->pw_len+1, 1);
+       memcpy((void*)gpw, (const void*)pin_data->pw, pin_data->pw_len);
+
+       param = g_variant_new("(is)", pin_data->type, gpw);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "VerifySec", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_verify_sim_pins, evt_cb_data);
+
+       free(gpw);
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API 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)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       gchar *gpin = NULL;
+       gchar *gpuk = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       TAPI_RETURN_VAL_IF_FAIL((puk_data != NULL && new_pin_data != NULL), TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL((puk_data->pw != NULL && new_pin_data->pw != NULL),     TAPI_API_INVALID_PTR);
+
+       dbg("puk type[%d] pin type[%d]", puk_data->type, new_pin_data->type);
+       if ((puk_data->type != TAPI_SIM_PTYPE_PUK1 && puk_data->type != TAPI_SIM_PTYPE_PUK2)
+                       || (new_pin_data->type != TAPI_SIM_PTYPE_PIN1 && new_pin_data->type != TAPI_SIM_PTYPE_PIN2))
+               return TAPI_API_INVALID_INPUT;
+
+       if ((puk_data->type != TAPI_SIM_PTYPE_PUK1 || new_pin_data->type != TAPI_SIM_PTYPE_PIN1)
+                       && (puk_data->type != TAPI_SIM_PTYPE_PUK2 || new_pin_data->type != TAPI_SIM_PTYPE_PIN2))
+               return TAPI_API_INVALID_INPUT;
+
+       if ((puk_data->pw_len < 4) || (puk_data->pw_len > 8) || (new_pin_data->pw_len < 4)
+                       || (new_pin_data->pw_len > 8))
+               return TAPI_API_INVALID_INPUT;
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       gpin = calloc(new_pin_data->pw_len+1, 1);
+       gpuk = calloc(puk_data->pw_len+1, 1);
+       memcpy((void*)gpin, (const void*)new_pin_data->pw, new_pin_data->pw_len);
+       memcpy((void*)gpuk, (const void*)puk_data->pw, puk_data->pw_len);
+
+       param = g_variant_new("(iss)", puk_data->type, gpuk, gpin);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "VerifyPUK", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_verify_sim_puks, evt_cb_data);
+
+       free(gpin);
+       free(gpuk);
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_change_sim_pins(TapiHandle *handle, const TelSimSecPw_t *old_pin,
+               const TelSimSecPw_t *new_pin, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       gchar *gpin_o = NULL;
+       gchar *gpin_n = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       TAPI_RETURN_VAL_IF_FAIL((old_pin != NULL && new_pin != NULL), TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL((old_pin->pw != NULL && new_pin->pw != NULL), TAPI_API_INVALID_PTR);
+
+       dbg("old_pin type[%d],new_pin type[%d]", old_pin->type, new_pin->type);
+       if ((old_pin->type != TAPI_SIM_PTYPE_PIN1) && (old_pin->type != TAPI_SIM_PTYPE_PIN2)
+                       && (new_pin->type != TAPI_SIM_PTYPE_PIN1) && (new_pin->type != TAPI_SIM_PTYPE_PIN2))
+               return TAPI_API_INVALID_INPUT;
+
+       if (old_pin->type != new_pin->type)
+               return TAPI_API_INVALID_INPUT;
+
+       if ((old_pin->pw_len < 4) || (old_pin->pw_len > 8))
+               return TAPI_API_INVALID_INPUT;
+
+       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);
+
+       gpin_o = calloc(old_pin->pw_len+1, 1);
+       gpin_n = calloc(new_pin->pw_len+1, 1);
+       memcpy((void*)gpin_o, (const void*)old_pin->pw, old_pin->pw_len);
+       memcpy((void*)gpin_n, (const void*)new_pin->pw, new_pin->pw_len);
+
+       param = g_variant_new("(iss)", old_pin->type, old_pin->pw, new_pin->pw);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "ChangePIN", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_change_sim_pins, evt_cb_data);
+
+       free(gpin_o);
+       free(gpin_n);
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_disable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw,
+               tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       gchar *gpw = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       TAPI_RETURN_VAL_IF_FAIL(pw, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(pw->pw, TAPI_API_INVALID_PTR);
+
+       dbg("facility type[%d]", pw->lock_type);
+       if(pw->lock_type < TAPI_SIM_LOCK_PS || pw->lock_type >TAPI_SIM_LOCK_PC)
+               return TAPI_API_INVALID_INPUT;
+       if ((pw->lock_type < TAPI_SIM_LOCK_PN) && ((pw->pw_len < 4) || (pw->pw_len > 8)) )
+               return TAPI_API_INVALID_INPUT;
+       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);
+
+       gpw = calloc(pw->pw_len+1, 1);
+       memcpy((void*)gpw, (const void*)pw->pw, pw->pw_len);
+
+       param = g_variant_new("(is)", pw->lock_type, gpw);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "DisableFacility", param, NULL, G_DBUS_CALL_FLAGS_NONE,
+                       -1, NULL, on_response_disable_sim_facility, evt_cb_data);
+
+       free(gpw);
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_enable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw,
+               tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       gchar *gpw = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       TAPI_RETURN_VAL_IF_FAIL(pw, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(pw->pw, TAPI_API_INVALID_PTR);
+
+       dbg("facility type[%d]", pw->lock_type);
+       if(pw->lock_type < TAPI_SIM_LOCK_PS || pw->lock_type >TAPI_SIM_LOCK_PC)
+               return TAPI_API_INVALID_INPUT;
+       if ((pw->lock_type < TAPI_SIM_LOCK_PN) && ((pw->pw_len < 4) || (pw->pw_len > 8)) )
+               return TAPI_API_INVALID_INPUT;
+       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);
+
+       gpw = calloc(pw->pw_len+1, 1);
+       memcpy((void*)gpw, (const void*)pw->pw, pw->pw_len);
+
+       param = g_variant_new("(is)", pw->lock_type, gpw);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "EnableFacility", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_enable_sim_facility, evt_cb_data);
+
+       free(gpw);
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_facility(TapiHandle *handle, TelSimLockType_t type,
+               tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       dbg("facility type[%d]", 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);
+
+       param = g_variant_new("(i)", type);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "GetFacility", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_get_sim_facility, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_get_sim_lock_info(TapiHandle *handle, TelSimLockType_t type,
+               tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret != TAPI_API_SUCCESS)
+               return sim_ret;
+
+       dbg("lock type[%d]", 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);
+
+       param = g_variant_new("(i)", type);
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "GetLockInfo", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_get_sim_lock_info, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_req_sim_apdu(TapiHandle *handle, TelSimApdu_t* apdu_data,
+               tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariantBuilder *builder = NULL;
+       GVariant *param = NULL;
+       GVariant *inner_gv = NULL;
+       int i = 0;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       TAPI_RETURN_VAL_IF_FAIL(apdu_data, TAPI_API_INVALID_PTR);
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       builder = g_variant_builder_new(G_VARIANT_TYPE ("ay"));
+       for (i = 0; i < apdu_data->apdu_len; i++) {
+               dbg("apdu_data->apdu[%d][0x%02x]", i,apdu_data->apdu[i]);
+               g_variant_builder_add(builder, "y", apdu_data->apdu[i]);
+       }
+       inner_gv = g_variant_builder_end(builder);
+       param = g_variant_new("(v)", inner_gv);
+       /*g_variant_builder_unref (builder);*/
+
+       g_dbus_connection_call(handle->dbus_connection, DBUS_TELEPHONY_SERVICE, handle->path,
+                       DBUS_TELEPHONY_SIM_INTERFACE, "TransferAPDU", param, NULL, G_DBUS_CALL_FLAGS_NONE, -1,
+                       NULL, on_response_req_sim_apdu, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+EXPORT_API int tel_req_sim_atr(TapiHandle *handle, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       int sim_ret = 0;
+
+       dbg("Func Entrance");
+       if (_tel_check_tapi_state() != 0)
+               return TAPI_API_SERVICE_NOT_READY;
+
+       TAPI_RETURN_VAL_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+
+       sim_ret =_tel_check_sim_state(handle);
+       if (sim_ret == TAPI_API_SIM_CARD_ERROR || sim_ret == TAPI_API_SIM_NOT_FOUND)
+               return sim_ret;
+
+       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, -1, NULL,
+                       on_response_req_sim_atr, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
diff --git a/src/tapi_sms.c b/src/tapi_sms.c
new file mode 100644 (file)
index 0000000..5922bee
--- /dev/null
@@ -0,0 +1,1399 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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.
+ */
+
+
+/**
+ * @ingroup    TAPI
+ * @defgroup   SMS
+ * @{
+ *
+ * SMS APIs allow a client to accomplish the following features: @n
+ * - Send, Recieve, Save, Delete, Read short messages  @n
+ * - Set and Get information like Service Center Address, Cell Broadcast configuration,Preferred Bearer, SMS parameters @n
+ * - Retrieve information like Current Memory selected, NetTextCount related to the messages @n
+ * - Set delivery report @n
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "tapi_common.h"
+#include "TapiUtility.h"
+#include "TelSms.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiNetText.h"
+
+static void on_response_default(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result = NULL;
+       int data = 0;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_default(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       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->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &data, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_read_msg(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       TelSmsData_t    readMsg = {0,};
+
+       GVariant *dbus_result = NULL;
+       const char *sca = NULL;
+       const char *tpdu = NULL;
+       gsize length;
+       guchar *decoded_sca = NULL;
+       guchar *decoded_tpdu = NULL;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_default(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       dbg("on_response_read_msg type_format(%s)", g_variant_get_type_string(dbus_result));
+
+       readMsg.SimIndex = 0xFFFFFFFF;
+       g_variant_get (dbus_result, "(iisis)", &result,
+                       &readMsg.MsgStatus,
+                       &sca,
+                       &readMsg.SmsData.MsgLength,
+                       &tpdu);
+
+       decoded_sca = g_base64_decode(sca, &length);
+       memcpy(&(readMsg.SmsData.Sca[0]), decoded_sca, TAPI_SIM_SMSP_ADDRESS_LEN);
+
+       decoded_tpdu = g_base64_decode(tpdu, &length);
+       memcpy(&(readMsg.SmsData.szData[0]), decoded_tpdu, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &readMsg, evt_cb_data->user_data);
+       }
+
+       if(decoded_sca)
+               g_free(decoded_sca);
+
+       if(decoded_tpdu)
+               g_free(decoded_tpdu);
+
+}
+
+static void on_response_write_msg(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       int index = 0;
+
+       GVariant *dbus_result = NULL;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_write_msg(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       dbg("on_response_write_msg type_format(%s)", g_variant_get_type_string(dbus_result));
+
+       g_variant_get (dbus_result, "(ii)", &result, &index);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &index, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_delete_msg(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       int index = 0xFFFFFFFF;
+
+       GVariant *dbus_result = NULL;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_delete_msg(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       dbg("on_response_delete_msg type_format(%s)", g_variant_get_type_string(dbus_result));
+
+       g_variant_get (dbus_result, "(i)", &result);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &index, evt_cb_data->user_data);
+       }
+}
+
+static void on_response_get_msg_count(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelSmsStoredMsgCountInfo_t storedMsgCnt = {0,};
+
+       GVariant *dbus_result = NULL;
+       const char *indexList = NULL;
+       gsize length;
+       guchar *decoded_indexList = NULL;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_get_msg_count(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       dbg("on_response_get_msg_count type_format(%s)", g_variant_get_type_string(dbus_result));
+
+       g_variant_get (dbus_result, "(iiis)", &result,
+                                                               &storedMsgCnt.TotalCount,
+                                                               &storedMsgCnt.UsedCount,
+                                                               &indexList);
+
+       decoded_indexList = g_base64_decode(indexList, &length);
+       memcpy(&(storedMsgCnt.IndexList[0]), decoded_indexList, TAPI_NETTEXT_GSM_SMS_MSG_NUM_MAX);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &storedMsgCnt, evt_cb_data->user_data);
+       }
+
+       if(decoded_indexList)
+               g_free(decoded_indexList);
+
+}
+
+static void on_response_get_sca(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelSmsAddressInfo_t scaInfo = {0,};
+
+       GVariant *dbus_result = NULL;
+       const char *sca = NULL;
+       gsize length;
+       guchar *decoded_sca = NULL;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_get_sca(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       dbg("on_response_get_sca type_format(%s)", g_variant_get_type_string(dbus_result));
+
+       g_variant_get (dbus_result, "(iiiis)", &result,
+                                       &scaInfo.Ton,
+                                       &scaInfo.Npi,
+                                       &scaInfo.DialNumLen,
+                                       &sca);
+
+       decoded_sca = g_base64_decode(sca, &length);
+       memcpy(&(scaInfo.szDiallingNum[0]), decoded_sca, TAPI_SIM_SMSP_ADDRESS_LEN + 1);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &scaInfo, evt_cb_data->user_data);
+       }
+
+       if(decoded_sca)
+               g_free(decoded_sca);
+
+}
+
+static void on_response_get_cb_config(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelSmsCbConfig_t cbConfig = {0,};
+
+       GVariant *dbus_result = NULL;
+       const char *cbMsgIDs = NULL;
+       gsize length;
+       guchar *decoded_cbMsgIDs = NULL;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_get_cb_config(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       dbg("on_response_get_cb_config type_format(%s)", g_variant_get_type_string(dbus_result));
+
+       g_variant_get (dbus_result, "(iiiiis)", &result,
+                                               &cbConfig.bCBEnabled,
+                                               &cbConfig.SelectedId,
+                                               &cbConfig.MsgIdMaxCount,
+                                               &cbConfig.MsgIdCount,
+                                               &cbMsgIDs);
+
+       decoded_cbMsgIDs = g_base64_decode(cbMsgIDs, &length);
+       memcpy(&(cbConfig.MsgIDs[0]), decoded_cbMsgIDs, TAPI_NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &cbConfig, evt_cb_data->user_data);
+       }
+
+       if(decoded_cbMsgIDs)
+               g_free(decoded_cbMsgIDs);
+
+}
+
+static void on_response_get_sms_params(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelSmsParams_t paramInfo = {0,};
+
+       GVariant *dbus_result = NULL;
+       const char *alphaId = NULL;
+       const char *destDialNum = NULL;
+       const char *scaDialNum = NULL;
+       gsize length;
+       guchar *decoded_alphaId = NULL;
+       guchar *decoded_destDialNum = NULL;
+       guchar *decoded_scaDialNum = NULL;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_get_sms_params(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       dbg("on_response_get_sms_params type_format(%s)", g_variant_get_type_string(dbus_result));
+
+       g_variant_get (dbus_result, "(iiiisiiiisiiisiii)", &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);
+
+       decoded_alphaId = g_base64_decode(alphaId, &length);
+       memcpy(&(paramInfo.szAlphaId[0]), decoded_alphaId, TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX + 1);
+
+       decoded_destDialNum = g_base64_decode(destDialNum, &length);
+       memcpy(&(paramInfo.TpDestAddr.szDiallingNum[0]), decoded_destDialNum, TAPI_SIM_SMSP_ADDRESS_LEN + 1);
+
+       decoded_scaDialNum = g_base64_decode(scaDialNum, &length);
+       memcpy(&(paramInfo.TpSvcCntrAddr.szDiallingNum[0]), decoded_scaDialNum, TAPI_SIM_SMSP_ADDRESS_LEN + 1);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &paramInfo, evt_cb_data->user_data);
+       }
+
+       if(decoded_alphaId)
+               g_free(decoded_alphaId);
+
+       if(decoded_destDialNum)
+               g_free(decoded_destDialNum);
+
+       if(decoded_scaDialNum)
+               g_free(decoded_scaDialNum);
+
+}
+
+static void on_response_get_sms_param_cnt(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = NULL;
+       GDBusConnection *conn = NULL;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       int recordCount = 0;
+
+       GVariant *dbus_result = NULL;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       if(!dbus_result){
+               dbg( "error on_response_get_sms_param_cnt(%s)", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       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->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &recordCount, evt_cb_data->user_data);
+       }
+}
+
+/**
+ *
+ * This function enables the applications to send SMS to the network.
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]         pDataPackage - SMS-SUBMIT TPDU or SMS-COMMAND, and its length have to be passed in this structure.
+ *                             tapi_sms_more_to_send_t parameter denotes whether the sms is short or concatenated.
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer              tapi_sms_datapackage, tapi_sms_more_to_send_t.
+ */
+EXPORT_API int tel_send_sms(struct tapi_handle *handle,
+               const TelSmsDatapackageInfo_t *pDataPackage,
+               int bMoreMsgToSend,
+               tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+       gchar *encoded_sca = NULL;
+       gchar *encoded_tpdu = NULL;
+
+       int emergency_mode = 0;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(pDataPackage ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+#if 0
+       if (vconf_get_int("db/telephony/emergency", &emergency_mode) != 0) {
+               err("[FAIL]GET db/telephony/emergency");
+               return TAPI_API_OPERATION_FAILED;
+       }
+#endif
+
+       if (emergency_mode) {
+               dbg("emergency mode on");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       encoded_sca = g_base64_encode(&(pDataPackage->Sca[0]), TAPI_SIM_SMSP_ADDRESS_LEN);
+       if (encoded_sca == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the SCA");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       encoded_tpdu = g_base64_encode(&(pDataPackage->szData[0]), TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
+       if (encoded_tpdu == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the TPDU");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       param = g_variant_new("(sisi)", encoded_sca,
+                                                       pDataPackage->MsgLength,
+                                                       encoded_tpdu,
+                                                       bMoreMsgToSend);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SendMsg", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       g_free(encoded_sca);
+       g_free(encoded_tpdu);
+
+       return TAPI_API_SUCCESS;
+}
+
+
+/**
+ *
+ * This function enables the applications to read sms from the preferred storage.
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          index - the message to be read
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark             tapi_sms_selmem_set is to be called always to select the
+ *                             preferred memory before calling this api.
+ * @Refer
+ */
+EXPORT_API int tel_read_sms_in_sim(struct tapi_handle *handle, int index, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if(index < 0) {
+               err("Invalid Input -Read SMS %d",index);
+
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", index);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "ReadMsg", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_read_msg, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+
+/**
+ *
+ * This function enables the applications to write/save sms to the preferred storage.
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          index - the message to be saved, msg_status will denote the status
+ *                             of the message whether Sent, Unsent, Read, Unread, Unknown.
+ *                             pDataPackage- the SMS-SUBMIT PDU or SMS-DELIVER,SMS-STATUSREPORT
+ *                             being passed to be saved in memory.
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @Refer              tapi_sms_datapackage, tapi_sms_status_type.
+ */
+EXPORT_API int tel_write_sms_in_sim(struct tapi_handle *handle, const TelSmsData_t *pWriteData, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+       gchar *encoded_sca = NULL;
+       gchar *encoded_tpdu = NULL;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(pWriteData ,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);
+
+       encoded_sca = g_base64_encode(&(pWriteData->SmsData.Sca[0]), TAPI_SIM_SMSP_ADDRESS_LEN);
+       if (encoded_sca == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the SCA");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       encoded_tpdu = g_base64_encode(&(pWriteData->SmsData.szData[0]), TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
+       if (encoded_tpdu == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the TPDU");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       param = g_variant_new("(isis)", pWriteData->MsgStatus,
+                                                       encoded_sca,
+                                                       pWriteData->SmsData.MsgLength,
+                                                       encoded_tpdu);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SaveMsg", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_write_msg, evt_cb_data);
+
+       g_free(encoded_sca);
+       g_free(encoded_tpdu);
+
+       return TAPI_API_SUCCESS;
+}
+
+
+/**
+ *
+ * This function enables the applications to delete sms to the preferred storage.
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          index - the message to be deleted. if index is -1, all sms in the sim are deleted.
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark             tapi_sms_selmem_set has to be called always before calling this API
+ * @Refer
+ */
+EXPORT_API int tel_delete_sms_in_sim(struct tapi_handle *handle, int index, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if ((index < 0) || (index > TAPI_NETTEXT_MAX_INDEX)) {
+               err("Invalid Index Input");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", index);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "DeleteMsg", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_delete_msg, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+
+/**
+ *
+ * This function enables the applications to get the count of the messages stored in the memory
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]  None
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *              Its value can be any value from 0 to 255 if the API is returned successfully
+ *                 -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface  Asynchronous
+ * @remark             The requested memory details come in response API
+ * @Refer          None
+ */
+EXPORT_API int tel_get_sms_count(struct tapi_handle *handle, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance ");
+
+       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);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "GetMsgCount", NULL, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_get_msg_count, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+
+/**
+ *
+ * This function enables the applications to get the service center address from the SIM storage
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          pSCA - the service center address that is to be set in the SIM storage
+ *                                         refer to 3GPP TS 23.040:9.1.2.5 Address fields
+ *                             index - the index that is to be set in the SIM storage
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer             tapi_sms_sms_addr_info
+ */
+EXPORT_API int tel_get_sms_sca(struct tapi_handle *handle, int index, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if ((index < 0) || (index > TAPI_NETTEXT_MAX_INDEX)) {
+               err("Invalid Index Input");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", index);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "GetSca", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_get_sca, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+
+/**
+ *
+ * This function enables the applications to set the service center address in the SIM storage
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          pSCA - the service center address that is to be set in the SIM storage
+ *                                         refer to 3GPP TS 23.040:9.1.2.5 Address fields
+ *                             index - the index that is to be set in the SIM storage
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          ASynchronous.
+ * @remark
+ * @Refer             tapi_sms_sms_addr_info
+ */
+EXPORT_API int tel_set_sms_sca(struct tapi_handle *handle, const TelSmsAddressInfo_t *pSCA, int index, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+       gchar *encoded_sca = NULL;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(pSCA ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if ((index < 0) || (index > TAPI_NETTEXT_MAX_INDEX)) {
+               err("Invalid Index Input");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       encoded_sca = g_base64_encode(&(pSCA->szDiallingNum[0]), TAPI_SIM_SMSP_ADDRESS_LEN);
+       if (encoded_sca == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the SCA");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       param = g_variant_new("(iiiis)", index,
+                                                       pSCA->Ton,
+                                                       pSCA->Npi,
+                                                       pSCA->DialNumLen,
+                                                       encoded_sca);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SetSca", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       g_free(encoded_sca);
+
+
+       return TAPI_API_SUCCESS;
+}
+
+
+/**
+ *
+ * This function enables the applications to set the configuration for cell broadcast messages
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          None
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer             None
+ */
+EXPORT_API int tel_get_sms_cb_config(struct tapi_handle *handle, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance ");
+
+       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);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "GetCbConfig", NULL, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_get_cb_config, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function enables the applications to set the configuration for cell broadcast messages
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          tapi_sms_cb_config the configuration details to be set
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer             tapi_sms_cb_config
+ */
+EXPORT_API int tel_set_sms_cb_config(struct tapi_handle *handle, const TelSmsCbConfig_t *pCBConfig, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+       gchar *encoded_cbConfig = NULL;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(pCBConfig ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if ((pCBConfig->SelectedId >= 3) || (pCBConfig->MsgIdCount < 0)) {
+               err("Invalid Input -SelectedId(%d)",pCBConfig->SelectedId);
+               err("Invalid Input -MsgIdCount(%d)",pCBConfig->MsgIdCount);
+
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       encoded_cbConfig = g_base64_encode((const guchar *)&(pCBConfig->MsgIDs[0]), TAPI_NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX);
+       if (encoded_cbConfig == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the CB Config");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       param = g_variant_new("(iiiis)", pCBConfig->bCBEnabled,
+                                                       pCBConfig->SelectedId,
+                                                       pCBConfig->MsgIdMaxCount,
+                                                       pCBConfig->MsgIdCount,
+                                                       encoded_cbConfig);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SetCbConfig", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       g_free(encoded_cbConfig);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function enables the applications to set the phone memory status whether full or available
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          memory_status whether full or available
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer             tapi_sms_memstatus_type
+ */
+EXPORT_API int tel_set_sms_memory_status(struct tapi_handle *handle, int memoryStatus, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if ((memoryStatus < TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE) || (memoryStatus > TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL)) {
+               err("Invalid Input -MemoryStatus Nettext");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", memoryStatus);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SetMemStatus", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function is used to get SMS preferred bearer on which SMS has to be transmitted. This is a synchronous function
+ *
+ * @return             TRUE in case of success and FALSE in case of error .
+ * @param[in]        None
+ *
+ * @param[out] requestId-Unique identifier for a particular request
+ *                          Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer
+ */
+EXPORT_API int tel_get_sms_preferred_bearer(struct tapi_handle *handle, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance ");
+
+       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);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "GetPrefBearer", NULL, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function enables the applications to set the preferred bearer
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          service option ie the bearer type to be set
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer             tapi_sms_bearer_type
+ */
+EXPORT_API int tel_set_sms_preferred_bearer(struct tapi_handle *handle, TelSmsBearerType_t BearerType, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if ((TAPI_NETTEXT_BEARER_PS_ONLY > BearerType) || (TAPI_NETTEXT_NO_PREFERRED_BEARER < BearerType)) {
+               err("Invalid Input -PrefBearer Set Nettext");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", BearerType);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SetPrefBearer", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function enables the applications to set the deliver report for an incoming message(MT).
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]         pDataPackage - SMS-DELIVER-REPORT, and its length have to be passed in this structure.
+ * @param[in]          RPCause - the result cause
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Synchronous.
+ * @remark
+ * @Refer             tapi_sms_deliver_report
+ */
+EXPORT_API int tel_send_sms_deliver_report(struct tapi_handle *handle,
+               const TelSmsDatapackageInfo_t *pDataPackage,
+               TelSmsResponse_t RPCause,
+               tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+       gchar *encoded_sca = NULL;
+       gchar *encoded_tpdu = NULL;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(pDataPackage ,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);
+
+       encoded_sca = g_base64_encode(&(pDataPackage->Sca[0]), TAPI_SIM_SMSP_ADDRESS_LEN);
+       if (encoded_sca == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the SCA");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       encoded_tpdu = g_base64_encode(&(pDataPackage->szData[0]), TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
+       if (encoded_tpdu == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the TPDU");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       param = g_variant_new("(sisi)", encoded_sca,
+                                                       pDataPackage->MsgLength,
+                                                       encoded_tpdu,
+                                                       RPCause);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SetDeliveryReport", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       g_free(encoded_sca);
+       g_free(encoded_tpdu);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function enables the application to set the status of a message
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          index - the message to be changed
+ *                             msgStatus -SMS message status
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer             tapi_sms_memory_type,tapi_sms_status_type
+ */
+EXPORT_API int tel_set_sms_message_status(struct tapi_handle *handle, int index, TelSmsMsgStatus_t msgStatus, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if ((index < 0) || (index > TAPI_NETTEXT_MAX_INDEX) ||
+               (msgStatus > TAPI_NETTEXT_STATUS_RESERVED)) {
+               err("Invalid Input -MsgStatus Set Nettext");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ii)", index, msgStatus);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SetMsgStatus", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function enables to application to get the sms parameters
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          record index of the record in which the sms parameters are stored in the EFsmsp file
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          ASynchronous.
+ * @remark             Requested details come in response API
+ * @Refer
+ */
+EXPORT_API int tel_get_sms_parameters(struct tapi_handle *handle, int index, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(callback ,TAPI_API_INVALID_PTR);
+       if ((index < 0) || (index > TAPI_NETTEXT_MAX_INDEX)) {
+               err("Invalid Input -SMS Param Get Nettext");
+               return TAPI_API_INVALID_INPUT;
+       }
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", index);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "GetSmsParams", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_get_sms_params, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function enables to application to get the sms parameters
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          tapi_smsp_set_param_t sms parameters to be set in the EFsmsp file
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          ASynchronous.
+ * @remark
+ * @Refer             tapi_smsp_set_param_t
+ */
+EXPORT_API int tel_set_sms_parameters(struct tapi_handle *handle, const TelSmsParams_t *pSmsSetParameters, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+       gchar *encoded_alphaId = NULL;
+       gchar *encoded_destDialNum = NULL;
+       gchar *encoded_scaDialNum = NULL;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle ,TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(pSmsSetParameters ,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);
+
+       encoded_alphaId = g_base64_encode((guchar *)&(pSmsSetParameters->szAlphaId[0]), TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX + 1);
+       if (encoded_alphaId == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the AlphaId");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       encoded_destDialNum = g_base64_encode(&(pSmsSetParameters->TpDestAddr.szDiallingNum[0]), TAPI_SIM_SMSP_ADDRESS_LEN + 1);
+       if (encoded_destDialNum == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the DestAddr.DiallingNum");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       encoded_scaDialNum = g_base64_encode(&(pSmsSetParameters->TpSvcCntrAddr.szDiallingNum[0]), TAPI_SIM_SMSP_ADDRESS_LEN + 1);
+       if (encoded_scaDialNum == NULL) {
+               dbg("g_base64_encode: Failed to Enocde the ScaAddr.DiallingNum");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       param = g_variant_new("(iiisiiiisiiisiii)", pSmsSetParameters->RecordIndex,
+                                                                       pSmsSetParameters->RecordLen,
+                                                                       pSmsSetParameters->AlphaIdLen,
+                                                                       encoded_alphaId,
+                                                                       pSmsSetParameters->ParamIndicator,
+                                                                       pSmsSetParameters->TpDestAddr.DialNumLen,
+                                                                       pSmsSetParameters->TpDestAddr.Ton,
+                                                                       pSmsSetParameters->TpDestAddr.Npi,
+                                                                       encoded_destDialNum,
+                                                                       pSmsSetParameters->TpSvcCntrAddr.DialNumLen,
+                                                                       pSmsSetParameters->TpSvcCntrAddr.Ton,
+                                                                       pSmsSetParameters->TpSvcCntrAddr.Npi,
+                                                                       encoded_scaDialNum,
+                                                                       pSmsSetParameters->TpProtocolId,
+                                                                       pSmsSetParameters->TpDataCodingScheme,
+                                                                       pSmsSetParameters->TpValidityPeriod);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "SetSmsParams", param, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_default, evt_cb_data);
+
+       g_free(encoded_alphaId);
+       g_free(encoded_destDialNum);
+       g_free(encoded_scaDialNum);
+
+       return TAPI_API_SUCCESS;
+}
+
+/**
+ *
+ * This function enables to application to get the sms parameter count from the EFsmsp file.
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          None
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ * @Interface          ASynchronous.
+ * @remark             Requested details come in response API
+ * @Refer
+ */
+EXPORT_API int tel_get_sms_parameter_count(struct tapi_handle *handle, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+
+       dbg("Func Entrance ");
+
+       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);
+
+       g_dbus_connection_call(handle->dbus_connection,
+               DBUS_TELEPHONY_SERVICE , handle->path, DBUS_TELEPHONY_SMS_INTERFACE,
+               "GetSmsParamCnt", NULL, NULL,
+               G_DBUS_CALL_FLAGS_NONE, -1, NULL,
+               on_response_get_sms_param_cnt, evt_cb_data);
+
+       return TAPI_API_SUCCESS;
+}
+
+#if 0
+/**
+ *
+ *  This API is used to send an SMS message to the network. This API allows keeping
+ *  the dedicated link at lower layers by passing information as more messages to send in parameters.
+ * This will enable not to release if a dedicated connection is used for transmission.
+ *
+ * @return             TRUE in case of success and FALSE in case of error .
+ * @param[in]          TelSmsMsgInfo_t - SMS_SUBMIT/ACK/CANCEL and its length have to be passed in this structure.
+ *
+ *                             unsigned int MoreMsgToSend will be set to TRUE when there are more than one message to be
+ *                         send or Multiple segmented concatenated message to be send, otherwise FALSE. This flag
+ *                         indicates OEM that more messages to send.
+ *
+ * @param[out] RequestId-Unique identifier for a particular request
+ *                         Its value can be any value from 0 to 255 if the API is returned successfully
+ *                          -1 (INVALID_REQUEST_ID) will be sent in case of failure
+ *
+ * @Interface          Asynchronous.
+ * @remark
+ * @Refer              TelSmsMsgInfo_t.
+ */
+EXPORT_API int tel_send_sms_msg(struct tapi_handle *handle, const TelSmsMsgInfo_t *pSmsMsgInfo, unsigned int MoreMsgToSend, tapi_response_cb callback, void* user_data)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+       TS_BOOL ret = FALSE;
+       int api_err = TAPI_API_SUCCESS;
+       int emergency_mode = 0;
+
+       if (vconf_get_int("db/telephony/emergency", &emergency_mode) != 0) {
+               TAPI_LIB_DEBUG(LEVEL_ERR, "[FAIL]GET db/telephony/emergency");
+               return TAPI_API_OPERATION_FAILED;
+       }
+       if (emergency_mode) {
+               TAPI_LIB_DEBUG(LEVEL_DEBUG, "emergency mode on");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       TAPI_RET_ERR_NUM_IF_FAIL(pSmsMsgInfo ,TAPI_API_INVALID_PTR);
+
+       if (conn_name.length_of_name == 0) {
+               TAPI_LIB_DEBUG(LEVEL_ERR, "No dbus connection name");
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
+       TAPI_GLIB_INIT_PARAMS();
+
+       TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,
+                       out_param1,out_param2,out_param3,out_param4);
+
+       g_array_append_vals(in_param1, pSmsMsgInfo, sizeof(TelSmsMsgInfo_t));
+       g_array_append_vals(in_param2, &MoreMsgToSend, sizeof(unsigned int));
+       g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
+
+       ret = tapi_send_request(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_SEND_EX, in_param1, in_param2, in_param3,
+                       in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
+
+       if (ret) {
+               api_err = g_array_index(out_param1, int, 0);
+       }
+       else {
+               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
+       }
+
+       TAPI_GLIB_FREE_PARAMS(in_param1,in_param2,in_param3,in_param4,
+                       out_param1,out_param2,out_param3,out_param4);
+
+       return api_err;
+}
+#endif
+
+/**
+ *
+ * This function enables the applications to check the device status
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          None
+ *
+ *
+ * @param[out] Device status whether Ready or Not Ready
+ * @Interface          Synchronous.
+ * @remark
+ * @Refer
+ */
+EXPORT_API int tel_check_sms_device_status(struct tapi_handle *handle, int *pReadyStatus)
+{
+       GError *error;
+       GVariant *smsReady = NULL;
+
+       dbg("Func Entrance ");
+
+       TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
+       TAPI_RET_ERR_NUM_IF_FAIL(pReadyStatus, TAPI_API_INVALID_PTR);
+
+       memset(pReadyStatus, 0, sizeof(int));
+
+       error = NULL;
+       smsReady = g_dbus_connection_call_sync(handle->dbus_connection, DBUS_TELEPHONY_SERVICE , handle->path,
+                       DBUS_TELEPHONY_SMS_INTERFACE, "GetSmsReadyStatus", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
+
+       if(!smsReady){
+               dbg( "error to get SMS ready_status(%s)", error->message);
+               g_error_free (error);
+               return TAPI_API_OPERATION_FAILED;
+       }
+
+       dbg("get SMS ready_status type_format(%s)", g_variant_get_type_string(smsReady));
+
+       g_variant_get(smsReady, "(b)", pReadyStatus);
+
+       dbg("************SMS_device_status (%d)", *pReadyStatus);
+
+       return TAPI_API_SUCCESS;
+}
+
+#if 0
+/**
+ *
+ * This function enables to application to set that the device is ready to recieve messages from network.
+ *
+ * @return             Returns appropriate error code. Refer TapiResult_t .
+ * @param[in]          None
+ *
+ * @param[out] None
+ * @Interface          Synchronous.
+ * @remark
+ * @Refer
+ */
+EXPORT_API int tel_set_sms_device_status(struct tapi_handle *handle)
+{
+       struct tapi_resp_data *evt_cb_data = NULL;
+       GVariant *param;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       TS_BOOL ret = FALSE;
+       int api_err = TAPI_API_SUCCESS;
+
+       TAPI_RET_ERR_NUM_IF_FAIL(tapi_check_dbus_status_internal(), TAPI_API_SYSTEM_RPC_LINK_NOT_EST);
+       TAPI_GLIB_INIT_PARAMS();
+       TAPI_GLIB_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
+
+       ret = tapi_send_request_internal(TAPI_CS_SERVICE_NETTEXT, TAPI_CS_NETTEXT_DEVICEREADY,
+                       in_param1, in_param2, in_param3, in_param4,
+                       &out_param1, &out_param2, &out_param3, &out_param4);
+
+       if (ret) {
+               api_err = g_array_index(out_param1, int, 0);
+       }
+       else {
+               api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
+       }
+
+       TAPI_GLIB_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param1, out_param2, out_param3, out_param4);
+
+       return api_err;
+}
+#endif
+//eof
diff --git a/src/tapi_ss.c b/src/tapi_ss.c
new file mode 100644 (file)
index 0000000..5cd5cd5
--- /dev/null
@@ -0,0 +1,595 @@
+/*
+ * libslp-tapi
+ *
+ * Copyright (c) 2011 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 <string.h>
+
+#include "tapi_common.h"
+#include "TapiUtility.h"
+#include "TelSs.h"
+
+#include "common.h"
+#include "tapi_log.h"
+#include "ITapiSs.h"
+
+static void on_response_get_ss_barring_status(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1, i = 0;
+       TelSsBarringResp_t resp;
+
+       GVariant *dbus_result = 0, *value = 0;
+       GVariantIter *iter = 0;
+       GVariantIter *iter_row = 0;
+       const gchar *key = 0;
+
+
+       memset(&resp, '\0', sizeof(TelSsBarringResp_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+       if (!dbus_result) {
+               if (evt_cb_data->cb_fn) {
+                       evt_cb_data->cb_fn(evt_cb_data->handle, -1, NULL, evt_cb_data->user_data);
+               }
+               return;
+       }
+
+       g_variant_get (dbus_result, "(aa{sv}i)", &iter, &result);
+
+       resp.record_num = g_variant_iter_n_children(iter);
+
+       while ( g_variant_iter_next(iter, "a{sv}", &iter_row ) ) {
+               while ( g_variant_iter_loop( iter_row, "{sv}", &key, &value ) ) {
+
+                       if ( !g_strcmp0(key, "ss_class") ) {
+                               resp.record[i].Class = g_variant_get_int32(value);
+                       }
+
+                       if ( !g_strcmp0(key, "ss_status") ) {
+                               resp.record[i].Status = g_variant_get_int32(value);
+                       }
+
+                       if ( !g_strcmp0(key, "barring_mode") ) {
+                               resp.record[i].Flavour = g_variant_get_int32(value);
+                       }
+
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+}
+
+static void on_response_change_ss_barring_password(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+
+       GVariant *dbus_result = 0;
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       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);
+       }
+
+}
+
+static void on_response_get_ss_forward_status(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1, i = 0;
+       TelSsForwardResp_t resp;
+
+       GVariant *dbus_result = 0, *value = 0;
+       GVariantIter *iter = 0;
+       GVariantIter *iter_row = 0;
+       const gchar *key = 0;
+
+
+       memset(&resp, '\0', sizeof(TelSsForwardResp_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(aa{sv}i)", &iter, &result);
+
+       resp.record_num = g_variant_iter_n_children(iter);
+
+       while ( g_variant_iter_next(iter, "a{sv}", &iter_row ) ) {
+               while ( g_variant_iter_loop( iter_row, "{sv}", &key, &value ) ) {
+
+                       if ( !g_strcmp0(key, "ss_class") ) {
+                               resp.record[i].Class = g_variant_get_int32(value);
+                       }
+
+                       if ( !g_strcmp0(key, "ss_status") ) {
+                               resp.record[i].Status = g_variant_get_int32(value);
+                       }
+
+                       if ( !g_strcmp0(key, "forwarding_mode") ) {
+                               resp.record[i].ForwardCondition = g_variant_get_int32(value);
+                       }
+
+                       if ( !g_strcmp0(key, "no_reply_time") ) {
+                               resp.record[i].NoReplyWaitTime = g_variant_get_int32(value);
+                       }
+
+                       if ( !g_strcmp0(key, "number_present") ) {
+                               resp.record[i].bCallForwardingNumberPresent = g_variant_get_int32(value);
+                       }
+
+                       if ( !g_strcmp0(key, "forwarding_number") ) {
+                               strncpy((char *)resp.record[i].szCallForwardingNumber, g_variant_get_string(value, 0), TAPI_CALL_DIALDIGIT_LEN_MAX );
+                       }
+
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+
+}
+
+static void on_response_get_ss_waiting_status(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1, i = 0;
+       TelSsWaitingResp_t resp;
+
+       GVariant *dbus_result = 0, *value = 0;
+       GVariantIter *iter = 0;
+       GVariantIter *iter_row = 0;
+       const gchar *key = 0;
+
+
+       memset(&resp, '\0', sizeof(TelSsWaitingResp_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(aa{sv}i)", &iter, &result);
+
+       resp.record_num = g_variant_iter_n_children(iter);
+
+       while ( g_variant_iter_next(iter, "a{sv}", &iter_row ) ) {
+               while ( g_variant_iter_loop( iter_row, "{sv}", &key, &value ) ) {
+
+                       if ( !g_strcmp0(key, "ss_class") ) {
+                               resp.record[i].Class = g_variant_get_int32(value);
+                       }
+
+                       if ( !g_strcmp0(key, "ss_status") ) {
+                               resp.record[i].Status = g_variant_get_int32(value);
+                       }
+               }
+               i++;
+               g_variant_iter_free(iter_row);
+       }
+       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);
+       }
+}
+
+
+static void on_response_get_ss_cli_status(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelSsCliResp_t resp;
+
+       GVariant *dbus_result = 0;
+
+       memset(&resp, '\0', sizeof(TelSsCliResp_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(iii)",  &result, &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);
+       }
+}
+
+static void on_response_send_ss_ussd_request(GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+       GError *error = 0;
+       GDBusConnection *conn = 0;
+       struct tapi_resp_data *evt_cb_data = user_data;
+       int result = -1;
+       TelSsUssdResp_t resp;
+
+       GVariant *dbus_result = 0;
+
+       memset(&resp, '\0', sizeof(TelSsUssdResp_t));
+
+       conn = G_DBUS_CONNECTION (source_object);
+       dbus_result = g_dbus_connection_call_finish(conn, res, &error);
+
+       g_variant_get (dbus_result, "(iiiis)",  &result, &resp.Type, &resp.Status, &resp.Length, &resp.szString);
+
+       if (evt_cb_data->cb_fn) {
+               evt_cb_data->cb_fn(evt_cb_data->handle, result, &resp, evt_cb_data->user_data);
+       }
+}
+
+EXPORT_API int tel_set_ss_barring(TapiHandle *handle, TelSsBarringInfo_t *info, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+       gchar *method = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(iis)", info->Class, info->Type, info->szPassword);
+
+       if ( info->Mode == TAPI_SS_CB_MODE_ACTIVATE ) {
+               dbg("[ checke ] barring activate");
+               method = "ActivateBarring";
+
+       } else {
+               dbg("[ checke ] barring deactivate");
+               method = "DeactivateBarring";
+
+       }
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       method, param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_ss_barring_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+
+}
+
+EXPORT_API int tel_get_ss_barring_status(TapiHandle *handle, TelSsClass_t class, TelSsBarringType_t type, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ii)", class, type);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       "GetBarringStatus", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_ss_barring_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to change call barring password.
+ *
+ * @param      pOldPassword[IN] of type char* Specifies the Old Call Barring Password.
+ * @param      pNewPassword[IN] of type char* Specifies the New Call Barring Password.
+ * @param      pNewPasswordAgain[IN] of type char* Specifies the New Call Barring Password for Confirm.
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark
+ *
+ ***********************************************************************************************/
+EXPORT_API int tel_change_ss_barring_password(TapiHandle *handle,
+               const char *old_password,
+               const char *new_password,
+               const char *new_password_again,
+               tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(sss)", old_password, new_password, new_password_again);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       "ChangeBarringPassword", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_change_ss_barring_password, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to Activate or Deactivate the call forwarding feature.
+ *
+ * @param      forwardInfo[IN] of type TelSsForwardInfo_t which specifies the Teleservice and CF flavour, Forwarded to number.
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark
+ *
+ ***********************************************************************************************/
+EXPORT_API int tel_set_ss_forward(TapiHandle *handle, const TelSsForwardInfo_t *info, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+       gchar *method = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(iiis)", info->Class, info->Condition, info->NoReplyConditionTimer, info->szPhoneNumber);
+
+       switch ( info->Mode ) {
+               case TAPI_SS_CF_MODE_DISABLE_EV: {
+                       dbg("[ check ] forwarding deactivate");
+                       method = "DeactivateForwarding";
+               } break;
+
+               case TAPI_SS_CF_MODE_ENABLE_EV: {
+                       dbg("[ check ] forwarding activate");
+                       method = "ActivateFowarding";
+               } break;
+
+               case TAPI_SS_CF_MODE_REGISTRATION_EV: {
+                       dbg("[ check ] forwarding registration");
+                       method = "RegisterForwarding";
+               } break;
+
+               case TAPI_SS_CF_MODE_ERASURE_EV: {
+                       dbg("[ check ] forwarding deregistration");
+                       method = "DeregisterForwarding";
+               } break;
+
+               default:
+                       dbg("[ error ] invalid input : (0x%x)", info->Mode);
+                       return TAPI_API_INVALID_INPUT;
+       }
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       method, param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_ss_forward_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to interrogate the status of call forwarding feature.
+ *
+ * @param      forwardType[IN] of type TelSsForwardType_t which specifies the telecommunication service.
+ * @param      condition[IN]   is of type TelSsForwardWhen_t specified the CF flavour
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark
+ *
+ ***********************************************************************************************/
+EXPORT_API int tel_get_ss_forward_status(TapiHandle *handle, TelSsClass_t class, TelSsForwardWhen_t condition, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(ii)", class, condition);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       "GetForwardingStatus", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_ss_forward_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to Activate or dectivate call waiting feature.
+ *
+ * @param      waitInfo[IN] of type TelSsWaitingInfo_t which specifies the telecommunication service and mode.
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark
+ *
+ ***********************************************************************************************/
+EXPORT_API int tel_set_ss_waiting(TapiHandle *handle, const TelSsWaitingInfo_t *info, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+       gchar *method = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", info->Class);
+
+       if ( info->Mode == TAPI_SS_CW_MODE_ACTIVATE ) {
+               dbg("[ checke ] waiting activate");
+               method = "ActivateWaiting";
+
+       } else {
+               dbg("[ checke ] waiting deactivate");
+               method = "DeactivateWaiting";
+
+       }
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       method, param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_ss_waiting_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to interrogate the status of call waiting feature.
+ *
+ * @param      CallType[IN] of type TelSsCallType_t which specifies the telecommunication service .
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark
+ *
+ ***********************************************************************************************/
+
+EXPORT_API int tel_get_ss_waiting_status(TapiHandle *handle, const TelSsClass_t class, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", class);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       "GetWaitingStatus", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_ss_waiting_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to interrogate the status of CLI services feature.
+ *
+ * @param      CliType[IN] of type TelSsCliType_t which specifies the CLI service .
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark
+ *
+ ***********************************************************************************************/
+EXPORT_API int tel_get_ss_cli_status(TapiHandle *handle, TelSsCliType_t type, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(i)", type);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       "GetCLIStatus", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_get_ss_cli_status, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to send a USSD string and also the User response for a NW intiated USSD.
+ *
+ * @param      pAppMsg[IN] of type TelSsUssdMsgInfo_t which specifies the USSD String,length of the string, format of the string.
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark     TelSsUssdMsgInfo_t ->IndType is not used while calling this function, This is used for sending the response.
+ *                     Limo standard defines only one structure for Request and response.
+ *
+ ***********************************************************************************************/
+EXPORT_API int tel_send_ss_ussd_request(TapiHandle *handle, const TelSsUssdMsgInfo_t *info, tapi_response_cb callback, void *user_data)
+{
+       struct tapi_resp_data *evt_cb_data = 0;
+       GVariant *param = 0;
+
+       dbg("Func Entrance ");
+
+       MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
+
+       param = g_variant_new("(iis)", info->Type, info->Length, info->szString);
+
+       g_dbus_connection_call(handle->dbus_connection,
+                       DBUS_TELEPHONY_SERVICE, handle->path, DBUS_TELEPHONY_SS_INTERFACE,
+                       "SendUSSD", param, 0,
+                       G_DBUS_CALL_FLAGS_NONE, -1, 0,
+                       on_response_send_ss_ussd_request, evt_cb_data );
+
+       return TAPI_API_SUCCESS;
+
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to Sets AOC information.
+ *
+ * @param      AocType[IN] of type TelSsAocType_t which specifies the which AOC type to read.
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark
+ *
+ ***********************************************************************************************/
+EXPORT_API int tel_get_ss_aoc_info(TapiHandle *handle, TelSsAocType_t AocType, tapi_response_cb callback, void *user_data)
+{
+       return 0;
+}
+
+/**********************************************************************************************
+ *
+ * This function is used to Sets AOC information.
+ *
+ * @param      AocSetInfo[IN] of type TelCallAocInfo_t which specifies the AOC info parameters .
+ * @return     enum type TapiResult_t Specifies the API's Return result.
+ * @remark
+ *
+ ***********************************************************************************************/
+EXPORT_API int tel_set_ss_aoc_info(TapiHandle *handle, TelCallAocInfo_t *AocSetInfo, tapi_response_cb callback, void *user_data)
+{
+       return 0;
+}
+
+/*     EOF  */
index 3a7c9b5568de4da4df555b1aff0d7897a48ec651..f4cc80286d2175497699240f7383007e9b4fe94b 100644 (file)
@@ -3,10 +3,9 @@ exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${prefix}/include
 
-Name: Telephony Server
-Description: Telephony Framework
-Requires: dbus-1 glib-2.0 vconf dbus-glib-1
-Version: 1.80
+Name: TAPI Library
+Description: Telephony DBUS Client
+Requires: glib-2.0 gobject-2.0
+Version: 0.1
 Libs: -L${libdir} -lSLP-tapi
-Cflags: -I${includedir}/telephony/tapi -I${includedir}/telephony/common
-
+Cflags: -I${includedir}/telephony-client