1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-21 20:23:50 +03:00
Commit Graph

38 Commits

Author SHA1 Message Date
Jelmer Vernooij
f97f11eab2 r20511: Combine warnings/errors/fatal functions and move them to Parse::Pidl.
(This used to be commit 959adfd0a6)
2007-10-10 14:36:04 -05:00
Jelmer Vernooij
128fe5324b r19856: Use sptr as basis for full ptr implementation. Will add checks for duplicates later.
(This used to be commit 006ab1d4a4)
2007-10-10 14:28:26 -05:00
Stefan Metzmacher
203550d032 r19854: readd support for 'sptr' pointers, to work against windows servers
until jelmer commits his 'ptr' support

metze
(This used to be commit f5aa620b1b)
2007-10-10 14:28:25 -05:00
Jelmer Vernooij
55eaaa2238 r19845: Add warning for pointer_default_top()
(This used to be commit 3f0da2388d)
2007-10-10 14:28:24 -05:00
Jelmer Vernooij
108152dd6a r19842: Complain about unknown pointer types.
Fallback to "unique" when "ptr" is specified instead of failing.
(This used to be commit a1b6308b21)
2007-10-10 14:28:23 -05:00
Jelmer Vernooij
9d7d39d180 r19834: Prevent some inaccurate warnings.
(This used to be commit 21efd2bdb8)
2007-10-10 14:28:22 -05:00
Jelmer Vernooij
ce0c2236b9 r19830: Warn about non-ref top-level pointers.
(This used to be commit 78153200ac)
2007-10-10 14:28:21 -05:00
Jelmer Vernooij
5b05f5f5f1 r19752: Remove support for the `depends' attribute (use "import") instead.
(This used to be commit 324395afc7)
2007-10-10 14:28:19 -05:00
Jelmer Vernooij
d8ecabe452 r19585: Add support for some more standard IDL instructions:
- `include' (replaces helper())
 - `import' (replaces depends())

Add support for parsing importlib() - importlib() is now ignored (with a
warning), but no longer causes syntax errors.

helper() and depends() are now marked deprecated and will cause warnings.
(This used to be commit 1ccab71cb8)
2007-10-10 14:24:57 -05:00
Jelmer Vernooij
4be0aa0d31 r19544: Fix case of 'warning'.
(This used to be commit 4f1f541837)
2007-10-10 14:24:47 -05:00
Jelmer Vernooij
cd9057a0bb r18639: Get rid of the keepref support
(This used to be commit d1364ef0cd)
2007-10-10 14:18:59 -05:00
Jelmer Vernooij
291c5ed53c r18559: [string] always applies to the last pointer
(This used to be commit 86b4624226)
2007-10-10 14:18:46 -05:00
Jelmer Vernooij
3e7cff6c00 r18554: Fix warnings about [out] arguments.
(This used to be commit caac6cf817)
2007-10-10 14:18:45 -05:00
Jelmer Vernooij
df08af8418 r18523: Allow [out] on arrays as well as pointers, use in unixinfo.
(This used to be commit f67b4d58ac)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
9727b061f3 r15776: Don't generate ref pointers in Samba4-generated code. There is no point
in having pointers for outgoing data when you can already modify the top-level
element.

This can be overridden (temporarily) by specifying the new "keepref"
attribute. Once we've removed keepref from all IDL files, I'll remove this
attribute as well.
(This used to be commit bdc6dd3750)
2007-10-10 14:08:18 -05:00
Jelmer Vernooij
fda645af50 r15652: Fix aliases mechanism (fixes #3710)
(This used to be commit 3e89ef0875)
2007-10-10 14:08:03 -05:00
Jelmer Vernooij
2a9407fad3 r15593: Warn about [out] arguments that are not pointers. These can all be
fixed by adding [ref] pointers.

This will cause a lot of warnings to be outputted by pidl for now. I will
fix these gradually over the next few days.

We need to avoid [out] arguments that are not pointers because they are
not understood by other IDL compilers and don't work with some of
our output modules (Samba3, Samba3NDR and ethereal)
(This used to be commit c4ab021ee8)
2007-10-10 14:06:02 -05:00
Jelmer Vernooij
1a4effad3d r15327: Support 'nosize'. Also write prototypes for print and size functions that are manually written.
(This used to be commit f10b38b824)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
76ab420615 r14692: Get rid of the obfuscation() attribute
(This used to be commit 122d1d0249)
2007-10-10 13:59:09 -05:00
Jelmer Vernooij
8973ac8a39 r14691: Fix printing elements with represent_as set
(This used to be commit f4428db2f9)
2007-10-10 13:59:09 -05:00
Jelmer Vernooij
b6cae24de8 r14687: Start working on support for represent_as() and transmit_as() as
an alternative to subcontext()
(This used to be commit 744402160d)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
311d6f47c8 r14686: Fix pidl testsuite to run whenever there is a shared libary built
Samba present. Ignore tests that are known to fail for now.
(This used to be commit a7279f13f0)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
9865048bf4 r14361: Support 'helper' attribute in pidl and use it.
Remove some headers from include/includes.h (they're now only included
in the file they are used)
(This used to be commit 7213b7498e)
2007-10-10 13:57:14 -05:00
Andrew Tridgell
e3e048630b r13738: added support for a "pointer" type in pidl. This will be used in the
opendb work that will be committed shortly.

The pointer type assumes that pointers fit in 64 bits, which is
probably OK on all our supported architectures.
(This used to be commit d2a2057ea5)
2007-10-10 13:52:07 -05:00
Jelmer Vernooij
1cfda1af18 r12572: No longer parse coclasses as interfaces
(This used to be commit f75f757b62)
2007-10-10 13:48:52 -05:00
Jelmer Vernooij
94793b80d7 r12484: Initial work on supporting non-typedeffed types
(This used to be commit e7ac6c708d)
2007-10-10 13:47:44 -05:00
Jelmer Vernooij
7717f180ca r12470: Add helper module for pidl tests
Convert other pidl tests to use Test::More and run them from 'make test'
(This used to be commit 3a57d29a62)
2007-10-10 13:47:43 -05:00
Jelmer Vernooij
68ef82aac7 r12464: Add simple IDL parsing tests for pidl using the standard perl
testing framework (Test::Simple, distributed with perl itself).
Run these tests from 'make test'
(This used to be commit 975d8816db)
2007-10-10 13:47:42 -05:00
Stefan Metzmacher
f536c4a608 r11997: for multidimentional array like this:
uint32 [num_level2][num_level1][num_level0]

fix the order they're pushed and pulled, it should be like this

for (l2=0; l2 < num_level2; l2++) {
	for (l1=0; l1 < num_level1; l1++) {
		for (l0=0; l0 < num_level0; l0++) {
			ndr_pull_uint32(...);
		}
	}
}

metze
(This used to be commit c10195f313)
2007-10-10 13:46:57 -05:00
Jelmer Vernooij
cca42c611a r11539: Fix indentation in templates. Always generate lower-case
UUID strings as GUID_from_string seems to have trouble with
uppercased ones.
(This used to be commit 16ea96c81e)
2007-10-10 13:45:51 -05:00
Volker Lendecke
66d3ee9ccb r11473: Based on work by Jelmer, implement the [async] flag for rpc requests. If it's
not there (it's not yet on *any* call... :-)), the rpc client strictly
sequences calls to an rpc pipe. Might need some more work on the exact
sequencing semantics when a pipe with both sync and async calls is actually
deployed, but I want it in for winbind simplification.

Volker
(This used to be commit b8f324e4f0)
2007-10-10 13:45:41 -05:00
Jelmer Vernooij
f598135c6b r11105: Warn if conformant arrays are not at the end of a struct
Support conformant [string] arrays
Eliminate utf8string

This breaks xattr binary compatibility with previous versions - is that a
problem?
(This used to be commit 7596c708ba)
2007-10-10 13:44:50 -05:00
Jelmer Vernooij
8a58b806e9 r11067: Support for [string] in the Ethereal parser generator
(This used to be commit 1d5db487bb)
2007-10-10 13:44:44 -05:00
Jelmer Vernooij
848dff8f0d r10829: Documentation updates
Update TODO
Some small fixes to the modules
(This used to be commit 0c53e7c3cf)
2007-10-10 13:39:33 -05:00
Jelmer Vernooij
be9af1a4e8 r10742: Support multi-level pointers + ref pointer fixes
(This used to be commit 258b762dc6)
2007-10-10 13:39:26 -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
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
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