mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
some templates needed for the new aparser stuff
This commit is contained in:
parent
6b888d600d
commit
e13089b040
12
source/aparser/templates/fn_i_end.tpl
Normal file
12
source/aparser/templates/fn_i_end.tpl
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
/* the parse is OK */
|
||||
return True;
|
||||
|
||||
fail:
|
||||
if (UNMARSHALLING(ps)) {
|
||||
ZERO_STRUCTP(il);
|
||||
}
|
||||
return False;
|
||||
} /* @FUNCNAME@ */
|
||||
|
||||
|
15
source/aparser/templates/fn_i_start.tpl
Normal file
15
source/aparser/templates/fn_i_start.tpl
Normal file
@ -0,0 +1,15 @@
|
||||
/*******************************************************************
|
||||
parse a @STRUCTNAME@ structure
|
||||
********************************************************************/
|
||||
BOOL @FUNCNAME@(char *desc, io_struct *ps, int depth,
|
||||
@STRUCTNAME@ *il, unsigned flags)
|
||||
{
|
||||
io_debug(ps, depth, desc, "@FUNCNAME@");
|
||||
depth++;
|
||||
|
||||
#if 0
|
||||
if (UNMARSHALLING(ps)) {
|
||||
ZERO_STRUCTP(il);
|
||||
}
|
||||
#endif
|
||||
/* parse the scalars */
|
Loading…
x
Reference in New Issue
Block a user