summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/dcerpc.i
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r6540: Implement a bunch more SAMR functions.Tim Potter1-0/+1
(This used to be commit 7ab240644ec6cfd0449df7e2dfe0eb1b8a52ccdb)
2007-10-10r6326: Add %array_functions for struct lsa_SidPtr.Tim Potter1-0/+3
Pull in the auto-generated interface file for the lsa pipe (whaddayaknow it compiled first go!) (This used to be commit fd884ec433c825759624a47541521cbd3d07f5a1)
2007-10-10r6213: Add %array_functions for struct samr_String so we can create andTim Potter1-0/+1
access arrays of them. (This used to be commit fc2b73d4d75f383108632935ba047890c816b283)
2007-10-10r6208: Add cli_credentials support for swig wrappers. For the moment itTim Potter1-4/+3
only does anonymous connections. (This used to be commit b09a4723539235fc924134aa50fc4aed040afb33)
2007-10-10r5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo.Tim Potter1-0/+3
(This used to be commit be37749ac7d128fcabf82bad104d87098e2d9f55)
2007-10-10r5293: Map an empty policy handle to None when creating policy handles, andTim Potter1-3/+20
refuse to accept None as a policy handle when accepting them. Now we don't segfault after running the samr_Shutdown() test. (This used to be commit 2f0419c4d8100864ddddf5629d1808b655da9d76)
2007-10-10r5243: Woohoo - memory leak city! Comment out talloc_free() call until ITim Potter1-1/+1
figure out a better way to pass tallocated memory around with SWIG. (This used to be commit c63668cbbe393a78ccd9a86a33fb4bd7bb9af16d)
2007-10-10r5224: Add in/out typemaps for resume handles. This saves us having to muchTim Potter1-0/+39
around with pointers to just one uint32. Add an output typemap to copy a policy handle as the talloc context is destroyed before the wrapper function returns. More work here needed to avoid memory leaks. Use the swig carrays.i file to create accessor and setter functions for fixed width integer types. Also add functions for struct samr_SamEntry as it's returned by the LookupDomain RPC. This really needs to be done by pidl so I don't have to go through and find all the structures that are returned in arrays. Include security.i to give us SIDs and security descriptors. (This used to be commit 5a1f6c999ef5e84e93ec8f07b9751d795c4566a5)
2007-10-10r5095: uint32 -> uint32_tTim Potter1-3/+2
%include misc.i to get definition of struct policy_handle Remove #includes we aren't using just now. (This used to be commit e561bc3efa2a5307a3940a32058ca00d5dfc2fc5)
2007-10-10r5074: Remove dead code.Tim Potter1-266/+0
(This used to be commit 36b46bb05aeffb2ba708e4653c131cecece01984)
2007-10-10r5018: Initialise required subsystems (by hand, generated by substitutingTim Potter1-8/+40
BINARY for LIBRARY in config.mk). Cut things down to just the samr pipe for the moment. (This used to be commit 95d2a58e5b2cfc30304ca390de7073c214850984)
2007-10-10r4981: Fix swig build.Tim Potter1-3/+1
(This used to be commit b44ab87c83ad094ce4595c9702d6a21f30c1de26)
2007-10-10r4546: Use talloc_p() instad of talloc()Tim Potter1-1/+1
(This used to be commit 2ec3a137d7fd8a912bc70e865f7a7798190b8869)
2007-10-10r3588: Fix bug in converting SIDs containing large unsigned integers from ↵Tim Potter1-3/+3
Python. (This used to be commit a46aba43549e5221ec0c15d4133444d8ef77a4fb)
2007-10-10r3505: #include dynconfig.hTim Potter1-0/+1
(This used to be commit 336eba61e99cd96fe4abc8476b998d079fbb5770)
2007-10-10r3474: Add conversion functions for the time_t type.Tim Potter1-0/+23
(This used to be commit caa563faaa264c41afdb60d64dc9566fcd31518e)
2007-10-10r3456: Add appropriate #includes to fix Python extensions build.Tim Potter1-0/+8
(This used to be commit 7e94d5bd3dd7b7055e9b70496207713f94446f98)
2007-10-10r3410: Handle conversion of DATA_BLOBs and pointers to DATA_BLOBs from python.Tim Potter1-0/+17
(This used to be commit 12e037dbe3d497aff2415c0a22fab20a7932ab7a)
2007-10-10r3309: Add wrapper for dcerpc_server_name() function.Tim Potter1-0/+2
(This used to be commit 2d60a04f21da9dbe32c85b11afa98df74f5fd763)
2007-10-10r3001: Expose unmarshalling functions for structures marked "public" in theTim Potter1-0/+6
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-32/+0
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-0/+8
return WERROR values. Clean up WERROR vs NTSTATUS handling a bit. (This used to be commit e6756e3ee0af3e7e98f6deaf9dc83af9aac1b586)
2007-10-10r2975: Try to emulate NT_STATUS_IS_ERR() functionality for WERRORs. ↵Tim Potter1-2/+4
Unfortunately this means enumerating all the ones we don't think are errors. (This used to be commit a079e044f0ef23c6c4307c9da35019ec3e8f1d2a)
2007-10-10r2966: Handle conversion of DATA_BLOB fields from Python in a slightly nicerTim Potter1-10/+10
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-10r2964: Add spoolss to list of wrapped client functions.Tim Potter1-0/+1
(This used to be commit 96d31ff19d2fa5b0c5a0ee23000a97cb77637968)
2007-10-10r2801: Wrapped functions that return a DOS error code can return DCERPCTim Potter1-0/+4
faults if they are badly formed. Handle this by checking the value of NTSTATUS as well as WERROR. (This used to be commit bb1be7819741f6c7dc1ee982cb2a255b6d776b79)
2007-10-10r2795: Split status code constants into a separate file.Tim Potter1-520/+1
(This used to be commit 12a3f75c1cf39c74952077cc00fd86a4e935f74b)
2007-10-10r2790: Add code to generate WERROR exceptions. Arrange inclusion of ↵Tim Potter1-3/+26
autogenerated interface files to divvy them up into pipes that return WERRORs and pipes that return NTSTATUS values. (This used to be commit 294d1ae35c09432a41e5a07a3aa1884bfb9a93be)
2007-10-10r2780: Add conversion routines for DATA_BLOB. I'm not convinced that ↵Tim Potter1-0/+29
DATA_BLOB's should be treated as scalar types though. (This used to be commit c9e96038f821783c30b5cf509334176f982403d9)
2007-10-10r2765: Allow functions containing WERROR values to be compiled.Tim Potter1-0/+1
Add winreg.i to list of extensions. (This used to be commit 6f3f6de058e806f13f48d3d1300db3784d2f470c)
2007-10-10r2559: Python ints can't hold the full range of uint32 values so store themTim Potter1-22/+43
as Python longs. Also allow shorter width integer types to be initialised from long values. Their values are truncated if they are too long. (This used to be commit e9eb231d6441774d1b5227962bbe94aa29e20995)
2007-10-10r2511: Add NT status codes.Tim Potter1-0/+520
(This used to be commit 471b13da2b0893a58977154dbe4d004d5c06aed4)
2007-10-10r2490: Some changes to take into account non-error NTSTATUS codes being ↵Tim Potter1-1/+1
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-10r2486: Use correct type checks when checking 64-bit quantities (int64, uint64,Tim Potter1-16/+16
NTTIME and HYPER_T). Also use the correct conversion routines when creating 64 bit objects. (This used to be commit f09fee92395e89c768e221728d5b0114d78f59fe)
2007-10-10r2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish.Tim Potter1-0/+10
(This used to be commit aaef6eaf6e0c38fb277d1be0617dfdff559a0115)
2007-10-10r2421: Fix test for lookupdomain for a non-existent domain.Tim Potter1-1/+8
Export NTSTATUS exception from wrapper module so it can be used by scripts. (This used to be commit 57edfd605bffcf8a0feb5ccc5ec69cf5f35b677b)
2007-10-10r2416: More argument checks. Raise an exception instead of segfaulting if aTim Potter1-1/+41
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-8/+48
type, or the argument to a to_python function isn't a dictionary. (This used to be commit 0f58ffb142a9b8c5c745b3a2c93a1659ea8282e5)
2007-10-10r2408: Tridge suggested that all the structures from misc.idl (policy handles,Tim Potter1-132/+2
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-10r2359: More consistency fixes: pass a talloc context to every function thatTim Potter1-22/+61
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-30/+39
(This used to be commit 84513e4ed14e60b4cd09fcc2e596bc72d3a8807c)
2007-10-10r2357: Start coding conversion routines for security descriptors, acls and sids.Tim Potter1-3/+56
(This used to be commit c8d13a809b5b01823a62e5868bac47e1f2f25092)
2007-10-10r2344: Return PyDict_New() in stub functions instead of Py_None to avoidTim Potter1-2/+2
crashing in garbage collector (hmm - all that was required was probably a Py_INCREF(Py_None) though). (This used to be commit a3eac318a624d214084741839faa2ad485902f6f)
2007-10-10r2336: Add another conversion function to allow union arms that contain ↵Tim Potter1-4/+4
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-10r2324: Add hand-written versions of functions from misc.idl.Tim Potter1-1/+26
(This used to be commit d6876701cc027ec2b14923e3483e0432e7011138)
2007-10-10r2299: Map a (C) NULL pointer to (Python) None and vice versa.Tim Potter1-0/+6
(This used to be commit 05cff58070b7070157aea47c5da8512145c2774a)
2007-10-10r2297: Add string conversion functions.Tim Potter1-1/+6
(This used to be commit cbfb177394aaf2a382b481ffb3152ad3fe81de5a)
2007-10-10r2295: Convert simple scalar types and policy handles between dcerpc functionTim Potter1-0/+40
call request and response structures. (This used to be commit d31d23b944b7e4ef300d75dad5038727e9133af1)
2007-10-10r2278: Add some more helper functions.Tim Potter1-10/+40
(This used to be commit 5a64449599beb7b46484f1c3aef10f7e7b878319)
2007-10-10r2256: Include autogenerated interfaces for lsa and samr pipes. Typemaps ↵Tim Potter1-1/+3
are currently not working though. (This used to be commit 55bd2dc02de13ee3da1cde20694f452df0899a9f)