Syntax
VM_RESULT vm_wlan_register_notification_handler(
    VM_WLAN_NOTIFICATION_TYPE type, 
    vm_wlan_notification_callback callback, 
    void* user_data
);
ContentsIndex
PreviousUpNext
vm_wlan_register_notification_handler
Example
Syntax
VM_RESULT vm_wlan_register_notification_handler(
    VM_WLAN_NOTIFICATION_TYPE type, 
    vm_wlan_notification_callback callback, 
    void* user_data
);
Description

Registers the callback for the notifications, such as IP available notification, or WiFi passive disconnect notification. When the related things happens, notifications will be activated and the callback will be invoked, if the callback has been registered. 

Use vm_wlan_deregister_notification_handler() to un-register the callback that was registered prior.

Parameters
Parameters 
Description 
VM_WLAN_NOTIFICATION_TYPE type 
[IN] The type of notifications the callback will listen to. 
vm_wlan_notification_callback callback 
[IN] The callback to be registered. 
void* user_data 
[IN] Addition user data for the callback. 
Example
vm_wlan_register_notification_handler(VM_WLAN_NOTIFICATION_IP_AVAILABLE,
                                      ip_available_hdl, NULL);

// When IP is available, ip_available_hdl() will be called.
void ip_available_hdl(void* user_data, vm_wlan_noti_struct* notification)
{
  if (notification->type == VM_WLAN_NOTIFICATION_IP_AVAILABLE)
  {
    //...
  }
}
File

vmwlan.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.