Apply coding rule (BRC_M_EUS, SPC_M_OPR, SPC_M_KWD)
[platform/core/connectivity/zigbee-manager.git] / zigbee-daemon / zigbee-lib / include / zblib_driver_zcl_global_control.h
index 6a7973f..148ce58 100644 (file)
 
 /**< ZigBee 'ZCL global control' driver operations */
 typedef struct {
-       gboolean (*read_attributes_req)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*write_attributes_req)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*write_attributes_undivided_req)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*write_attributes_no_resp)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*write_attributes_structured)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*read_attributes_structured)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*configure_reporting_req)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*read_configure_reporting)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*discover_attributes)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*discover_attributes_extended)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*discover_commands_received)(ZigBeeDriver *driver, guint request_id);
-       gboolean (*discover_commands_generated)(ZigBeeDriver *driver, guint request_id);
+       gboolean(*read_attributes_req) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*write_attributes_req) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*write_attributes_undivided_req) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*write_attributes_no_resp) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*write_attributes_structured) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*read_attributes_structured) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*configure_reporting_req) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*read_configure_reporting) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*discover_attributes) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*discover_attributes_extended) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*discover_commands_received) (ZigBeeDriver *driver, guint request_id);
+       gboolean(*discover_commands_generated) (ZigBeeDriver *driver, guint request_id);
 } ZblibDriverZclGlobalControlOps_t;
 
 /**< ZigBee 'ZCL global control' ops IDs */
@@ -51,6 +51,21 @@ typedef enum {
        ZBLIB_ZCL_GLOBAL_CONTROL_OPS_DISCOVER_COMMANDS_GENERATED, /**< Discover commands generated */
 } ZblibZclGlobalControlOps_e;
 
+/**< ZigBee 'ZCL global control' notification IDs */
+typedef enum {
+       ZBLIB_ZCL_GLOBAL_NOTI_READ_ATTR_RSP = 1, /**< Read attributes response */
+       ZBLIB_ZCL_GLOBAL_NOTI_WRITE_ATTR_RSP, /**< Write attributes response */
+       ZBLIB_ZCL_GLOBAL_NOTI_CONFIG_REPORT_RSP, /**< Configure reporting response */
+       ZBLIB_ZCL_GLOBAL_NOTI_DISCOVER_ATTR_RSP, /**< Discover attributes response */
+       ZBLIB_ZCL_GLOBAL_NOTI_WRITE_ATTR_STRUCTURED_RSP, /**< Write attributes structured response */
+       ZBLIB_ZCL_GLOBAL_NOTI_DISCOVER_CMDS_RECEIVED_RSP, /**< Discover commands received response */
+       ZBLIB_ZCL_GLOBAL_NOTI_DISCOVER_CMDS_GENERATED_RSP, /**< Discover commands generated response */
+       ZBLIB_ZCL_GLOBAL_NOTI_DISCOVER_ATTR_EXT_RSP, /**< Discover attributes extended response */
+       ZBLIB_ZCL_GLOBAL_NOTI_DEFAULT_RSP, /**< ZCL Global default response */
+       ZBLIB_ZCL_GLOBAL_NOTI_REPORT_ATTR_HANDLER_RSP, /**< Report attribute handler response */
+       ZBLIB_ZCL_GLOBAL_NOTI_READ_CONFIG_REPORT_RSP /**< Read configure reporting response */
+} ZblibZclGlobalControlNoti_e;
+
 /* ZigBee 'ZCL global control' driver APIs */
 ZigBeeDriver *zblib_driver_zcl_global_control_new(ZigBeePlugin *plugin,
        const gchar *driver_name,