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

503 Commits

Author SHA1 Message Date
Julien Kerihuel
d4006e799a Support ETT_FIELD keyword.
(This used to be commit ec8bd3991f)
2008-02-13 02:24:11 +01:00
Jelmer Vernooij
6034757963 Move pidl bits to a separate file.
(This used to be commit de7af69134)
2008-02-11 15:19:24 +01:00
Stefan Metzmacher
dbba1925d1 pidl/Samba3::ServerNDR: use talloc_tos() instead of NULL
metze
(This used to be commit 99d6f49340)
2008-02-11 08:44:56 +01:00
Julien Kerihuel
c60d0a10ea pidl: Allow fixed size arrays inside unions.
(This used to be commit c9c1156478)
2008-02-09 16:26:16 +01:00
Jelmer Vernooij
d696a50452 Fix test count after pointer_default_top() removal.
(This used to be commit 9a4b9facc8)
2008-02-09 16:25:34 +01:00
Stefan Metzmacher
e7c178629f pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
The memory allocation of embedded "ref" pointers needs to be the
same as for all other embedded pointers.

metze
(This used to be commit 6b3817c225)
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
c713b58a00 pidl/NDR: fix handling of multilevel pointers in function elements
The 2nd or higher level of wire pointers needs to be marked as deferred.

metze
(This used to be commit d7970d7032)
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
1ea5b06307 pidl: get the pointer types correct when an element has multiple pointers
Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze
(This used to be commit aa8518521b)
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
31fac9d66b pidl: remove 'pointer_default_top()' support
metze
(This used to be commit 145d6c8ea0)
2008-02-04 18:37:09 +01:00
Stefan Metzmacher
c3008e086b pidl/Samba4::NDR::Parser: correctly get the name of an array element
When we have "*r->out.ous"
(char ***ous, a pointer to a pointer to an array of pointers).
we need to use "(*r->out.ous)[3]" to access the 3rd
element of the array "*r->out.ous[3]" was generated before,
but that's the same as "*(r->out.ous[3])" which would mean
the array would apply to a different level.

This patch prepares support for:

[out,ref,size_is(,num)] [string,charset(UTF16)] uint16 ***names;

It means a [ref] pointer to a [unique] pointer to an array
of [unique] pointers which point to an UTF16 string.

metze
(This used to be commit ec0ee2aa5f)
2008-02-02 11:16:09 +01:00
Stefan Metzmacher
b3d4f22b30 pidl/Samba4::NDR::Parser: fix $var_name for arrays of scalar reference types
uint32 num;
nstring strings[num];

this should use 'r->strings' instead of
'*r->strings' as the pointer to the array.

metze
(This used to be commit 7c7acae817)
2008-02-02 11:16:01 +01:00
Stefan Metzmacher
9475a76afc pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a function
metze
(This used to be commit 26d7f5bf96)
2008-02-02 11:15:52 +01:00
Stefan Metzmacher
e22c627ea1 pidl: revert changes it didn't want to push...sorry!
8ebf16c074 Works!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
6fcf2456d0 WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
0569139ca2 LOOKS OK... pidl: get the pointer types correct when an element has multiple pointe
rs
13afc89a87 CHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element
29c104944b CHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...
3369015f5d CHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a f
unction

metze
(This used to be commit 0bcc8e53d1)
2008-02-02 11:13:03 +01:00
Stefan Metzmacher
4117839d77 Works!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
The memory allocation of embedded "ref" pointers needs to be the
same as for all other embedded pointers.

metze
(This used to be commit 8ebf16c074)
2008-02-01 23:21:10 +01:00
Stefan Metzmacher
2670c95446 WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
The 2nd or higher level of wire pointers needs to be marked as deferred.

metze
(This used to be commit 6fcf2456d0)
2008-02-01 23:15:16 +01:00
Stefan Metzmacher
19898379bd LOOKS OK... pidl: get the pointer types correct when an element has multiple pointers
Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze
(This used to be commit 0569139ca2)
2008-02-01 22:36:05 +01:00
Stefan Metzmacher
9e999a67a7 CHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element
When we have "*r->out.ous"
(char ***ous, a pointer to a pointer to an array).
we need to use "(*r->out.ous)[3]" to access the 3rd
element of the array "*r->out.ous[3]" was generated before,
but that's the same as "*(r->out.ous[3])".

metze
(This used to be commit 13afc89a87)
2008-02-01 22:18:54 +01:00
Stefan Metzmacher
a0c83e990f CHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...
metze
(This used to be commit 29c104944b)
2008-02-01 21:50:22 +01:00
Stefan Metzmacher
c94ee07499 CHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a function
metze
(This used to be commit 3369015f5d)
2008-02-01 21:29:33 +01:00
Stefan Metzmacher
a4571e661f pidl: cosmetic fix to use the same value everywhere
metze
(This used to be commit 3c19198143)
2008-02-01 18:20:32 +01:00
Stefan Metzmacher
0f9c453e12 pidl/IDL: don't strip ',' from the properties content
metze
(This used to be commit fdf9bcb163)
2008-02-01 07:09:38 +01:00
Stefan Metzmacher
95c5de1828 pidl/Samba4::NDR::Parse: move the calculation of NDR_PULL_SET_MEM_CTX() flags into one function
metze
(This used to be commit 74bf021aa7)
2008-02-01 07:01:06 +01:00
Stefan Metzmacher
e6362c4d8c pidl/Samba4::NDR::Parser: pass down the correct $var_name to AllocateArrayLevel()
metze
(This used to be commit c630bece38)
2008-01-31 15:56:57 +01:00
Stefan Metzmacher
dca5fab180 pidl: be consistent and always ask pkg-config only for 'ndr'
metze
(This used to be commit ab2e1394d0)
2008-01-30 20:25:40 +01:00
Stefan Metzmacher
5d55aa99e6 pidl/Samba4::Header: fix typedefs of unions and structs without elements
metze
(This used to be commit 3131847cb6)
2008-01-25 10:07:43 +01:00
Stefan Metzmacher
43040be5b9 pidl: get rid of stupid ';' char to terminate bitmap defines
metze
(This used to be commit dd77fc45ee)
2008-01-24 15:04:58 +01:00
Stefan Metzmacher
4d656cb5a5 pidl/Samba4::Header: we don't need to check if (defined($enum->{ELEMENTS})) twice
metze
(This used to be commit c1ac13ee12)
2008-01-24 14:57:30 +01:00
Julien Kerihuel
2cf35f2068 pidl: Add --version argument.
(This used to be commit ed1e58e8b3)
2008-01-18 18:31:03 +01:00
Jelmer Vernooij
3e53ad6f4a pidl: Add simple test for ServerNDR.
(This used to be commit 5b2ea43ed8)
2008-01-16 15:08:00 +01:00
Jelmer Vernooij
af163d258c pidl: Fix missing import for fatal().
(This used to be commit 6a9827454a)
2008-01-16 15:08:00 +01:00
Jelmer Vernooij
39cc507d1b pidl: Fix imported function for ServerNDR and add test to make sure it doesn't regress again.
(This used to be commit 0e03694830)
2008-01-16 15:08:00 +01:00
Jelmer Vernooij
1530d7c3b0 python: Fix handling of pointer-less strings in function arguments.
(This used to be commit cb2700094f)
2008-01-14 20:09:18 +01:00
Jelmer Vernooij
d28eb21a98 python: Compile security module, handle uint.
(This used to be commit dee64344fb)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
134e38ac28 python: Fix some corner cases handling scalars.
(This used to be commit b662c98a9a)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
994e43e9eb python: Don't try to free const pointers.
(This used to be commit b4754f4683)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
860106b3f4 python: Move some convenience macros to a separate header rather than putting them in every generated py_* file.
(This used to be commit 712274b9bd)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
fa5397fbed python: Build epmapper module.
(This used to be commit 6cb78c7634)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
035599fa65 python: Be more pythonic - turn WERROR and NTSTATUS return codes into exceptions.
(This used to be commit 16fc69b843)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
7dd468ff2e python: Fix python code for winreg, add test.
(This used to be commit bd3e6c41c4)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
30a2a43a75 pidl/python: Fix processing UUID-less interfaces, external typedefs and certain bitmap elements.
(This used to be commit e65618fff3)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
e231e24d89 pidl/python: Deal with arrays that are not pointers.
(This used to be commit 7516af7c72)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
4cfd90308c pidl/python: Specify memory context explicitly when returning Python objects.
(This used to be commit 9c72f652e0)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
3b16c532f2 pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
(This used to be commit 4c87af9531)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
db4ee4cce5 python: Fix rpcecho tests.
(This used to be commit ebb78ea423)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
d5903fd75e pidl/python: Fix compilation of py_echo.
(This used to be commit 5ee99ff31c)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
2afa1bee54 python/pidl: Fix assignment.
(This used to be commit 2d2cb6486e)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
657e0cc4d0 pidl/python: Fix more compile errors.
(This used to be commit 2eb4526599)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
5d60cb6ef1 pidl/python: Fix parsing arguments, fix more pointer issues.
(This used to be commit b00c1a0724)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
d8b21ae253 pidl/python: Fix use of pointers.
(This used to be commit 13f2b0380f)
2008-01-14 19:53:05 +01:00
Jelmer Vernooij
41057618f8 pidl/python: Remove unnecessary talloc_free().
(This used to be commit a099d30067)
2008-01-14 19:53:05 +01:00