TSG-13500 tsg-service-chaining-engine扫描策略

This commit is contained in:
luwenpeng
2023-02-06 10:34:23 +08:00
parent 72ba473aa5
commit 450d9ab0f2
23 changed files with 2253 additions and 11 deletions

31
common/include/utils.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef _UTILS_H
#define _UTILS_H
#ifdef __cpluscplus
extern "C"
{
#endif
#define MIN(a, b) ((a) > (b) ? (a) : (b))
#define LOG_TAG_POLICY "POLICY"
#define LOG_TAG_UTILS "UTILS"
struct fixed_num_array
{
int 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);
int fixed_num_array_count_elem(struct fixed_num_array *array);
int fixed_num_array_index_elem(struct fixed_num_array *array, int index);
#ifdef __cpluscplus
}
#endif
#endif