TSG-13500 tsg-service-chaining-engine扫描策略
This commit is contained in:
37
platform/include/health_check.h
Normal file
37
platform/include/health_check.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef _HEALTH_CHECK_H
|
||||
#define _HEALTH_CHECK_H
|
||||
|
||||
#ifdef __cpluscplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "policy.h"
|
||||
|
||||
void health_check_session_init();
|
||||
|
||||
// return 0 : success
|
||||
// return -1 : key exist
|
||||
// struct health_check *policy : need deep copy
|
||||
int health_check_session_add(int session_id, const struct health_check *policy);
|
||||
|
||||
// return 0 : success
|
||||
// return -1 : key not exist
|
||||
int health_check_session_del(int session_id);
|
||||
|
||||
// return 1 : active
|
||||
// return 0 : inactive
|
||||
// return -1 : key not exist
|
||||
int health_check_session_get_status(int session_id);
|
||||
|
||||
// return 0 : success
|
||||
// return -1 : key not exist
|
||||
int health_check_session_set_status(int session_id, int is_active);
|
||||
|
||||
void health_check_session_foreach();
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user