1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

71 Commits

Author SHA1 Message Date
Jeremy Allison
d2376d70b2 r10880: Missed terminating ';', sorry.
Jeremy.
(This used to be commit 2680aeffb1e40a7d1d59c98f0ee533d7c4362f40)
2007-10-10 13:39:39 -05:00
Jeremy Allison
399533dc64 r10879: Added the ZERO_STRUCT(q_u), (r_u) entries to the generated
Samba3 code. Jelmer please check !
Jeremy.
(This used to be commit 534e8d16228ad4f1306ddf21ea9c9b988d736525)
2007-10-10 13:39:39 -05:00
Stefan Metzmacher
b94fcbd306 r10868: make flag(NDR_PAHEX) possible to use and show the union level in hex
metze
(This used to be commit 7efb92adc057ad8a993eb9de66c3806608747104)
2007-10-10 13:39:38 -05:00
Jelmer Vernooij
01d23b0e54 r10849: Fix handling of [charset] for strings with fixed or "inline" size
(This used to be commit 3c2558d11ec1d0b41e5b36b793d9e64db2e203b6)
2007-10-10 13:39:36 -05:00
Jelmer Vernooij
36517c801c r10842: Fix some issues with [out] unions that have a discriminator that is only
[in]
(This used to be commit 3a4086d6142fa73b3adb2d66b1bfc9cd2585f31d)
2007-10-10 13:39:34 -05:00
Jelmer Vernooij
fa0fbb46b8 r10840: Fix indentation
(This used to be commit 7877d436576a1e7c6b02347f87e3f7e14e683888)
2007-10-10 13:39:34 -05:00
Jelmer Vernooij
848dff8f0d r10829: Documentation updates
Update TODO
Some small fixes to the modules
(This used to be commit 0c53e7c3cf7fd91fd34c48a5e68c1bcf70569854)
2007-10-10 13:39:33 -05:00
Jelmer Vernooij
c5069ba7e3 r10788: - Give unions a name
- Check initialisation function return value
(This used to be commit ebb8e75ebd572d62bdb3615d41c210bcc918fa41)
2007-10-10 13:39:29 -05:00
Jelmer Vernooij
0ef0467039 r10787: Fix silly nodiscriminant-issue
(This used to be commit 43a5c863bf81af9b8415b6ccf8a386c36d4fa7f9)
2007-10-10 13:39:29 -05:00
Jelmer Vernooij
093a30d7ed r10765: Actually use VALS() setting for enums
(This used to be commit 6b33e3eedd13ade5c7c9f4b5062e8b8f919fe39c)
2007-10-10 13:39:28 -05:00
Stefan Metzmacher
03b634042f r10761: we need to use a pointer to a nbt_name to fix compiler warnings, because we can
only use a pointers to unknown types in proto.h

metze
(This used to be commit 2f46e54e1bcf43f1bee062ff9a21e646cc3676e9)
2007-10-10 13:39:28 -05:00
Stefan Metzmacher
4812a5d3fd r10760: remove only one star from the pointers, and not from the stars that
come from the array nesting

this fixes a compiler warning and but in the eventlog.h,
where the idl uses nstring strings[num_strings]

metze
(This used to be commit c4a252bd4678ef991705aaaf91c03c697f2f568e)
2007-10-10 13:39:27 -05:00
Jelmer Vernooij
be9af1a4e8 r10742: Support multi-level pointers + ref pointer fixes
(This used to be commit 258b762dc62b257f99d1d859c5a3d850aba3e9fa)
2007-10-10 13:39:26 -05:00
Jelmer Vernooij
765f69ce42 r10739: Reduce number of calls to prs_align_custom()
(This used to be commit ebeeec5406308d493d45b1088963a87cdb953cac)
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
f72dee9e39 r10737: Fix some alignment issues
(This used to be commit 2b4270a2e965eb5c6fe0b25d22d2977e60bb7d43)
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
4bbb584ff0 r10734: Generate ptr, size, offset, and length elements in unions just once.
(This used to be commit 12bfa5d01bcb4cb9dad5167e1a3721fd68f06275)
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
5df3b426ee r10732: Generate _ctr structures for unions
(This used to be commit bd8fcb05003ad75f521783ad9603c923eacafc1a)
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
d220237b19 r10721: Handle allocations and primitive / deferred data correctly. In theory,
the generated output for DFS should work now (it compiles cleanly, but
I haven't tested it yet).

Not supported:
 - subcontexts()
 - relative pointers
 - unions of pointers
 - DATA_BLOB
 - several other things

Also still need to do:
 - Remove some spurious spaces in the output
 - Do range() checking

Example output is still available at http://samba.org/~jelmer/pidl_samba3/
(This used to be commit e2d7e382bb645f1bddd2047669bed10f121b59d2)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
3d6279402c r10718: Another large set of small improvements. All generated files compile
without warnings now. The only things left to do that are
required for DFS:
 - add allocation of arrays in marshalling phase
 - handling primitive and deferred data in embedded structures / unions.

Example output is again available from http://samba.org/~jelmer/pidl_samba3/
(This used to be commit 9fe724f6fb026d95306587f696c065f348aaf219)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
9879bc6aa6 r10717: Another bunch of small updates. All generated files except parse_dfs.c
compile now when generated from Samba4's dfs.idl.
(This used to be commit 2b315b1942e77640eca8e0a3347b2a9ed1920f6a)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
eea74cde05 r10716: Use correct Samba3 data types for strings. Also use Samba3 types
for a couple of other types (policy handles, SIDs, times)
(This used to be commit c2527217b4b4c120d82044e65b979dd3b7d2609e)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
81c306472a r10715: More Samba3 parser generator improvements:
- Actually generate parsers for unions and structs.
- Support some more builtin types.
- Some more work on supporting arrays.
- Several other small fixes.

I've updated the example output at http://samba.org/~jelmer/
(This used to be commit b229c033ebc7ec972b32f1b75b60a9c68a36db97)
2007-10-10 13:39:23 -05:00
Jelmer Vernooij
55065d27ce r10713: Couple more updates to the Samba3 parser generators.
Unions and enums have been improved, init functions are now generated
properly, some other small improvements.
(This used to be commit 8a60e79175eb27ef9fa4b8dea72a518bbaab900f)
2007-10-10 13:39:23 -05:00
Jelmer Vernooij
e0040ff537 r10698: Fix support of enums in switch_type() in the ethereal parser generator
(This used to be commit 9fac8dfeb393212e16be7156de466077bc90232d)
2007-10-10 13:39:20 -05:00
Jelmer Vernooij
f9a4167434 r10694: Add some work I did this afternoon on getting pidl to output Samba3
RPC parsers. Currently the following files can be generated:

- include/rpc_BASENAME.h
- rpc_server/srv_BASENAME.c
- rpc_server/srv_BASENAME_nt.c (template only, user has to fill in functions)
- rpc_client/cli_BASENAME.c
- rpc_parse/parse_BASENAME.c

So far, I have been working on getting DFS working. Currently still to do
(all in rpc_parse/parse_BASENAME.c):
 - Proper handling of declarations
 - Proper handling of scalar/buffer parts of structs and unions
 - Subcontexts
 - Proper handling of arrays
 - Support for custom (non-scalar) types

I hope to have a somewhat more working version later this week.

Some files as currently generated are available from:
http://samba.org/~jelmer/pidl_samba3/
(This used to be commit 8af8eaeeef6d46f4d25ccb1d25890e1eef063e4f)
2007-10-10 13:39:20 -05:00
Stefan Metzmacher
08f16292a0 r10608: - fix hierachical memory handling in ndr_pull_nbt_name
- add wrepl_nbt_name scalar type and do the pull/push in the ndr layer
  instead of the caller
- give the flags and group_flag in the wrepl_name a meaning

metze
(This used to be commit b98efc2905e1147eb97111b46a877bdb9d8dd154)
2007-10-10 13:39:12 -05:00
Jelmer Vernooij
1faf4e331e r10487: Some small updates to the manpage.
(This used to be commit b9adbb5eb2687c1778234c18f95f59c8d7e4f875)
2007-10-10 13:38:54 -05:00
Jelmer Vernooij
1e744a5108 r10450: Use exit code 1 in case of fatal errors
(This used to be commit 88ece24a4400cabef95fd1eb4ca14b7df085b529)
2007-10-10 13:38:47 -05:00
Jelmer Vernooij
7a545880d7 r10389: Add Manifest file (required for CPAN)
(This used to be commit 775323815961c25986e2557de5d59626822b3944)
2007-10-10 13:38:38 -05:00
Jelmer Vernooij
58a399d766 r10388: Add version numbers (required for CPAN)
(This used to be commit 786329576bf14ae774f9d5a24268e46b7dcb634a)
2007-10-10 13:38:38 -05:00
Jelmer Vernooij
e073918771 r10381: Be a bit stricter on pod syntax
(This used to be commit 3f646c620a354ab6820c4a97d629e1e27978b76d)
2007-10-10 13:38:34 -05:00
Jelmer Vernooij
cc6fae19ae r10380: Use pod-style documentation rather then XML-doc, in good perl style.
(This used to be commit fcc1ba97a3dd955208d8d9555ff8dab455239412)
2007-10-10 13:38:34 -05:00
Jelmer Vernooij
f1d065128d r10296: Fix function pointer handling for older perl versions
(This used to be commit 0949db8119af548c199930c64449d6ca2228bcb5)
2007-10-10 13:38:14 -05:00
Jelmer Vernooij
8aa2c913a0 r10295: Remove dependency on Data::Dumper
(This used to be commit 26f2903dab833fbf420af7104757b26f8398e99d)
2007-10-10 13:38:14 -05:00
Tim Potter
6c22a5bcbd r10197: Assume that external dissectors are structs which I think is always the
case.
(This used to be commit 515f456facfeb2cd9893ac65dd96cdda16c9d1ca)
2007-10-10 13:38:07 -05:00
Jelmer Vernooij
342d229b40 r10190: Do some very basic input checking when provisioning.
(This used to be commit 87f25fe49caa78422582337c5208a331ef5b8c15)
2007-10-10 13:38:06 -05:00
Jelmer Vernooij
a0bc674b52 r10173: Document new option
(This used to be commit efa6e3938df2f185fc7a303094a0b091422a7398)
2007-10-10 13:38:05 -05:00
Jelmer Vernooij
3127d75883 r10172: Add --dump-ndr-tree argument
(This used to be commit 8eb69b3a6e4e912af8a7c14a348f65b3d2512b42)
2007-10-10 13:38:05 -05:00
Jelmer Vernooij
5d6706e077 r10123: Add more warnings. Support quotes in conformance command arguments
(This used to be commit e6842fcc9809bcf8de678199a6f28fbbde6c0b83)
2007-10-10 13:38:01 -05:00
Jelmer Vernooij
6635e7b2ad r10116: Print out a couple more warnings.
(This used to be commit 0628dfa5c3c74614a86b4f61b8d1555ef41c41bb)
2007-10-10 13:38:01 -05:00
Jelmer Vernooij
8b5a953725 r10111: Make pidl by default assume the input file is an IDL file rather
then a .pidl file.
(This used to be commit d8a31d3048a6421a3d49d3c121bc86d748838b3a)
2007-10-10 13:38:00 -05:00
Jelmer Vernooij
79f476a112 r10110: Add some more warnings, implement FIELD_DESCRIPTION
(This used to be commit 1caeb3238dac6321bde8e254a8efaf090b4d56b0)
2007-10-10 13:38:00 -05:00
Jelmer Vernooij
b2f3a85f78 r10094: Support quoted arguments in conformance files
Update pidl manpage
(This used to be commit a69e88e7b19b8f05222b54aea88395b51b96c003)
2007-10-10 13:37:52 -05:00
Jelmer Vernooij
d9cdaccaa7 r10093: Fix the HF_FIELD conformance file command
(This used to be commit 0c0a4b55cff4079276073060dae91ff0c19af42f)
2007-10-10 13:37:52 -05:00
Jelmer Vernooij
c070fd6222 r10074: Pass CPP to pidl via environment variables rather then config.pm. This fixes the
standalone pidl build (as used for ethereal)
(This used to be commit 9c9ebd2214423c58357854f09bd744e13e807d8f)
2007-10-10 13:37:50 -05:00
James Peach
e6190e6be5 r10071: Configure checks for IRIX build environment. Test whether we can
use the MIPSPro 7.4 -c99 option to get C99 support. Try to find
a common perl that is more modern than /usr/bin/perl.
(This used to be commit 82fab8b747bf68d8548c6f0f2f4bff98bd428d22)
2007-10-10 13:36:34 -05:00
Tim Potter
e817e44bfe r10047: Translate an idl NTTIME to an ethereal FT_ABSOLUTE_TIME instead of
a FT_UINT64.  Not sure about a NTTIME_hyper though.
(This used to be commit 42568d3f286679656417301d1cf29d3f0cd71030)
2007-10-10 13:36:33 -05:00
Jelmer Vernooij
a3e0e69196 r10030: Add hierarchical memory allocation to TDR's pull functions
(This used to be commit 0e358de93a007db921ad5e9a892114122254de39)
2007-10-10 13:36:31 -05:00
Jelmer Vernooij
40cbd4625a r10015: Change the NT4 registry backend to use the IDL-generate parse functions.
(This used to be commit 0ad46ef804c0654e927f9c14ea93c45f9e3c718c)
2007-10-10 13:36:29 -05:00
Jelmer Vernooij
c5fbb78244 r10014: Support ?, : and = in attribute arguments.
(This used to be commit 6a549f35583e71531bea56ce717635ad9499441a)
2007-10-10 13:36:29 -05:00