1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

313 Commits

Author SHA1 Message Date
Jelmer Vernooij
f8ec7f6cb1 pytalloc: Use consistent prefix for functions, add ABI file. 2011-08-10 15:36:21 +02:00
Stefan Metzmacher
604b380203 pidl:Samba4/Python: PyArg_ParseTuple with "s#" returns 'int' instead of 'size_t'
If we pass variable references we don't get implicit casting!

metze
2011-08-08 16:45:27 +02:00
Matthieu Patou
987b25d7e0 pidl: for wireshark use only the major of the version 2011-08-06 01:33:08 +04:00
Matthieu Patou
403f064744 pidl: For wireshark check also LIBNDR_FLAG_NOALIGN for not aligning 2011-08-06 01:33:07 +04:00
Matthieu Patou
0912979341 pidl: handle union when the switch variable is outside of the union for wireshark dissector 2011-08-06 01:33:07 +04:00
Matthieu Patou
da02b56572 pidl: add subcontext handling for wireshark 2011-08-06 01:33:07 +04:00
Matthieu Patou
aea446ba79 pidl: If STR_NULLTERM we concider it's a string as well 2011-08-06 01:33:07 +04:00
Matthieu Patou
5a5f6845db pidl: handle hyper attribute for wireshark 2011-08-06 01:33:07 +04:00
Matthieu Patou
dc829a438a pidl: handle datablob for wireshark generator 2011-08-06 01:33:06 +04:00
Matthieu Patou
ba882bfd90 pidl: rpc version is a 32 bit 2011-08-06 01:33:06 +04:00
Matthieu Patou
5ff63e2dcf pidl: generate code for dissecting null terminated strings 2011-08-06 01:33:06 +04:00
Matthieu Patou
7170cfaaf3 pidl: don't expect to have quote when creating import headers
Currently the $_ didn't contains the quote anymore, in order to avoid
any further regression the cleanup of quote is done before so that if
$_ still have quotes we clean them in anycase.
2011-08-06 01:33:06 +04:00
Stefan Metzmacher
0ea3760cae pidl:NDR/Parser: allow [string,size_of()] together
metze
2011-08-01 15:46:11 +02:00
Stefan Metzmacher
98cc4c8419 pidl:NDR/Server: use interface->{UUID} and {NAME} instead of the raw {PROPERTIES}
metze
2011-08-01 13:44:26 +02:00
Stefan Metzmacher
e7a7a2451f pidl:NDR/Parser: use interface->{UUID} and {NAME} instead of the raw {PROPERTIES}
metze
2011-08-01 13:44:26 +02:00
Stefan Metzmacher
7ae14ed666 pidl:NDR/Parser: use '0' instead of 'NULL' for an uint32_t value
metze
2011-08-01 13:44:26 +02:00
Andrew Bartlett
1c34842db4 pidl: Add support for the [ignore] property
This is implemented to simply never push this pointer, but to push a
NULL in it's place.  Likewise a pull will simply return a NULL.

Andrew Bartlett
2011-04-05 23:46:04 +02:00
Günther Deschner
9115615663 pidl: add an include for "ntdomain.h" for s3 server stubs.
Guenther
2011-03-30 01:13:09 +02:00
Jelmer Vernooij
98e4ef09f4 pidl: Fix prototype for server init functions.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 19 04:07:40 CET 2011 on sn-devel-104
2011-03-19 04:07:40 +01:00
Stefan Metzmacher
6771ade5e7 pidl:Samba4/NDR/Client: fix arguments to warning()
We want the file:line: information displayed.

metze
2011-03-11 11:02:23 +01:00
Stefan Metzmacher
f3465da072 pidl:Samba4/NDR/Parser: fix compiler warnings in 'pipe' related code
metze
2011-03-11 11:02:22 +01:00
Stefan Metzmacher
d79fb9098b pidl: add support for 'pipe' at the NDR layer
metze
2011-03-10 14:31:19 +01:00
Stefan Metzmacher
f43e757096 pidl/idl.yp: fill 'pipe' elements with array and count
metze
2011-03-10 14:31:19 +01:00
Stefan Metzmacher
91ef694351 pidl:NDR/Client: skip all functions if pipe elements are used
We don't support pipe at the dcerpc level yet.

metze
2011-03-10 14:31:18 +01:00
Stefan Metzmacher
f383497436 pidl:NDR/Client: skip sync functions if pipe elements are used
metze
2011-03-10 14:31:18 +01:00
Stefan Metzmacher
7537f9c9bb pidl:Python: don't generate functions with pipe elements
metze
2011-03-10 14:31:17 +01:00
Stefan Metzmacher
29bd658634 pidl:Samba3/ClientNDR: don't generate stubs for functions with pipe elements
metze
2011-03-10 14:31:17 +01:00
Stefan Metzmacher
eaa7ecdda7 pidl/NDR: add ContainsPipe() function
metze
2011-03-10 14:31:16 +01:00
Stefan Metzmacher
6e4e3f57e4 pidl/Typelist: add is_fixed_size_scalar()
metze
2011-03-10 14:31:14 +01:00
Stefan Metzmacher
6ef40f3199 pidl/Typelist: dnsp_name and dnsp_string are scalar references
metze
2011-03-10 14:31:13 +01:00
Andrew Bartlett
646aefd998 pidl Add support for uid_t and gid_t types
These are mapped to uint64_t, which should be big enough.  This is
proposed to be used for internal Samba representations, where it would
be more painful to convert all the callers to an uint64_t calling
convention.

Andrew Bartlett
2011-03-01 06:29:03 +01:00
Stefan Metzmacher
bd2b0076b4 Revert "Fix alignment issues in SPOOLSS "BUFFER" marshalling."
This reverts commit 187f695469.

This is the wrong fix.

metze
2011-02-28 15:54:13 -08:00
Jeremy Allison
187f695469 Fix alignment issues in SPOOLSS "BUFFER" marshalling.
Guenther and Metze please check !

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Feb 18 18:49:55 CET 2011 on sn-devel-104
2011-02-18 18:49:55 +01:00
Andrew Tridgell
431b25e895 pidl: support using pidl from top level directory
pidl needs to know if it is being used within the samba tree or not,
to get the names of some include files right. This adds support for
using pidl in the top level directory of a Samba build

This change also makes it clear that is_intree() is a boolean
function. Previously it returned different values for Samba3 and
Samba4, but there is nothing that depends on that

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Stefan Metzmacher
34b7b552e8 pidl:Samba4/NDR/Parser: fix ndr_pull/ndr_push mismatch
metze
2011-02-01 18:35:22 +01:00
Stefan Metzmacher
9fe4b695fe pidl:Samba4/NDR/Parser: add support for 'ms_union' style aligment
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Feb  1 12:13:45 CET 2011 on sn-devel-104
2011-02-01 12:13:45 +01:00
Stefan Metzmacher
6124148d66 pidl:Samba4/NDR/Parser: only do the switch type alignment when we have a switch type
This doesn't change the logic, it just doesn't call the same aligment function
twice.

metze
2011-02-01 11:21:43 +01:00
Stefan Metzmacher
76f2ddf5a9 pidl:NDR: add support for 'ms_union' property.
metze
2011-02-01 11:21:42 +01:00
Stefan Metzmacher
34664338f3 pidl:Typelist: fix perl warnings about recursiv function calls
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan 26 10:59:04 CET 2011 on sn-devel-104
2011-01-26 10:59:04 +01:00
Stefan Metzmacher
4b068bb919 pidl:Samba3/ServerNDR: correctly initialise ndr_push struct
We need to copy the ptr_count from the ndr_pull struct to the ndr_push struct,
otherwise we'll reuse full pointer ids, which will cause the client to
fail in the ndr unmarshalling.

metze
2011-01-26 08:51:46 +01:00
Stefan Metzmacher
1a96ec2109 pidl:Samba4/NDR/Client: remove compat mode for dcerpc_pipe based bindings
The only consumer "openchange" uses the dcerpc_binding_handle based
functions now.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan 21 08:16:25 CET 2011 on sn-devel-104
2011-01-21 08:16:25 +01:00
Stefan Metzmacher
d5173ca189 pidl:wscript: don't warn about pidl gammar file changes for now
We may add some logic that uses git diff HEAD to detect this changes
in developer mode later again.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jan 18 08:10:06 CET 2011 on sn-devel-104
2011-01-18 08:10:06 +01:00
Stefan Metzmacher
2778130d45 pidl:Samba4/Python: fix memory leak in _ndr_print functions
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan  6 14:34:31 CET 2011 on sn-devel-104
2011-01-06 14:34:31 +01:00
Stefan Metzmacher
ce7cb972b0 pidl/wscript: only warn about grammar file changes
autobuild should protect us from having grammar files
and generated files out of sync.

metze
2011-01-06 13:43:23 +01:00
Stefan Metzmacher
5d8f916619 pidl/wscript: let the developer use the standalone build with yapp
Waf isn't happy when files in the source directory are changed.

metze
2011-01-05 12:30:24 +01:00
Stefan Metzmacher
d89e762240 pidl:Samba4/Python: avoid ';;' in generated C code.
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan  5 11:10:34 CET 2011 on sn-devel-104
2011-01-05 11:10:34 +01:00
Stefan Metzmacher
2e45cd15ec pidl:Samba4/Python: fix segfault when setting pointers to scalars.
metze
2011-01-05 10:24:49 +01:00
Stefan Metzmacher
2868fc8a91 pidl: regenerate lib/Parse/Pidl/Expr.pm from expr.yp
metze
2011-01-05 10:24:49 +01:00
Stefan Metzmacher
c1c9e4a1c8 pidl: sync idl.yp with the CPP changes
This is taken from commit 21b0d5e3b1.

metze
2011-01-05 10:24:48 +01:00
Jelmer Vernooij
b320cc7990 Fix some formatting. 2011-01-03 01:48:04 +01:00