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 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>PM_SetExitCallbackInfo</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">PM_SetExitCallbackInfo <IMG src="../../image/TWL.gif" width="24" height="12" border="0" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <twl/spi.h></CODE></PRE> 16 <PRE><CODE>void PM_SetExitCallbackInfo( 17 PMExitCallbackInfo* info, 18 PMExitCallback callback, 19 void* arg ); 20 21 22typedef void (*PMGenCallback) (void *); 23#define PMExitCallback PMGenCallback 24</CODE></PRE> 25</DL> 26<H2>Arguments</H2> 27<TABLE border="1" width="100%"> 28 <TBODY> 29 <TR> 30 <TD width="13%"><EM><STRONG>info</STRONG></EM></TD> 31 <TD width="87%">Pointer to the callback information structure that will be set.</TD> 32 </TR> 33 <TR> 34 <TD><B><I>callback</I></B></TD> 35 <TD>Callback function.</TD> 36 </TR> 37 <TR> 38 <TD><B><I>arg</I></B></TD> 39 <TD>Callback argument.</TD> 40 </TR> 41 </TBODY> 42</TABLE> 43<H2>Return Values</H2> 44<P>None.</P> 45<H2>Description</H2> 46<P>Sets exit callback information.</P> 47<P>Registers the callback function <B><I>callback</I></B> and its argument <B><I>arg</I></B> in the callback information structure specified with <B><I>info</I></B>. Afterwards, specify <B><I>info</I></B> to <CODE><A href="PM_AppendExitCallback.html">PM_AppendPreExitCallback</A></CODE> or a similar function to register the exit callback.</P> 48<P>The only process this function performs internally is setting <I><B>callback</B></I> and <B><I>arg</I></B> in members of <B><I>info</I></B>.</P> 49<H2>See Also</H2> 50<P><CODE><A href="PM_AppendExitCallback.html">PM_AppendPreExitCallback</A></CODE></P> 51<H2>Revision History</H2> 52<P>2008/02/07 Initial version.</P> 53<hr><p>CONFIDENTIAL</p></body> 54</HTML>