Remove warning related signedness
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zcl_scene_type.h
index 37f72b9..98c2c23 100644 (file)
 
 #include <zigbee_types.h>
 
+/* -----------------------------------------------------------------------------
+ * For Requests
+ * ---------------------------------------------------------------------------*/
+
 /**
  * @brief Definition for ZCL scene add scene structure.
  * @since_tizen 3.0
  */
 typedef struct {
-       short node_id; /**< Node ID */
-       char dest_ep; /**< Destination endpoint */
-       short group_id; /**< Group ID */
-       char scene_id; /**< Scene ID */
-       short transition_time; /**< Transition time */
+       unsigned short node_id; /**< Node ID */
+       unsigned char dest_ep; /**< Destination endpoint */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_id; /**< Scene ID */
+       unsigned short transition_time; /**< Transition time */
        char scene_name[ZIGBEE_ZCL_SCENE_NAME_MAX_LEN + 1]; /**< Scene name (NULL terminated */
-       short ext_field_set_len; /**< Extended field set length */
-       short *ext_field_set; /**< Extended field set */
+       unsigned short ext_field_set_len; /**< Extended field set length */
+       unsigned char *ext_field_set; /**< Extended field set */
 } ZigbeeZclSceneAddScene_t;
 
 /**
@@ -41,10 +45,10 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       short node_id; /**< Node ID */
-       char dest_ep; /**< Destination endpoint */
-       short group_id; /**< Group ID */
-       char scene_id; /**< Scene ID */
+       unsigned short node_id; /**< Node ID */
+       unsigned char dest_ep; /**< Destination endpoint */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_id; /**< Scene ID */
 } ZigbeeZclSceneViewScene_t;
 
 /**
@@ -52,10 +56,10 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       short node_id; /**< Node ID */
-       char dest_ep; /**< Destination endpoint */
-       short group_id; /**< Group ID */
-       char scene_id; /**< Scene ID */
+       unsigned short node_id; /**< Node ID */
+       unsigned char dest_ep; /**< Destination endpoint */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_id; /**< Scene ID */
 } ZigbeeZclSceneRemoveScene_t;
 
 /**
@@ -63,10 +67,10 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       short node_id; /**< Node ID */
-       char dest_ep; /**< Destination endpoint */
-       short group_id; /**< Group ID */
-       char scene_id; /**< Scene ID */
+       unsigned short node_id; /**< Node ID */
+       unsigned char dest_ep; /**< Destination endpoint */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_id; /**< Scene ID */
 } ZigbeeZclSceneStoreScene_t;
 
 /**
@@ -74,10 +78,10 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       short node_id; /**< Node ID */
-       char dest_ep; /**< Destination endpoint */
-       short group_id; /**< Group ID */
-       char scene_id; /**< Scene ID */
+       unsigned short node_id; /**< Node ID */
+       unsigned char dest_ep; /**< Destination endpoint */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_id; /**< Scene ID */
 } ZigbeeZclSceneRecallScene_t;
 
 /**
@@ -85,9 +89,9 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       short node_id; /**< Node ID */
-       char dest_ep; /**< Destination endpoint */
-       short group_id; /**< Group ID */
+       unsigned short node_id; /**< Node ID */
+       unsigned char dest_ep; /**< Destination endpoint */
+       unsigned short group_id; /**< Group ID */
 } ZigbeeZclSceneRemoveAllScene_t;
 
 /**
@@ -95,9 +99,91 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       short node_id; /**< Node ID */
-       char dest_ep; /**< Destination endpoint */
-       short group_id; /**< Group ID */
+       unsigned short node_id; /**< Node ID */
+       unsigned char dest_ep; /**< Destination endpoint */
+       unsigned short group_id; /**< Group ID */
 } ZigbeeZclSceneGetSceneMembership_t;
 
+/* -----------------------------------------------------------------------------
+ * For Notification
+ * ---------------------------------------------------------------------------*/
+
+/**
+ * @brief Definition for ZCL scene add scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       unsigned short node_id; /**< Node ID */
+       unsigned char src_ep; /**< Destination endpoint */
+       unsigned char status; /**< Status */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_id; /**< Scene ID */
+} ZigbeeZclSceneAddSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene view scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       unsigned short node_id; /**< Node ID */
+       unsigned char src_ep; /**< Source endpoint */
+       unsigned short group_id; /**< Group ID */
+       unsigned char status; /**< Status */
+       unsigned char scene_id; /**< Scene ID */
+       unsigned short transition_time; /**< Transition time */
+       char *scene_name; /**< Scene name (NULL terminated */
+       unsigned short ext_field_set_len; /**< Extended field set length */
+       unsigned char *ext_field_set; /**< Extended field set */
+} ZigbeeZclSceneViewSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene remove scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       unsigned short node_id; /**< Node ID */
+       unsigned char src_ep; /**< Source endpoint */
+       unsigned char status; /**< Status */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_id; /**< Scene ID */
+} ZigbeeZclSceneRemoveSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene remove all scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       unsigned short node_id; /**< Node ID */
+       unsigned char src_ep; /**< Source endpoint */
+       unsigned char status; /**< Status */
+       unsigned short group_id; /**< Group ID */
+} ZigbeeZclSceneRemoveAllSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene store scene response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       unsigned short node_id; /**< Node ID */
+       unsigned char src_ep; /**< Source endpoint */
+       unsigned char status; /**< Status */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_id; /**< Scene ID */
+} ZigbeeZclSceneStoreSceneResp_t;
+
+/**
+ * @brief Definition for ZCL scene get scene membership response structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       unsigned short node_id; /**< Node ID */
+       unsigned char src_ep; /**< Source endpoint */
+       unsigned char status; /**< Status */
+       unsigned char capacity; /**< Capacity */
+       unsigned short group_id; /**< Group ID */
+       unsigned char scene_count; /**< Scene count */
+       unsigned char *scene_list; /**< Scene list */
+} ZigbeeZclSceneGetSceneMembershipResp_t;
+
+
 #endif /* __ZIGBEE_ZCL_SCENE_TYPE_H__ */