# WMCallback

## C Specification

      #include <nitro/wm.h>

      typedef struct WMCallback
      {
          u16     apiid;
          u16     errcode;
          u16     wlCmdID;
          u16     wlResult;

      } WMCallback;

## Description

This structure is passed to the callback function of a normal WM asynchronous process function.

## Arguments

`apiid` | Specifies the ID of the API that has become the callback generation source. This argument is the same as the `WMApiid` enumerated type.
`errcode` | Specifies the result of an asynchronous process. This argument is the same as the `WMErrCode` enumerated type.
`wlCmdID` | If errcode is `WM_ERRCODE_FAILED`, this function will store the ID of the command that was in error in the wireless firmware.
`wlResult` | If errcode is `WM_ERRCODE_FAILED`, this function will store the code was the source of the error in the wireless firmware.

## Revision History

07/29/2004 Initial version