* limitations under the License.
*/
-#ifndef __ZIGBEE_LIB_ZCL_POLL_CONTROL_H__
-#define __ZIGBEE_LIB_ZCL_POLL_CONTROL_H__
+#ifndef __ZIGBEE_LIB_DRIVER_ZCL_POLL_CONTROL_H__
+#define __ZIGBEE_LIB_DRIVER_ZCL_POLL_CONTROL_H__
-/**< ZigBee 'Zcl poll control' driver operations */
+/**< ZigBee 'ZCL poll control' driver operations */
typedef struct {
- gboolean (*check_in_response)(ZigBeeDriver *driver);
- gboolean (*fast_poll_stop)(ZigBeeDriver *driver);
- gboolean (*set_long_poll_interval)(ZigBeeDriver *driver);
- gboolean (*set_short_poll_interval)(ZigBeeDriver *driver);
+ gboolean(*check_in_response) (ZigBeeDriver *driver, guint request_id);
+ gboolean(*fast_poll_stop) (ZigBeeDriver *driver, guint request_id);
+ gboolean(*set_long_poll_interval) (ZigBeeDriver *driver, guint request_id);
+ gboolean(*set_short_poll_interval) (ZigBeeDriver *driver, guint request_id);
} ZblibDriverZclPollControlOps_t;
+/**< ZigBee 'ZCL poll control' ops IDs */
+typedef enum {
+ ZBLIB_ZCL_POLL_CONTROL_OPS_CHECK_IN_RESPONSE = 1, /**< Check in response */
+ ZBLIB_ZCL_POLL_CONTROL_OPS_FAST_POLL_STOP, /**< Fast poll stop */
+ ZBLIB_ZCL_POLL_CONTROL_OPS_SET_LONG_POLL_INTERVAL, /**< Set long poll interval */
+ ZBLIB_ZCL_POLL_CONTROL_OPS_SET_SHORT_POLL_INTERVAL, /**< Set short poll interval */
+} ZblibZclPollControlOps_e;
+
+/**< ZigBee 'ZCL Poll Control' notification IDs */
+typedef enum {
+ ZBLIB_ZCL_POLL_CONTROL_NOTI_CHECKIN_RESPONSE = 1, /**< Checkin response notification */
+} ZblibZclPollControlNoti_e;
+
/* ZigBee 'Zcl poll control' driver APIs */
ZigBeeDriver *zblib_driver_zcl_poll_control_new(ZigBeePlugin *plugin,
const gchar *driver_name,
ZblibDriverZclPollControlOps_t *ops);
void zblib_driver_zcl_poll_control_free(ZigBeeDriver *driver);
-#endif /* __ZIGBEE_LIB_ZCL_POLL_CONTROL_H__ */
+#endif /* __ZIGBEE_LIB_DRIVER_ZCL_POLL_CONTROL_H__ */