SET(DBUS_OBJECT_PATH "/org/tizen/${PROJECT_NAME}")
#SET(ZB_DBUS "zb-dbus")
-IF(TZ_VER_3)
- ADD_DEFINITIONS("-DTZ_VER_3")
- #ELSE(TZ_VER_3)
- # CONFIGURE_FILE(${CAPI_NETWORK_ZIGBEE}-old.manifest.in ${CAPI_NETWORK_ZIGBEE}.manifest @ONLY)
-ENDIF(TZ_VER_3)
# enable client log
ADD_DEFINITIONS("-DZB_ENABLE_CLIENT_LOG")
IF(ZB_FEATURE_GLOBAL_RSP_SYNC)
* @brief Sends custom APS data
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle Handle of node descriptor
* @param[in] addr16 Network address
* @brief Sends custom ZCL data
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle Handle of node descriptor
* @param[in] addr16 Network address
* @brief Transmits data that needs to be processed locally.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle handle of node descriptor
* @param[in] length The length of data
* @{
*/
typedef enum {
- ZIGBEE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
- ZIGBEE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Parameter error */
- ZIGBEE_ERROR_PARAMETER_OUT_OF_RANGE = TIZEN_ERROR_RESULT_OUT_OF_RANGE, /**< Out of range error */
- ZIGBEE_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
- ZIGBEE_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< DBus error */
- ZIGBEE_ERROR_NO_DATA = TIZEN_ERROR_NO_DATA, /**< No data available */
- ZIGBEE_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */
- ZIGBEE_ERROR_INVALID_ENDPOINT = TIZEN_ERROR_ZIGBEE | 0x01, /**< Endpoint 0 is reserved for ZDP */
- ZIGBEE_ERROR_INVALID_ADDRESS = TIZEN_ERROR_ZIGBEE | 0x02, /**< Wrong address */
- ZIGBEE_ERROR_OPERATION_FAILED = TIZEN_ERROR_ZIGBEE | 0x03, /**< Operation failed */
+ ZIGBEE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
+ ZIGBEE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+ ZIGBEE_ERROR_PARAMETER_OUT_OF_RANGE = TIZEN_ERROR_RESULT_OUT_OF_RANGE, /**< Out of range */
+ ZIGBEE_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ ZIGBEE_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< DBus error */
+ ZIGBEE_ERROR_NO_DATA = TIZEN_ERROR_NO_DATA, /**< No data available */
+ ZIGBEE_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */
+ ZIGBEE_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
+ ZIGBEE_ERROR_INVALID_ENDPOINT = TIZEN_ERROR_ZIGBEE | 0x01, /**< Endpoint 0 is reserved for ZDP */
+ ZIGBEE_ERROR_INVALID_ADDRESS = TIZEN_ERROR_ZIGBEE | 0x02, /**< Wrong address */
+ ZIGBEE_ERROR_OPERATION_FAILED = TIZEN_ERROR_ZIGBEE | 0x03, /**< Operation failed */
} zb_error_e;
/**
* according to the data type in #zb_zcl_data_type_e.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle handle of simple data value
*
* @details This allocates heap for read attribute status record
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle handle of read attribute status record
*
* @details This allocates heap for discover attribute information record
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of discover attribute information record
*
* @details Allocate memory for write attribute record
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle handle of write attribute record
*
* @details This allocates heap for write attribute status record
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of write attribute status record
*
* @details Allocate memory for reporting configuration record
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of reporting configuration record
*
* @details Allocate memory for read reporting configuration record
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of read configuration record
*
* @details Allocate memory for reporting configuration response record
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of reporting configuration response record
*
* @details Allocate memory for reporting attribute
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of reporting attribute
*
* @details Allocate memory for extended attribute information
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of extended attribute information
*
* @details Creates simple descriptor handle
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of simple descriptor
*
* @details Creates node power descriptor handle
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of node power descriptor
*
* @details Creates node descriptor handle
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[out] handle handle of node descriptor
*
* to the alarm log.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* record added to the alarm log.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* This command does not have a payload.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details This command causes the alarm table to be cleared, and does not have a payload.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details This function is aim to reset end-device as factory default settings.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] handle handle of zigbee
* generated, where not disabled, with status code equal to INVALID_VALUE.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* a continuous fashion.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* one step.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* generated, where not disabled, with status code equal to INVALID_VALUE.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* generated, where not disabled, with status code equal to INVALID_VALUE
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* generated, where not disabled, with status code equal to INVALID_VALUE
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* generated, where not disabled, with status code equal to INVALID_VALUE
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* generated, where not disabled, with status code equal to INVALID_VALUE\n\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* can thus be used to stop the operation of any other command of this cluster.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* generated, where not disabled, with status code equal to INVALID_VALUE\n\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* generated, where not disabled, with status code equal to INVALID_VALUE.\n\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details This function to read attributes in devices.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* @details This function to write attributes to other devices.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* @details This function to write attributes without fragmentation to other devices.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* @details This function to write attributes to other devices without any response.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* @details This function to set configuration about attribute status changing reporting.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* @details This function to read configuration about attribute status changing reporting.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* within the cluster to which this command is directed.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* to be read.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* always an error.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* that are theoretically supported by the cluster.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* that are theoretically supported by the cluster.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* that are theoretically supported by the cluster.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 target network address
* particular group for one or more endpoints on the receiving device.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* application name string for a particular group.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* the group membership of the receiving device and endpoint in a number of ways.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* removed.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* well. (Note: scenes not associated with a group need not be removed).\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* absence of a commissioning tool.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* that only messages from the correct CIE are accepted.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle handle of zigbee
* @param[in] addr16 Network address
* @details The identify command starts or stops the receiving device identifying itself.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* This command has no payload.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* disregarded.\n\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* up or down direction in a continuous fashion
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* up or down direction in a continuous fashion
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* commands are identical.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* endpoint, if implemented, shall be set to Off.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* endpoint, if implemented, shall be set to Off.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* endpoint, if implemented, shall be set to Off.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* its 'On' state. Otherwise, if it is in its 'On' state it shall enter its 'Off' state.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* device.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* Check-in response. The Fast Poll Stop command has no payload.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* INVALID_VALUE (0x87) and the LongPollInterval attribute value is not updated.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* INVALID_VALUE (0x87) and the ShortPollInterval attribute value is not updated.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details The Add Scene command shall be addressed to a single device (not a group)
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details The View Scene command shall be addressed to a single device (not a group)
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details The Remove Scene command may be addressed to a single device or to a group.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details The Remove All Scenes may be addressed to a single device or to a group.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details The Store Scene command may be addressed to a single device or to a group.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* @details The Recall Scene command may be addressed to a single device or to a group.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* devices in the group.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* specified in the Amount field.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address
* NOT_SUPPORTED status to the Bind_req if not supported.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] dst_addr16 The Network address of destination
* address must be that of the a Primary binding table cache or the SrcAddress.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] dst_addr16 The Network address of destination
* provide a good basis to specify a HA startup set.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] pan_id Short address
* devices for which macRxOnWhenIdle = TRUE.\n
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr64 IEEE address for device of interest
* The destination addressing on this command shall be unicast.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* address of the remote device for which the active endpoint list is required.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* required simple descriptor.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* where fragmentation is not supported.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* match is being sought.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* address of the remote device for which the node descriptor is required.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* address of the remote device for which the power descriptor is required.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* required.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* address of the remote device for which the user descriptor is required.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* through 0x1f are not permitted to be included in this string.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* broadcast to all devices for which macRxOnWhenIdle = TRUE.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* Device.\n\n The destination addressing on this command shall be unicast.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 destination address
* the destination address must be that of a ZigBee Coordinator or ZigBee Router.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 destination address
* must be that of the ZigBee Router or ZigBee Coordinator.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 destination network address
* binding table.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 destination network address
* binding table.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr64 The IEEE address for designated device to leave
* Mgmt_Direct_Join_req.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr64 The IEEE address for designated device to leave
* 'broadcast to all routers and coordinator'.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 destination network address
* device.\n\n The destination addressing on this primitive shall be unicast.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 destination network address
* unicast or broadcast to all devices for which macRxOnWhenIdle = TRUE.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] scan_channels The five most significant bits (b27,...,b31) are reserved.
* all devices for which macRxOnWhenIdle = TRUE.'
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] server_mask Server Mask Bit Assignment
* Find_node_cache_req.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* TRUE.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* The destination addressing on this request is unicast.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* this request is the Node Descriptor the Local Device wishes to cache.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* this request is the Power Descriptor the Local Device wishes to cache.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* Device to manage the discovery cache information for the Local Device.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* Device to manage the discovery cache information for the Local Device.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
* ZigBee end device on the Primary Discovery Cache device.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr16 Network address for device of interest
*/
void zb_destroy(zigbee_h handle);
-/**
- * @brief Called after enabling zigbee service
- * @details Response of enabling the zigbee service
- *
- * @since_tizen 4.0
- *
- * @param[in] status #ZB_ZDP_SUCCESS \n
- * #ZB_ZDP_NOT_SUPPORTED \n
- * @param[in] user_data user data
- *
- * @see zb_enable()
- */
-typedef void (*zb_enable_cb)(unsigned char status, void *user_data);
-
-/**
- * @brief Enables the zigbee service.
- * @details All this function to start zigbee service
- *
- * @since_tizen 4.0
- *
- * @remarks You must free all resources of the zigbee by calling zb_destroy()
- * if zigbee service is no longer needed.
- *
- * @param[in] handle The handle of zigbee
- * @param[in] cb zb_enable_cb
- * @param[in] user_data user data
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #ZIGBEE_ERROR_NONE Successful
- * @retval #ZIGBEE_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #ZIGBEE_ERROR_IO_ERROR Unexpected d-bus error
- *
- * @see zb_create()
- * @see zb_destroy()
- *
- */
-int zb_enable(zigbee_h handle, zb_enable_cb cb, void *user_data);
-
/**
* @brief Called after receiving events from zigbee service
* @details This function can receive events from the devices in the network.
*/
int zb_set_event_cb(zigbee_h handle, zb_event_cb event_handler);
-/**
- * @brief Disables the zigbee service.
- * @details All this function to stop zigbee service
- *
- * @since_tizen 4.0
- *
- * @param[in] handle The handle of zigbee
- *
- * @remarks You must free all resources of the zigbee by calling zb_destroy()
- * if zigbee service is no longer needed.
- *
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #ZIGBEE_ERROR_NONE Successful
- * @retval #ZIGBEE_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #ZIGBEE_ERROR_IO_ERROR Unexpected d-bus error
- * @retval #ZIGBEE_ERROR_NO_DATA No data available
- *
- * @see zb_create()
- * @see zb_destroy()
- *
- */
-int zb_disable(zigbee_h handle);
-
-/**
- * @brief Resets chip for the zigbee transceiver.
- * @details If the Zigbee transceiver works abnormally, this function do HW reset.
- *
- * @since_tizen 4.0
- *
- * @param[in] handle The handle of zigbee
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #ZIGBEE_ERROR_NONE Successful
- * @retval #ZIGBEE_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #ZIGBEE_ERROR_IO_ERROR Unexpected d-bus error
- *
- */
-int zb_hw_reset(zigbee_h handle);
-
/**
* @brief Switches channel when an occupied channel is noisy.
* @details When noisy, do energy scan and active scan to switch operational channel.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] channel target channel number to switch
* @details Halt current operation related to channel switching.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
*
* @details This function to enable the zigbee coordinator.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks If you want to change parameters related to network configuration you should
* call zb_zdo_set_compatible_startup_parameters() API
* @retval #ZIGBEE_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #ZIGBEE_ERROR_IO_ERROR Unexpected d-bus error
*
- * @post When forming network finished, fome_network_done event will be generated.
+ * @post When forming network finished, form_network_done event will be generated.
*
* @see zb_disable_network()
* @see zb_zdo_set_compatible_startup_parameters()
* @details This function to stop zigbee coordinator
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks You must destroy all device and routing information before calling this
* function.
* sets true, the the target end device will reset its state-machine as factory default.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr The source EUI64 of the binding (the remote device's EUI64)
* a remote device or devices allow or disallow association.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks Especially, this can be very useful for disabling joining all throughout the
* network. Typically, this is the last step when commissioning a network. It closes it
* zigbee-service daemon.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[out] addr64 the Zigbee IEEE MAC address of this machine.
* @details The function shows network environment
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[out] addr64 the Zigbee IEEE MAC address
* at each device.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[out] count The number of end-devices
* @details This function return end-point list at each device.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr64 the Zigbee IEEE MAC address
* @details This function return in and out cluster list at each device.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] handle The handle of zigbee
* @param[in] addr64 the Zigbee IEEE MAC address
* at each device.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] list The device information list
*
* @brief Calls a function for each children end-point of parent.
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @param[in] list handle of end-devices parent
* @param[in] cb zb_end_device_cb()
* @brief Gets network address of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets ieee address of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets a number of end-points of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets list of end-points of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets 802.15.4 MAC capability of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets ability of alternative PAN coordinator of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets device id of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets profile id of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets power source type of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
* @brief Gets security capability of a specific end-point
*
* @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/zigbee
*
* @remarks This function should be called in zb_end_device_cb()
*
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef __CAPI_NETWORK_ZIGBEE_INTERNAL_H__
+#define __CAPI_NETWORK_ZIGBEE_INTERNAL_H__
+
+/* For test */
+#define ZIGBEE_SUPPORT_ORDERED_SEQUENCE_DATA 0
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <tizen_type.h>
+
+#include <zb_type.h>
+#include <zb_error.h>
+#include <zb_zdo.h>
+#include <zb_zcl.h>
+#include <zb_ha.h>
+#include <zb_custom.h>
+
+/**
+ * @file zigbee_internal.h
+ */
+
+/**
+ * @ingroup CAPI_NETWORK_FRAMEWORK
+ * @addtogroup CAPI_NETWORK_ZIGBEE_MODULE ZigBee
+ *
+ * @{
+ */
+
+/**
+ * @brief Called after enabling zigbee service
+ * @details Response of enabling the zigbee service
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] status #ZB_ZDP_SUCCESS \n
+ * #ZB_ZDP_NOT_SUPPORTED \n
+ * @param[in] user_data user data
+ *
+ * @see zb_enable()
+ */
+typedef void (*zb_enable_cb)(unsigned char status, void *user_data);
+
+/**
+ * @internal
+ * @brief Enables the zigbee service.
+ * @details All this function to start zigbee service
+ *
+ * @since_tizen 4.0
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/zigbee.admin
+ *
+ * @remarks You must free all resources of the zigbee by calling zb_destroy()
+ * if zigbee service is no longer needed.
+ *
+ * @param[in] handle The handle of zigbee
+ * @param[in] cb zb_enable_cb
+ * @param[in] user_data user data
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #ZIGBEE_ERROR_NONE Successful
+ * @retval #ZIGBEE_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #ZIGBEE_ERROR_IO_ERROR Unexpected d-bus error
+ *
+ * @see zb_create()
+ * @see zb_destroy()
+ *
+ */
+int zb_enable(zigbee_h handle, zb_enable_cb cb, void *user_data);
+
+/**
+ * @internal
+ * @brief Disables the zigbee service.
+ * @details All this function to stop zigbee service
+ *
+ * @since_tizen 4.0
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/zigbee.admin
+ *
+ * @param[in] handle The handle of zigbee
+ *
+ * @remarks You must free all resources of the zigbee by calling zb_destroy()
+ * if zigbee service is no longer needed.
+ *
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #ZIGBEE_ERROR_NONE Successful
+ * @retval #ZIGBEE_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #ZIGBEE_ERROR_IO_ERROR Unexpected d-bus error
+ * @retval #ZIGBEE_ERROR_NO_DATA No data available
+ *
+ * @see zb_create()
+ * @see zb_destroy()
+ *
+ */
+int zb_disable(zigbee_h handle);
+
+/**
+ * @internal
+ * @brief Resets chip for the zigbee transceiver.
+ * @details If the Zigbee transceiver works abnormally, this function do HW reset.
+ *
+ * @since_tizen 4.0
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/zigbee.admin
+ *
+ * @param[in] handle The handle of zigbee
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #ZIGBEE_ERROR_NONE Successful
+ * @retval #ZIGBEE_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #ZIGBEE_ERROR_IO_ERROR Unexpected d-bus error
+ *
+ */
+int zb_hw_reset(zigbee_h handle);
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CAPI_NETWORK_ZIGBEE_INTERNAL_H__ */
pkg_check_modules(client_pkgs REQUIRED glib-2.0 gio-2.0 gio-unix-2.0 dlog capi-base-common capi-system-info)
INCLUDE_DIRECTORIES(${client_pkgs_INCLUDE_DIRS})
-# Temporary debug info enable : -g
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -pthread -g")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -pthread")
+SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -O0 -g")
ADD_DEFINITIONS("-DZIGBEE_DBUS_INTERFACE=\"${DBUS_INTERFACE}\"")
ADD_DEFINITIONS("-DZIGBEE_DBUS_OBJPATH=\"${DBUS_OBJECT_PATH}\"")
#include "zbl.h"
#include "zbl_dbus.h"
#include "zigbee.h"
+#include "zigbee_internal.h"
API int zb_create(zigbee_h *handle)
{
}
}
+static int _check_zigbee_privilege()
+{
+ int result = ZIGBEE_ERROR_NONE;
+ GVariant *variant = NULL;
+ GError *dbus_err = NULL;
+
+ DBG("_check_zigbee_privilege()");
+ RETV_IF(NULL == gdbus_conn, ZIGBEE_ERROR_IO_ERROR);
+ RETV_IF(NULL == service_gproxy, ZIGBEE_ERROR_IO_ERROR);
+
+ variant = g_dbus_proxy_call_sync(service_gproxy, "check_privilege",
+ NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &dbus_err);
+ if (!variant) {
+ ERR("Failed to check_zigbee_privilege [%s]", dbus_err->message);
+ if(g_strcmp0(dbus_err->message, "AccessDenied"))
+ result = ZIGBEE_ERROR_PERMISSION_DENIED;
+ else if(g_strcmp0(dbus_err->message, "PermissionDenied"))
+ result = ZIGBEE_ERROR_PERMISSION_DENIED;
+ else
+ result = ZIGBEE_ERROR_IO_ERROR;
+
+ g_error_free(dbus_err);
+ }
+ g_variant_unref(variant);
+
+ return result;
+}
+
int zbl_set_event_cb(zigbee_h handle, zb_event_cb event_handler)
{
RETV_IF(NULL == handle, ZIGBEE_ERROR_INVALID_PARAMETER);
return timeout;
}
+int zbl_check_privilege()
+{
+ int ret = _check_zigbee_privilege();
+ if (ret == ZIGBEE_ERROR_PERMISSION_DENIED)
+ return ret;
+ else if (ret != ZIGBEE_ERROR_NONE) {
+ ERR("Failed to check privilege");
+ return ZIGBEE_ERROR_OPERATION_FAILED;
+ }
+
+ return ZIGBEE_ERROR_NONE;
+}
#include <gio/gio.h>
#include <zigbee.h>
+#include <zigbee_internal.h>
#include <zb_type.h>
#include <zb_custom.h>
void zbl_dbus_stop(zigbee_h handle);
GDBusConnection* zbl_dbus_get_object(void);
int zbl_dbus_get_timeout(GDBusProxy *proxy);
+int zbl_check_privilege();
+
int zbl_enable(zigbee_h handle, zb_enable_cb cb, void *user_data);
int zbl_set_event_cb(zigbee_h handle, zb_event_cb event_handler);
int zbl_disable(void);
-Name: capi-network-zigbee
-Summary: Network Zigbee Service in Tizen CAPI
-Version: 0.0.1
-Release: 0
-Group: Network & Connectivity/Other
-License: Apache-2.0
-Source0: %{name}-%{version}.tar.gz
-Source1001: %{name}.manifest
-Source1003: lib%{name}-old.manifest
-Source1004: test-%{name}-old.manifest
+%define project_name zigbee
+
+Name: capi-network-zigbee
+Summary: Network Zigbee Service in Tizen CAPI
+Version: 0.0.1
+Release: 0
+Group: Network & Connectivity/Other
+License: Apache-2.0
+Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(capi-system-info)
-%if 0%{?tizen_version_major} >= 3
-BuildRequires: pkgconfig(cynara-client)
-BuildRequires: pkgconfig(cynara-session)
-BuildRequires: pkgconfig(cynara-creds-gdbus)
-%endif
+
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
-#%define _unitdir /usr/lib/systemd/system
-%define project_name zigbee
-
%description
-zigbee service library
-
-%package lib
-Summary: Zigbee Library (Shared Library)
-Group: Network & Connectivity/Other
-Requires: %{name} = %{version}
-
-%description lib
-Zigbee Library (Shared Library)
+Zigbee service library
This package aims to support the Zigbee service in Tizen platform.
%package devel
Summary: Zigbee Library (Shared Library) (development)
Group: Network & Connectivity/Other
Requires: %{name} = %{version}-%{release}
-Requires: %{name}-lib
%description devel
Zigbee Library (Shared Library) (Development)
%package -n test-%{name}
Summary: Test Application for Zigbee
Group: Network & Connectivity/Other
-Requires: %{name}-lib
%description -n test-%{name}
Zigbee Library test program(s)
%prep
%setup #-q
chmod g-w %_sourcedir/*
-%if 0%{?tizen_version_major} >= 3
cp %{SOURCE1001} ./%{name}.manifest
-cp %{SOURCE1001} ./lib%{name}.manifest
-cp %{SOURCE1004} ./test-%{name}.manifest
-%else
-cp %{SOURCE1001} ./%{name}.manifest
-cp %{SOURCE1003} ./lib%{name}.manifest
-cp %{SOURCE1004} ./test-%{name}.manifest
-%endif
%build
-%if 0%{?tizen_version_major} >= 3
-TZ_VER_3=1
-%else
-TZ_VER_3=0
-%endif
-
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DMAJORVER=%{MAJORVER} -DFULLVER=%{version} \
rm -rf %{buildroot}/BUILD/%{name}
%make_install
-%if 0%{?tizen_version_major} >= 3
-%else
-mkdir -p %{buildroot}/%{_datadir}/license
-cp LICENSE.APLv2 %{buildroot}/%{_datadir}/license/%{name}
-cp LICENSE.APLv2 %{buildroot}/%{_datadir}/license/%{name}-lib
-cp LICENSE.APLv2 %{buildroot}/%{_datadir}/license/%{name}-test
-%endif
-
%post
+/sbin/ldconfig
%postun
/sbin/ldconfig # re-inialize shared library db
-%post lib
-/sbin/ldconfig
-
-%postun lib
-/sbin/ldconfig
-
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%if 0%{?tizen_version_major} < 3
-%{_datadir}/license/%{name}
-%else
%license LICENSE.APLv2
-%endif
-
-%files lib
-%manifest lib%{name}.manifest
-%defattr(-,root,root,-)
%{_libdir}/lib%{project_name}.so.*
-%if 0%{?tizen_version_major} >= 3
-%license LICENSE.APLv2
-%else
-%{_datadir}/license/%{name}-lib
-%endif
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{project_name}/zcl/*.h
%files -n test-%{name}
-%manifest test-%{name}.manifest
+%manifest %{name}.manifest
%defattr(-,root,root,-)
-%if 0%{?tizen_version_major} >= 3
%license LICENSE.APLv2
-%else
-%{_datadir}/license/%{name}-test
-%endif
%{_bindir}/test-zigbee2
+++ /dev/null
-<manifest>
- <define>
- <domain name="zigbee" />
- <permit>
- <smack permit="dbus" type="rwx" />
- </permit>
- <request>
- <smack request="dbus" type="rwx" />
- <smack request="device::app_logging" type="w" />
- <smack request="device::sys_logging" type="w" />
- </request>
- </define>
- <assign>
- <filesystem path="/usr/share/license/capi-network-zigbee-lib" label="_" />
- <filesystem path="/usr/lib/libzigbee.so.*" label="_" />
-
- <dbus name="org.tizen.zigbee.dbus" own="zigbee" bus="system">
- <node name="/org/tizen/zigbee/dbus">
- <interface name="org.tizen.zigbee.dbus">
- <annotation name="com.tizen.smack" value="zigbee" />
- </interface>
- </node>
- </dbus>
- </assign>
- <request>
- <domain name="zigbee" />
- </request>
-</manifest>
+++ /dev/null
-<manifest>
- <define>
- <domain name="zigbee-test" />
- <request>
- <smack request="zigbee" type="rw" />
- <smack request="device::app_logging" type="w" />
- <smack request="device::sys_logging" type="w" />
- </request>
- </define>
- <request>
- <domain name="zigbee-test" />
- </request>
-</manifest>
#include <gio/gio.h>
#include <zigbee.h>
+#include <zigbee_internal.h>
#include "main.h"
#include "menu.h"