manuf: Add ws_manuf_count()

This commit is contained in:
João Valverde 2023-07-28 14:39:41 +01:00
parent 9179ba9667
commit a582dc8ae5
2 changed files with 12 additions and 0 deletions

View File

@ -229,3 +229,11 @@ ws_manuf_dump(FILE *fp)
ptr->long_name);
}
}
size_t
ws_manuf_count(void)
{
return G_N_ELEMENTS(global_manuf_oui24_table) +
G_N_ELEMENTS(global_manuf_oui28_table) +
G_N_ELEMENTS(global_manuf_oui36_table);
}

View File

@ -39,4 +39,8 @@ ws_manuf_iter_next(ws_manuf_iter_t *iter, struct ws_manuf manuf_ptr[3]);
WS_DLL_PUBLIC void
ws_manuf_dump(FILE *fp);
WS_DLL_PUBLIC
size_t
ws_manuf_count(void);
#endif