1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<title>WMIndCallback</title>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</head>
10<body>
11<h1 align="left">WMIndCallback</h1>
12<h2>Definition</h2>
13<dl>
14  <dd>
15<CODE>#include &lt;nitro/wm.h&gt;</CODE><BR>
16  <PRE><CODE>typedef struct WMIndCallback
17{
18    u16     apiid;
19    u16     errcode;
20    u16     state;
21    u16     reason;
22} WMIndCallback;</CODE></PRE>
23  </dd>
24</dl><h2>Elements</h2>
25<TABLE border="1" width="100%">
26  <TBODY>
27    <TR>
28      <TD width="200"><code>apiid</code></TD>
29      <TD width="800">ID of the API that acts as the source for the callback generation. It is equivalent to the <A href="WMApiid.html"><code>WMApiid</code></A> enumerated type.
30      In this case, it is fixed in <code>WM_APIID_INDICATION</code>.
31      </TD>
32    </TR>
33    <TR>
34      <TD width="200"><code>errcode</code></TD>
35      <TD width="800">Result of the asynchronous process. It is equivalent to the <A href="WMErrCode.html"><code>WMErrCode</code></A> enumerated type.</TD>
36    </TR>
37    <TR>
38      <TD width="200"><code>state</code></TD>
39      <TD width="800">If <CODE>errcode</CODE> is <CODE>WM_ERRCODE_SUCCESS</CODE>, the <A href="WMStateCode.html">WM Cause Code</A> generated by the callback is stored. There are six cause codes that can be generated:.<BR>
40      <code>WM_STATECODE_BEACON_RECV&#x3001;WM_STATECODE_DISASSOCIATE&#x3001;WM_STATECODE_REASSOCIATE&#x3001;WM_STATECODE_AUTHENTICATE&#x3001;WM_STATECODE_FIFO_ERROR&#x3001;WM_STATECODE_INFORMATION&#x3002;</code>
41      </TD>
42    </TR>
43    <TR>
44      <TD width="200"><font color="#808080"><code>reason</code></font></TD>
45      <TD width="800"><font color="#808080">The cause code is stored according to the state value.</font></TD>
46    </TR>
47  </TBODY>
48</TABLE>
49<H2>Description</H2>
50<P>
51The structure that is passed to the callback function that is set in <A href="WM_SetIndCallback.html"><CODE>WM_SetIndCallback</CODE></A>. If the state is <CODE>STATECODE_BEACON_RECV</CODE>, detailed beacon information can be obtained by casting to <A href="WMBeaconRecvIndCallback.html"><CODE>WMBeaconRecvIndCallback</CODE></A>.
52</P>
53<H2>Revision History</H2>
54<P>
552005/07/29 Added <CODE>WM_STATECODE_INFORMATION</CODE> to the list of causes.<BR> 2005/02/01 Added <CODE>WM_STATECODE_FIFO_ERROR</CODE> to the list of causes.<BR> 2004/11/10 Added a description of the reason member.<BR> 2004/08/02 Standardized structure names.<BR> 2004/07/29 Initial version.
56</P>
57<hr><p>CONFIDENTIAL</p></body>
58</html>
59