#ifndef _TEL_UTILITY_H_
#define _TEL_UTILITY_H_
-#include <system_info.h>
-
__BEGIN_DECLS
/**
TAPI_API_MISC_OUTPARAM_NULL = -803, /**< MISC output parameter NULL */
} TapiResult_t;
-#define TELEPHONY_FEATURE "http://tizen.org/feature/network.telephony"
-
-#define TAPI_RET_ERR_NUM_IF_NOT_SUPPORTED(feature_name) { \
- bool telephony_supported = FALSE; \
- if (!system_info_get_platform_bool(feature_name, &telephony_supported)) { \
- if (telephony_supported == FALSE) { \
- err("telephony feature is disabled"); \
- return TAPI_API_NOT_SUPPORTED; \
- } \
- } else { \
- err("Error - Feature getting from System Info"); \
- return TAPI_API_OPERATION_FAILED; \
- } \
-}
-
-#define TAPI_RET_ERR_NULL_IF_NOT_SUPPORTED(feature_name) { \
- bool telephony_supported = FALSE; \
- if (!system_info_get_platform_bool(feature_name, &telephony_supported)) { \
- if (telephony_supported == FALSE) { \
- err("telephony feature is disabled"); \
- return NULL; \
- } \
- } else { \
- err("Error - Feature getting from System Info"); \
- return NULL; \
- } \
-}
-
/**
* @brief Checks the 'scalar_exp' for TRUE, if failed then it returns 'err_value' from the function.
*/
#include "common.h"
#include "tapi_log.h"
#include "ITapiCall.h"
+#include "tapi_private.h"
static void on_response_call_dial(GObject *source_object, GAsyncResult *res, gpointer user_data)
{
#include "common.h"
#include "tapi_log.h"
+#include "tapi_private.h"
TelSatEventDownloadType_t g_event_list[TAPI_SAT_EVENT_LIST_MAX_COUNT] = {-1};
static GSList *state_callback_list = NULL;
#include "common.h"
#include "tapi_log.h"
+#include "tapi_private.h"
static void on_response_default_set(GObject *source_object, GAsyncResult *res, gpointer user_data)
{
#include "common.h"
#include "tapi_log.h"
#include "ITapiNetwork.h"
+#include "tapi_private.h"
static int _convert_systemtype_to_act(int type)
{
#include "tapi_log.h"
#include "ITapiOem.h"
#include "TelOem.h"
+#include "tapi_private.h"
#define OEM_DATA_LEN_MAX (10 * 1024)
#define OEM_DEFAULT_TIMEOUT (30 * 1000)
#include "common.h"
#include "tapi_log.h"
#include "ITapiPhonebook.h"
+#include "tapi_private.h"
static void move_str(char *dest, unsigned int len, gchar *src)
{
--- /dev/null
+/*
+ * libtapi
+ *
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * 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_PRIVATE_H__
+#define __TAPI_PRIVATE_H__
+
+__BEGIN_DECLS
+
+#include <system_info.h>
+
+#define TELEPHONY_FEATURE "http://tizen.org/feature/network.telephony"
+
+#define TAPI_RET_ERR_NUM_IF_NOT_SUPPORTED(feature_name) { \
+ bool telephony_supported = FALSE; \
+ if (!system_info_get_platform_bool(feature_name, &telephony_supported)) { \
+ if (telephony_supported == FALSE) { \
+ err("telephony feature is disabled"); \
+ return TAPI_API_NOT_SUPPORTED; \
+ } \
+ } else { \
+ err("Error - Feature getting from System Info"); \
+ return TAPI_API_OPERATION_FAILED; \
+ } \
+}
+
+#define TAPI_RET_ERR_NULL_IF_NOT_SUPPORTED(feature_name) { \
+ bool telephony_supported = FALSE; \
+ if (!system_info_get_platform_bool(feature_name, &telephony_supported)) { \
+ if (telephony_supported == FALSE) { \
+ err("telephony feature is disabled"); \
+ return NULL; \
+ } \
+ } else { \
+ err("Error - Feature getting from System Info"); \
+ return NULL; \
+ } \
+}
+
+__END_DECLS
+
+#endif /* __TAPI_PRIVATE_H__ */
#include "common.h"
#include "tapi_log.h"
#include "ITapiSap.h"
+#include "tapi_private.h"
/* LCOV_EXCL_START */
static void on_response_sap_connect(GObject *source_object, GAsyncResult *res, gpointer user_data)
#include "common.h"
#include "tapi_log.h"
#include "ITapiSat.h"
+#include "tapi_private.h"
extern TelSatEventDownloadType_t g_event_list[TAPI_SAT_EVENT_LIST_MAX_COUNT];
#include "common.h"
#include "tapi_log.h"
#include "ITapiSim.h"
+#include "tapi_private.h"
#define DBUS_SIM_STATUS_ERROR "SIM STATUS ERROR"
#define DBUS_SIM_NOT_FOUND "SIM NOT FOUND"
#include "common.h"
#include "tapi_log.h"
#include "ITapiNetText.h"
+#include "tapi_private.h"
static void on_response_default(GObject *source_object, GAsyncResult *res, gpointer user_data)
{
#include "common.h"
#include "tapi_log.h"
#include "ITapiSs.h"
+#include "tapi_private.h"
static void on_response_get_ss_barring_status(GObject *source_object, GAsyncResult *res, gpointer user_data)
{