1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

148 Commits

Author SHA1 Message Date
Jelmer Vernooij
e0040ff537 r10698: Fix support of enums in switch_type() in the ethereal parser generator
(This used to be commit 9fac8dfeb3)
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 8af8eaeeef)
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 b98efc2905)
2007-10-10 13:39:12 -05:00
Jelmer Vernooij
1faf4e331e r10487: Some small updates to the manpage.
(This used to be commit b9adbb5eb2)
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 88ece24a44)
2007-10-10 13:38:47 -05:00
Jelmer Vernooij
7a545880d7 r10389: Add Manifest file (required for CPAN)
(This used to be commit 7753238159)
2007-10-10 13:38:38 -05:00
Jelmer Vernooij
58a399d766 r10388: Add version numbers (required for CPAN)
(This used to be commit 786329576b)
2007-10-10 13:38:38 -05:00
Jelmer Vernooij
e073918771 r10381: Be a bit stricter on pod syntax
(This used to be commit 3f646c620a)
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 fcc1ba97a3)
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 0949db8119)
2007-10-10 13:38:14 -05:00
Jelmer Vernooij
8aa2c913a0 r10295: Remove dependency on Data::Dumper
(This used to be commit 26f2903dab)
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 515f456fac)
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 87f25fe49c)
2007-10-10 13:38:06 -05:00
Jelmer Vernooij
a0bc674b52 r10173: Document new option
(This used to be commit efa6e3938d)
2007-10-10 13:38:05 -05:00
Jelmer Vernooij
3127d75883 r10172: Add --dump-ndr-tree argument
(This used to be commit 8eb69b3a6e)
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 e6842fcc98)
2007-10-10 13:38:01 -05:00
Jelmer Vernooij
6635e7b2ad r10116: Print out a couple more warnings.
(This used to be commit 0628dfa5c3)
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 d8a31d3048)
2007-10-10 13:38:00 -05:00
Jelmer Vernooij
79f476a112 r10110: Add some more warnings, implement FIELD_DESCRIPTION
(This used to be commit 1caeb3238d)
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 a69e88e7b1)
2007-10-10 13:37:52 -05:00
Jelmer Vernooij
d9cdaccaa7 r10093: Fix the HF_FIELD conformance file command
(This used to be commit 0c0a4b55cf)
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 9c9ebd2214)
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 82fab8b747)
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 42568d3f28)
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 0e358de93a)
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 0ad46ef804)
2007-10-10 13:36:29 -05:00
Jelmer Vernooij
c5fbb78244 r10014: Support ?, : and = in attribute arguments.
(This used to be commit 6a549f3558)
2007-10-10 13:36:29 -05:00
Jelmer Vernooij
e9b5bf90e6 r10010: Support base_type() attribute
(This used to be commit c0bae9b0b5)
2007-10-10 13:36:28 -05:00
Jelmer Vernooij
0eea337a6f r10006: Insert correct header file.
(This used to be commit dfa45ec1b3)
2007-10-10 13:36:28 -05:00
Tim Potter
40d70b92e0 r9984: Honour the NOEMIT conformance directive for entire IDL files.
(This used to be commit 73dffade2c)
2007-10-10 13:36:26 -05:00
Tim Potter
563be66ccb r9983: Make the NOEMIT conformance directive with no argument mean do not
emit any dissectors for this IDL.
(This used to be commit 55a98b3dfd)
2007-10-10 13:36:26 -05:00
Tim Potter
7a81e529dc r9982: Strip prefixes off the check for noemit in the conformance info so you
can use the typedef names in the IDL rather than the autogenerated
function names.  This means you can say "NOEMIT security_descriptor"
instead of "NOEMIT dissect_security_descriptor_type" or whatever.
(This used to be commit ec80c5ceec)
2007-10-10 13:36:26 -05:00
Tim Potter
054f206599 r9734: The ethereal parser generator was generating duplicate functions for
fields in structures with the same name as a structure (i.e
security_ace.object and security_ace_object).  I've twiddled the naming
scheme a bit and things are a bit more unique but there is still may be
some naming conflicts in other IDL files.

We are now getting confused over fields with the same name in unions
(e.g security_ace_object_ctr.object) plus some other union weirdness.
(This used to be commit c2ad9f49a2)
2007-10-10 13:34:55 -05:00
Tim Potter
81045abddc r9683: OK that last fix was too good to be true. (-:
(This used to be commit b33774b693)
2007-10-10 13:34:40 -05:00
Tim Potter
54dc527a9e r9682: Jelmer, I think this fixes another case where the parser generator was
producing duplicate function definitions.  Can you check this out?
(This used to be commit e9bb695e74)
2007-10-10 13:34:40 -05:00
Tim Potter
3567c7b2a7 r9677: Don't generate duplicate function names when processing structure elements
that are bitmaps or enums.
(This used to be commit 1b0e65359c)
2007-10-10 13:34:39 -05:00
Tim Potter
05065108f4 r9612: Don't generate handoff code for idl files that don't implement a pipe
(e.g security.idl)
(This used to be commit 178d040dbb)
2007-10-10 13:34:34 -05:00
Tim Potter
50004c6905 r9611: Reset global variables (hf and ett lists) for each parser run. This
avoids building up buckets of unecessary definitions from other parsers.

Get rid of warning and FIXME for unknown data types.  This is handled
by the interface depends list and including the appropriate header files.
(This used to be commit eb5e3b031c)
2007-10-10 13:34:34 -05:00
Jelmer Vernooij
b42f358d51 r9576: Couple of small fixes. Generate notice indicating
that the parsers were autogenerated.
(This used to be commit a37e2134e6)
2007-10-10 13:34:30 -05:00
Tim Potter
12e269c938 r9558: Add more whitespace to generated output.
Change conformance file warning to something more understandable.

Don't generate duplicate duplicate element dissectors for function
call arguments.  Hey this makes the winreg dissector compile, but not
link.
(This used to be commit 545d3deaa4)
2007-10-10 13:34:29 -05:00
Tim Potter
cdb6d52372 r9554: Do a quick once-over to make the ethereal auto-generated parser code a
bit more readable.
(This used to be commit da3ca9e3c1)
2007-10-10 13:34:28 -05:00
Tim Potter
2cd71e5101 r9553: Some cosmetic things to make the atsvc dissector output look prettier
and be more usable:

  - nicer formatting for summary of set fields in bitmap.

  - say "Pointer to Foo" in proto_tree instead of just "Foo" when
    dissecting pointers.

  - append string value to proto_tree when dissecting pointers to strings.

  - strip librpc/gen_ndr prefix from includes so generated files can
    live in the ethereal epan/dissectors directory.

Now to work on getting the winreg dissector compiling...
(This used to be commit ab00976699)
2007-10-10 13:34:28 -05:00
Jelmer Vernooij
ae88822b8c r9519: Use the value() value of an element when that element is used in
limited expressions (size_is,length_is,subcontext_size,etc)
(This used to be commit 886780c298)
2007-10-10 13:34:26 -05:00
Jelmer Vernooij
86e796643e r9463: Fix DumpFunction() (was ignoring elements)
Fix use of pidl for people that don't have it installed...
Generate documentation for pidl debian package
(This used to be commit de66450c24)
2007-10-10 13:34:18 -05:00
Jelmer Vernooij
2280017bbd r9462: Fix locations for generating the yapp files
(This used to be commit 714f96b9bf)
2007-10-10 13:34:18 -05:00
Jelmer Vernooij
390924883f r9461: Couple of very small fixes.
(This used to be commit f91121bded)
2007-10-10 13:34:18 -05:00
Jelmer Vernooij
59b13f9a1d r9460: - Move pidl to lib/. This fixes standalone installation of pidl.
- Update the README
- Allow building the docs stand-alone
(This used to be commit b56084ce25)
2007-10-10 13:34:17 -05:00
Jelmer Vernooij
efc03df292 r9459: Move pidl up one level (to prevent too much nesting)
(This used to be commit e48202275e)
2007-10-10 13:34:17 -05:00