Andrew Tridgell
f21fb4b395
pidl: added int3264 as a base type
...
This is the type used for a variable that is 32 bits for NDR32 and 64
bits for NDR64
2009-10-03 18:17:23 +10:00
Andrew Tridgell
084407fe20
pidl: fixed unit tests for trailer alignment
2009-10-02 17:14:15 +10:00
Andrew Tridgell
a01713d3dc
pid: update ndr testsuite for new union alignment
2009-10-02 17:11:26 +10:00
Andrew Tridgell
9eb78be4a6
ndr64: added support for trailing gap alignment
...
NDR64 has a 'trailing gap' alignment, which aligns the end of a
structure on the overall structure alignment.
This explains the discrepancy we had with the RPC-SAMR test and NDR64
2009-10-02 12:05:59 +10:00
Andrew Tridgell
64e08fef16
pidl: added union padding for NDR64
...
This fixes the problem with samr UserInfo16 when NDR64 is enabled
2009-09-29 18:08:22 +10:00
Jelmer Vernooij
830adcd58d
pidl: Avoid using talloc_free as function pointer, since it may be a
...
macro.
2009-09-28 15:03:17 +02:00
Jelmer Vernooij
390cd90c8f
pidl(s4.python): Fix arguments to PyCObject_FromVoidPtr for string_array's.
...
Caught by Guenther.
2009-09-26 01:34:22 +02:00
Andrew Tridgell
d75653fb6b
pidl: update expected output for NDR64 changes
2009-09-19 11:06:46 -07:00
Andrew Tridgell
1a1cb92583
ndr: split out ndr enum functions
...
This allows for easier implementation of the NDR32/NDR64 split
2009-09-17 15:19:30 -07:00
Andrew Tridgell
db5e7f3d05
s4-pidl: add support for NDR64
...
Added support for NDR64 to the samba4 pidl generator
2009-09-17 15:19:28 -07:00
Jeremy Allison
02dc4a1e4e
Ensure we enclose the enum values in brackets to make the cast work.
...
Jeremy.
2009-09-17 11:27:51 -07:00
Jeremy Allison
95311a220e
Fix the problem with pidl generating invalid C for enums. According
...
to the C standard an enum is guarenteed to be an (int), which means
for 4 byte ints specifying a type of 0x80000000 is an invalid value.
The Solaris compiler complains about this. Fix by adding an (int)
cast in front of the value generation.
Jeremy.
2009-09-17 11:11:06 -07:00
Jelmer Vernooij
fac9c35f99
Fix string-wchar-fixed-array-03 test (when libndr is available).
2009-09-13 02:01:38 +02:00
Jelmer Vernooij
27f54a77a6
Fix string-wchar-fixed-array-02 test (when libndr is available).
2009-09-13 02:01:38 +02:00
Jelmer Vernooij
4b5ca12f2c
Fix string-wchar-fixed-array-01 test (when libndr is available).
2009-09-13 02:01:37 +02:00
Jelmer Vernooij
ac72076ef9
pidl: Remove unnecessary _GNU_SOURCE define.
2009-09-13 02:01:37 +02:00
Stefan Metzmacher
5796da6948
pidl: fix parse_idl test after idl.yp changes
...
We now generate 'FILE' and 'LINE' elements for each layer.
This change makes the expected PIDL trees human readable:-)
metze
2009-08-12 10:27:20 +02:00
Stefan Metzmacher
6392f14cd7
pidl: fix samba3-cli test after the async function were added
...
metze
2009-08-12 10:27:20 +02:00
Andrew Tridgell
011f103501
when we get an NDR error in the logs, it is useful to know where it happened
2009-08-12 15:33:37 +10:00
Stefan Metzmacher
558ff911df
pidl: parse idl 'pipe' typedefs, but print out a not supported message for now
...
metze
2009-08-07 11:50:24 +02:00
Stefan Metzmacher
20a6fb5cdb
pidl: fix formatting in expr.yp
...
metze
2009-08-07 11:50:24 +02:00
Stefan Metzmacher
bfa9624946
pidl: fix formatting in idl.yp
...
metze
2009-08-07 11:50:24 +02:00
Stefan Metzmacher
2ed71264e1
pidl:Samba3/ClientNDR: add support tevent_req based _send/recv() client functions
...
metze
2009-07-31 14:10:14 +02:00
Stefan Metzmacher
28a4656738
pidl:Samba3/ClientNDR: rename ParseFunction => ParseFunctionSync and add ParseFunction as glue
...
This prepares the following ParseFunctionAsync* commits.
metze
2009-07-31 12:49:47 +02:00
Stefan Metzmacher
6a1ff90708
pidl:Samba3/ClientNDR: allow passing optional variable prefixes to ParseOutputArgument()
...
metze
2009-07-31 12:49:46 +02:00
Stefan Metzmacher
9e4cf82b74
pidl/Samba4.pm: allow an optional prefix passed to DeclLong()
...
metze
2009-07-31 12:49:46 +02:00
Stefan Metzmacher
41b95da435
pidl:Samba4/Python: fix mapType() => mapTypeName()
...
This tries to fix commit 8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd.
The problem was:
Undefined subroutine &Parse::Pidl::Samba4::Python::mapType called at /home/metze/master4/pidl/lib/Parse/Pidl/Samba4/Python.pm line 848.
Jelmer: please check this.
metze
2009-07-31 10:16:40 +02:00
Jelmer Vernooij
8eff9f9a31
python: Cope with the dom_sid2 alias in pidl's python generating code.
...
This fixes some problems in the samr Python bindings that pidl was
(correctly) warning about.
2009-07-30 20:28:29 +02:00
Jelmer Vernooij
6768cfe624
DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.
...
Use py_talloc_reference in DCE/RPC code, fixes
access to SAMR pipe.
2009-07-30 20:04:42 +02:00
Ronnie Sahlberg
c6d7f3bdb5
pidl: import a patch to pidl made in the wireshark reporitory.
...
Original commit message in wireshark SVN (rev 28961):
====
From Kovarththanan Rajaratnam:
More "Cleanup header_field_info definitions"
====
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-07-28 12:30:16 +02:00
Stefan Metzmacher
92791ce9a8
pidl: allow foo being on the wire after [length_is(foo)] uint8 *buffer
...
metze
2009-07-27 17:51:32 +02:00
Stefan Metzmacher
7ccc9a6ef5
pidl: add support for [string] on fixed size arrays.
...
midl also supports this:
struct {
long l1;
[string] wchar_t str[16];
long l2;
};
Where the wire size of str is encoded like a length_is() header:
4-byte offset == 0;
4-byte array length;
The strings are zero terminated.
metze
2009-07-27 17:51:32 +02:00
Jelmer Vernooij
7889823783
pidl: Print actual type names in errors about unknown origins rather than 'HASH(0x....)'.
2009-07-19 21:12:56 +02:00
Jelmer Vernooij
54a2f51d57
pidl: Print proper errors when arrays don't have a specified size rather than spewing pages of perl warnings.
2009-07-19 20:42:52 +02:00
Jelmer Vernooij
b9cf441f82
pidl: Don't run compile tests inside the tree, won't work yet.
2009-07-03 00:58:48 +02:00
Andrew Bartlett
e53ee27091
pidl Fix samba4.pidl.typelist test after addition of 'double'
2009-06-05 10:29:46 +10:00
Brad Hards
00bfe9c286
Add support for double type in pidl.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-06-02 18:05:42 +02:00
Andrew Bartlett
8ab74e948a
Revert "pidl/python: Add explicit casts, fixing implicit cast warnings."
...
It was creating new objects with bogus data.
This reverts commit 210830392999691469a55f4f5e2032abcdb20b8a.
2009-04-21 15:07:10 +02:00
Stefan Metzmacher
9930e5b3db
pidl:Samba4/client: fix dcerpc_ndr_request_send() callers
...
For samba4 you need one of this:
samba/source4# make full_idl
samba/source4# make clean
samba# git clean -x -f
metze
2009-04-20 18:17:09 +02:00
Stefan Metzmacher
ed98cba5ab
pidl:Samba4/client: use dcerpc_ndr_request() for sync requests
...
metze
2009-04-20 18:15:01 +02:00
Jelmer Vernooij
4638633308
Move tdr to top-level.
2009-03-14 21:57:44 +01:00
Brad Hards
66a26a0ac2
Update instructions for checking out pidl.
2009-03-10 17:11:39 +01:00
Tim Prouty
cfb4757386
pidl: Don't generate variables declarations for pointless array counters.
...
Code isn't generated to iterate over arrays of length 0, but the
variable declarations still are. The result is 'unused variable'
warnings. This only seems to be happening in one place right now, so I
targeted the fix to this case, but refactoring could be done to make
all variable declarations do this zero length check. Making it the
default would be a much more invasive fix.
Jelmer, please check!
2009-03-04 18:32:13 -08:00
Jelmer Vernooij
e2469e3748
Don't generate array iterators when the length of the array is always 0.
...
(bug #6140 )
2009-03-01 17:09:07 +01:00
Jelmer Vernooij
d7c7b31bba
Only define _GNU_SOURCE if it's not defined yet.
2009-02-25 16:54:35 +01:00
Jelmer Vernooij
f71db89256
Include header with NTSTATUS, as some IDL files use it.
2009-02-25 15:21:36 +01:00
Jelmer Vernooij
fc3ffedcfe
Don't define _GNU_SOURCE if it's already defined on the command-line.
2009-02-25 15:05:43 +01:00
Andrew Bartlett
c2cdb4ad5c
Work around ndr_unpack failing on structures with relative pointers.
...
This disgusting hack works around the fact that
ndr_pull_struct_blob_all will always fail on structures with relative
pointers. So, map ndr_unpack to ndr_pull_struct_blob_all only if we
don't have any relative pointers in this structure.
Andrew Bartlett
2009-02-25 17:43:07 +11:00
Stefan Metzmacher
6563c2b7e4
pidl:NDR/Parser: don't call [noopnum] function when creating the ndr_interface_table
...
metze
2009-02-19 11:13:33 +01:00
Jelmer Vernooij
69fff2d750
Revert "Fix errornos assumption that all compilers are gcc"
...
This breaks (some?) files with gcc.
This reverts commit 98a4327b19e83ffad4e0be7e8895fdbd9e48d49f.
2009-02-09 23:29:41 +01:00