1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<TITLE>MB_FakeInit</TITLE> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">MB_FakeInit <IMG src="../../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/mb/mb_fake_child.h></CODE><BR> 20 </dd> 21 <dd><CODE>void MB_FakeInit( void *buf, const MBUserInfo *user );</CODE></dd> 22</dl> 23<h2>Arguments</h2> 24<TABLE border="1" width="100%"> 25 <TBODY> 26 <TR> 27 <TD width="13%"><EM><STRONG>buf</STRONG></EM></TD> 28 <TD width="87%">Pointer to the memory that is allocated for managing the internal state of the MB fake child. 29 The <CODE><A href="MB_FakeGetWorkSize.html">MB_FakeGetWorkSize</A></CODE> function or <CODE><A href="../mb_fake_work_size_const.html">MB_FAKE_WORK_SIZE</A></CODE> can be used to get the memory size required for this work area.<BR> 30 The allocated memory will be used internally until the <CODE><A href="MB_FakeEnd.html">MB_FakeEnd</A></CODE> function has completed.</TD> 31 </TR> 32 <TR> 33 <TD width="13%"><EM><STRONG>user</STRONG></EM></TD> 34 <TD width="87%">Pointer to the structure that holds user data.<BR> 35 When connecting, the MB parent will be notified of the value configured here.</TD> 36 </TR> 37 </TBODY> 38</TABLE> 39<h2>Return Values</h2> 40<p>None.</p> 41 42<H2>Description</H2> 43<P>This function initializes the library as an MB fake child. You can use this function for the entry of a Multi-Card Play child as a Single-Card Play child with a parent. The Multi-Card Play child and the Single-Card Play child can coexist in the same wireless network.<BR> This function must be called before any other MB function is called. It must be called at least once.<BR> Nothing happens if it is called again before the <CODE><A href="MB_FakeEnd.html">MB_FakeEnd</A></CODE> function finishes processing. 44</p> 45<h2>See Also</h2> 46<p><CODE><A href="MB_FakeEnd.html">MB_FakeEnd</A>, <A href="MB_FakeGetWorkSize.html">MB_FakeGetWorkSize</A>, <A href="../mb_fake_work_size_const.html">MB_FAKE_WORK_SIZE</A></CODE></P> 47<H2>Revision History</H2> 48<P>2004/11/25 Initial version. 49</P> 50<hr><p>CONFIDENTIAL</p></body> 51</html> 52