forked from enlightenment/efl
edbus: Remove space after for-like macros
SVN revision: 78262
This commit is contained in:
parent
3b8464fa83
commit
6d2bd31902
|
@ -176,7 +176,7 @@ print_live_connection(EDBus_Connection *conn)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
EDBus_Pending *p;
|
EDBus_Pending *p;
|
||||||
EINA_INLIST_FOREACH (conn->pendings, p)
|
EINA_INLIST_FOREACH(conn->pendings, p)
|
||||||
ERR("conn=%p alive pending call=%p dest=%s path=%s %s.%s()",
|
ERR("conn=%p alive pending call=%p dest=%s path=%s %s.%s()",
|
||||||
conn, p,
|
conn, p,
|
||||||
edbus_pending_destination_get(p),
|
edbus_pending_destination_get(p),
|
||||||
|
@ -272,7 +272,7 @@ edbus_cbs_free_del(Eina_Inlist *lst, EDBus_Free_Cb cb, const void *data)
|
||||||
{
|
{
|
||||||
EDBus_Context_Free_Cb *ctx;
|
EDBus_Context_Free_Cb *ctx;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH (lst, ctx)
|
EINA_INLIST_FOREACH(lst, ctx)
|
||||||
{
|
{
|
||||||
if (ctx->cb != cb) continue;
|
if (ctx->cb != cb) continue;
|
||||||
if ((data) && (ctx->data != data)) continue;
|
if ((data) && (ctx->data != data)) continue;
|
||||||
|
@ -300,7 +300,7 @@ edbus_data_find(Eina_Inlist **p_lst, const char *key)
|
||||||
unsigned int keylen = strlen(key);
|
unsigned int keylen = strlen(key);
|
||||||
EDBus_Data *d;
|
EDBus_Data *d;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH (*p_lst, d)
|
EINA_INLIST_FOREACH(*p_lst, d)
|
||||||
{
|
{
|
||||||
if ((keylen == d->keylen) && (memcmp(key, d->key, keylen) == 0))
|
if ((keylen == d->keylen) && (memcmp(key, d->key, keylen) == 0))
|
||||||
{
|
{
|
||||||
|
@ -845,7 +845,7 @@ cb_signal_dispatcher(EDBus_Connection *conn, DBusMessage *msg)
|
||||||
&edbus_msg->iterator->dbus_iterator);
|
&edbus_msg->iterator->dbus_iterator);
|
||||||
conn->running_signal = EINA_TRUE;
|
conn->running_signal = EINA_TRUE;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH (conn->signal_handlers, sh)
|
EINA_INLIST_FOREACH(conn->signal_handlers, sh)
|
||||||
{
|
{
|
||||||
if (sh->sender)
|
if (sh->sender)
|
||||||
{
|
{
|
||||||
|
@ -1061,7 +1061,7 @@ _edbus_connection_unref(EDBus_Connection *conn)
|
||||||
{
|
{
|
||||||
CRITICAL("Connection %p released with live pending calls!",
|
CRITICAL("Connection %p released with live pending calls!",
|
||||||
conn);
|
conn);
|
||||||
EINA_INLIST_FOREACH (conn->pendings, p)
|
EINA_INLIST_FOREACH(conn->pendings, p)
|
||||||
ERR("conn=%p alive pending call=%p dest=%s path=%s %s.%s()",
|
ERR("conn=%p alive pending call=%p dest=%s path=%s %s.%s()",
|
||||||
conn, p,
|
conn, p,
|
||||||
edbus_pending_destination_get(p),
|
edbus_pending_destination_get(p),
|
||||||
|
@ -1091,10 +1091,10 @@ _edbus_connection_unref(EDBus_Connection *conn)
|
||||||
dbus_connection_unref(conn->dbus_conn);
|
dbus_connection_unref(conn->dbus_conn);
|
||||||
conn->dbus_conn = NULL;
|
conn->dbus_conn = NULL;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH_SAFE (conn->fd_handlers, list, fd_handler)
|
EINA_INLIST_FOREACH_SAFE(conn->fd_handlers, list, fd_handler)
|
||||||
edbus_fd_handler_del(fd_handler);
|
edbus_fd_handler_del(fd_handler);
|
||||||
|
|
||||||
EINA_INLIST_FOREACH_SAFE (conn->timeouts, list, timer)
|
EINA_INLIST_FOREACH_SAFE(conn->timeouts, list, timer)
|
||||||
edbus_timeout_data_free(timer->handler);
|
edbus_timeout_data_free(timer->handler);
|
||||||
|
|
||||||
edbus_data_del_all(&conn->data);
|
edbus_data_del_all(&conn->data);
|
||||||
|
@ -1245,7 +1245,7 @@ edbus_name_owner_changed_callback_del(EDBus_Connection *conn, const char *bus, E
|
||||||
cn = eina_hash_find(conn->names, bus);
|
cn = eina_hash_find(conn->names, bus);
|
||||||
EINA_SAFETY_ON_NULL_RETURN(cn);
|
EINA_SAFETY_ON_NULL_RETURN(cn);
|
||||||
|
|
||||||
EINA_INLIST_FOREACH (cn->event_handlers.list, iter)
|
EINA_INLIST_FOREACH(cn->event_handlers.list, iter)
|
||||||
{
|
{
|
||||||
if (cb != iter->cb) continue;
|
if (cb != iter->cb) continue;
|
||||||
if ((cb_data) && (cb_data != iter->cb_data)) continue;
|
if ((cb_data) && (cb_data != iter->cb_data)) continue;
|
||||||
|
@ -1316,7 +1316,7 @@ edbus_connection_event_callback_del(EDBus_Connection *conn, EDBus_Connection_Eve
|
||||||
|
|
||||||
ce = conn->event_handlers + type;
|
ce = conn->event_handlers + type;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH (ce->list, iter)
|
EINA_INLIST_FOREACH(ce->list, iter)
|
||||||
{
|
{
|
||||||
if (cb != iter->cb) continue;
|
if (cb != iter->cb) continue;
|
||||||
if ((cb_data) && (cb_data != iter->cb_data)) continue;
|
if ((cb_data) && (cb_data != iter->cb_data)) continue;
|
||||||
|
@ -1347,7 +1347,7 @@ _edbus_connection_event_callback_call(EDBus_Connection *conn, EDBus_Connection_E
|
||||||
ce = conn->event_handlers + type;
|
ce = conn->event_handlers + type;
|
||||||
|
|
||||||
ce->walking++;
|
ce->walking++;
|
||||||
EINA_INLIST_FOREACH (ce->list, iter)
|
EINA_INLIST_FOREACH(ce->list, iter)
|
||||||
{
|
{
|
||||||
if (iter->deleted) continue;
|
if (iter->deleted) continue;
|
||||||
iter->cb((void *)iter->cb_data, conn, (void *)event_info);
|
iter->cb((void *)iter->cb_data, conn, (void *)event_info);
|
||||||
|
@ -1355,7 +1355,7 @@ _edbus_connection_event_callback_call(EDBus_Connection *conn, EDBus_Connection_E
|
||||||
ce->walking--;
|
ce->walking--;
|
||||||
if (ce->walking > 0) return;
|
if (ce->walking > 0) return;
|
||||||
|
|
||||||
EINA_LIST_FREE (ce->to_delete, iter)
|
EINA_LIST_FREE(ce->to_delete, iter)
|
||||||
_edbus_connection_context_event_cb_del(ce, iter);
|
_edbus_connection_context_event_cb_del(ce, iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,14 +129,14 @@ _edbus_object_free(EDBus_Object *obj)
|
||||||
{
|
{
|
||||||
Eina_Iterator *iterator = eina_hash_iterator_data_new(obj->proxies);
|
Eina_Iterator *iterator = eina_hash_iterator_data_new(obj->proxies);
|
||||||
EDBus_Proxy *proxy;
|
EDBus_Proxy *proxy;
|
||||||
EINA_ITERATOR_FOREACH (iterator, proxy)
|
EINA_ITERATOR_FOREACH(iterator, proxy)
|
||||||
ERR("obj=%p alive proxy=%p %s", obj, proxy,
|
ERR("obj=%p alive proxy=%p %s", obj, proxy,
|
||||||
edbus_proxy_interface_get(proxy));
|
edbus_proxy_interface_get(proxy));
|
||||||
eina_iterator_free(iterator);
|
eina_iterator_free(iterator);
|
||||||
eina_hash_free(obj->proxies);
|
eina_hash_free(obj->proxies);
|
||||||
}
|
}
|
||||||
|
|
||||||
EINA_LIST_FREE (obj->signal_handlers, h)
|
EINA_LIST_FREE(obj->signal_handlers, h)
|
||||||
{
|
{
|
||||||
if (h->dangling)
|
if (h->dangling)
|
||||||
edbus_signal_handler_cb_free_del(h, _on_signal_handler_free, obj);
|
edbus_signal_handler_cb_free_del(h, _on_signal_handler_free, obj);
|
||||||
|
@ -302,7 +302,7 @@ edbus_object_event_callback_del(EDBus_Object *obj, EDBus_Object_Event_Type type,
|
||||||
|
|
||||||
ce = obj->event_handlers + type;
|
ce = obj->event_handlers + type;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH (ce->list, iter)
|
EINA_INLIST_FOREACH(ce->list, iter)
|
||||||
{
|
{
|
||||||
if (cb != iter->cb) continue;
|
if (cb != iter->cb) continue;
|
||||||
if ((cb_data) && (cb_data != iter->cb_data)) continue;
|
if ((cb_data) && (cb_data != iter->cb_data)) continue;
|
||||||
|
@ -333,7 +333,7 @@ _edbus_object_event_callback_call(EDBus_Object *obj, EDBus_Object_Event_Type typ
|
||||||
ce = obj->event_handlers + type;
|
ce = obj->event_handlers + type;
|
||||||
|
|
||||||
ce->walking++;
|
ce->walking++;
|
||||||
EINA_INLIST_FOREACH (ce->list, iter)
|
EINA_INLIST_FOREACH(ce->list, iter)
|
||||||
{
|
{
|
||||||
if (iter->deleted) continue;
|
if (iter->deleted) continue;
|
||||||
iter->cb((void *)iter->cb_data, obj, (void *)event_info);
|
iter->cb((void *)iter->cb_data, obj, (void *)event_info);
|
||||||
|
@ -341,7 +341,7 @@ _edbus_object_event_callback_call(EDBus_Object *obj, EDBus_Object_Event_Type typ
|
||||||
ce->walking--;
|
ce->walking--;
|
||||||
if (ce->walking > 0) return;
|
if (ce->walking > 0) return;
|
||||||
|
|
||||||
EINA_LIST_FREE (ce->to_delete, iter)
|
EINA_LIST_FREE(ce->to_delete, iter)
|
||||||
_edbus_object_context_event_cb_del(ce, iter);
|
_edbus_object_context_event_cb_del(ce, iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ _edbus_proxy_free(EDBus_Proxy *proxy)
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
EDBus_Signal_Handler *h;
|
EDBus_Signal_Handler *h;
|
||||||
|
|
||||||
EINA_LIST_FREE (proxy->handlers, h)
|
EINA_LIST_FREE(proxy->handlers, h)
|
||||||
{
|
{
|
||||||
if (h->dangling)
|
if (h->dangling)
|
||||||
edbus_signal_handler_cb_free_del(h, _on_signal_handler_free, proxy);
|
edbus_signal_handler_cb_free_del(h, _on_signal_handler_free, proxy);
|
||||||
|
@ -306,7 +306,7 @@ edbus_proxy_event_callback_del(EDBus_Proxy *proxy, EDBus_Proxy_Event_Type type,
|
||||||
|
|
||||||
ce = proxy->event_handlers + type;
|
ce = proxy->event_handlers + type;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH (ce->list, iter)
|
EINA_INLIST_FOREACH(ce->list, iter)
|
||||||
{
|
{
|
||||||
if (cb != iter->cb) continue;
|
if (cb != iter->cb) continue;
|
||||||
if ((cb_data) && (cb_data != iter->cb_data)) continue;
|
if ((cb_data) && (cb_data != iter->cb_data)) continue;
|
||||||
|
@ -337,7 +337,7 @@ _edbus_proxy_event_callback_call(EDBus_Proxy *proxy, EDBus_Proxy_Event_Type type
|
||||||
ce = proxy->event_handlers + type;
|
ce = proxy->event_handlers + type;
|
||||||
|
|
||||||
ce->walking++;
|
ce->walking++;
|
||||||
EINA_INLIST_FOREACH (ce->list, iter)
|
EINA_INLIST_FOREACH(ce->list, iter)
|
||||||
{
|
{
|
||||||
if (iter->deleted) continue;
|
if (iter->deleted) continue;
|
||||||
iter->cb((void *)iter->cb_data, proxy, (void *)event_info);
|
iter->cb((void *)iter->cb_data, proxy, (void *)event_info);
|
||||||
|
@ -345,7 +345,7 @@ _edbus_proxy_event_callback_call(EDBus_Proxy *proxy, EDBus_Proxy_Event_Type type
|
||||||
ce->walking--;
|
ce->walking--;
|
||||||
if (ce->walking > 0) return;
|
if (ce->walking > 0) return;
|
||||||
|
|
||||||
EINA_LIST_FREE (ce->to_delete, iter)
|
EINA_LIST_FREE(ce->to_delete, iter)
|
||||||
_edbus_proxy_context_event_cb_del(ce, iter);
|
_edbus_proxy_context_event_cb_del(ce, iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue