Increase line & function coverage 32/180432/1
authorsaerome.kim <saerome.kim@samsung.com>
Tue, 29 May 2018 10:51:58 +0000 (19:51 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Tue, 29 May 2018 10:51:58 +0000 (19:51 +0900)
Sending dbus siganl is not included in line and function coverage,
so add except uncovered lines.

Change-Id: Id3f11ef6648f316ce2bfb42c89604c0a339b30e9
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
50 files changed:
zigbee-daemon/src/main.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_custom.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_mfglib_control.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_service.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_alarm.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_basic.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_color_control.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_door_lock.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_fan_control.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_global_control.c [changed mode: 0755->0644]
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_group.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_ias_zone.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_identify.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_level_control.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_on_off.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_poll_control.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_scene.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zcl_thermostat.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zdo_bind.c
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface_zdo_dev_control.c [changed mode: 0755->0644]
zigbee-daemon/zigbee-interface/src/zigbee_service_interface.c
zigbee-daemon/zigbee-interface/src/zigbee_service_interface_common.c
zigbee-daemon/zigbee-lib/include/zblib_common.h
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_custom.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_mfglib_control.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_service.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_alarm.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_basic.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_color_control.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_door_lock.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_fan_control.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_global_control.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_group.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_ias_zone.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_identify.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_level_control.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_on_off.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_poll_control.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_scene.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zcl_thermostat.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zdo_bind.c
zigbee-daemon/zigbee-lib/src/drivers/zblib_driver_zdo_dev_control.c
zigbee-daemon/zigbee-lib/src/zblib_driver.c
zigbee-daemon/zigbee-lib/src/zblib_log.c
zigbee-daemon/zigbee-lib/src/zblib_plugin.c
zigbee-daemon/zigbee-lib/src/zblib_request.c
zigbee-daemon/zigbee-lib/src/zblib_service.c
zigbee-daemon/zigbee-lib/src/zblib_service_interface.c
zigbee-daemon/zigbee-service/src/zigbee_service.c

index 14439d3..a09bd17 100644 (file)
@@ -38,6 +38,7 @@ ZigBeeService *zigbee_service;
 extern void __gcov_flush(void);
 #endif
 
+/* LCOV_EXCL_START */
 static gboolean _request_terminate(gpointer user_data)
 {
        NOTUSED(user_data);
@@ -46,6 +47,7 @@ static gboolean _request_terminate(gpointer user_data)
 
        return G_SOURCE_REMOVE;
 }
+/* LCOV_EXCL_STOP */
 
 int main(int arg, char **argv)
 {
@@ -72,24 +74,30 @@ int main(int arg, char **argv)
        /* Initialize ZigBee service interface layer */
        ret = zigbee_service_interface_init(service);
        if (G_UNLIKELY(FALSE == ret)) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zigbee_service_interface_init failed!");
                goto END;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Initialize ZigBee service */
        ret = zigbee_service_init(service);
        if (G_UNLIKELY(FALSE == ret)) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zigbee_service_init failed!");
                /* Minimum mainloop time is required to notify the result */
                g_timeout_add(100, _request_terminate, NULL);
+               /* LCOV_EXCL_STOP */
        }
 
        /* Run ZigBee service */
        Z_LOGI("service mainloop start");
        ret = zblib_service_run(service);
        if (G_UNLIKELY(FALSE == ret)) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Run service failed!");
                ret_code = EXIT_FAILURE;
+               /* LCOV_EXCL_STOP */
        }
 
 END:
index af19f9f..b72c1e9 100644 (file)
@@ -42,8 +42,10 @@ static void _notify_zigbee_state(ZigBeeServiceInterface *service_interface,
        ZigBeeService *service = zblib_service_interface_ref_service(service_interface);
 
        if (NULL == custom_data) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Unexpected invalid parameter !");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        if (result) {
@@ -51,7 +53,7 @@ static void _notify_zigbee_state(ZigBeeServiceInterface *service_interface,
                zigbee_manager_emit_zigbee_state(custom_data->zigbee_mgr, result);
        } else {
                /* ZigBee state will be emitted on bus termination */
-               zblib_service_exit(service);
+               zblib_service_exit(service); // LCOV_EXCL_LINE
        }
 }
 
