Move int_array helpfer functions to utils/common.c
These can be useful outside scan.c, so make them available. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
715bf904ff
commit
98eda9c26d
3 changed files with 97 additions and 68 deletions
|
@ -519,6 +519,11 @@ int freq_range_list_includes(const struct wpa_freq_range_list *list,
|
|||
unsigned int freq);
|
||||
char * freq_range_list_str(const struct wpa_freq_range_list *list);
|
||||
|
||||
int int_array_len(const int *a);
|
||||
void int_array_concat(int **res, const int *a);
|
||||
void int_array_sort_unique(int *a);
|
||||
void int_array_add_unique(int **res, int a);
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue