#include <wayland-server.h>
#include <tizen-extension-server-protocol.h>
-#define CFDBG(f, x...) DBG("Conformant|"f, ##x)
-#define CFINF(f, x...) INF("Conformant|"f, ##x)
-#define CFERR(f, x...) ERR("Conformant|"f, ##x)
-
typedef enum
{
CONFORMANT_TYPE_INDICATOR = 0,
(g_conf->part[type].state.x == w) && (g_conf->part[type].state.x == h))
return;
- CFDBG("Update Conformant State for %d\n", type);
- CFDBG("\tprev: v %d geom %d %d %d %d\n",
+ DBG("Update Conformant State for %d\n", type);
+ DBG("\tprev: v %d geom %d %d %d %d\n",
g_conf->part[type].state.visible,
g_conf->part[type].state.x,
g_conf->part[type].state.y,
g_conf->part[type].state.w,
g_conf->part[type].state.h);
- CFDBG("\tnew : v %d geom %d %d %d %d\n", visible, x, y, w, h);
+ DBG("\tnew : v %d geom %d %d %d %d\n", visible, x, y, w, h);
g_conf->part[type].state.visible = visible;
g_conf->part[type].state.x = x;
if (!cfc)
return;
- CFDBG("\t=> '%s'(%p)", cfc->ec ? (cfc->ec->icccm.name ?:"") : "", cfc->ec);
+ DBG("\t=> '%s'(%p)", cfc->ec ? (cfc->ec->icccm.name ?:"") : "", cfc->ec);
EINA_LIST_FOREACH(cfc->res_list, l, cres)
{
tizen_policy_send_conformant_area
if (!cres)
return;
- CFDBG("Destroy Wl Resource res %p owner %s(%p)",
+ DBG("Destroy Wl Resource res %p owner %s(%p)",
cres->res, cres->cfc->ec->icccm.name ? cres->cfc->ec->icccm.name : "", cres->cfc->ec);
cres->cfc->res_list = eina_list_remove(cres->cfc->res_list, cres);
{
if (cres->res == res)
{
- CFERR("Already Added Resource, Nothing to do. res: %p", res);
+ ERR("Already Added Resource, Nothing to do. res: %p", res);
return;
}
}
{
Conformant_Type type = (Conformant_Type)data;
- CFDBG("PART %s ec(%p) Deleted", _conf_type_to_str(type), g_conf->part[type].ec);
+ DBG("PART %s ec(%p) Deleted", _conf_type_to_str(type), g_conf->part[type].ec);
g_conf->part[type].ec = NULL;
}
Conformant_Type type = (Conformant_Type)data;
E_Client *owner = NULL;
- CFDBG("PART %s ec(%p) Show", _conf_type_to_str(type), g_conf->part[type].ec);
+ DBG("PART %s ec(%p) Show", _conf_type_to_str(type), g_conf->part[type].ec);
owner = _conf_part_owner_find(g_conf->part[type].ec, type);
g_conf->part[type].owner = owner;
{
Conformant_Type type = (Conformant_Type)data;
- CFDBG("PART %s ec(%p) Hide", _conf_type_to_str(type), g_conf->part[type].ec);
+ DBG("PART %s ec(%p) Hide", _conf_type_to_str(type), g_conf->part[type].ec);
_conf_state_update(type,
EINA_FALSE,
g_conf->part[type].state.x,
{
Conformant_Type type = (Conformant_Type)data;
- CFDBG("PART %s ec(%p) Move", _conf_type_to_str(type), g_conf->part[type].ec);
+ DBG("PART %s ec(%p) Move", _conf_type_to_str(type), g_conf->part[type].ec);
g_conf->part[type].changed = 1;
}
{
Conformant_Type type = (Conformant_Type)data;
- CFDBG("PART %s ec(%p) Resize", _conf_type_to_str(type), g_conf->part[type].ec);
+ DBG("PART %s ec(%p) Resize", _conf_type_to_str(type), g_conf->part[type].ec);
g_conf->part[type].changed = 1;
}
{
if (g_conf->part[type].ec)
{
- CFERR("Can't register ec(%p) for %s. ec(%p) was already registered.",
+ ERR("Can't register ec(%p) for %s. ec(%p) was already registered.",
ec, _conf_type_to_str(type), g_conf->part[type].ec);
return;
}
- CFINF("%s Registered ec:%p", _conf_type_to_str(type), ec);
+ INF("%s Registered ec:%p", _conf_type_to_str(type), ec);
g_conf->part[type].ec = ec;
if (g_conf->part[type].state.restore)
{
- CFDBG("Rotation Cancel %s ec(%p)", _conf_type_to_str(type), ev->ec);
+ DBG("Rotation Cancel %s ec(%p)", _conf_type_to_str(type), ev->ec);
_conf_state_update(type,
EINA_TRUE,
g_conf->part[type].state.x,
if ((e_comp_object_is_animating(ec->frame)) ||
(evas_object_data_get(ec->frame, "effect_running")))
{
- CFDBG("Animation is running, skip and try next ec(%p)", ec);
+ DBG("Animation is running, skip and try next ec(%p)", ec);
continue;
}
EINA_SAFETY_ON_NULL_RETURN(g_conf);
EINA_SAFETY_ON_NULL_RETURN(ec);
- CFDBG("Client Add '%s'(%p)", ec->icccm.name ? ec->icccm.name : "", ec);
+ DBG("Client Add '%s'(%p)", ec->icccm.name ? ec->icccm.name : "", ec);
if (g_conf->client_hash)
{
cfc = eina_hash_find(g_conf->client_hash, &ec);
if (cfc)
{
- CFDBG("Already Added Client, Just Add Resource");
+ DBG("Already Added Client, Just Add Resource");
_conf_client_resource_add(cfc, res);
return;
}
EINA_SAFETY_ON_NULL_RETURN(g_conf);
EINA_SAFETY_ON_NULL_RETURN(ec);
- CFDBG("Client Del '%s'(%p)", ec->icccm.name ? ec->icccm.name : "", ec);
+ DBG("Client Del '%s'(%p)", ec->icccm.name ? ec->icccm.name : "", ec);
cfc = eina_hash_find(g_conf->client_hash, &ec);
if (cfc)
if (g_conf)
return EINA_TRUE;
- CFINF("Conformant Module Init");
+ INF("Conformant Module Init");
g_conf = E_NEW(Conformant, 1);
if (!g_conf)
EINA_SAFETY_ON_NULL_RETURN(g_conf);
- CFINF("Conformant Module Shutdown");
+ INF("Conformant Module Shutdown");
_conf_event_shutdown();