diff options
author | Tim Potter <tpot@samba.org> | 2004-09-08 11:54:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:35 -0500 |
commit | 3f7bf05f75c050c5132168b7eea6a346abfb482c (patch) | |
tree | 036922ea80caa257f8228b11c492e61842822061 /source4/build/pidl/swig.pm | |
parent | 0e6799177c5d1c0904a904d4ff705d33d74d7d56 (diff) | |
download | samba-3f7bf05f75c050c5132168b7eea6a346abfb482c.tar.gz samba-3f7bf05f75c050c5132168b7eea6a346abfb482c.tar.bz2 samba-3f7bf05f75c050c5132168b7eea6a346abfb482c.zip |
r2253: Add test program, as small example of what's going on.
(This used to be commit fd31ae38dfe2d005b3e01ac059c2e15fa389aad4)
Diffstat (limited to 'source4/build/pidl/swig.pm')
-rw-r--r-- | source4/build/pidl/swig.pm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm new file mode 100644 index 0000000000..124b6e593e --- /dev/null +++ b/source4/build/pidl/swig.pm @@ -0,0 +1,24 @@ +################################################### +# Samba4 parser generator for swig wrappers +# Copyright tpot@samba.org 2004 +# released under the GNU GPL + +package IdlSwig; + +use strict; + +sub Parse($) +{ + my($idl) = shift; + my($res) = ""; + + $res = "/* header auto-generated by pidl */\n\n"; + + foreach my $x (@{$idl}) { +# ($x->{TYPE} eq "INTERFACE") && HeaderInterface($x); + } + + return $res; +} + +1; |