scan_done_cb_t and first parameter

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

scan_done_cb_t and first parameter

Postby kolban » Tue Jul 07, 2015 6:09 am

The "scan_done_cb_t" is defined as a callback function where the first parameter is defined as:

void *arg

The reality is that the parameter appears to only ever possibly be:

struct bss_info *pBssInfoList

This means that I have to cast the "poorly named" parameter called "arg" each time I want to use it. Is there a reason we can't have the first parameter of the scan_done_cb_t simply be "struct bss_info *pBssInfoList"?

Neil

Who is online

Users browsing this forum: No registered users and 2 guests