@@ -63,9 +65,11 @@ static gboolean on_manager_enable(ZigbeeManager *zigbee_mgr,
        ZigbeeCustomData_t *custom_data = zblib_service_interface_ref_user_data(service_interface);
 
        if (NULL == custom_data) {
+               /* LCOV_EXCL_START */
                ZIGBEE_DBUS_FAIL_RESPONSE(invocation, ZIGBEE_DBUS_DEFAULT_REQ_FAILED_MSG);
 
                return TRUE;
+               /* LCOV_EXCL_STOP */
        }
 
        zigbee_manager_complete_enable(zigbee_mgr, invocation);
@@ -90,6 +94,7 @@ static gboolean on_manager_disable(ZigbeeManager *zigbee_mgr,
        return TRUE;
 }
 
+/* LCOV_EXCL_START */
 static gboolean on_manager_get_zigbee_state(ZigbeeManager *zigbee_mgr,
        GDBusMethodInvocation *invocation, gpointer user_data)
 {
@@ -109,6 +114,7 @@ static gboolean on_manager_get_zigbee_state(ZigbeeManager *zigbee_mgr,
 
        return TRUE;
 }
+/* LCOV_EXCL_STOP */
 
 static void zigbee_service_dbus_interface_initialize_interfaces(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -180,8 +186,10 @@ static void zigbee_service_dbus_interface_noti_cb(ZigBeeServiceInterface *servic
        guint notification_id;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Extract driver_type */
@@ -194,68 +202,90 @@ static void zigbee_service_dbus_interface_noti_cb(ZigBeeServiceInterface *servic
 
        switch (driver_type) {
        case ZBLIB_DRIVER_TYPE_ZCL_ALARM: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_alarm_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_CUSTOM: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_custom_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_DOOR_LOCK: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_door_lock_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_FAN_CONTROL: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_fan_control_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_LEVEL_CONTROL: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_level_control_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_MFGLIB_CONTROL: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_mfglib_control_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_ON_OFF: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_on_off_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_SERVICE: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_service_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_THERMOSTAT: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_thermostat_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_BASIC: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_basic_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_GLOBAL_CONTROL: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_global_control_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
@@ -266,44 +296,58 @@ static void zigbee_service_dbus_interface_noti_cb(ZigBeeServiceInterface *servic
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_IDENTIFY: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_identify_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_COLOR_CONTROL: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_color_control_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_GROUP: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_group_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_POLL_CONTROL: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_poll_control_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZCL_SCENE: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zcl_scene_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZDO_DEV_CONTROL: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zdo_dev_control_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_ZDO_BIND: {
+               /* LCOV_EXCL_START */
                zigbee_service_dbus_interface_zdo_bind_notification(service_interface,
                        notification_id, noti_data, noti_data_len, noti_cb_data);
+               /* LCOV_EXCL_STOP */
        }
        break;
 
@@ -315,18 +359,19 @@ static void zigbee_service_dbus_interface_noti_cb(ZigBeeServiceInterface *servic
                        Z_LOGD("Firmware update result : [%s]", ((*rsp) ? "Succeed" : "Failed"));
                        _notify_zigbee_state(service_interface, *rsp);
                } else
-                       Z_LOGE("Unhandled notification id: [%d]", notification_id);
+                       Z_LOGE("Unhandled notification id: [%d]", notification_id); // LCOV_EXCL_LINE
        }
        break;
 
        case ZBLIB_DRIVER_TYPE_NONE: /* Fall through */
        default: {
-               Z_LOGE("Unhandled driver type: [%d]", driver_type);
+               Z_LOGE("Unhandled driver type: [%d]", driver_type); // LCOV_EXCL_LINE
        }
-       break;
+       break; // LCOV_EXCL_LINE
        }
 }
 
+/* LCOV_EXCL_START */
 static void zigbee_on_name_lost(GDBusConnection *connection,
        const gchar *name, gpointer user_data)
 {
@@ -342,6 +387,7 @@ static void zigbee_on_name_lost(GDBusConnection *connection,
        /* Bus name is 'lost' */
        custom_data->name_acquired = FALSE;
 }
+/* LCOV_EXCL_STOP */
 
 static void zigbee_on_name_acquired(GDBusConnection *connection,
        const gchar *name, gpointer user_data)
@@ -373,20 +419,26 @@ static void zigbee_on_bus_acquired(GDBusConnection *connection,
        Z_LOGI("'%s' - [BUS Acquired]", name);
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL!");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        service = zblib_service_interface_ref_service(service_interface);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service is NULL!");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        custom_data = (ZigbeeCustomData_t *)zblib_service_interface_ref_user_data(service_interface);
        if (NULL == custom_data) {
+               /* LCOV_EXCL_START */
                Z_LOGE("D-BUS service interface custom_data is NULL!");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        /*
@@ -436,8 +488,10 @@ static void zigbee_on_bus_acquired(GDBusConnection *connection,
         */
        zigbee_object = g_hash_table_lookup(custom_data->objects, path);
        if (zigbee_object) {
+               /* LCOV_EXCL_START */
                Z_LOGW("ZigBee D-BUS interface object already created (object: %p)", zigbee_object);
                goto OUT;
+               /* LCOV_EXCL_STOP */
        }
 
        /*
@@ -490,8 +544,10 @@ gboolean zigbee_service_dbus_interface_init(ZigBeeService *service)
        gboolean ret;
 
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        /*
@@ -500,9 +556,11 @@ gboolean zigbee_service_dbus_interface_init(ZigBeeService *service)
        service_interface = zblib_service_interface_new(service,
                ZIGBEE_DBUS_SERVICE_INTERFACE_NAME);
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Create D-BUS service interface failed!");
 
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        /*
@@ -511,9 +569,11 @@ gboolean zigbee_service_dbus_interface_init(ZigBeeService *service)
        ret = zblib_service_interface_set_noti_cb(service_interface,
                zigbee_service_dbus_interface_noti_cb, NULL);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Set service interface notification callback failed!");
 
                goto EXIT;
+               /* LCOV_EXCL_STOP */
        }
 
        /*
@@ -522,9 +582,11 @@ gboolean zigbee_service_dbus_interface_init(ZigBeeService *service)
        ret = zblib_service_add_service_interface(service,
                        service_interface);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Add D-BUS service interface failed!");
 
                goto EXIT;
+               /* LCOV_EXCL_STOP */
        }
 
        /*
@@ -538,9 +600,11 @@ gboolean zigbee_service_dbus_interface_init(ZigBeeService *service)
        ret = zblib_service_interface_link_user_data(service_interface,
                        interface_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Link D-BUS service interface data failed!");
 
                goto EXIT;
+               /* LCOV_EXCL_STOP */
        }
 
        /* HASH table for maintaining 'objects' list */
@@ -570,6 +634,7 @@ gboolean zigbee_service_dbus_interface_init(ZigBeeService *service)
        return TRUE;
 
 EXIT:
+       /* LCOV_EXCL_START */
        g_free(interface_data);
 
        /*
@@ -587,6 +652,7 @@ EXIT:
                        service_interface);
 
        return FALSE;
+       /* LCOV_EXCL_STOP */
 }
 
 /**< Zigbee service dbus interface de-initialization */
@@ -597,23 +663,29 @@ void zigbee_service_dbus_interface_deinit(ZigBeeService *service)
        gboolean ret;
 
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service is NULL");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        service_interface = zblib_service_ref_service_interface(service,
                ZIGBEE_DBUS_SERVICE_INTERFACE_NAME);
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("D-BUS service interface not found!");
 
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        interface_data = (ZigbeeCustomData_t *)zblib_service_interface_ref_user_data(service_interface);
        if (NULL == interface_data) {
+               /* LCOV_EXCL_START */
                Z_LOGE("D-BUS interface data not found!");
 
                goto EXIT;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Emit zigbee_state - disabled */
@@ -648,7 +720,7 @@ EXIT:
        ret = zblib_service_remove_service_interface(service,
                        service_interface);
        if (FALSE == ret)
-               Z_LOGE("Remove service interface failed!");
+               Z_LOGE("Remove service interface failed!"); // LCOV_EXCL_LINE
 
        /*
         * Free Service interface object
index 3389215..ff08ffa 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_custom.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_custom(
        ZigBeeServiceInterface *service_interface)
 {
@@ -451,6 +452,7 @@ void zigbee_service_dbus_interface_custom_notification(ZigBeeServiceInterface *s
        /* ZigbeeCustom should be dereferenced */
        g_object_unref(custom_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_custom_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -458,8 +460,10 @@ gboolean zigbee_service_dbus_interface_custom_init(ZigBeeServiceInterface *servi
        ZigbeeCustom *custom_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        custom_object = zigbee_custom_skeleton_new();
index bf5becf..6078ff7 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_mfglib_control.h>
 
+/* LCOV_EXCL_START */
 static void on_mfglib_control_start_resp(ZigBeeServiceInterface *service_interface,
        guint request_id, gpointer resp_data, guint resp_data_len, gpointer resp_cb_data)
 {
@@ -1258,6 +1259,7 @@ void zigbee_service_dbus_interface_mfglib_control_notification(ZigBeeServiceInte
        NOT_USED(noti_data_len);
        NOT_USED(noti_cb_data);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_mfglib_control_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -1265,8 +1267,10 @@ gboolean zigbee_service_dbus_interface_mfglib_control_init(ZigBeeServiceInterfac
        ZigbeeMfglib_control *mfglib_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        mfglib_control_object = zigbee_mfglib_control_skeleton_new();
index d04136d..b647843 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_service.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_service(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
@@ -1336,6 +1337,7 @@ void zigbee_service_dbus_interface_service_notification(ZigBeeServiceInterface *
        /* ZigbeeService should be dereferenced */
        g_object_unref(service_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_service_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -1343,8 +1345,10 @@ gboolean zigbee_service_dbus_interface_service_init(ZigBeeServiceInterface *serv
        ZigbeeService *service_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        service_object = zigbee_service_skeleton_new();
index 787a40c..1d46eb5 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_alarm.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_alarm(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
@@ -609,6 +610,7 @@ void zigbee_service_dbus_interface_zcl_alarm_notification(ZigBeeServiceInterface
        /* ZigbeeZcl_alarm should be dereferenced */
        g_object_unref(alarm_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_alarm_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -616,8 +618,10 @@ gboolean zigbee_service_dbus_interface_zcl_alarm_init(ZigBeeServiceInterface *se
        ZigbeeZcl_alarm *alarm_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        alarm_object = zigbee_zcl_alarm_skeleton_new();
index 2512877..39ab185 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_basic.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_basic(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
@@ -153,6 +154,7 @@ void zigbee_service_dbus_interface_zcl_basic_notification(ZigBeeServiceInterface
        /* ZigbeeZcl_basic should be dereferenced */
        g_object_unref(basic_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_basic_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -160,8 +162,10 @@ gboolean zigbee_service_dbus_interface_zcl_basic_init(ZigBeeServiceInterface *se
        ZigbeeZcl_basic *zclbasic_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zclbasic_control_object = zigbee_zcl_basic_skeleton_new();
index 6a5b4a5..cfac230 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_color_control.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_color_control(
        ZigBeeServiceInterface *service_interface)
 {
@@ -1050,6 +1051,7 @@ void zigbee_service_dbus_interface_zcl_color_control_notification(ZigBeeServiceI
        /* ZigbeeZcl_color_control should be dereferenced */
        g_object_unref(color_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_color_control_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -1057,8 +1059,10 @@ gboolean zigbee_service_dbus_interface_zcl_color_control_init(ZigBeeServiceInter
        ZigbeeZcl_color_control *zcl_color_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zcl_color_object = zigbee_zcl_color_control_skeleton_new();
index ee2d25b..662ff1c 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_door_lock.h>
 
+/* LCOV_EXCL_START */
 static void on_door_lock_subscribe_lock_event_resp(ZigBeeServiceInterface *service_interface,
        guint request_id, gpointer resp_data, guint resp_data_len, gpointer resp_cb_data)
 {
@@ -337,6 +338,7 @@ void zigbee_service_dbus_interface_zcl_door_lock_notification(ZigBeeServiceInter
        NOT_USED(noti_data_len);
        NOT_USED(noti_cb_data);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_door_lock_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -344,8 +346,10 @@ gboolean zigbee_service_dbus_interface_zcl_door_lock_init(ZigBeeServiceInterface
        ZigbeeZcl_door_lock *door_lock_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        door_lock_object = zigbee_zcl_door_lock_skeleton_new();
index 3aea00a..486fe2e 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_fan_control.h>
 
+/* LCOV_EXCL_START */
 static void on_fan_control_set_fan_mode_resp(ZigBeeServiceInterface *service_interface,
        guint request_id, gpointer resp_data, guint resp_data_len, gpointer resp_cb_data)
 {
@@ -327,6 +328,7 @@ void zigbee_service_dbus_interface_zcl_fan_control_notification(ZigBeeServiceInt
        NOT_USED(noti_data_len);
        NOT_USED(noti_cb_data);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_fan_control_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -334,8 +336,10 @@ gboolean zigbee_service_dbus_interface_zcl_fan_control_init(ZigBeeServiceInterfa
        ZigbeeZcl_fan_control *fan_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        fan_control_object = zigbee_zcl_fan_control_skeleton_new();
old mode 100755 (executable)
new mode 100644 (file)
index 91973d5..445d97c
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_global_control.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_global_control(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
@@ -1728,6 +1729,7 @@ void zigbee_service_dbus_interface_zcl_global_control_notification(ZigBeeService
        /* ZigbeeZcl_global_control should be dereferenced */
        g_object_unref(global_control_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_global_control_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -1735,8 +1737,10 @@ gboolean zigbee_service_dbus_interface_zcl_global_control_init(ZigBeeServiceInte
        ZigbeeZcl_global_control *zclglobal_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zclglobal_control_object = zigbee_zcl_global_control_skeleton_new();
index c449a5f..a13333e 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_group.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_group(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
@@ -668,6 +669,7 @@ void zigbee_service_dbus_interface_zcl_group_notification(ZigBeeServiceInterface
        /* ZigbeeZcl_group should be dereferenced */
        g_object_unref(group_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_group_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -675,8 +677,10 @@ gboolean zigbee_service_dbus_interface_zcl_group_init(ZigBeeServiceInterface *se
        ZigbeeZcl_group *zcl_group_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zcl_group_object = zigbee_zcl_group_skeleton_new();
index 5f67aee..e07be5a 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_ias_zone.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_ias_zone(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
@@ -176,6 +177,7 @@ void zigbee_service_dbus_interface_zcl_ias_zone_notification(ZigBeeServiceInterf
        /* ZigbeeZcl_ias_zone should be dereferenced */
        g_object_unref(ias_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_ias_zone_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -183,8 +185,10 @@ gboolean zigbee_service_dbus_interface_zcl_ias_zone_init(ZigBeeServiceInterface
        ZigbeeZcl_ias_zone *zclias_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zclias_control_object = zigbee_zcl_ias_zone_skeleton_new();
index b6e2d45..334802b 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_identify.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_identify(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
@@ -246,6 +247,7 @@ void zigbee_service_dbus_interface_zcl_identify_notification(ZigBeeServiceInterf
        /* ZigbeeZcl_identify should be dereferenced */
        g_object_unref(id_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_identify_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -253,8 +255,10 @@ gboolean zigbee_service_dbus_interface_zcl_identify_init(ZigBeeServiceInterface
        ZigbeeZcl_identify *zclidentify_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zclidentify_control_object = zigbee_zcl_identify_skeleton_new();
index 22ba279..d7b4ea8 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_level_control.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_level_control(
        ZigBeeServiceInterface *service_interface)
 {
@@ -685,6 +686,7 @@ void zigbee_service_dbus_interface_zcl_level_control_notification(ZigBeeServiceI
        /* ZigbeeZcl_level_control should be dereferenced */
        g_object_unref(level_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_level_control_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -692,8 +694,10 @@ gboolean zigbee_service_dbus_interface_zcl_level_control_init(ZigBeeServiceInter
        ZigbeeZcl_level_control *level_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        level_control_object = zigbee_zcl_level_control_skeleton_new();
index 396fed3..3772c82 100644 (file)
 
 #include <zblib_driver_zcl_on_off.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_on_off(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
        ZigbeeCustomData_t *custom_data = NULL;
        ZigbeeZcl_on_off *on_off_object = NULL;
 
+       Z_LOGE("KSR 2");
+
        custom_data = (ZigbeeCustomData_t *)zblib_service_interface_ref_user_data(service_interface);
        if (NULL == custom_data) {
                Z_LOGE("D-BUS service interface custom_data is NULL!");
@@ -56,6 +59,8 @@ static void on_on_off_set_on_off_resp(ZigBeeServiceInterface *service_interface,
        NOT_USED(service_interface);
        NOT_USED(request_id);
 
+       Z_LOGE("KSR 1");
+
        if (NULL == resp_data || 0 == resp_data_len) {
                Z_LOGE("resp_data is null");
                g_free(cb_data);
@@ -89,6 +94,8 @@ static gboolean on_on_off_set_on_off(ZigbeeZcl_on_off *on_off_object,
 
        memset(&req, 0x0, sizeof(ZigbeeZclOnOffSetOnOff_t));
 
+       Z_LOGE("KSR 3");
+
        /* Update request structure */
        req.node_id = node_id;
        req.endpoint = endpoint;
@@ -141,6 +148,8 @@ static void on_on_off_get_on_off_state_resp(ZigBeeServiceInterface *service_inte
        NOT_USED(service_interface);
        NOT_USED(request_id);
 
+       Z_LOGE("KSR 4");
+
        if (NULL == resp_data || 0 == resp_data_len) {
                Z_LOGE("resp_data is null");
                g_free(cb_data);
@@ -171,6 +180,8 @@ static gboolean on_on_off_get_on_off_state(ZigbeeZcl_on_off *on_off_object,
 
        gboolean ret;
 
+       Z_LOGE("KSR 5");
+
        memset(&req, 0x0, sizeof(ZigbeeZclOnOffGetOnOffState_t));
 
        /* Update request structure */
@@ -218,6 +229,8 @@ void zigbee_service_dbus_interface_zcl_on_off_notification(ZigBeeServiceInterfac
 
        zblib_check_null_ret("service_interface", service_interface);
 
+       Z_LOGE("KSR 6");
+
        if (NULL == noti_data || 0 == noti_data_len) {
                Z_LOGE("noti_data is NULL");
                return;
@@ -246,6 +259,7 @@ void zigbee_service_dbus_interface_zcl_on_off_notification(ZigBeeServiceInterfac
        /* ZigbeeZcl_on_off should be dereferenced */
        g_object_unref(on_off_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_on_off_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -253,8 +267,10 @@ gboolean zigbee_service_dbus_interface_zcl_on_off_init(ZigBeeServiceInterface *s
        ZigbeeZcl_on_off *on_off_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        on_off_object = zigbee_zcl_on_off_skeleton_new();
index f787200..9c822c9 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_poll_control.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_poll_control(
        ZigBeeServiceInterface *service_interface)
 {
@@ -419,6 +420,7 @@ void zigbee_service_dbus_interface_zcl_poll_control_notification(ZigBeeServiceIn
        /* ZigbeeZcl_poll_control should be dereferenced */
        g_object_unref(poll_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_poll_control_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -426,8 +428,10 @@ gboolean zigbee_service_dbus_interface_zcl_poll_control_init(ZigBeeServiceInterf
        ZigbeeZcl_poll_control *zcl_poll_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zcl_poll_control_object = zigbee_zcl_poll_control_skeleton_new();
index 655e1c7..549cbbc 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_scene.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_scene(
        ZigBeeServiceInterface *service_interface)
 {
@@ -794,6 +795,7 @@ void zigbee_service_dbus_interface_zcl_scene_notification(ZigBeeServiceInterface
        /* ZigbeeZcl_scene should be dereferenced */
        g_object_unref(scene_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_scene_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -801,8 +803,10 @@ gboolean zigbee_service_dbus_interface_zcl_scene_init(ZigBeeServiceInterface *se
        ZigbeeZcl_scene *zcl_scene_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zcl_scene_object = zigbee_zcl_scene_skeleton_new();
index 08a5b97..06351ec 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zcl_thermostat.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zcl_thermostat(
        ZigBeeServiceInterface *service_interface)
 {
@@ -548,6 +549,7 @@ void zigbee_service_dbus_interface_zcl_thermostat_notification(ZigBeeServiceInte
        g_object_unref(thermo_object);
 
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zcl_thermostat_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -555,8 +557,10 @@ gboolean zigbee_service_dbus_interface_zcl_thermostat_init(ZigBeeServiceInterfac
        ZigbeeZcl_thermostat *thermostat_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        thermostat_object = zigbee_zcl_thermostat_skeleton_new();
index 46e3fcd..e3a8c26 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zdo_bind.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zdo_bind(
        ZigBeeServiceInterface *service_interface)
 {
@@ -304,6 +305,7 @@ void zigbee_service_dbus_interface_zdo_bind_notification(ZigBeeServiceInterface
        /* ZigbeeZdo_bind should be dereferenced */
        g_object_unref(bind_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zdo_bind_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -311,8 +313,10 @@ gboolean zigbee_service_dbus_interface_zdo_bind_init(ZigBeeServiceInterface *ser
        ZigbeeZdo_bind *zdo_bind_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zdo_bind_object = zigbee_zdo_bind_skeleton_new();
old mode 100755 (executable)
new mode 100644 (file)
index 30582dd..12da45a
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_zdo_dev_control.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_zdo_dev_control(ZigBeeServiceInterface *service_interface)
 {
        ZigbeeObjectSkeleton *zigbee_object = NULL;
@@ -1976,6 +1977,7 @@ void zigbee_service_dbus_interface_zdo_dev_control_notification(ZigBeeServiceInt
        /* ZigbeeZdo_dev_control should be dereferenced */
        g_object_unref(dev_control_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_zdo_dev_control_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -1983,8 +1985,10 @@ gboolean zigbee_service_dbus_interface_zdo_dev_control_init(ZigBeeServiceInterfa
        ZigbeeZdo_dev_control *zdodev_control_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        zdodev_control_object = zigbee_zdo_dev_control_skeleton_new();
index 9f8c007..4e37323 100644 (file)
@@ -34,15 +34,19 @@ gboolean zigbee_service_interface_init(ZigBeeService *service)
        gboolean ret;
 
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Initialize dbus interface */
        ret = zigbee_service_dbus_interface_init(service);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zigbee_service_dbus_interface_init failed!!!");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        return TRUE;
@@ -52,8 +56,10 @@ gboolean zigbee_service_interface_init(ZigBeeService *service)
 void zigbee_service_interface_deinit(ZigBeeService *service)
 {
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service is NULL");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        /* De-initialize dbus interface */
index ce4fe8f..1750354 100644 (file)
@@ -38,6 +38,7 @@ struct zigbee_service_interface_resp_cb_type {
        char user_data[0]; /* Additional user data base pointer */
 };
 
+/* LCOV_EXCL_START */
 ZigbeeServiceInterfaceRespCbData_t *
 zigbee_service_dbus_interface_create_resp_cb_data(void *interface_object,
        GDBusMethodInvocation *invocation,
@@ -116,3 +117,4 @@ gboolean zigbee_service_dbus_interface_dispatch_request(ZigBeeServiceInterface *
 
        return TRUE;
 }
+/* LCOV_EXCL_STOP */
index 0f46d98..9ef55e2 100644 (file)
 #include <glib.h>
 
 #define zblib_check_null_ret_error(name, value, error) do { \
+       /* LCOV_EXCL_START */ \
        if (G_UNLIKELY(NULL == (value))) { \
                Z_LOGE("%s is NULL", name); \
                return error; \
        } \
+       /* LCOV_EXCL_STOP */ \
 } while (FALSE)
 
 #define zblib_check_null_ret(name, value) do { \
+       /* LCOV_EXCL_START */ \
        if (G_UNLIKELY(NULL == (value))) { \
                Z_LOGE("%s is NULL", name); \
                return; \
        } \
+       /* LCOV_EXCL_STOP */ \
 } while (FALSE)
 
 #define zblib_check_null_free_and_ret(name, value, data) do { \
+       /* LCOV_EXCL_START */ \
        if (G_UNLIKELY(NULL == (value))) { \
                Z_LOGE("%s is NULL", name); \
                g_free(data); \
                return; \
        } \
+       /* LCOV_EXCL_STOP */ \
 } while (FALSE)
 
 #endif /* __ZIGBEE_LIB_COMMON_H__ */
index 0271352..72a5a48 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverCustomOps_t *ops; /**< Operations */
 } ZblibDriverCustomPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_custom_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -87,6 +88,7 @@ static gboolean __zblib_driver_custom_dispatcher(ZigBeeDriver *driver, guint req
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_custom_free_hook(ZigBeeDriver *driver)
 {
@@ -126,6 +128,7 @@ ZigBeeDriver *zblib_driver_custom_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -133,12 +136,14 @@ ZigBeeDriver *zblib_driver_custom_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -146,11 +151,13 @@ ZigBeeDriver *zblib_driver_custom_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_custom_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -158,11 +165,13 @@ ZigBeeDriver *zblib_driver_custom_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_custom_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -170,11 +179,13 @@ ZigBeeDriver *zblib_driver_custom_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_custom_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -182,3 +193,4 @@ void zblib_driver_custom_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 95cf751..981dd43 100644 (file)
@@ -27,6 +27,7 @@ typedef struct {
        ZblibDriverMfglibControlOps_t *ops; /**< Operations */
 } ZblibDriverMfglibControlPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_mfglib_control_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -198,6 +199,7 @@ static gboolean __zblib_driver_mfglib_control_dispatcher(ZigBeeDriver *driver, g
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_mfglib_control_free_hook(ZigBeeDriver *driver)
 {
@@ -236,6 +238,7 @@ ZigBeeDriver *zblib_driver_mfglib_control_new(ZigBeePlugin *plugin,
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -243,11 +246,13 @@ ZigBeeDriver *zblib_driver_mfglib_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_mfglib_control_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -255,11 +260,13 @@ ZigBeeDriver *zblib_driver_mfglib_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_mfglib_control_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -267,11 +274,13 @@ ZigBeeDriver *zblib_driver_mfglib_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_mfglib_control_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -279,3 +288,4 @@ void zblib_driver_mfglib_control_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 1659dc2..d5d2884 100644 (file)
@@ -29,6 +29,7 @@ typedef struct {
        ZblibDriverServiceOps_t *ops; /**< Operations */
 } ZblibDriverServicePrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_service_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -176,6 +177,7 @@ static gboolean __zblib_driver_service_dispatcher(ZigBeeDriver *driver, guint re
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_service_free_hook(ZigBeeDriver *driver)
 {
@@ -215,6 +217,7 @@ ZigBeeDriver *zblib_driver_service_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -222,12 +225,14 @@ ZigBeeDriver *zblib_driver_service_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -235,11 +240,13 @@ ZigBeeDriver *zblib_driver_service_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_service_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -247,11 +254,13 @@ ZigBeeDriver *zblib_driver_service_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_service_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -259,11 +268,13 @@ ZigBeeDriver *zblib_driver_service_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_START */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_service_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -271,3 +282,4 @@ void zblib_driver_service_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index e558666..66a0f7a 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclAlarmOps_t *ops; /**< Operations */
 } ZblibDriverZclAlarmPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_alarm_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -111,6 +112,7 @@ static gboolean __zblib_driver_alarm_dispatcher(ZigBeeDriver *driver, guint requ
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_alarm_free_hook(ZigBeeDriver *driver)
 {
@@ -150,6 +152,7 @@ ZigBeeDriver *zblib_driver_zcl_alarm_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -157,12 +160,14 @@ ZigBeeDriver *zblib_driver_zcl_alarm_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -170,11 +175,13 @@ ZigBeeDriver *zblib_driver_zcl_alarm_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_alarm_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -182,11 +189,13 @@ ZigBeeDriver *zblib_driver_zcl_alarm_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_alarm_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -194,11 +203,13 @@ ZigBeeDriver *zblib_driver_zcl_alarm_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_alarm_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -206,3 +217,4 @@ void zblib_driver_zcl_alarm_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 1870773..7996a2e 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclBasicOps_t *ops; /**< Operations */
 } ZblibDriverZclBasicPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_basic_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -71,6 +72,7 @@ static gboolean __zblib_driver_zcl_basic_dispatcher(ZigBeeDriver *driver, guint
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_basic_free_hook(ZigBeeDriver *driver)
 {
@@ -110,6 +112,7 @@ ZigBeeDriver *zblib_driver_zcl_basic_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -117,12 +120,14 @@ ZigBeeDriver *zblib_driver_zcl_basic_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -130,11 +135,13 @@ ZigBeeDriver *zblib_driver_zcl_basic_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_basic_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -142,11 +149,13 @@ ZigBeeDriver *zblib_driver_zcl_basic_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_basic_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -154,11 +163,13 @@ ZigBeeDriver *zblib_driver_zcl_basic_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_basic_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -166,3 +177,4 @@ void zblib_driver_zcl_basic_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 2350086..95fa953 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclColorControlOps_t *ops; /**< Operations */
 } ZblibDriverZclColorControlPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_color_control_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -151,6 +152,7 @@ static gboolean __zblib_driver_zcl_color_control_dispatcher(ZigBeeDriver *driver
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_color_control_free_hook(ZigBeeDriver *driver)
 {
@@ -190,6 +192,7 @@ ZigBeeDriver *zblib_driver_zcl_color_control_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -197,12 +200,14 @@ ZigBeeDriver *zblib_driver_zcl_color_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -210,11 +215,13 @@ ZigBeeDriver *zblib_driver_zcl_color_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_color_control_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -222,11 +229,13 @@ ZigBeeDriver *zblib_driver_zcl_color_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_color_control_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -234,11 +243,13 @@ ZigBeeDriver *zblib_driver_zcl_color_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_color_control_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -246,3 +257,4 @@ void zblib_driver_zcl_color_control_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index ce13d03..0daf28f 100644 (file)
@@ -27,6 +27,7 @@ typedef struct {
        ZblibDriverZclDoorLockOps_t *ops; /**< Operations */
 } ZblibDriverZclDoorLockPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_door_lock_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -93,6 +94,7 @@ static gboolean __zblib_driver_zcl_door_lock_dispatcher(ZigBeeDriver *driver, gu
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_door_lock_free_hook(ZigBeeDriver *driver)
 {
@@ -131,6 +133,7 @@ ZigBeeDriver *zblib_driver_zcl_door_lock_new(ZigBeePlugin *plugin,
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -138,11 +141,13 @@ ZigBeeDriver *zblib_driver_zcl_door_lock_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_door_lock_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -150,11 +155,13 @@ ZigBeeDriver *zblib_driver_zcl_door_lock_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_door_lock_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -162,11 +169,13 @@ ZigBeeDriver *zblib_driver_zcl_door_lock_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_door_lock_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -174,3 +183,4 @@ void zblib_driver_zcl_door_lock_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 4db82dd..30cdcd8 100644 (file)
@@ -27,6 +27,7 @@ typedef struct {
        ZblibDriverZclFanControlOps_t *ops; /**< Operations */
 } ZblibDriverZclFanControlPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_fan_control_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -94,6 +95,7 @@ static gboolean __zblib_driver_zcl_fan_control_dispatcher(ZigBeeDriver *driver,
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_fan_control_free_hook(ZigBeeDriver *driver)
 {
@@ -132,6 +134,7 @@ ZigBeeDriver *zblib_driver_zcl_fan_control_new(ZigBeePlugin *plugin,
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -139,11 +142,13 @@ ZigBeeDriver *zblib_driver_zcl_fan_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_fan_control_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -151,11 +156,13 @@ ZigBeeDriver *zblib_driver_zcl_fan_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_fan_control_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -163,11 +170,13 @@ ZigBeeDriver *zblib_driver_zcl_fan_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_fan_control_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -175,3 +184,4 @@ void zblib_driver_zcl_fan_control_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index e4e186a..0f34d93 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclGlobalControlOps_t *ops; /**< Operations */
 } ZblibDriverZclglobalControlPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_global_control_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -159,6 +160,7 @@ static gboolean __zblib_driver_zcl_global_control_dispatcher(ZigBeeDriver *drive
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_global_control_free_hook(ZigBeeDriver *driver)
 {
@@ -198,6 +200,7 @@ ZigBeeDriver *zblib_driver_zcl_global_control_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -205,12 +208,14 @@ ZigBeeDriver *zblib_driver_zcl_global_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -218,11 +223,13 @@ ZigBeeDriver *zblib_driver_zcl_global_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_global_control_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -230,11 +237,13 @@ ZigBeeDriver *zblib_driver_zcl_global_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_global_control_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -242,11 +251,13 @@ ZigBeeDriver *zblib_driver_zcl_global_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_global_control_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -254,3 +265,4 @@ void zblib_driver_zcl_global_control_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 5d6da34..50ed7aa 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclGroupOps_t *ops; /**< Operations */
 } ZblibDriverZclGroupPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_group_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -111,6 +112,7 @@ static gboolean __zblib_driver_zcl_group_dispatcher(ZigBeeDriver *driver, guint
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_group_free_hook(ZigBeeDriver *driver)
 {
@@ -150,6 +152,7 @@ ZigBeeDriver *zblib_driver_zcl_group_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -157,12 +160,14 @@ ZigBeeDriver *zblib_driver_zcl_group_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -170,11 +175,13 @@ ZigBeeDriver *zblib_driver_zcl_group_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_group_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -182,11 +189,13 @@ ZigBeeDriver *zblib_driver_zcl_group_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_group_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -194,11 +203,12 @@ ZigBeeDriver *zblib_driver_zcl_group_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
-
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_group_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -206,3 +216,4 @@ void zblib_driver_zcl_group_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 90f6cab..922d67b 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclIasZoneOps_t *ops; /**< Operations */
 } ZblibDriverZclIasZonePrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_ias_zone_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -71,6 +72,7 @@ static gboolean __zblib_driver_zcl_ias_zone_dispatcher(ZigBeeDriver *driver, gui
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_ias_zone_free_hook(ZigBeeDriver *driver)
 {
@@ -110,6 +112,7 @@ ZigBeeDriver *zblib_driver_zcl_ias_zone_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -117,12 +120,14 @@ ZigBeeDriver *zblib_driver_zcl_ias_zone_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -130,11 +135,13 @@ ZigBeeDriver *zblib_driver_zcl_ias_zone_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_ias_zone_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -142,11 +149,13 @@ ZigBeeDriver *zblib_driver_zcl_ias_zone_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_ias_zone_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -154,11 +163,13 @@ ZigBeeDriver *zblib_driver_zcl_ias_zone_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_ias_zone_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -166,3 +177,4 @@ void zblib_driver_zcl_ias_zone_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 5013b11..9d3e0ab 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclIdentifyOps_t *ops; /**< Operations */
 } ZblibDriverZclIdentifyPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_identify_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -79,6 +80,7 @@ static gboolean __zblib_driver_zcl_identify_dispatcher(ZigBeeDriver *driver, gui
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_identify_free_hook(ZigBeeDriver *driver)
 {
@@ -118,6 +120,7 @@ ZigBeeDriver *zblib_driver_zcl_identify_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -125,12 +128,14 @@ ZigBeeDriver *zblib_driver_zcl_identify_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -138,11 +143,13 @@ ZigBeeDriver *zblib_driver_zcl_identify_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_identify_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -150,11 +157,13 @@ ZigBeeDriver *zblib_driver_zcl_identify_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_identify_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -162,11 +171,13 @@ ZigBeeDriver *zblib_driver_zcl_identify_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_identify_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -174,3 +185,4 @@ void zblib_driver_zcl_identify_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 1369cac..32957bc 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclLevelControlOps_t *ops; /**< Operations */
 } ZblibDriverZclLevelControlPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_level_control_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -119,6 +120,7 @@ static gboolean __zblib_driver_zcl_level_control_dispatcher(ZigBeeDriver *driver
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_level_control_free_hook(ZigBeeDriver *driver)
 {
@@ -158,6 +160,7 @@ ZigBeeDriver *zblib_driver_zcl_level_control_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -165,12 +168,14 @@ ZigBeeDriver *zblib_driver_zcl_level_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -178,11 +183,13 @@ ZigBeeDriver *zblib_driver_zcl_level_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_level_control_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -190,11 +197,13 @@ ZigBeeDriver *zblib_driver_zcl_level_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_level_control_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -202,11 +211,13 @@ ZigBeeDriver *zblib_driver_zcl_level_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_level_control_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -214,3 +225,4 @@ void zblib_driver_zcl_level_control_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index d2098bd..4e0fb3a 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclOnOffOps_t *ops; /**< Operations */
 } ZblibDriverZclOnOffPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_on_off_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -79,6 +80,7 @@ static gboolean __zblib_driver_zcl_on_off_dispatcher(ZigBeeDriver *driver, guint
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_on_off_free_hook(ZigBeeDriver *driver)
 {
@@ -118,6 +120,7 @@ ZigBeeDriver *zblib_driver_zcl_on_off_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -125,12 +128,14 @@ ZigBeeDriver *zblib_driver_zcl_on_off_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -138,11 +143,13 @@ ZigBeeDriver *zblib_driver_zcl_on_off_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_on_off_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -150,11 +157,13 @@ ZigBeeDriver *zblib_driver_zcl_on_off_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_on_off_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -162,11 +171,13 @@ ZigBeeDriver *zblib_driver_zcl_on_off_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_on_off_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -174,3 +185,4 @@ void zblib_driver_zcl_on_off_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 4d964bd..5f080e1 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclPollControlOps_t *ops; /**< Operations */
 } ZblibDriverZclPollControlPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_poll_control_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -95,6 +96,7 @@ static gboolean __zblib_driver_zcl_poll_control_dispatcher(ZigBeeDriver *driver,
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_poll_control_free_hook(ZigBeeDriver *driver)
 {
@@ -134,6 +136,7 @@ ZigBeeDriver *zblib_driver_zcl_poll_control_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -141,12 +144,14 @@ ZigBeeDriver *zblib_driver_zcl_poll_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -154,11 +159,13 @@ ZigBeeDriver *zblib_driver_zcl_poll_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_poll_control_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -166,11 +173,13 @@ ZigBeeDriver *zblib_driver_zcl_poll_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_poll_control_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -178,11 +187,13 @@ ZigBeeDriver *zblib_driver_zcl_poll_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_poll_control_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -190,3 +201,4 @@ void zblib_driver_zcl_poll_control_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 254cac3..acfe5d4 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclSceneOps_t *ops; /**< Operations */
 } ZblibDriverZclScenePrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_scene_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -119,6 +120,7 @@ static gboolean __zblib_driver_zcl_scene_dispatcher(ZigBeeDriver *driver, guint
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_scene_free_hook(ZigBeeDriver *driver)
 {
@@ -158,6 +160,7 @@ ZigBeeDriver *zblib_driver_zcl_scene_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -165,12 +168,14 @@ ZigBeeDriver *zblib_driver_zcl_scene_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -178,11 +183,13 @@ ZigBeeDriver *zblib_driver_zcl_scene_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_scene_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -190,11 +197,13 @@ ZigBeeDriver *zblib_driver_zcl_scene_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_scene_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -202,11 +211,13 @@ ZigBeeDriver *zblib_driver_zcl_scene_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_scene_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -214,3 +225,4 @@ void zblib_driver_zcl_scene_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 31f1060..2e53b60 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZclThermostatOps_t *ops; /**< Operations */
 } ZblibDriverZclThermostatPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zcl_thermostat_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -103,6 +104,7 @@ static gboolean __zblib_driver_zcl_thermostat_dispatcher(ZigBeeDriver *driver, g
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zcl_thermostat_free_hook(ZigBeeDriver *driver)
 {
@@ -142,6 +144,7 @@ ZigBeeDriver *zblib_driver_zcl_thermostat_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -149,12 +152,14 @@ ZigBeeDriver *zblib_driver_zcl_thermostat_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -162,11 +167,13 @@ ZigBeeDriver *zblib_driver_zcl_thermostat_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zcl_thermostat_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -174,11 +181,13 @@ ZigBeeDriver *zblib_driver_zcl_thermostat_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zcl_thermostat_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -186,11 +195,13 @@ ZigBeeDriver *zblib_driver_zcl_thermostat_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zcl_thermostat_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -198,3 +209,4 @@ void zblib_driver_zcl_thermostat_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index c2f7385..325b1b4 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZdoBindOps_t *ops; /**< Operations */
 } ZblibDriverZdoBindPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zdo_bind_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -79,6 +80,7 @@ static gboolean __zblib_driver_zdo_bind_dispatcher(ZigBeeDriver *driver, guint r
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zdo_bind_free_hook(ZigBeeDriver *driver)
 {
@@ -118,6 +120,7 @@ ZigBeeDriver *zblib_driver_zdo_bind_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -125,12 +128,14 @@ ZigBeeDriver *zblib_driver_zdo_bind_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -138,11 +143,13 @@ ZigBeeDriver *zblib_driver_zdo_bind_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zdo_bind_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -150,11 +157,13 @@ ZigBeeDriver *zblib_driver_zdo_bind_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zdo_bind_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -162,11 +171,13 @@ ZigBeeDriver *zblib_driver_zdo_bind_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zdo_bind_free(ZigBeeDriver *driver)
 {
        if (NULL == driver) {
@@ -177,3 +188,4 @@ void zblib_driver_zdo_bind_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 93e56c9..6457377 100644 (file)
@@ -28,6 +28,7 @@ typedef struct {
        ZblibDriverZdoDevControlOps_t *ops; /**< Operations */
 } ZblibDriverZdoDevControlPrivData_t;
 
+/* LCOV_EXCL_START */
 static gboolean __zblib_driver_zdo_dev_control_dispatcher(ZigBeeDriver *driver, guint request_id)
 {
        ZigBeeService *service = NULL;
@@ -199,6 +200,7 @@ static gboolean __zblib_driver_zdo_dev_control_dispatcher(ZigBeeDriver *driver,
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_driver_zdo_dev_control_free_hook(ZigBeeDriver *driver)
 {
@@ -238,6 +240,7 @@ ZigBeeDriver *zblib_driver_zdo_dev_control_new(ZigBeePlugin *plugin,
        /* Link service to driver */
        service = zblib_plugin_ref_service(plugin);
        if (NULL == service) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_plugin_ref_service failed!");
 
                /* Free allocated resources */
@@ -245,12 +248,14 @@ ZigBeeDriver *zblib_driver_zdo_dev_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
        zblib_driver_link_service(driver, service);
 
        /* Link private data to driver */
        ret = zblib_driver_link_object(driver, priv_data);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_link_object failed!");
 
                /* Free allocated resources */
@@ -258,11 +263,13 @@ ZigBeeDriver *zblib_driver_zdo_dev_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set operations dispatcher function */
        ret = zblib_driver_set_dispatcher(driver, __zblib_driver_zdo_dev_control_dispatcher);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_dispatcher failed!");
 
                /* Free allocated resources */
@@ -270,11 +277,13 @@ ZigBeeDriver *zblib_driver_zdo_dev_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Set free hook function */
        ret = zblib_driver_set_free_hook(driver, __zblib_driver_zdo_dev_control_free_hook);
        if (FALSE == ret) {
+               /* LCOV_EXCL_START */
                Z_LOGE("zblib_driver_set_free_hook failed!");
 
                /* Free allocated resources */
@@ -282,11 +291,13 @@ ZigBeeDriver *zblib_driver_zdo_dev_control_new(ZigBeePlugin *plugin,
                g_free(driver);
 
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return driver;
 }
 
+/* LCOV_EXCL_START */
 void zblib_driver_zdo_dev_control_free(ZigBeeDriver *driver)
 {
        zblib_check_null_ret("driver", driver);
@@ -294,3 +305,4 @@ void zblib_driver_zdo_dev_control_free(ZigBeeDriver *driver)
        /* Free driver */
        zblib_driver_free(driver);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index e1d36cd..e2e8705 100644 (file)
@@ -70,12 +70,14 @@ void zblib_driver_free(ZigBeeDriver *driver)
        g_free(driver);
 }
 
+/* LCOV_EXCL_START */
 ZigBeeService *zblib_driver_ref_service(ZigBeeDriver *driver)
 {
        zblib_check_null_ret_error("driver", driver, NULL);
 
        return driver->service;
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zblib_driver_link_service(ZigBeeDriver *driver,
        ZigBeeService *service)
@@ -88,12 +90,14 @@ gboolean zblib_driver_link_service(ZigBeeDriver *driver,
        return TRUE;
 }
 
+/* LCOV_EXCL_START */
 ZigBeePlugin *zblib_driver_ref_plugin(ZigBeeDriver *driver)
 {
        zblib_check_null_ret_error("driver", driver, NULL);
 
        return driver->plugin;
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zblib_driver_link_object(ZigBeeDriver *driver,
        gpointer object)
@@ -140,6 +144,7 @@ ZblibDriverType_e zblib_driver_ref_driver_type(ZigBeeDriver *driver)
        return driver->driver_type;
 }
 
+/* LCOV_EXCL_START */
 gpointer zblib_driver_ref_request_data(ZigBeeDriver *driver,
        guint request_id)
 {
@@ -201,3 +206,4 @@ void zblib_driver_send_notification(ZigBeeDriver *driver,
        zblib_plugin_send_notification(plugin,
                driver_noti_id, noti_data, noti_data_len);
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 7585891..c120111 100644 (file)
@@ -58,13 +58,15 @@ void zblib_log(enum zblib_log_type type, enum zblib_log_priority priority, const
                int next = 0;
                FILE *fp = fopen("/proc/uptime", "r");
                if (NULL == fp) {
+                       /* LCOV_EXCL_START */
                        Z_LOGE("fopen() failed");
                        return;
+                       /* LCOV_EXCL_STOP */
                }
                if (fscanf(fp, "%f %f", &a, &b) != 1)
                        next = snprintf(buf, BUFFER_SIZE, "[UPTIME] [Not Set] ");
                else
-                       next = snprintf(buf, BUFFER_SIZE, "[UPTIME] %f ", a);
+                       next = snprintf(buf, BUFFER_SIZE, "[UPTIME] %f ", a); // LCOV_EXCL_LINE
                fclose(fp);
                if (next < 0)
                        return;
index 48de467..5422fdf 100644 (file)
@@ -73,8 +73,10 @@ void zblib_plugin_free(ZigBeePlugin *plugin)
                        if (NULL == driver)
                                continue;
 
+                       /* LCOV_EXCL_START */
                        zblib_driver_free(driver);
                        list->data = NULL;
+                       /* LCOV_EXCL_STOP */
                }
 
                g_slist_free(plugin->driver_list);
@@ -174,6 +176,7 @@ void zblib_plugin_unlink_driver(ZigBeePlugin *plugin, ZblibDriverType_e driver_t
        }
 }
 
+/* LCOV_EXCL_START */
 gboolean zblib_plugin_dispatch_request(ZigBeePlugin *plugin,
        guint request_id)
 {
@@ -214,6 +217,7 @@ void zblib_plugin_send_response(ZigBeePlugin *plugin,
        zblib_service_send_response(service,
                request_id, resp_data, resp_data_len);
 }
+/* LCOV_EXCL_STOP */
 
 void zblib_plugin_send_notification(ZigBeePlugin *plugin,
        guint noti_id, gpointer noti_data, guint noti_data_len)
index f23f3e5..c73206f 100644 (file)
@@ -59,7 +59,7 @@ static ZblibDriverType_e __zblib_request_get_driver_type(guint request_type)
 {
        ZblibDriverType_e driver_type;
 
-       driver_type = ((request_type & 0xFF000000) >> 24);
+       driver_type = ((request_type & 0xFF000000) >> 24); // LCOV_EXCL_LINE
 
        return driver_type;
 }
@@ -68,11 +68,12 @@ static ZblibDriverType_e __zblib_request_get_ops_id(guint request_type)
 {
        guint ops_id;
 
-       ops_id = (request_type & 0x000000FF);
+       ops_id = (request_type & 0x000000FF); // LCOV_EXCL_LINE
 
        return ops_id;
 }
 
+/* LCOV_EXCL_START */
 static ZigBeeRequest *__zblib_request_ref_request_by_by_request_id(ZigBeeService *service,
        guint request_id)
 {
@@ -4774,3 +4775,4 @@ guint zblib_request_get_ops_id(guint request_type)
 {
        return __zblib_request_get_ops_id(request_type);
 }
+/* LCOV_EXCL_STOP */
index 2bfb853..3653a62 100644 (file)
@@ -88,7 +88,7 @@ static void __on_zblib_init_async_finished(gboolean result, void *user_data)
                Z_LOGD("Plugin [%s] succeeded async init", plugin_name);
                info->is_initialized = TRUE;
        } else {
-               Z_LOGE("Plugin [%s] failed to init !", plugin_name);
+               Z_LOGE("Plugin [%s] failed to init !", plugin_name); // LCOV_EXCL_LINE
        }
        g_free(plugin_name);
 
@@ -100,9 +100,11 @@ static void __on_zblib_init_async_finished(gboolean result, void *user_data)
                                (struct _zblib_async_init_info *)(list_async->data);
                i++;
                if (G_UNLIKELY(NULL == in)) {
+                       /* LCOV_EXCL_START */
                        Z_LOGE("Invalid parameter !");
                        list_async = g_slist_next(list_async);
                        continue;
+                       /* LCOV_EXCL_STOP */
                }
 
                if (in->is_finished)
@@ -124,8 +126,10 @@ static void __on_zblib_init_async_finished(gboolean result, void *user_data)
                        ret = TRUE;
                } else {
                        /* Some initializers are failed */
+                       /* LCOV_EXCL_START */
                        Z_LOGE("There are some failed plugin initializer !");
                        ret = FALSE;
+                       /* LCOV_EXCL_STOP */
                }
                /* Notify whether zigbee service is enabled or not */
                zblib_plugin_send_notification(plugin,
@@ -146,16 +150,20 @@ static void *__zblib_service_load_plugin(gchar *filename,
        /* Open .so */
        handle = dlopen(filename, RTLD_LAZY);
        if (G_UNLIKELY(NULL == handle)) {
+               /* LCOV_EXCL_START */
                Z_LOGE("dlopen() failed:[%s]", filename);
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Get symbol - "zigbee_plugin_descriptor" */
        descriptor = dlsym(handle, "zigbee_plugin_descriptor");
        if (G_UNLIKELY(NULL == descriptor)) {
+               /* LCOV_EXCL_START */
                Z_LOGE("dlsym() failed:[%s]", "plugin_define_desc");
                dlclose(handle);
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        Z_LOGD("%s plugin", descriptor->name);
@@ -176,9 +184,11 @@ static void *__zblib_service_load_plugin(gchar *filename,
        /* Load plug-in */
        if (G_LIKELY(descriptor->load)) {
                if (G_UNLIKELY(FALSE == descriptor->load())) {
+                       /* LCOV_EXCL_START */
                        Z_LOGW("load() failed... Skip this plugin!");
                        dlclose(handle);
                        return NULL;
+                       /* LCOV_EXCL_STOP */
                } else {
                        Z_LOGI("Plug-in (%s) loaded!", descriptor->name);
                }
@@ -199,6 +209,7 @@ static gboolean __zblib_service_init_plugin(ZigBeePlugin *plugin)
                return FALSE;
        }
 
+       /* LCOV_EXCL_START */
        if (G_UNLIKELY(FALSE == descriptor->init(plugin))) {
                char *plugin_name = zblib_plugin_get_plugin_name(plugin);
                if (G_UNLIKELY(NULL != plugin_name)) {
@@ -207,6 +218,7 @@ static gboolean __zblib_service_init_plugin(ZigBeePlugin *plugin)
                }
                return FALSE;
        }
+       /* LCOV_EXCL_STOP */
 
        return TRUE;
 }
@@ -225,9 +237,11 @@ static gboolean __zblib_service_init_async_plugin(ZigBeePlugin *plugin,
                plugin_name = g_strdup("NONAME");
 
        if (G_UNLIKELY(FALSE == descriptor->init_async(plugin, callback, user_data))) {
+               /* LCOV_EXCL_START */
                Z_LOGE("plugin(%s) init failed!", plugin_name);
                g_free(plugin_name);
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        g_free(plugin_name);
@@ -252,6 +266,7 @@ static gboolean __zblib_service_unload_plugin(ZigBeePlugin *plugin)
        return TRUE;
 }
 
+/* LCOV_EXCL_START */
 static void __zblib_service_remove_request_table_iter(gpointer key,
        gpointer value, gpointer user_data)
 {
@@ -265,6 +280,7 @@ static void __zblib_service_remove_request_table_iter(gpointer key,
        Z_LOGD("Removing request id [%d]", request_id);
        zblib_request_free(service_interface, request_id);
 }
+/* LCOV_EXCL_STOP */
 
 static void __zblib_service_remove_async_list(GSList *list_async)
 {
@@ -291,9 +307,11 @@ ZigBeeService *zblib_service_new()
        /* Create g-main loop */
        service->main_loop = g_main_loop_new(NULL, FALSE);
        if (G_UNLIKELY(NULL == service->main_loop)) {
+               /* LCOV_EXCL_START */
                Z_LOGE("g-main loop creation failed!!!");
                g_free(service);
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Create request hash table */
@@ -315,6 +333,7 @@ void zblib_service_free(ZigBeeService *service)
                if (NULL == interface_objs) {
                        Z_LOGE("interface_objs is NULL");
                } else {
+                       /* LCOV_EXCL_START */
                        while (interface_objs) {
                                service_interface = (ZigBeeServiceInterface *)interface_objs->data;
 
@@ -329,6 +348,7 @@ void zblib_service_free(ZigBeeService *service)
                        g_hash_table_remove_all(service->request_table);
                        g_hash_table_destroy(service->request_table);
                        service->request_table = NULL;
+                       /* LCOV_EXCL_STOP */
                }
        }
 
@@ -340,8 +360,10 @@ void zblib_service_free(ZigBeeService *service)
 
        /* Free plug-ins */
        if (service->plugins) {
+               /* LCOV_EXCL_START */
                g_slist_free(service->plugins);
                service->plugins = NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Unref 'g-main loop' */
@@ -418,37 +440,43 @@ gboolean zblib_service_load_plugins(ZigBeeService *service, const char *plugin_p
        /* Open plug-in directory */
        dir = g_dir_open(plugin_path, 0, NULL);
        if (G_UNLIKELY(dir == NULL)) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Directory open failed!");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Scan through all libraries in plug-in directory */
        while ((file = g_dir_read_name(dir)) != NULL) {
                if ((g_str_has_prefix(file, "lib") == TRUE)
                                || (g_str_has_suffix(file, ".so") == FALSE))
-                       continue;
+                       continue; // LCOV_EXCL_LINE
 
                filename = g_build_filename(plugin_path, file, NULL);
 
                /* Load plug-in */
                handle = __zblib_service_load_plugin(filename, &descriptor);
                if (G_UNLIKELY(NULL == handle)) {
+                       /* LCOV_EXCL_START */
                        g_free(filename);
                        continue;
+                       /* LCOV_EXCL_STOP */
                }
 
                /* Create new plug-in */
                plugin = zblib_plugin_new(service, filename, descriptor, handle);
                if (G_UNLIKELY(NULL == plugin)) {
+                       /* LCOV_EXCL_START */
                        dlclose(handle);
                        g_free(filename);
                        continue;
+                       /* LCOV_EXCL_STOP */
                }
 
                /* Add new plug-in */
                ret = zblib_service_add_plugin(service, plugin);
                if (G_UNLIKELY(FALSE == ret))
-                       zblib_plugin_free(plugin);
+                       zblib_plugin_free(plugin); // LCOV_EXCL_LINE
 
                g_free(filename);
        }
@@ -479,8 +507,10 @@ gboolean zblib_service_initialize_plugins(ZigBeeService *service)
                                struct _zblib_async_init_info *info =
                                        g_try_new0(struct _zblib_async_init_info, 1);
                                if (NULL == info) {
+                                       /* LCOV_EXCL_START */
                                        Z_LOGE("Fatal : Failed to allocate memory");
                                        return FALSE;
+                                       /* LCOV_EXCL_STOP */
                                }
                                info->is_finished = FALSE;
                                info->is_initialized = FALSE;
@@ -489,9 +519,11 @@ gboolean zblib_service_initialize_plugins(ZigBeeService *service)
 
                                list_async = g_slist_append(list_async, info);
                        } else {
+                               /* LCOV_EXCL_START */
                                __zblib_service_remove_async_list(list_async);
                                Z_LOGE("Fatal : Failed to initialize plugin");
                                return FALSE;
+                               /* LCOV_EXCL_STOP */
                        }
                }
                list = g_slist_next(list);
@@ -516,15 +548,19 @@ gboolean zblib_service_initialize_async_plugins(ZigBeeService *service)
                                (struct _zblib_async_init_info *)(list_async->data);
 
                if (G_UNLIKELY(NULL == info)) {
+                       /* LCOV_EXCL_START */
                        Z_LOGE("Invalid parameter !");
                        list_async = g_slist_next(list_async);
                        continue;
+                       /* LCOV_EXCL_STOP */
                }
 
                if (G_UNLIKELY(FALSE == __zblib_service_init_async_plugin(
                                        info->plugin, __on_zblib_init_async_finished, info))) {
+                       /* LCOV_EXCL_START */
                        Z_LOGE("Fatal : Failed to initialize mandatory plugin");
                        return FALSE;
+                       /* LCOV_EXCL_STOP */
                }
                list_async = g_slist_next(list_async);
        }
@@ -549,8 +585,10 @@ gboolean zblib_service_unload_plugins(ZigBeeService *service)
 
                /* Unload each plug-in */
                if (G_UNLIKELY(FALSE == __zblib_service_unload_plugin(plugin))) {
+                       /* LCOV_EXCL_START */
                        list = g_slist_next(list);
                        continue;
+                       /* LCOV_EXCL_STOP */
                }
 
                list = g_slist_next(list);
@@ -625,9 +663,9 @@ ZigBeeServiceInterface *zblib_service_ref_service_interface(ZigBeeService *servi
                        service_interface = tmp_service_interface;
                        break;
                }
-               g_free(object_name);
+               g_free(object_name); // LCOV_EXCL_LINE
 
-               list = g_slist_next(list);
+               list = g_slist_next(list); // LCOV_EXCL_LINE
        }
 
        if (NULL == service_interface) {
@@ -641,6 +679,7 @@ ZigBeeServiceInterface *zblib_service_ref_service_interface(ZigBeeService *servi
        return service_interface;
 }
 
+/* LCOV_EXCL_START */
 GHashTable *zblib_service_ref_request_hash_table(ZigBeeService *service)
 {
        zblib_check_null_ret_error("service", service, NULL);
@@ -698,6 +737,7 @@ void zblib_service_send_response(ZigBeeService *service,
        zblib_service_interface_send_response(service_interface,
                request_id, resp_data, resp_data_len);
 }
+/* LCOV_EXCL_STOP */
 
 void zblib_service_send_notification(ZigBeeService *service,
        guint noti_id, gpointer noti_data, guint noti_data_len)
index c28407d..927939c 100644 (file)
@@ -102,6 +102,7 @@ ZigBeeService *zblib_service_interface_ref_service(ZigBeeServiceInterface *servi
        return service_interface->service;
 }
 
+/* LCOV_EXCL_START */
 gint zblib_service_interface_new_request(ZigBeeServiceInterface *service_interface,
        ZblibDriverType_e driver_type, guint ops_id,
        gpointer request_data, guint request_data_len,
@@ -181,6 +182,7 @@ void zblib_service_interface_send_response(ZigBeeServiceInterface *service_inter
        /* Free request */
        zblib_request_free(service_interface, request_id);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zblib_service_interface_set_noti_cb(ZigBeeServiceInterface *service_interface,
        ZblibServiceInterfaceNotificationCb_t noti_cb, gpointer noti_cb_data)
index b2a7284..b53f734 100644 (file)
@@ -38,30 +38,38 @@ gboolean zigbee_service_init(ZigBeeService *service)
        const char *zigbee_plugin_path = ZIGBEE_DEFAULT_PLUGINS_PATH;
 
        if (service == NULL) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Load ZigBee plug-ins */
        if (G_UNLIKELY(TRUE != zblib_service_load_plugins(service, zigbee_plugin_path))) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Load plug-ins failed!");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        Z_TIME_CHECK("Loading Plugins Complete");
 
        /* Initialize ZigBee plug-ins */
        if (G_UNLIKELY(TRUE != zblib_service_initialize_plugins(service))) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Initialize plug-ins failed!");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        Z_TIME_CHECK("Initializing Plugins Complete.");
 
        /* Initialize ZigBee plug-ins */
        if (G_UNLIKELY(TRUE != zblib_service_initialize_async_plugins(service))) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Asynchronously initialize plug-ins failed!");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        Z_TIME_CHECK("Asynchronous initializer launched successfully. Starting Daemon");
@@ -73,14 +81,18 @@ gboolean zigbee_service_init(ZigBeeService *service)
 void zigbee_service_deinit(ZigBeeService *service)
 {
        if (service == NULL) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service is NULL");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        /* Unload ZigBee plug-ins */
        if (G_UNLIKELY(TRUE != zblib_service_unload_plugins(service))) {
+               /* LCOV_EXCL_START */
                Z_LOGE("Unload plug-ins failed!");
                return;
+               /* LCOV_EXCL_STOP */
        }
 
        Z_TIME_CHECK("Unload Plugins Complete");