_dbus_init_done(void *data, int type, void *event)
{
E_DBus_Conn_Init_Done_Event *e = event;
+ E_DBus_Conn_Init_Status status = e_dbus_conn_init_done_event_status_get(e);
+ Eldbus_Connection_Type conn_type = e_dbus_conn_init_done_event_conn_type_get(e);
- if (e->status == E_DBUS_CONN_INIT_SUCCESS &&
- e->conn_type == ELDBUS_CONNECTION_TYPE_SYSTEM)
+ if ((status == E_DBUS_CONN_INIT_SUCCESS) && (conn_type == ELDBUS_CONNECTION_TYPE_SYSTEM))
{
- conn = e_dbus_conn_connection_ref(e->conn_type);
+ conn = e_dbus_conn_connection_ref(conn_type);
if (conn)
{
eldbus_name_request(conn, E_A11Y_SERVICE_BUS_NAME,
ERROR("unable to ref bus");
}
else
- ERROR("unable get bus - status(%d), type(%d)", e->status, e->conn_type);
+ ERROR("unable get bus - status(%d), type(%d)", status, conn_type);
ecore_event_handler_del(dbus_init_done_handler);
dbus_init_done_handler = NULL;