manuf: Add ws_manuf_count()
This commit is contained in:
parent
9179ba9667
commit
a582dc8ae5
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue