summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2017-11-06 12:02:53 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2017-11-06 12:02:53 +0530
commit84939c873fa52437482cc3a3731a10b5676f05d7 (patch)
treee5c874633b9ff806a6ade289abdb4bbc9ee3407a
parent1ef38350f32e81e28e1d27d8ec4679fe7a521eea (diff)
downloadconnman-84939c873fa52437482cc3a3731a10b5676f05d7.tar.gz
connman-84939c873fa52437482cc3a3731a10b5676f05d7.tar.bz2
connman-84939c873fa52437482cc3a3731a10b5676f05d7.zip
Remove unused "GetVsies" Dbus method.
Change-Id: I4b666eb1e00852ef6a33451343f8ad78aa857557 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xsrc/manager.c29
-rwxr-xr-xsrc/service.c47
2 files changed, 0 insertions, 76 deletions
diff --git a/src/manager.c b/src/manager.c
index befc3733..2e1367ff 100755
--- a/src/manager.c
+++ b/src/manager.c
@@ -34,30 +34,6 @@
static bool connman_state_idle;
static dbus_bool_t sessionmode;
-#if defined TIZEN_EXT
-static void append_wifi_vsies_structs(DBusMessageIter *iter, void *user_data)
-{
- __connman_wifi_vsie_list_struct(iter);
-}
-
-static DBusMessage *get_wifi_vsies(DBusConnection *conn,
- DBusMessage *msg, void *data)
-{
- DBusMessage *reply;
-
- DBG("ConnMan, get_wifi_vsies API called");
-
- reply = dbus_message_new_method_return(msg);
- if (!reply)
- return NULL;
-
- __connman_dbus_append_objpath_dict_array(reply,
- append_wifi_vsies_structs, NULL);
-
- return reply;
-}
-#endif
-
static DBusMessage *get_properties(DBusConnection *conn,
DBusMessage *msg, void *data)
{
@@ -620,11 +596,6 @@ static const GDBusMethodTable manager_methods[] = {
{ GDBUS_METHOD("UnregisterPeerService",
GDBUS_ARGS({ "specification", "a{sv}" }), NULL,
unregister_peer_service) },
-#if defined TIZEN_EXT
- { GDBUS_METHOD("GetVsies",
- NULL, GDBUS_ARGS({ "Vsie", "a(oa{sv})" }),
- get_wifi_vsies) },
-#endif
{ },
};
diff --git a/src/service.c b/src/service.c
index facff692..377582b2 100755
--- a/src/service.c
+++ b/src/service.c
@@ -3429,53 +3429,6 @@ void __connman_service_list_struct(DBusMessageIter *iter)
g_list_foreach(service_list, append_struct, iter);
}
-#if defined TIZEN_EXT
-static void append_wifi_vsie_properties(DBusMessageIter *iter,
- struct connman_service *service)
-{
- DBusMessageIter dict;
- const void *wifi_vsie;
- unsigned int wifi_vsie_len;
-
- connman_dbus_dict_open(iter, &dict);
-
- wifi_vsie = connman_network_get_blob(service->network, "WiFi.Vsie", &wifi_vsie_len);
-
- if(wifi_vsie_len > 0) {
- DBG("ConnMan, service->path=%s vsie length=%d", service->path, wifi_vsie_len);
- }
-
- connman_dbus_dict_append_fixed_array(&dict, "Vsie", DBUS_TYPE_BYTE,
- &wifi_vsie, wifi_vsie_len);
-
- connman_dbus_dict_close(iter, &dict);
-}
-
-void __connman_wifi_vsie_list_struct(DBusMessageIter *iter)
-{
- GList *list;
- DBusMessageIter entry;
-
- DBG("ConnMan, __connman_wifi_vsie_list_struct API called");
-
- for (list = service_list; list; list = list->next) {
- struct connman_service *service = list->data;
-
- if (!service->path ||
- service->type != CONNMAN_SERVICE_TYPE_WIFI ||
- service->network == NULL)
- continue;
-
- dbus_message_iter_open_container(iter, DBUS_TYPE_STRUCT,
- NULL, &entry);
- dbus_message_iter_append_basic(&entry, DBUS_TYPE_OBJECT_PATH,
- &service->path);
- append_wifi_vsie_properties(&entry, service);
- dbus_message_iter_close_container(iter, &entry);
- }
-}
-#endif
-
bool __connman_service_is_hidden(struct connman_service *service)
{
return service->hidden;