some templates needed for the new aparser stuff
authorAndrew Tridgell <tridge@samba.org>
Fri, 9 Jun 2000 04:22:31 +0000 (04:22 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 9 Jun 2000 04:22:31 +0000 (04:22 +0000)
(This used to be commit e13089b040d5df4e611a120ec7fce20757dc196a)

source3/aparser/templates/fn_i_end.tpl [new file with mode: 0644]
source3/aparser/templates/fn_i_start.tpl [new file with mode: 0644]

diff --git a/source3/aparser/templates/fn_i_end.tpl b/source3/aparser/templates/fn_i_end.tpl
new file mode 100644 (file)
index 0000000..9de61de
--- /dev/null
@@ -0,0 +1,12 @@
+
+       /* the parse is OK */
+       return True;
+
+fail:
+       if (UNMARSHALLING(ps)) {
+               ZERO_STRUCTP(il);
+       }
+       return False;
+} /* @FUNCNAME@ */
+
+
diff --git a/source3/aparser/templates/fn_i_start.tpl b/source3/aparser/templates/fn_i_start.tpl
new file mode 100644 (file)
index 0000000..3979d78
--- /dev/null
@@ -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 */