1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00
Commit Graph

546 Commits

Author SHA1 Message Date
Andrew Tridgell
aa0e1d6699 r8261: charset style strings in pidl should be const, just like old style ndr strings 2007-10-10 13:19:27 -05:00
Andrew Tridgell
0e54fa4466 r8260: added an init based registration system for the generated ejs rpc code, so
adding a new pipe only involves changes to librpc/config.mk
2007-10-10 13:19:27 -05:00
Andrew Tridgell
08cf709bc6 r8243: fixed indentation of generated ejs interface code 2007-10-10 13:19:24 -05:00
Andrew Tridgell
0cf8c091a9 r8242: support bitmap constants from ejs calls 2007-10-10 13:19:24 -05:00
Andrew Tridgell
9398b02e4b r8238: - fixed handling of NULL pointers from ejs
- added automatic creation of all constants in IDL as ejs variables
2007-10-10 13:19:23 -05:00
Andrew Tridgell
a8cb2dbdcc r8233: - added support for more base types in pidl ejs
- added auto generation of a header with prototypes for public ejs functions

- make public functions non-static

- fixed allocation of fixed sized arrays

- added 'noejs' flag indicating that a typedef will be handled manually by ejs

- added manual functions for sid and GUID, so they show up as nice
  strings in ejs scripts

This allows ejs to bring in samr, security, lsa and misc IDL functions
2007-10-10 13:19:23 -05:00
Andrew Tridgell
a61cdee384 r8220: added auto-generation of ENUM constants in ejs wrapper. So we can now use the enum name
instead of a integer in ejs scripts making rpc calls
2007-10-10 13:19:21 -05:00
Andrew Tridgell
f3ff48204c r8216: - handle union pull in ejs pidl generation
- added debugging calls for missing structure/union elements
2007-10-10 13:19:20 -05:00
Andrew Tridgell
49fc14d132 r8215: switched the pull side of the ejs generator over to the recursive LEVELS based approach.
This allows for much more complex structure mappings to be generated.
2007-10-10 13:19:20 -05:00
Andrew Tridgell
2e306be1d8 r8213: I've started to understand the LEVELS stuff in pidl much better now,
and have re-coded the push side of the ejs generator to use it
properly. It ends up being very neat and small, and should handle much
more complex structures (like arrays of pointers to unions etc).

Also added push side support for unions. This should get more of the
echo pipe working via ejs.
2007-10-10 13:19:20 -05:00
Stefan Metzmacher
3f0a6efd74 r8203: fix the build temporary,
we also get perl warnings uninitialized value used in ejs.pm line 26

metze
2007-10-10 13:19:19 -05:00
Andrew Tridgell
5f062d7148 r8200: - added stub functions for union pull/push
- kill the js interpreter with an exception on internal errors
2007-10-10 13:19:19 -05:00
Andrew Tridgell
a77c2aa860 r8198: - handled push/pull of simple strings in ejs
- improved the error handling, so the ejs wrappers don't just ignore a type they
  don't handle, instead an exception is issued saying what isn't handled
2007-10-10 13:19:19 -05:00
Andrew Tridgell
fb2639bbc2 r8191: updated the ejs code generator in pidl to generate enough code for
simple rpc calls to work. Still very rough, but its a start.
2007-10-10 13:19:18 -05:00
Stefan Metzmacher
d19068bfb2 r8167: - use the same algorithm than w2k3 for 'unique' pointer values
- add a new 'sptr' (simple-full) pointer type to simulate what we need to support pipes
  like epmapper and mgmt that uses 'ptr' full pointer in their spec

- I runned make test and test_w2k3.sh with this, all fine

does we have any other pipe using 'unique' pointer where we need 'ptr'?

btw: jelmer, what does 'ignore' pointers do? they are allowed in pidl but not implemented!

metze
2007-10-10 13:19:16 -05:00
Andrew Bartlett
8e78830ffc r8162: Revert my pad8 hack.
Andrew Bartlett
2007-10-10 13:19:16 -05:00
Andrew Bartlett
50a54bf4e9 r8110: More PAC work. I still can't get WinXP to accept the PAC, but we are
much closer.

This changes PIDL to allow a subcontext to have a pad8 flag, saying to
pad behind to an 8 byte boundary.  This is the only way I can explain
the 4 trainling zeros in the signature struct.

Far more importantly, the PAC code is now under self-test, both in
creating/parsing our own PAC, but also a PAC from my win2k3 server.
This required changing auth_anonymous, because I wanted to reuse the
anonymous 'server_info' generation code.

I'm still having trouble with PIDL, particulary as surrounds value(),
but I'll follow up on the list.

Andrew Bartlett
2007-10-10 13:19:09 -05:00
Tim Potter
baa8f0836f r8101: Fix some indentation. 2007-10-10 13:19:08 -05:00
Andrew Tridgell
155da538f9 r7923: removed dependence on Data::Dumper
please use util::MyDumper() rather than adding this back in
2007-10-10 13:18:50 -05:00
Andrew Tridgell
eee528be97 r7865: changed pidl to take a "const void *" instead of a "void *" for the
structure in ndr_push_*() and ndr_print_*(). The push and print
functions really should not modify the structure.

metze, to make this work I had to change your spoolss hand
marshaller. Can you please check it is OK? I think that the IN and OUT
sides of that function are not ever called on the same structure, so I
think that attempt at remembering the value by assigning to
r->in._offered was not doing anything anyway, but please correct me if
I have misunderstood it.

If you really do need to remember something on those structures I'd
suggest the ndr_token_store() and ndr_token_retrieve() functions,
which are used by pidl for just this sort of thing.
2007-10-10 13:18:44 -05:00
Jelmer Vernooij
5122b9f608 r7729: Small fixes to the charset stuff. 2007-10-10 13:18:27 -05:00
Jelmer Vernooij
72efb69529 r7706: Move ParseExpr() to util. 2007-10-10 13:18:24 -05:00
Jelmer Vernooij
7012e10bb6 r7702: Implement [charset()] attribute. 2007-10-10 13:18:23 -05:00
Jelmer Vernooij
a73a35cfc7 r7695: Add support for the [string] attribute that works in the traditional sense. Not
used anywhere yet.
2007-10-10 13:18:23 -05:00
Jelmer Vernooij
5f37f7a524 r7605: Display properties in header files again. 2007-10-10 13:18:13 -05:00
Jelmer Vernooij
e3496732c6 r7604: Bunch of small pidl updates. Mostly removing unused functions,
cleanups and more flexibility (all output options
	now take an optional filename).
2007-10-10 13:18:13 -05:00
Jelmer Vernooij
66a418a532 r7590: Cleanups, add more notes on new string code. 2007-10-10 13:18:12 -05:00
Jelmer Vernooij
b7b01bccd1 r7552: Use ParseExpr() for [value] attributes; allows
us somewhat cleaner IDL.
2007-10-10 13:18:07 -05:00
Stefan Metzmacher
9d4d5163de r7424: add --uint-enums option to pidl to generate
defines for the enum members
(this hopefully will fix the build on AIX)

metze
2007-10-10 13:17:51 -05:00
Jelmer Vernooij
fca195ce07 r7377: Integrate browse service stuff more nicely
Add notes on mailslots
Add TODO list for pidl, including some plans on switching
over to using [string] attributes for pidl.
2007-10-10 13:17:48 -05:00
Stefan Metzmacher
2db46afef7 r7330: use ParseExpr() also for subcontext_size()
metze
2007-10-10 13:17:43 -05:00
Jelmer Vernooij
0dda66f0e8 r7274: Move m4 files to seperate dir 2007-10-10 13:17:35 -05:00
Jelmer Vernooij
837c83d77a r7195: - Fix echo pipe
- Don't allocate strings
- Give higher preference to the [out] part of variables when they
  are being used by another [out] variable. Also make sure that
  [in] variables never use [out] variables (i.e. switch_is() on an
  [in] variable can no longer use an [out] variable).
2007-10-10 13:17:25 -05:00
Stefan Metzmacher
b9e50a47f1 r7187: fix alignment of unions
metze
2007-10-10 13:17:24 -05:00
Stefan Metzmacher
c0dd18326c r7186: add [relative_base] property, which is allowed on typedef's
(maybe we could add them to elements latter...)

with this property all relative pointers from inside the struct or union
are relative to the struct/union start

metze
2007-10-10 13:17:24 -05:00
Stefan Metzmacher
87a3162190 r7185: fix formatting
metze
2007-10-10 13:17:24 -05:00
Stefan Metzmacher
95d3286a32 r7184: remove unused ndr_pull/push_struct_start/end() functions
metze
2007-10-10 13:17:24 -05:00
Stefan Metzmacher
978f49ced5 r7167: fix the build
metze
2007-10-10 13:17:22 -05:00
Jelmer Vernooij
3c6e9d0bd0 r7165: Fix pidl tests 2007-10-10 13:17:22 -05:00
Jelmer Vernooij
6731e0a654 r7161: - Add support for "aliases" for pidls scalar types and add a few aliases.
- Define __PIDL__ when preprocessing IDL files.
- Remove a couple of useless defines from rpcecho.idl
rpcecho.idl now works in both pidl and midl
(althought pidl is a bit pedantic and gives two warnings)
2007-10-10 13:17:21 -05:00
Jelmer Vernooij
aaf097ec10 r7160: Initial work on an esp function wrapper generator 2007-10-10 13:17:21 -05:00
Jelmer Vernooij
b264c61061 r7159: Improve the messages from pidl's validator module.
Change the IDL file for the echo interface to match the one we use for
Windows. The only thing different between the two files currently is the
names of the scalar types and the handling of strings.
2007-10-10 13:17:21 -05:00
Jelmer Vernooij
277f26edac r7122: Some cleanups, simplification of the code. 2007-10-10 13:17:19 -05:00
Jelmer Vernooij
cf522ba372 r7121: More subcontext fixes. A subcontext does not always imply internally deferred
data, though it might.
2007-10-10 13:17:19 -05:00
Stefan Metzmacher
8a16aa6401 r7119: the content of a subcontext can contain deferred data,
but for the caller a subcontext is like a scalar...
the first point is more important and is fixed with this commit,
however it would be nice if we could make them look like scalars to the callers later

metze
2007-10-10 13:17:19 -05:00
Stefan Metzmacher
9a858b5614 r7118: allways pull scalars and buffers when pulling the subcontext context
(this, is not the full fix, still doesn't work :-( )

metze
2007-10-10 13:17:19 -05:00
Jelmer Vernooij
b00355bf0c r7117: Move more manpages to the source repository 2007-10-10 13:17:18 -05:00
Stefan Metzmacher
2287ed4afa r7115: specify what properties can be used on what objects...
metze
2007-10-10 13:17:18 -05:00
Jelmer Vernooij
1e9beae533 r7111: Patch from Alan DeKok for correct use of the needed variables in Decl* 2007-10-10 13:17:18 -05:00
Jelmer Vernooij
7721fc7274 r7109: Change noid() to noopnum() so it isn't confusing to people familiar with id() 2007-10-10 13:17:17 -05:00