Ack for all patches of the series. Thanks -Nagu
> -----Original Message----- > From: Gary Lee [mailto:gary....@dektech.com.au] > Sent: 17 September 2015 10:53 > To: hans.nordeb...@ericsson.com; Praveen Malviya; Nagendra Kumar; > minh.c...@dektech.com.au; gary....@dektech.com.au > Cc: opensaf-devel@lists.sourceforge.net > Subject: [PATCH 01 of 12] amfd: convert list_of_su to std::vector [#1142] > > osaf/services/saf/amf/amfd/include/sg.h | 13 +++++++++---- > osaf/services/saf/amf/amfd/include/su.h | 2 +- > 2 files changed, 10 insertions(+), 5 deletions(-) > > > diff --git a/osaf/services/saf/amf/amfd/include/sg.h > b/osaf/services/saf/amf/amfd/include/sg.h > --- a/osaf/services/saf/amf/amfd/include/sg.h > +++ b/osaf/services/saf/amf/amfd/include/sg.h > @@ -181,10 +181,13 @@ > * Checkpointing - > Sent as a one time update. > */ > > - AVD_SU *list_of_su; /* the list of service units in this > - * group in the descending order of > - * the rank. > - */ > + /* the list of service units in this > + * group in the descending order of > + * the rank. > + */ > + std::vector<AVD_SU*> list_of_su; > + AVD_SU* first_su(); > + > AVD_SI *list_of_si; /* the list of service instances in > * this group in the descending order > * of the rank. > @@ -404,6 +407,8 @@ > bool is_sg_serviceable_outside_ng(const AVD_AMF_NG *ng); > SaAisErrorT check_sg_stability(); > bool ng_using_saAmfSGAdminState; > + > + uint32_t term_su_list_in_reverse(); > private: > // disallow copy and assign, TODO(hafe) add common macro for this > AVD_SG(const AVD_SG&); > diff --git a/osaf/services/saf/amf/amfd/include/su.h > b/osaf/services/saf/amf/amfd/include/su.h > --- a/osaf/services/saf/amf/amfd/include/su.h > +++ b/osaf/services/saf/amf/amfd/include/su.h > @@ -93,7 +93,6 @@ > // TODO: use some container for the comp list > AVD_COMP *list_of_comp; /* the list of components in this SU > */ > > - AVD_SU *sg_list_su_next; /* the next SU in the SG */ > AVD_SUTYPE *su_type; > AVD_SU *su_list_su_type_next; > > @@ -137,6 +136,7 @@ > bool any_susi_fsm_in_unasgn(); > bool any_susi_fsm_in_modify(); > SaAisErrorT check_su_stability(); > + > private: > void initialize(); > void send_attribute_update(AVSV_AMF_SU_ATTR_ID attrib_id); ------------------------------------------------------------------------------ _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel