what is "dvbpsi_pat_callback" ?

htyoung htyoung at 21cn.com
Fri Aug 27 17:19:48 CEST 2004


I found  the answer  by myself.
http://www.function-pointer.org/callback.html

young
  ----- Original Message ----- 
  From: htyoung 
  To: libdvbpsi-devel at videolan.org 
  Sent: Friday, August 27, 2004 1:44 AM
  Subject: what is "dvbpsi_pat_callback" ?


  Hi,

  I read the source "decode_pat.c"
  there is a line that is  "h_dvbpsi = dvbpsi_AttachPAT(DumpPAT, NULL);"
  here, DumpPAT is a type "dvbpsi_pat_callback"
  I found the define in pat.h
  typedef void (* dvbpsi_pat_callback)(void* p_cb_data, dvbpsi_pat_t* p_new_pat);

  but I don't understand how "dvbpsi_pat_callback" work in the program.

  Any help welcome.

  Young

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/libdvbpsi-devel/attachments/20040827/43af09f0/attachment.htm 


More information about the libdvbpsi-devel mailing list