rmsax.h

来自「这是一个SIGMA方案的PMP播放器的UCLINUX程序,可播放DVD,VCD,」· C头文件 代码 · 共 58 行

H
58
字号
#ifndef __RMSAX_H__#define __RMSAX_H__/**   Called when the parser encounters a start element.   ie: when it encounters <foo> or <foo/>   @param name contains the name of the element.                Here, "foo".   @param attributes contains the list of attributes.                     It is a NULL-terminated array.		     It must be freed by by the callee.   @param context the context. */typedef void (*RMsaxStartElement) (const RMascii *name, 				   const RMascii **attributes,				   void *context);/**   Called when the parser encounters a start element.   ie: when it encounters </foo> or <foo/>   @param name contains the name of the element.                Here, "foo".   @param context the context. */typedef void (*RMsaxEndElement) (const RMascii *name, 				 void *context);/**   Called upon parsing error.   @param context the context. */typedef void (*RMsaxFail) (void *context);typedef struct {	RMsaxStartElement  startElementCallback;	RMsaxEndElement    endElementCallback;	RMsaxFail          failCallback;} RMsaxVTable;/**   This function will parse the input string.   This function is of course thread-safe    (ie: it does not use any global variables).   @param pbuffer a NULL-terminated ASCII string.   @param vtable the list of callback functions to be called during                 parsing.   @param context the context pointer to pass to all callback functions. */RM_LIBRARY_IMPORT_EXPORT RMstatus RMParseSax (RMascii *pbuffer,		     const RMsaxVTable *vtable,		     void *context);#endif // __RMSAX_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?