Added deep copy logic for request data
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zcl_scene_type.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Contact: Suresh Kumar N (suresh.n@samsung.com)
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 #ifndef __ZIGBEE_ZCL_SCENE_TYPE_H__
20 #define __ZIGBEE_ZCL_SCENE_TYPE_H__
21
22 #include <zigbee_types.h>
23
24 /**
25  * @brief Definition for Zcl scene add scene structure.
26  * @since_tizen 3.0
27  */
28 typedef struct {
29         short node_id; /**< Node ID */
30         char dest_ep; /**< Destination endpoint */
31         short group_id; /**< Group ID */
32         char scene_id; /**< Scene ID */
33         short transition_time; /**< Transition time */
34         char scene_name[ZIGBEE_ZCL_SCENE_NAME_MAX_LEN + 1]; /**< Scene name (NULL terminated */
35         short ext_field_set_len; /**< Extended field set length */
36         short *ext_field_set; /**< Extended field set */
37 } ZigbeeZclSceneAddScene_t;
38
39 /**
40  * @brief Definition for Zcl scene view scene structure.
41  * @since_tizen 3.0
42  */
43 typedef struct {
44         short node_id; /**< Node ID */
45         char dest_ep; /**< Destination endpoint */
46         short group_id; /**< Group ID */
47         char scene_id; /**< Scene ID */
48 } ZigbeeZclSceneViewScene_t;
49
50 /**
51  * @brief Definition for Zcl scene remove scene structure.
52  * @since_tizen 3.0
53  */
54 typedef struct {
55         short node_id; /**< Node ID */
56         char dest_ep; /**< Destination endpoint */
57         short group_id; /**< Group ID */
58         char scene_id; /**< Scene ID */
59 } ZigbeeZclSceneRemoveScene_t;
60
61 /**
62  * @brief Definition for Zcl scene store scene structure.
63  * @since_tizen 3.0
64  */
65 typedef struct {
66         short node_id; /**< Node ID */
67         char dest_ep; /**< Destination endpoint */
68         short group_id; /**< Group ID */
69         char scene_id; /**< Scene ID */
70 } ZigbeeZclSceneStoreScene_t;
71
72 /**
73  * @brief Definition for Zcl scene recall scene structure.
74  * @since_tizen 3.0
75  */
76 typedef struct {
77         short node_id; /**< Node ID */
78         char dest_ep; /**< Destination endpoint */
79         short group_id; /**< Group ID */
80         char scene_id; /**< Scene ID */
81 } ZigbeeZclSceneRecallScene_t;
82
83 /**
84  * @brief Definition for Zcl scene remove all scene structure.
85  * @since_tizen 3.0
86  */
87 typedef struct {
88         short node_id; /**< Node ID */
89         char dest_ep; /**< Destination endpoint */
90         short group_id; /**< Group ID */
91 } ZigbeeZclSceneRemoveAllScene_t;
92
93 /**
94  * @brief Definition for Zcl scene get scene membership structure.
95  * @since_tizen 3.0
96  */
97 typedef struct {
98         short node_id; /**< Node ID */
99         char dest_ep; /**< Destination endpoint */
100         short group_id; /**< Group ID */
101 } ZigbeeZclSceneGetSceneMembership_t;
102
103 #endif /* __ZIGBEE_ZCL_SCENE_TYPE_H__ */