ha/service-mgmt/sm/src/sm_failover_utils.h

48 lines
1.7 KiB
C

//
// Copyright (c) 2018 Wind River Systems, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef __SM_FAILOVER_UTILS_H__
#define __SM_FAILOVER_UTILS_H__
#include "sm_types.h"
#ifdef __cplusplus
extern "C" {
#endif
// ****************************************************************************
// Failover Utilities - get node controller state
// ==============================
extern SmNodeScheduleStateT sm_get_controller_state(const char node_name[]);
// ****************************************************************************
// ****************************************************************************
// failover Utilities - Set StayFailed
// ==============================
extern SmErrorT sm_failover_utils_set_stayfailed_flag();
// ****************************************************************************
// ****************************************************************************
// Node Utilities - Set StayFailed
// ==============================
extern SmErrorT sm_failover_utils_reset_stayfailed_flag();
// ****************************************************************************
// ****************************************************************************
// Node Utilities - is StayFailed set
// ==============================
extern bool sm_failover_utils_is_stayfailed();
// ****************************************************************************
// ****************************************************************************
// Failover Utilities - get wait time for peer to be reset
// ==============================
extern int sm_failover_get_reset_peer_wait_time();
#ifdef __cplusplus
}
#endif
#endif // __SM_FAILOVER_UTILS_H__