* limitations under the License.
*/
-#ifndef __ZIGBEE_LIB_DRIVER_ON_OFF_H__
-#define __ZIGBEE_LIB_DRIVER_ON_OFF_H__
+#ifndef __ZIGBEE_LIB_DRIVER_ZCL_ON_OFF_H__
+#define __ZIGBEE_LIB_DRIVER_ZCL_ON_OFF_H__
-/**< ZigBee 'on off' driver operations */
+/**< ZigBee 'ZCL on off' driver operations */
typedef struct {
- gboolean (*set_on_off)(ZigBeeDriver *driver, guint request_id);
- gboolean (*get_on_off_state)(ZigBeeDriver *driver, guint request_id);
+ gboolean(*set_on_off) (ZigBeeDriver *driver, guint request_id);
+ gboolean(*get_on_off_state) (ZigBeeDriver *driver, guint request_id);
} ZblibDriverZclOnOffOps_t;
-/**< ZigBee 'on off' ops IDs */
+/**< ZigBee 'ZCL on off' ops IDs */
typedef enum {
- ZBLIB_ON_OFF_OPS_SET_ON_OFF = 1, /**< Set ON OFF */
- ZBLIB_ON_OFF_OPS_GET_ON_OFF_STATE, /**< Get ON OFF state */
+ ZBLIB_ZCL_ON_OFF_OPS_SET_ON_OFF = 1, /**< Set ON OFF */
+ ZBLIB_ZCL_ON_OFF_OPS_GET_ON_OFF_STATE, /**< Get ON OFF state */
} ZblibZclOnOffOps_e;
-/* ZigBee 'on off' driver APIs */
+/**< ZigBee 'ZCL on off' notification IDs */
+typedef enum {
+ ZBLIB_ZCL_ON_OFF_NOTI_ON_OFF_STATE = 1, /**< On Off state */
+} ZblibZclOnOffNoti_e;
+
+/* ZigBee 'ZCL on off' driver APIs */
ZigBeeDriver *zblib_driver_zcl_on_off_new(ZigBeePlugin *plugin,
const gchar *driver_name,
ZblibDriverZclOnOffOps_t *ops);
void zblib_driver_zcl_on_off_free(ZigBeeDriver *driver);
-#endif /* __ZIGBEE_LIB_DRIVER_ON_OFF_H__ */
+#endif /* __ZIGBEE_LIB_DRIVER_ZCL_ON_OFF_H__ */