1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

510 Commits

Author SHA1 Message Date
Michael Adam
bcca7d43c8 pidl: Remove superfluous semicolon in perl code.
Michael
(This used to be commit 85f707c6abc48739c0c3b423ac0b196d2b75e40c)
2008-02-26 16:41:09 +01:00
Volker Lendecke
bd95d6d5db Respect the return value of asprintf
This removes tons of warnings

warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result

for me. Lots of that kind left though :-)
(This used to be commit ba29219ea243cc217ab3522b036a82ff8dfeedc8)
2008-02-23 10:26:52 +01:00
Jelmer Vernooij
35dd0b0f4a Add test for INCLUDE command.
(This used to be commit d1aa25249d64513f785430cab7437b5c7ca8db27)
2008-02-19 02:02:48 +01:00
Julien Kerihuel
c455774d93 Add INCLUDE command to pidl.
(This used to be commit 8a8ed4fae849a2cc565a1ff77b2208a4cd6b1edb)
2008-02-19 01:55:01 +01:00
Jelmer Vernooij
05d58f49df Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit b14d61a3b8055b7a8172e18e5bd69e7cab6eacdb)
2008-02-13 17:03:49 +01:00
Stefan Metzmacher
4218856ba9 pidl: $size can be 'foo / 2' so we need to add '(' and ')'
'foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.

metze
(This used to be commit a496abc4042a98835d485769e0972826da161984)
2008-02-13 13:09:17 +01:00
Jelmer Vernooij
23582ce0f4 Add simple test for ETT_FIELD.
(This used to be commit aea50426366dbe971d25d2a948db57885ce224b9)
2008-02-13 02:28:41 +01:00
Julien Kerihuel
d4006e799a Support ETT_FIELD keyword.
(This used to be commit ec8bd3991f76cf8746cf77c277c3491725711f9d)
2008-02-13 02:24:11 +01:00
Jelmer Vernooij
6034757963 Move pidl bits to a separate file.
(This used to be commit de7af6913487b51e44463bf1908e765477d28e5d)
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 99d6f49340d6f190ac318af939eeec17c29f1bbd)
2008-02-11 08:44:56 +01:00
Julien Kerihuel
c60d0a10ea pidl: Allow fixed size arrays inside unions.
(This used to be commit c9c115647893478e21134f8c703e0f52e2478882)
2008-02-09 16:26:16 +01:00
Jelmer Vernooij
d696a50452 Fix test count after pointer_default_top() removal.
(This used to be commit 9a4b9facc869a8f7363932a591437251b44cd7bb)
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 6b3817c2250b94307ffcbd9f8eeb9a593eb7a82d)
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 d7970d70329e0d4f9de30ccfcedd03e583817fa2)
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 aa8518521b2a6a7110c84c4981c53acce7389ee9)
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
31fac9d66b pidl: remove 'pointer_default_top()' support
metze
(This used to be commit 145d6c8ea0eafc69cdeca45fbf296148b890133d)
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 ec0ee2aa5f4bef32f09a426d91c28c985f843038)
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 7c7acae817cd00ab5c915742338b019af79e9193)
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 26d7f5bf96cd7e950ceb532402afd6b8a58871ea)
2008-02-02 11:15:52 +01:00
Stefan Metzmacher
e22c627ea1 pidl: revert changes it didn't want to push...sorry!
8ebf16c0741085fa769fcc2929f275ab49b1ea5d Works!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
6fcf2456d0e81898b5779ef1650f38b4c5363a80 WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
0569139ca2960ec5478829c3e66f7ff69bdb55cd LOOKS OK... pidl: get the pointer types correct when an element has multiple pointe
rs
13afc89a87716063180723f0e9cb4f76daca837e CHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element
29c104944bcad30c6a2a3fa70d527bf0ee8969de CHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...
3369015f5d8c425e1a9f9d861471028f03f163bb CHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a f
unction

metze
(This used to be commit 0bcc8e53d1470ba9dfe93e5d6925b8f4c20c7c66)
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 8ebf16c0741085fa769fcc2929f275ab49b1ea5d)
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 6fcf2456d0e81898b5779ef1650f38b4c5363a80)
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 0569139ca2960ec5478829c3e66f7ff69bdb55cd)
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 13afc89a87716063180723f0e9cb4f76daca837e)
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 29c104944bcad30c6a2a3fa70d527bf0ee8969de)
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 3369015f5d8c425e1a9f9d861471028f03f163bb)
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 3c191981436ab3f7dd166a87875ffbac127fbdf5)
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 fdf9bcb163516f7d96675ae0dce2917afb8f86d3)
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 74bf021aa7016ace02a0238e71573f18016e3722)
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 c630bece38eed3278466c2934763fcd8dcfb0610)
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 ab2e1394d0a66ca13750e1b6f4ced07f4a0f3453)
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 3131847cb67dadd8ee6fcbca5055927b8ba8a219)
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 dd77fc45eee2dde7bdd31a2e39387e94cec158aa)
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 c1ac13ee12d6d7e41b3700f207c9a8811bb05cd4)
2008-01-24 14:57:30 +01:00
Julien Kerihuel
2cf35f2068 pidl: Add --version argument.
(This used to be commit ed1e58e8b35bc971451f4e0a357daa903cd7820d)
2008-01-18 18:31:03 +01:00
Jelmer Vernooij
3e53ad6f4a pidl: Add simple test for ServerNDR.
(This used to be commit 5b2ea43ed8613ac10ebe7feda0cf070c8079137a)
2008-01-16 15:08:00 +01:00
Jelmer Vernooij
af163d258c pidl: Fix missing import for fatal().
(This used to be commit 6a9827454aaf4279ee85dc5d99d10f14e4c09eae)
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 0e036948307c8ca5013e20a17a10d109830e4df1)
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 cb2700094fc1fc3887d5254e5d42e035deefa5b9)
2008-01-14 20:09:18 +01:00
Jelmer Vernooij
d28eb21a98 python: Compile security module, handle uint.
(This used to be commit dee64344fb13aaed38a550ebb4048d0fa526d5b6)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
134e38ac28 python: Fix some corner cases handling scalars.
(This used to be commit b662c98a9ad461a33a27a918c0d544a96433e48c)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
994e43e9eb python: Don't try to free const pointers.
(This used to be commit b4754f4683e67a940f18a88e45c0878259f45b97)
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 712274b9bdf524da125cbbe6e4bb475b21b1da66)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
fa5397fbed python: Build epmapper module.
(This used to be commit 6cb78c7634de0f9ab327583844d7860d384356eb)
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 16fc69b843e92ae62b15caf927335cc117156499)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
7dd468ff2e python: Fix python code for winreg, add test.
(This used to be commit bd3e6c41c42738fcfcc5cef4e65f0e219d358260)
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 e65618fff3299193c27959e2cc5a3937837e1422)
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 7516af7c7262240df3b804dda962194a811d4e96)
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 9c72f652e0d3f14d5db4d3930f0d1f9a1875e93f)
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 4c87af95310e4aaee3f2e2da02d0ea70ed1ec25b)
2008-01-14 19:53:06 +01:00