*Yes, the two functions are different because they are defined in different
structures.ieee80211_scan.h:struct ieee80211_scanner_common {...    int (*
scan_start) (ieee80211_scanner_t          ss,
                            wlan_if_t           vaphandle,
                            ieee80211_scan_params    *params,
                            IEEE80211_SCAN_REQUESTOR requestor,
                            IEEE80211_SCAN_PRIORITY  priority,
                            IEEE80211_SCAN_ID        *scan_id);The struct
ieee80211_scanner_common declaration contains the field for scan_start
which is a pointer to a function scan_start. It is a function declaration
only.The function definition should be found in an instantiation of the
struct ieee80211_scanner_common:ieee80211_scan.c:struct ieee80211_scanner {
   struct ieee80211_scanner_common    ss_common;In this case the instance
is ss_common.ieee80211_scan.c:        (*ss)->ss_common.scan_detach_prepare
= _ieee80211_scan_detach_prepare;        (*ss)->ss_common.scan_start =
_ieee80211_scan_start;        (*ss)->ss_common.scan_cancel =
_ieee80211_scan_cancel;*

*Thanks for your help.*



On Mon, Nov 11, 2013 at 8:25 PM, Jo-Philipp Wich <[email protected]> wrote:

> This does not look like function overloading. Its more likely that this
> is just too different function pointer declarations as struct members
> which happens to share the same name.
>
> ~ Jow
>
>
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>
>
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to