2 * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
26 /*Messaging Header Files*/
28 #include "msg_transport_types.h"
29 #include "msg_types.h"
30 #include "email-types.h"
33 #define API __attribute__ ((visibility("default")))
37 API int vconf_get_int(const char *in_key, const int intval)
42 API char *vconf_get_str(const char *in_key)
44 return strdup("memory/telephony/nw_name");
47 API int email_service_end()
49 return EMAIL_ERROR_NONE;
52 API int msg_open_msg_handle(msg_handle_t *handle)
57 API int msg_reg_sent_status_callback(msg_handle_t handle, msg_sent_status_cb cb, void *user_param)
62 API int msg_reg_sms_message_callback(msg_handle_t handle, msg_sms_incoming_cb cb, unsigned short port, void *user_param)
67 API GDBusConnection *g_bus_get_sync (GBusType bus_type,
68 GCancellable *cancellable,
74 API guint g_dbus_connection_register_object (GDBusConnection *connection,
75 const gchar *object_path,
76 GDBusInterfaceInfo *interface_info,
77 const GDBusInterfaceVTable *vtable,
79 GDestroyNotify user_data_free_func,
85 API guint g_dbus_connection_signal_subscribe (GDBusConnection *connection,
87 const gchar *interface_name,
89 const gchar *object_path,
91 GDBusSignalFlags flags,
92 GDBusSignalCallback callback,
94 GDestroyNotify user_data_free_func)
98 API void g_dbus_connection_signal_unsubscribe(GDBusConnection *connection,
99 guint subscription_id)
103 API gboolean g_dbus_connection_unregister_object(GDBusConnection *connection,
104 guint registration_id)
109 API void g_object_unref(gpointer object)
113 API GVariant *g_dbus_proxy_call_sync(GDBusProxy *proxy,
114 const gchar *method_name,
115 GVariant *parameters,
116 GDBusCallFlags flags,
118 GCancellable *cancellable,
124 API GDBusProxy *g_dbus_proxy_new_sync(GDBusConnection *connection,
125 GDBusProxyFlags flags,
126 GDBusInterfaceInfo *info,
128 const gchar *object_path,
129 const gchar *interface_name,
130 GCancellable *cancellable,
136 API GVariant *g_variant_get_child_value(GVariant *value,
142 API gsize g_variant_n_children(GVariant *value)
147 API void g_variant_unref(GVariant *value)
151 API void g_variant_get (GVariant *value,
152 const gchar *format_string,
157 API gint g_io_channel_unix_get_fd(GIOChannel *channel)