ha/service-mgmt/sm-1.0.0/src/sm_service_domain_fsm.h
Dean Troyer 17c909ec83 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:36:26 -07:00

53 lines
1.9 KiB
C

//
// Copyright (c) 2014-2018 Wind River Systems, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef __SM_SERVICE_DOMAIN_FSM_H__
#define __SM_SERVICE_DOMAIN_FSM_H__
#include <stdio.h>
#include "sm_types.h"
#ifdef __cplusplus
extern "C" {
#endif
// ****************************************************************************
// Service Domain FSM - Set State
// ==============================
extern SmErrorT sm_service_domain_fsm_set_state( char name[],
SmServiceDomainStateT state, const char reason_text[] );
// ****************************************************************************
// ****************************************************************************
// Service Domain FSM - Event Handler
// ==================================
extern SmErrorT sm_service_domain_fsm_event_handler( char name[],
SmServiceDomainEventT event, void* event_data[], const char reason_text[] );
// ****************************************************************************
// ****************************************************************************
// Service Domain FSM - dump state
// ==================================
extern void sm_service_domain_dump_state(FILE* fp);
// ****************************************************************************
// ****************************************************************************
// Service Domain FSM - Initialize
// ===============================
extern SmErrorT sm_service_domain_fsm_initialize( void );
// ****************************************************************************
// ****************************************************************************
// Service Domain FSM - Finalize
// =============================
extern SmErrorT sm_service_domain_fsm_finalize( void );
// ****************************************************************************
#ifdef __cplusplus
}
#endif
#endif // __SM_SERVICE_DOMAIN_FSM_H__