qwf_interface.h

This file defines the entry point interface of the API.

This interface contains the functions that initialize the QWF context and start QWF services. Specifically, a client program must first call either qwf_Init() or the combination of qwf_InitializeCore() and qwf_InitializeServices(). The other functions in this interface allow the client to query the active services, process wireless events, and clean up the resources for services.

A typical call sequence for a client is:
  • qwf_Init() to initialize all QWF services and fill in the structure for holding the service context data

  • A service-specific function to register to receive events from that service through a callback function (e.g., qwf_net_RegisterCallback()).
    Note:
    Callbacks must be registered for each service the program intends to use.
  • qwf_ProcessEvents() to wait for events to be sent to the registered callbacks

The callbacks can then call other functions as needed to process the events.

Page updated: