Remove warning related signedness
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_service_type.h
index c1c33ce..29f0a13 100644 (file)
@@ -29,7 +29,7 @@
  * @since_tizen 3.0
  */
 typedef struct {
-       char channel; /**< Channel */
+       unsigned char channel; /**< Channel */
 } ZigbeeServiceCoexStart_t;
 
 /**
@@ -37,7 +37,7 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       char permit_join; /* 1 - Allow, 0 - Disallow */
+       unsigned char permit_join; /* 1 - Allow, 0 - Disallow */
        int duration; /**< Duration */
 } ZigbeeServicePermitJoin_t;
 
@@ -46,9 +46,9 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
-       char remove_child; /* Remove child */
-       char rejoin; /**< Re-join */
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       unsigned char remove_child; /* Remove child */
+       unsigned char rejoin; /**< Re-join */
 } ZigbeeServiceLeaveRequest_t;
 
 /**
@@ -56,7 +56,7 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
 } ZigbeeServiceGetEndpointList_t;
 
 /**
@@ -64,8 +64,8 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
-       char endpoint; /**< Endpoint */
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       unsigned char endpoint; /**< Endpoint */
 } ZigbeeServiceGetClusterList_t;
 
 /**
@@ -73,7 +73,7 @@ typedef struct {
  * @since_tizen 3.0
  */
 typedef struct {
-       char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
 } ZigbeeServiceGetNodeType_t;
 
 /* --------------------------------------------------------------------------------------
@@ -86,8 +86,8 @@ typedef struct {
  */
 typedef struct {
        int result; /**< Result */
-       char enabled; /**< Enabled / Disabled result */
-} ZigbeeServiceServiceState_t;
+       unsigned char enabled; /**< Enabled / Disabled result */
+} ZigbeeServiceServiceStateResp_t;
 
 /**
  * @brief Definition for get network info structure.
@@ -95,12 +95,12 @@ typedef struct {
  */
 typedef struct {
        int result; /**< Result */
-       char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
-       short node_id; /**< Node ID (an Network address) */
-       short pan_id; /**< PAN ID (an Network address) */
-       char channel; /**< Channel number */
-       char radio_tx_power;  /**< Power (dBm) */
-} ZigbeeServiceGetNetworkInfo_t;
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       unsigned short node_id; /**< Node ID (an Network address) */
+       unsigned short pan_id; /**< PAN ID (an Network address) */
+       unsigned char channel; /**< Channel number */
+       unsigned char radio_tx_power;  /**< Power (dBm) */
+} ZigbeeServiceGetNetworkInfoResp_t;
 
 /**
  * @brief Definition for service 'get_node_type' response.
@@ -108,8 +108,8 @@ typedef struct {
  */
 typedef struct {
        int result; /**< Result */
-       char node_type; /**< Node Type */
-} ZigbeeServiceServiceNodeType_t;
+       unsigned char node_type; /**< Node Type */
+} ZigbeeServiceServiceNodeTypeResp_t;
 
 /**
  * @brief Definition for service get mac structure.
@@ -117,8 +117,59 @@ typedef struct {
  */
 typedef struct {
        int result; /**< Result */
-       char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
-} ZigbeeServiceGetMac_t;
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+} ZigbeeServiceGetMacResp_t;
+
+/**
+ * @brief Definition for service get details of device info structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       unsigned short node_id; /**< Node ID (an Network address) */
+       unsigned char node_type; /**< Node Type (an Network address) */
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       unsigned char endpoint_count; /**< The number of endpoints */
+       unsigned char endpoints[ZIGBEE_MAX_ENDPOINTS]; /**< Endpoints */
+} ZigbeeServiceGetDeviceInfoDetailResp_t;
+
+/**
+ * @brief Definition for service get device info structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       int result; /**< Result */
+       int count; /**< The number of detail item */
+       ZigbeeServiceGetDeviceInfoDetailResp_t *list;
+} ZigbeeServiceGetDeviceInfoResp_t;
+
+/**
+ * @brief Definition for service get endpoint list structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       int result; /**< Result */
+       int endpoint_count; /**< The number of endpoints */
+       unsigned char endpoints[ZIGBEE_MAX_ENDPOINTS]; /**< Endpoints */
+} ZigbeeServiceGetEndpointListResp_t;
+
+/**
+ * @brief Definition for service get cluster list structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       int result; /**< Result */
+       int cluster_count; /**< The number of clusters */
+       unsigned char clusters[ZIGBEE_MAX_CLUSTERS]; /**< Clusters */
+} ZigbeeServiceGetClusterListResp_t;
+
+/**
+ * @brief Definition for service get node type structure.
+ * @since_tizen 3.0
+ */
+typedef struct {
+       int result; /**< Result */
+       unsigned char node_type; /**< Node Type (an Network address) */
+} ZigbeeServiceGetNodeTypeResp_t;
 
 /* --------------------------------------------------------------------------------------
  * For Notifications
@@ -129,15 +180,26 @@ typedef struct {
  * @since_tizen 4.0
  */
 typedef struct {
-       short pan_id; /**< PAN ID */
+       unsigned short pan_id; /**< PAN ID */
 } ZigbeeServiceServiceFormNetworkDone_t;
 
 /**
+ * @brief Definition for service 'child_joined' response.
+ * @since_tizen 4.0
+ */
+typedef struct {
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       int endpoint_count; /**< The number of endpoints */
+       unsigned char endpoints[ZIGBEE_MAX_ENDPOINTS]; /**< Endpoints */
+       unsigned short node_id; /**< Node ID (an Network address) */
+} ZigbeeServiceServiceChildJoined_t;
+
+/**
  * @brief Definition for service 'child_rejoined' response.
  * @since_tizen 4.0
  */
 typedef struct {
-       char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
 } ZigbeeServiceServiceChildRejoined_t;
 
 /**
@@ -145,8 +207,8 @@ typedef struct {
  * @since_tizen 4.0
  */
 typedef struct {
-       char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
-       char status; /**< status */
+       unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
+       unsigned char status; /**< status */
 } ZigbeeServiceServiceChildLeft_t;
 
 /**
@@ -154,7 +216,7 @@ typedef struct {
  * @since_tizen 4.0
  */
 typedef struct {
-       short pan_id; /**< PAN ID */
+       unsigned short pan_id; /**< PAN ID */
 } ZigbeeServiceServiceLeaveNetworkDone_t;