-static void on_name_appeared(GDBusConnection *connection,
- const gchar *name,
- const gchar *name_owner,
- gpointer user_data)
-{
- _LOGD("name appeared : %s %s", __app_id, name);
-}
-
-static void on_name_vanished(GDBusConnection *connection,
- const gchar *name,
- gpointer user_data)
-{
- _LOGI("name vanished : %s", name);
- port_list_info_s *pli = (port_list_info_s *)user_data;
- if (pli == NULL) {
- LOGE("NULL port info");
- return;
- }
-
- _LOGD("watcher_id :%d", pli->watcher_id);
- if (pli->watcher_id > 0)
- g_bus_unwatch_name(pli->watcher_id);
- else
- _LOGE("Invalid watcher_id %d", pli->watcher_id);
- pli->exist = false;
- pli->watcher_id = 0;
-
-}
-