#ifndef _GB_GATEWAY_H_
#define _GB_GATEWAY_H_

#define GW_MSG_PERIOD 10

typedef struct _gb_node_bind_info {
	u32  gw_device_id;
	u32  device_type;
	u32  device_id;
} gb_node_bind_info_t;

#define GB_SUPPORT_MAX_NODE		12
#define GATEWAY_ECHO_MAX_COUNT	10
typedef struct _gb_node_info {
	u32  device_type;
	u32  device_id;
} gb_node_info_t;

typedef struct _gb_gateway_bind_info {
	u32  gw_device_id;
	gb_node_info_t node[GB_SUPPORT_MAX_NODE];
} gb_gateway_bind_info_t;

int gateway_gw_id_flush(u32 gw_device_id);
int gateway_id_cmp(u32 gw_device_id);
int gateway_gw_id_get(u32 *gw_device_id);

#endif
