summaryrefslogtreecommitdiffstats
path: root/source/aparser
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-09 04:22:31 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-09 04:22:31 +0000
commite13089b040d5df4e611a120ec7fce20757dc196a (patch)
tree2bec349b05aae62820f28115b0dc7d6ed3a80b78 /source/aparser
parent6b888d600d95e2595c3f79494edcc55e88e2980d (diff)
downloadsamba-e13089b040d5df4e611a120ec7fce20757dc196a.tar.gz
samba-e13089b040d5df4e611a120ec7fce20757dc196a.tar.xz
samba-e13089b040d5df4e611a120ec7fce20757dc196a.zip
some templates needed for the new aparser stuff
Diffstat (limited to 'source/aparser')
-rw-r--r--source/aparser/templates/fn_i_end.tpl12
-rw-r--r--source/aparser/templates/fn_i_start.tpl15
2 files changed, 27 insertions, 0 deletions
diff --git a/source/aparser/templates/fn_i_end.tpl b/source/aparser/templates/fn_i_end.tpl
new file mode 100644
index 00000000000..9de61decb38
--- /dev/null
+++ b/source/aparser/templates/fn_i_end.tpl
@@ -0,0 +1,12 @@
+
+ /* the parse is OK */
+ return True;
+
+fail:
+ if (UNMARSHALLING(ps)) {
+ ZERO_STRUCTP(il);
+ }
+ return False;
+} /* @FUNCNAME@ */
+
+
diff --git a/source/aparser/templates/fn_i_start.tpl b/source/aparser/templates/fn_i_start.tpl
new file mode 100644
index 00000000000..3979d78e7db
--- /dev/null
+++ b/source/aparser/templates/fn_i_start.tpl
@@ -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 */