aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-zbee-zcl-meas-sensing.c
diff options
context:
space:
mode:
authorPaul Zander <p.j.zander@lighting.com>2018-03-07 09:09:35 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2018-03-09 12:52:03 +0000
commit1ac90d5254e9e303196c100039b7dd26d23841d1 (patch)
treecd20ede160d51078dd74b02421d42027983f8301 /epan/dissectors/packet-zbee-zcl-meas-sensing.c
parent446d9486ae897692fb3e02e90501e38790ac37c8 (diff)
Register and initialize the ZCL clusters in a uniform way.
The cluster registration and initialisation is done in the functions 'proto_reg_handoff_zbee_zcl_XXX'. In these functions the 1st step was to register the dissector. Then the cluster was initialised via the function 'zbee_zcl_init_cluster'. In this patch the registration and initialisation is now done by the function 'zbee_zcl_init_cluster'. In this way we have a more uniform way of registration. Change-Id: If865d904ea51c299a48e5c0004f3f280b7479d49 Reviewed-on: https://code.wireshark.org/review/26325 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-zbee-zcl-meas-sensing.c')
-rw-r--r--epan/dissectors/packet-zbee-zcl-meas-sensing.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/epan/dissectors/packet-zbee-zcl-meas-sensing.c b/epan/dissectors/packet-zbee-zcl-meas-sensing.c
index cc87dcaa68..100807bdbd 100644
--- a/epan/dissectors/packet-zbee-zcl-meas-sensing.c
+++ b/epan/dissectors/packet-zbee-zcl-meas-sensing.c
@@ -298,7 +298,8 @@ proto_register_zbee_zcl_illum_meas(void)
void
proto_reg_handoff_zbee_zcl_illum_meas(void)
{
- zbee_zcl_init_cluster( proto_zbee_zcl_illum_meas,
+ zbee_zcl_init_cluster( ZBEE_PROTOABBREV_ZCL_ILLUMMEAS,
+ proto_zbee_zcl_illum_meas,
ett_zbee_zcl_illum_meas,
ZBEE_ZCL_CID_ILLUMINANCE_MEASUREMENT,
hf_zbee_zcl_illum_meas_attr_id,
@@ -503,7 +504,8 @@ proto_register_zbee_zcl_illum_level_sen(void)
void
proto_reg_handoff_zbee_zcl_illum_level_sen(void)
{
- zbee_zcl_init_cluster( proto_zbee_zcl_illum_level_sen,
+ zbee_zcl_init_cluster( ZBEE_PROTOABBREV_ZCL_ILLUMLEVELSEN,
+ proto_zbee_zcl_illum_level_sen,
ett_zbee_zcl_illum_level_sen,
ZBEE_ZCL_CID_ILLUMINANCE_LEVEL_SENSING,
hf_zbee_zcl_illum_level_sen_attr_id,
@@ -761,7 +763,8 @@ proto_register_zbee_zcl_temp_meas(void)
void
proto_reg_handoff_zbee_zcl_temp_meas(void)
{
- zbee_zcl_init_cluster( proto_zbee_zcl_temp_meas,
+ zbee_zcl_init_cluster( ZBEE_PROTOABBREV_ZCL_TEMPMEAS,
+ proto_zbee_zcl_temp_meas,
ett_zbee_zcl_temp_meas,
ZBEE_ZCL_CID_TEMPERATURE_MEASUREMENT,
hf_zbee_zcl_temp_meas_attr_id,
@@ -1081,7 +1084,8 @@ proto_register_zbee_zcl_press_meas(void)
void
proto_reg_handoff_zbee_zcl_press_meas(void)
{
- zbee_zcl_init_cluster( proto_zbee_zcl_press_meas,
+ zbee_zcl_init_cluster( ZBEE_PROTOABBREV_ZCL_PRESSMEAS,
+ proto_zbee_zcl_press_meas,
ett_zbee_zcl_press_meas,
ZBEE_ZCL_CID_PRESSURE_MEASUREMENT,
hf_zbee_zcl_press_meas_attr_id,
@@ -1342,7 +1346,8 @@ proto_register_zbee_zcl_flow_meas(void)
void
proto_reg_handoff_zbee_zcl_flow_meas(void)
{
- zbee_zcl_init_cluster( proto_zbee_zcl_flow_meas,
+ zbee_zcl_init_cluster( ZBEE_PROTOABBREV_ZCL_FLOWMEAS,
+ proto_zbee_zcl_flow_meas,
ett_zbee_zcl_flow_meas,
ZBEE_ZCL_CID_FLOW_MEASUREMENT,
hf_zbee_zcl_flow_meas_attr_id,
@@ -1598,7 +1603,8 @@ proto_register_zbee_zcl_relhum_meas(void)
void
proto_reg_handoff_zbee_zcl_relhum_meas(void)
{
- zbee_zcl_init_cluster( proto_zbee_zcl_relhum_meas,
+ zbee_zcl_init_cluster( ZBEE_PROTOABBREV_ZCL_RELHUMMEAS,
+ proto_zbee_zcl_relhum_meas,
ett_zbee_zcl_relhum_meas,
ZBEE_ZCL_CID_REL_HUMIDITY_MEASUREMENT,
hf_zbee_zcl_relhum_meas_attr_id,
@@ -1797,9 +1803,10 @@ proto_register_zbee_zcl_occ_sen(void)
void
proto_reg_handoff_zbee_zcl_occ_sen(void)
{
- zbee_zcl_init_cluster( proto_zbee_zcl_occ_sen,
+ zbee_zcl_init_cluster( ZBEE_PROTOABBREV_ZCL_OCCSEN,
+ proto_zbee_zcl_occ_sen,
ett_zbee_zcl_occ_sen,
- ZBEE_ZCL_CID_ILLUMINANCE_LEVEL_SENSING,
+ ZBEE_ZCL_CID_OCCUPANCY_SENSING,
hf_zbee_zcl_occ_sen_attr_id,
-1, -1,
(zbee_zcl_fn_attr_data)dissect_zcl_occ_sen_attr_data