summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-09-27 01:45:32 (GMT)
committerHwankyu Jhun <h.jhun@samsung.com>2017-09-27 01:45:32 (GMT)
commitac279813c1374fd48cf7a9a95bfb56f08abde403 (patch)
tree73be10fa685eea3b015eccdfce529986e66571b8
parent9720689dae295866c934021aa60ba47092ef3821 (diff)
downloadui-gadget-1-ac279813c1374fd48cf7a9a95bfb56f08abde403.zip
ui-gadget-1-ac279813c1374fd48cf7a9a95bfb56f08abde403.tar.gz
ui-gadget-1-ac279813c1374fd48cf7a9a95bfb56f08abde403.tar.bz2
Exclude some lines from lcovrefs/changes/88/152688/1
Change-Id: I177f03a06b906f5dc896bd3b8fc22bb30ff37a77 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/engine.c6
-rw-r--r--src/ug.c4
-rwxr-xr-xug-efl-engine/ug-efl-engine.c28
3 files changed, 38 insertions, 0 deletions
diff --git a/src/engine.c b/src/engine.c
index a208ceb..08c5a6d 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -47,14 +47,18 @@ struct ug_engine *ug_engine_load()
engine = calloc(1, sizeof(struct ug_engine));
if (!engine) {
+ /* LCOV_EXCL_START */
errno = ENOMEM;
return NULL;
+ /* LCOV_EXCL_STOP */
}
handle = dlopen(UG_LIB_DIR"/libui-gadget-1-efl-engine.so", RTLD_LAZY);
if (!handle) {
+ /* LCOV_EXCL_START */
_ERR("dlopen failed: %s", dlerror());
goto engine_free;
+ /* LCOV_EXCL_STOP */
}
engine_init = dlsym(handle, UG_ENGINE_INIT_SYM);
@@ -69,12 +73,14 @@ struct ug_engine *ug_engine_load()
engine->handle = handle;
return engine;
+/* LCOV_EXCL_START */
engine_dlclose:
dlclose(handle);
engine_free:
free(engine);
return NULL;
+/* LCOV_EXCL_STOP */
}
/* LCOV_EXCL_START */
diff --git a/src/ug.c b/src/ug.c
index 912f9f8..8f2fb9f 100644
--- a/src/ug.c
+++ b/src/ug.c
@@ -33,6 +33,7 @@
#define UG_API __attribute__ ((visibility("default")))
#endif
+/* LCOV_EXCL_START */
ui_gadget_h ug_root_create(void)
{
ui_gadget_h ug;
@@ -49,7 +50,9 @@ ui_gadget_h ug_root_create(void)
return ug;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
int ug_free(ui_gadget_h ug)
{
if (!ug) {
@@ -72,6 +75,7 @@ int ug_free(ui_gadget_h ug)
ug = NULL;
return 0;
}
+/* LCOV_EXCL_STOP */
UG_API ui_gadget_h ug_create(ui_gadget_h parent,
const char *name,
diff --git a/ug-efl-engine/ug-efl-engine.c b/ug-efl-engine/ug-efl-engine.c
index 870140b..1329dd2 100755
--- a/ug-efl-engine/ug-efl-engine.c
+++ b/ug-efl-engine/ug-efl-engine.c
@@ -91,6 +91,7 @@ static void __del_effect_end(ui_gadget_h ug)
hide_end_cb(ug);
}
+/* LCOV_EXCL_START */
static void __del_finished(void *data, Evas_Object *obj, void *event_info)
{
if (!event_info) {
@@ -114,7 +115,9 @@ static void __del_finished(void *data, Evas_Object *obj, void *event_info)
else
_ERR("wrong ug(%p) state(%d)", ug, ug->layout_state);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __del_effect_top_layout(ui_gadget_h ug)
{
_WRN("\t cb transition add ug=%p", ug);
@@ -124,7 +127,9 @@ static void __del_effect_top_layout(ui_gadget_h ug)
ug->effect_layout = NULL;
ug->layout_state = UG_LAYOUT_HIDEEFFECT;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __del_effect_layout(ui_gadget_h ug, ui_gadget_h t_ug)
{
if (!ug)
@@ -138,7 +143,9 @@ static void __del_effect_layout(ui_gadget_h ug, ui_gadget_h t_ug)
__del_effect_end(ug);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __hide_end(ui_gadget_h ug)
{
if (navi) {
@@ -154,14 +161,18 @@ static void __hide_end(ui_gadget_h ug)
if (ug->layout)
evas_object_hide(ug->layout);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __hide_effect_end(ui_gadget_h ug)
{
__hide_end(ug);
ug->layout_state = UG_LAYOUT_HIDE;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __hide_finished(void *data, Evas_Object *obj, void *event_info)
{
ui_gadget_h ug = (ui_gadget_h)data;
@@ -178,7 +189,9 @@ static void __hide_finished(void *data, Evas_Object *obj, void *event_info)
else
_ERR("wrong ug(%p) state(%d)", ug, ug->layout_state);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __on_hideonly_cb(void *data, Evas_Object *obj)
{
ui_gadget_h ug = (ui_gadget_h)data;
@@ -227,6 +240,7 @@ static void __on_hideonly_cb(void *data, Evas_Object *obj)
ug->effect_layout = NULL;
}
+/* LCOV_EXCL_STOP */
static void on_destroy(ui_gadget_h ug, ui_gadget_h t_ug,
void (*hide_cb)(void* data))
@@ -249,9 +263,11 @@ static void on_destroy(ui_gadget_h ug, ui_gadget_h t_ug,
hide_end_cb = hide_cb;
if (ug != t_ug) {
+ /* LCOV_EXCL_START */
_DBG("requested ug(%p) is not top ug(%p)", ug, t_ug);
__del_effect_layout(ug, t_ug);
return;
+ /* LCOV_EXCL_STOP */
}
if (ug->layout_state == UG_LAYOUT_SHOW) {
@@ -273,6 +289,7 @@ static void on_destroy(ui_gadget_h ug, ui_gadget_h t_ug,
}
}
+/* LCOV_EXCL_START */
static void __show_finished(void *data, Evas_Object *obj, void *event_info)
{
ui_gadget_h ug = (ui_gadget_h)data;
@@ -296,7 +313,9 @@ static void __show_finished(void *data, Evas_Object *obj, void *event_info)
return;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static int __show_end_cb_by_job_add(void *data)
{
if (show_end_cb)
@@ -304,7 +323,9 @@ static int __show_end_cb_by_job_add(void *data)
return 0;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void on_show_cb(void *data, Evas *e, Evas_Object *obj,
void *event_info)
{
@@ -347,6 +368,7 @@ static void on_show_cb(void *data, Evas *e, Evas_Object *obj,
_DBG("\ton_show_cb end ug=%p", ug);
}
+/* LCOV_EXCL_STOP */
static void *on_create(void *win, ui_gadget_h ug,
void (*show_cb)(void* data))
@@ -363,8 +385,10 @@ static void *on_create(void *win, ui_gadget_h ug,
conform = con;
_DBG("\t There is conformant");
} else {
+ /* LCOV_EXCL_START */
_ERR("\t There is no conformant");
return NULL;
+ /* LCOV_EXCL_STOP */
}
if (!navi) {
@@ -429,8 +453,10 @@ static void *on_request(void *data, ui_gadget_h ug, int req)
}
break;
default:
+ /* LCOV_EXCL_START */
_WRN("wrong req id(%d)", req);
return NULL;
+ /* LCOV_EXCL_STOP */
}
return ret;
@@ -448,6 +474,8 @@ UG_ENGINE_API int UG_ENGINE_INIT(struct ug_engine_ops *ops)
return 0;
}
+/* LCOV_EXCL_START */
UG_ENGINE_API void UG_ENGINE_EXIT(struct ug_engine_ops *ops)
{
}
+/* LCOV_EXCL_STOP */