diff options
author | Volodymyr Brynza <v.brynza@samsung.com> | 2015-12-08 10:36:09 +0200 |
---|---|---|
committer | Sangchul Lee <sc11.lee@samsung.com> | 2015-12-08 01:07:33 -0800 |
commit | bd31ed765be6b9e5ea310e87edcfb41ef88a9932 (patch) | |
tree | 226edc0418fefdc29d33ef485e68427c720f8a49 /src | |
parent | 078f48a18bb2c8816f6d244a2c9684913ead5303 (diff) | |
download | murphy-bd31ed765be6b9e5ea310e87edcfb41ef88a9932.tar.gz murphy-bd31ed765be6b9e5ea310e87edcfb41ef88a9932.tar.bz2 murphy-bd31ed765be6b9e5ea310e87edcfb41ef88a9932.zip |
Add callback checkingsubmit/tizen/20151208.092302accepted/tizen/wearable/20151208.130242accepted/tizen/tv/20151208.130225accepted/tizen/mobile/20151208.130206
Change-Id: I26b518f3c0fc6ce0a3e6f0e0681cbc86ae8c8219
Signed-off-by: Volodymyr Brynza <v.brynza@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/common/glib-glue.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/glib-glue.c b/src/common/glib-glue.c index 2df2ea7..8ffd3a8 100644 --- a/src/common/glib-glue.c +++ b/src/common/glib-glue.c @@ -171,8 +171,14 @@ static void del_io(void *glue_data, void *id) static gboolean timer_cb(gpointer user_data) { + if (user_data == NULL) + return FALSE; + tmr_t *t = (tmr_t *)user_data; + if (t->cb == NULL) + return FALSE; + t->cb(t->glue_data, t, t->user_data); return TRUE; @@ -231,8 +237,14 @@ static void mod_timer(void *glue_data, void *id, unsigned int msecs) static gboolean defer_cb(void *user_data) { + if (user_data == NULL) + return FALSE; + dfr_t *d = (dfr_t *)user_data; + if (d->cb == NULL) + return FALSE; + d->cb(d->glue_data, d, d->user_data); return TRUE; |