TSG-14568 tsg-service-chaining-engine支持MAAT4
This commit is contained in:
@@ -31,26 +31,29 @@ extern "C"
|
||||
* fixed_num_array
|
||||
******************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct fixed_num_array
|
||||
{
|
||||
int elems[128];
|
||||
uint64_t elems[128];
|
||||
int num;
|
||||
int size;
|
||||
};
|
||||
|
||||
void fixed_num_array_init(struct fixed_num_array *array);
|
||||
void fixed_num_array_add_elem(struct fixed_num_array *array, int elem);
|
||||
void fixed_num_array_del_elem(struct fixed_num_array *array, int elem);
|
||||
void fixed_num_array_add_elem(struct fixed_num_array *array, uint64_t elem);
|
||||
void fixed_num_array_del_elem(struct fixed_num_array *array, uint64_t elem);
|
||||
int fixed_num_array_is_full(struct fixed_num_array *array);
|
||||
int fixed_num_array_count_elem(struct fixed_num_array *array);
|
||||
int fixed_num_array_exist_elem(struct fixed_num_array *array, int elem);
|
||||
int fixed_num_array_exist_elem(struct fixed_num_array *array, uint64_t elem);
|
||||
int fixed_num_array_index_elem(struct fixed_num_array *array, int index);
|
||||
|
||||
/******************************************************************************
|
||||
* sids
|
||||
******************************************************************************/
|
||||
|
||||
#include <marsio.h>
|
||||
typedef uint16_t sid_t;
|
||||
#define MR_SID_LIST_MAXLEN 8
|
||||
|
||||
struct sids
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user