osaf/services/saf/amf/amfd/include/sg.h | 14 ++++++++++++++ osaf/services/saf/amf/amfd/sg.cc | 10 ++++++++++ 2 files changed, 24 insertions(+), 0 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 @@ -248,6 +248,20 @@ public: bool in_su_oper_list(const AVD_SU *su); /** + * Add SU to operlist + * @param su + * @return NCSCC_RC_SUCCESS/NCSCC_RC_FAILURE + */ + uint32_t su_oper_list_add(AVD_SU *su); // TODO(hafe) add const when using container for operlist + + /** + * Remove SU from operlist + * @param su + * @return NCSCC_RC_SUCCESS/NCSCC_RC_FAILURE + */ + uint32_t su_oper_list_del(AVD_SU *su); // TODO(hafe) add const when using container for operlist + + /** * Handle node failure and fail over assignments * Called when the node hosting the SU has already failed and the SIs * assigned to the specified SU needs to be failed over. diff --git a/osaf/services/saf/amf/amfd/sg.cc b/osaf/services/saf/amf/amfd/sg.cc --- a/osaf/services/saf/amf/amfd/sg.cc +++ b/osaf/services/saf/amf/amfd/sg.cc @@ -1626,6 +1626,16 @@ bool AVD_SG::in_su_oper_list(const AVD_S return false; } +uint32_t AVD_SG::su_oper_list_add(AVD_SU *su) { + // TODO(hafe) move implementation here later when all uses this method + return avd_sg_su_oper_list_add(avd_cb, su, false); +} + +uint32_t AVD_SG::su_oper_list_del(AVD_SU *su) { + // TODO(hafe) move implementation here later when all uses this method + return avd_sg_su_oper_list_del(avd_cb, su, false); +} + /** * * @brief This function verifies whether SU ranks are equal or not in an SG. ------------------------------------------------------------------------------ _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel