summaryrefslogtreecommitdiff
path: root/source4/build/pidl/swig.pm
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r5245: Remove dead code.Tim Potter1-671/+1
(This used to be commit 949f31ad2865699da0f3a9e827606abd762b10b7)
2007-10-10r5241: Generate swig wrappers for unions as well as structures.Tim Potter1-2/+2
(This used to be commit e65741159d8578d629ccfcd863f034fda895f9fe)
2007-10-10r5223: Rename dom_sid2 to dom_sid as we don't care about the differenceTim Potter1-1/+5
for the swig wrappers. (This used to be commit edb32b9b5175f720bce110bf2bb4cf136ed47142)
2007-10-10r5072: oDecrease the amount of autogenerated code (sorry tridge) and use swig'sTim Potter1-63/+62
structure mapping features instead of doing it all ourselves. This basically works, but has broken all the existing checked in Python code. Sample: pipe = dcerpc.pipe_connect(binding, dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION), domain, username, password) r = dcerpc.samr_Connect2() r.data_in.system_name = 'foo' r.data_in.access_mask = 0x02000000 result = dcerpc.dcerpc_samr_Connect2(pipe, r) (This used to be commit c2996ad910a24c977b4c0a1925118d36454514f7)
2007-10-10r4548: Convert to talloc_p() and talloc_array_p() where appropriate.Tim Potter1-5/+39
(swig stuff seems broken atm though) (This used to be commit 9eeb976773a8d2ed26a690c73d67f5db735e8d3a)
2007-10-10r4521: fixed up the handling of PROPERTIES elements after the change to ↵Andrew Tridgell1-2/+2
support enum (This used to be commit dee8eff2590be58c59b0db089fcca4af3e011c42)
2007-10-10r3410: Handle conversion of DATA_BLOBs and pointers to DATA_BLOBs from python.Tim Potter1-1/+5
(This used to be commit 12e037dbe3d497aff2415c0a22fab20a7932ab7a)
2007-10-10r3406: Don't throw a werror exception for WERR_NO_MORE_ITEMS and WERR_MORE_DATA.Tim Potter1-1/+3
(This used to be commit deaa5159f41a8841d75801b441e7bd5cf2636870)
2007-10-10r3303: Call pull function for correct type instead of spoolss_PrinterInfo whenTim Potter1-1/+1
unmarshalling arrays. (This used to be commit ee535b6801e553d0a180f18cc2c4b4438ee23de1)
2007-10-10r3282: some C pre-processors don't like expressions likeAndrew Tridgell1-1/+2
uuid(1ff70682-0a51-30e8-076d-740be8cee98b) so we now accept uuid("1ff70682-0a51-30e8-076d-740be8cee98b") in pidl, and automagically add quotes only if needed (This used to be commit 4aab2cb210eb9678bb72aebb33dcf6fd499206c1)
2007-10-10r3204: Got unpacking of an array of PrinterInfo union elements working. Phew.Tim Potter1-53/+44
(This used to be commit f490cd719cc02589e73e26fa983aff90708d1926)
2007-10-10r3022: Work on unmarshalling arrays of structs in a buffer (Python string) forTim Potter1-6/+32
spoolss. Doesn't quite work yet. (This used to be commit 9045645ddf4eb8b5596d220ed936c8731641ef0a)
2007-10-10r3009: Fix up unmarshall functions to return Python dict instead of a NTSTATUS.Tim Potter1-18/+7
We can now unmarshall a single printer returned from an EnumPrinters. (This used to be commit 89da7a9196d40699881f12c9a5fe62301aafd4cf)
2007-10-10r3001: Expose unmarshalling functions for structures marked "public" in theTim Potter1-10/+33
idl. This allows us to pass a buffer of bytes returned from a spoolss call and convert it to a Python dictionary. Works for enumprinters level 1! (This used to be commit 4bc497a2994b12845a46b2d19f60bb81c9869fc9)
2007-10-10r2994: More cleanups. Move the generation of NTSTATUS and WERROR exceptionsTim Potter1-2/+19
from inside a swig %exception block and into the argout typemap. This will allow us to wrap functions that don't require exception handling, and also get rid of some ugly code in dcerpc.i (This used to be commit 558076cc8ddbdb563869f7d35150310217f30c31)
2007-10-10r2986: Add correct value to dict when generating wrapper for functions thatTim Potter1-2/+19
return WERROR values. Clean up WERROR vs NTSTATUS handling a bit. (This used to be commit e6756e3ee0af3e7e98f6deaf9dc83af9aac1b586)
2007-10-10r2966: Handle conversion of DATA_BLOB fields from Python in a slightly nicerTim Potter1-0/+5
manner. I'm hoping to get rid of DATA_BLOB's but for the moment they make it easy to get some spoolss action happening quickly. (This used to be commit 15f8f73f8bfec099973fb8bf167020ae50346cf6)
2007-10-10r2963: Handle structures that contain more than one union as members.Tim Potter1-2/+2
(This used to be commit 6a47a079c003c2a139665ad2b5ede5d139049bd1)
2007-10-10r2962: Tweak to get conversion function for pointers to union compiling again.Tim Potter1-1/+1
(This used to be commit 8c9c94d578651c5884db0aa0feb6e16858274fbb)
2007-10-10r2958: the warnings from the swig code in pidl were totally swamping validAndrew Tridgell1-14/+16
warnings, making real errors impossible to spot. this fixes the warnings, and probably fixes some pidl/python bugs as well. (This used to be commit 2f1e9954e3381b1864a6fd9fa8b2231478179d4d)
2007-10-10r2805: Handle NULL pointers when converting structures to Python. All theTim Potter1-1/+4
test cases up till now haven't come across them yet! (This used to be commit 5fd3c12d4fe3e572618bcd71c5915f69539fe7e6)
2007-10-10r2767: Get rid of some unnecessary %s formatting.Tim Potter1-2/+2
(This used to be commit b63a0ef0d41e6f0fdc6bf46435fb7b81925946da)
2007-10-10r2764: Use hand-written function for all occurrences of IDL strings, not justTim Potter1-2/+2
those with a single pointer. (This used to be commit c4c748ce63fd2d87d4388a1eac9afa586867ce28)
2007-10-10r2560: Don't require structure fields that have the pidl value() propertyTim Potter1-1/+5
to be set. They can be if you want, but will be overwritten by the pidl push code. (This used to be commit 3170f6ed84e0514bf18d2a346f153bf0231b245b)
2007-10-10r2496: Check that reference parameters are not None.Tim Potter1-1/+9
(This used to be commit a2ab6c5ef9cc6db27fc8c73e6117f0f7a116d563)
2007-10-10r2491: Handle pointers to scalars when converting to a Python dictionary (i.eTim Potter1-30/+1
resume handles). Remove some now unused debugging code. (This used to be commit f250203a5f54c689c09ba780e9e3af7f8f2311bb)
2007-10-10r2490: Some changes to take into account non-error NTSTATUS codes being ↵Tim Potter1-2/+6
returned: - Only throw an exception if NT_STATUS_IS_ERR() instead of !NT_STATUS_IS_OK(). - Add the NTSTATUS value to the returned dictionary under a key of 'result' so calling functions can access it. (This used to be commit 4ddcae90a2e9b93e58bd57932cd9ae4c95be6ae8)
2007-10-10r2428: Handle unions as [out] parameters by passing the value of the switch_isTim Potter1-15/+61
parameter down to the various conversion functions. (This used to be commit 46b3d4cfd8effcc75293b8b0af04203fa25742b2)
2007-10-10r2426: Handle pointer to scalars converting C to Python.Tim Potter1-10/+26
Peeked at parser.pm for some hints at getting array lengths right when the length_is property is present. (This used to be commit a17aaadb7d57dbe4cf0a62634f405c61b79a953f)
2007-10-10r2425: Found another place for a type check. When convert a dictionary valueTim Potter1-2/+11
to an array, check that the value exists and it is of list type. Fix a typo. (This used to be commit bcee3860554260bca2bbb6fd73d8770a4997c041)
2007-10-10r2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish.Tim Potter1-19/+6
(This used to be commit aaef6eaf6e0c38fb277d1be0617dfdff559a0115)
2007-10-10r2422: Convert PyDict_{Get,Set}Item() calls to PyDict_{Get,Set}ItemString().Tim Potter1-10/+10
(This used to be commit 9ea5574bb12161733afb592425724cff8c4bbedd)
2007-10-10r2418: Handle a pointer to a scalar when converting a field from Python.Tim Potter1-4/+9
Handle a pointer to an array of structures when converting to Python. (This used to be commit e135265d1d91ff9a6a4e7ec0079ecd88f0afe784)
2007-10-10r2417: Add comments to the interface generator as well as some commentary inTim Potter1-172/+227
the generated interface code. Get rid of global variables within the perl generator code. (This used to be commit 36320c694162a58665ace10576ad18c13a7850fe)
2007-10-10r2416: More argument checks. Raise an exception instead of segfaulting if aTim Potter1-9/+30
dictionary does not contain a required key. (This used to be commit fc5443af9c271baf189ebe0b098e190b5eda4e14)
2007-10-10r2415: Throw a TypeError exception if a scalar value doesn't have the correctTim Potter1-20/+52
type, or the argument to a to_python function isn't a dictionary. (This used to be commit 0f58ffb142a9b8c5c745b3a2c93a1659ea8282e5)
2007-10-10r2411: The other half of getting autogenerated code working using misc.idl:Tim Potter1-14/+70
use Python lists for arrays when marshaling and unmarshaling arrays. This gets samr_SetSecurity() working. (This used to be commit 9bc55de42ab9f0d71abcea65a7f4cf24db452381)
2007-10-10r2409: Convert NULL pointers to Py_None, and vice versa.Tim Potter1-2/+18
This gets samr_QuerySecurity() working again. (This used to be commit 810bce2fe517969e62d87497bbe4ae645badfdf6)
2007-10-10r2408: Tridge suggested that all the structures from misc.idl (policy handles,Tim Potter1-31/+71
sids, security descriptors and acls) can be automatically generated instead of hand-written. Fix up the swig wrapper generator and helper routines to do this. (Only works for policy handles right now though and arrays are to be converted into lists instead of being binary blobs). Fix up wrapper generation for modules that don't define an interface (e.g misc.idl). (This used to be commit 160dc90921ecc136a25ae88e5c28800ddda5722a)
2007-10-10r2398: Import Data::Dumper module safely so it doesn't hurt the build farm.Tim Potter1-1/+2
(This used to be commit f88996540cfecf830595425735d2f1d4ad623c3d)
2007-10-10r2359: More consistency fixes: pass a talloc context to every function thatTim Potter1-4/+4
doesn't convert scalar types, more renaming of function names. Implement conversion fns for dom_sid, dom_sid2 (to struct version stubbed out). Also from Python conversions for security_acl and security_descriptors. (This used to be commit 945a4681051132c13f9235f676464fffb3bfadc8)
2007-10-10r2358: More renaming of functions to keep things consistent.Tim Potter1-10/+10
(This used to be commit 84513e4ed14e60b4cd09fcc2e596bc72d3a8807c)
2007-10-10r2336: Add another conversion function to allow union arms that contain ↵Tim Potter1-15/+49
structures not pointers to structures. Do some renaming of hand-written functions as a result. Include lsa interface before samr interface as samr depends on some lsa structures. Build up a nice hashed index of interfaces, functions, structs and unions. Add test for samr_Connect5() function which contains a union. (This used to be commit 30f068164a5125f84a34f28ed0f2586a2bdec7e4)
2007-10-10r2335: Zero function parameter struct so we can do a bit more testing. To ↵Tim Potter1-0/+20
be removed later. Generate more stub code for union arms. (This used to be commit f8a14e808eb9ec2910fb22f35d828a7eeea14aec)
2007-10-10r2325: Generate conversion stubs for IDL unions.Tim Potter1-0/+23
(This used to be commit a06727b79228865e03430e41fc991c3d39eca220)
2007-10-10r2323: More tweaks to get things building again.Tim Potter1-7/+4
Now to get unions working as they are currently broken. (This used to be commit 8072d7f1a4f72d91d54c0e6056819ba5f99ce734)
2007-10-10r2322: More renames of autogenerated functions so they all have approximatelyTim Potter1-12/+33
the same signature. Start to handle structures with no pointers. (This used to be commit c1dc9842683628e05fa66a930a074e741c4a7101)
2007-10-10r2298: Convert to and from string parameters.Tim Potter1-5/+20
Correct function name used when generating function to convert in typemap so it is consistent with the others. (This used to be commit ec23bae00fedbd1651800a8f4559dee3bd6c7025)
2007-10-10r2295: Convert simple scalar types and policy handles between dcerpc functionTim Potter1-8/+96
call request and response structures. (This used to be commit d31d23b944b7e4ef300d75dad5038727e9133af1)
2007-10-10r2289: Autogenerate some more attractive looking stubs for convertingTim Potter1-21/+61
function argument structures and idl structures to and from Python dictionaries. (This used to be commit e4729949c61a8df23b5132c6136ae8c3777c348a)