<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I found the answer by
myself.</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.function-pointer.org/callback.html">http://www.function-pointer.org/callback.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>young</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=htyoung@21cn.com href="mailto:htyoung@21cn.com">htyoung</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=libdvbpsi-devel@videolan.org
href="mailto:libdvbpsi-devel@videolan.org">libdvbpsi-devel@videolan.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, August 27, 2004 1:44
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> what is "dvbpsi_pat_callback"
?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I read the source "decode_pat.c"</FONT></DIV>
<DIV><FONT face=Arial size=2>there is a line that is</FONT><FONT face=Arial
size=2> "h_dvbpsi = dvbpsi_AttachPAT(DumpPAT, NULL);"</FONT></DIV>
<DIV><FONT face=Arial size=2>here, DumpPAT is a type
"dvbpsi_pat_callback"</FONT></DIV>
<DIV><FONT face=Arial size=2>I found the define in pat.h</FONT></DIV>
<DIV><FONT face=Arial size=2>typedef void (* dvbpsi_pat_callback)(void*
p_cb_data, dvbpsi_pat_t* p_new_pat);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but I don't understand how "dvbpsi_pat_callback"
work in the program.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help welcome.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Young</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>