1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00
Commit Graph

260 Commits

Author SHA1 Message Date
Tim Potter
a2ab6c5ef9 r2496: Check that reference parameters are not None. 2007-10-10 12:58:58 -05:00
Tim Potter
f250203a5f r2491: Handle pointers to scalars when converting to a Python dictionary (i.e
resume handles).

Remove some now unused debugging code.
2007-10-10 12:58:57 -05:00
Tim Potter
4ddcae90a2 r2490: Some changes to take into account non-error NTSTATUS codes being 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.
2007-10-10 12:58:57 -05:00
Tim Potter
46b3d4cfd8 r2428: Handle unions as [out] parameters by passing the value of the switch_is
parameter down to the various conversion functions.
2007-10-10 12:58:51 -05:00
Tim Potter
a17aaadb7d r2426: Handle pointer to scalars converting C to Python.
Peeked at parser.pm for some hints at getting array lengths right
when the length_is property is present.
2007-10-10 12:58:51 -05:00
Tim Potter
bcee386055 r2425: Found another place for a type check. When convert a dictionary value
to an array, check that the value exists and it is of list type.

Fix a typo.
2007-10-10 12:58:51 -05:00
Tim Potter
aaef6eaf6e r2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish. 2007-10-10 12:58:51 -05:00
Tim Potter
9ea5574bb1 r2422: Convert PyDict_{Get,Set}Item() calls to PyDict_{Get,Set}ItemString(). 2007-10-10 12:58:50 -05:00
Tim Potter
e135265d1d r2418: Handle a pointer to a scalar when converting a field from Python.
Handle a pointer to an array of structures when converting to Python.
2007-10-10 12:58:50 -05:00
Tim Potter
36320c6941 r2417: Add comments to the interface generator as well as some commentary in
the generated interface code.

Get rid of global variables within the perl generator code.
2007-10-10 12:58:50 -05:00
Tim Potter
fc5443af9c r2416: More argument checks. Raise an exception instead of segfaulting if a
dictionary does not contain a required key.
2007-10-10 12:58:50 -05:00
Tim Potter
0f58ffb142 r2415: Throw a TypeError exception if a scalar value doesn't have the correct
type, or the argument to a to_python function isn't a dictionary.
2007-10-10 12:58:50 -05:00
Tim Potter
9bc55de42a r2411: The other half of getting autogenerated code working using misc.idl:
use Python lists for arrays when marshaling and unmarshaling arrays.
This gets samr_SetSecurity() working.
2007-10-10 12:58:49 -05:00
Tim Potter
810bce2fe5 r2409: Convert NULL pointers to Py_None, and vice versa.
This gets samr_QuerySecurity() working again.
2007-10-10 12:58:49 -05:00
Tim Potter
160dc90921 r2408: Tridge suggested that all the structures from misc.idl (policy handles,
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).
2007-10-10 12:58:49 -05:00
Tim Potter
f88996540c r2398: Import Data::Dumper module safely so it doesn't hurt the build farm. 2007-10-10 12:58:47 -05:00
Tim Potter
945a468105 r2359: More consistency fixes: pass a talloc context to every function that
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.
2007-10-10 12:58:46 -05:00
Tim Potter
84513e4ed1 r2358: More renaming of functions to keep things consistent. 2007-10-10 12:58:46 -05:00
Tim Potter
30f068164a r2336: Add another conversion function to allow union arms that contain 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.
2007-10-10 12:58:44 -05:00
Tim Potter
f8a14e808e r2335: Zero function parameter struct so we can do a bit more testing. To be removed later.
Generate more stub code for union arms.
2007-10-10 12:58:44 -05:00
Tim Potter
a06727b792 r2325: Generate conversion stubs for IDL unions. 2007-10-10 12:58:44 -05:00
Tim Potter
8072d7f1a4 r2323: More tweaks to get things building again.
Now to get unions working as they are currently broken.
2007-10-10 12:58:44 -05:00
Tim Potter
c1dc984268 r2322: More renames of autogenerated functions so they all have approximately
the same signature.

Start to handle structures with no pointers.
2007-10-10 12:58:43 -05:00
Tim Potter
ec23bae00f r2298: Convert to and from string parameters.
Correct function name used when generating function to convert in
typemap so it is consistent with the others.
2007-10-10 12:58:41 -05:00
Tim Potter
d31d23b944 r2295: Convert simple scalar types and policy handles between dcerpc function
call request and response structures.
2007-10-10 12:58:40 -05:00
Tim Potter
e4729949c6 r2289: Autogenerate some more attractive looking stubs for converting
function argument structures and idl structures to and from Python
dictionaries.
2007-10-10 12:58:40 -05:00
Tim Potter
69710bbcb8 r2277: Generate stubs for input and output typemaps. 2007-10-10 12:58:37 -05:00
Tim Potter
55bd2dc02d r2256: Include autogenerated interfaces for lsa and samr pipes. Typemaps are currently
not working though.
2007-10-10 12:58:35 -05:00
Tim Potter
fd31ae38df r2253: Add test program, as small example of what's going on. 2007-10-10 12:58:35 -05:00
Tim Potter
68b10c4aee r2223: Include autogenerated header file for idl file we are processing with
--eparser.
2007-10-10 12:58:32 -05:00
Tim Potter
04de3edbab r2222: Generate correct function prototypes for unions marked as public. 2007-10-10 12:58:32 -05:00
Tim Potter
4e155b966c r2221: Experiment with extra properties for telling the ethereal parser what
to do.  There is a patch to the grammar and idl files for this but I
won't commit that just yet.
2007-10-10 12:58:32 -05:00
Tim Potter
a6f830cfec r2183: Tidy up naming of ethereal fields. The field names are taken from the
structure elements with underscores replaced with spaces and words
capitalised.

Fix small buglet where we confuse the name of the interface with the name
of the idl file.

Just discovered security descriptors don't display property anymore.  )-:
2007-10-10 12:58:29 -05:00
Tim Potter
604fc603da r2168: Move these files into a separate ethereal-pidl-plugin svn repository.
Not only will this allow the plugin to be built easily, but will also
get rid of the duplicate function names that muck up etags.
2007-10-10 12:58:28 -05:00
Tim Potter
ed48d13e4d r2167: Implement some stubbed out functions. 2007-10-10 12:58:28 -05:00
Andrew Tridgell
f5d004d8eb r2100: rework the dcerpc client side library so that it is async. We now
generate a separate *_send() async function for every RPC call, and
there is a single dcerpc_ndr_request_recv() call that processes the
receive side of any rpc call. The caller can use
dcerpc_event_context() to get a pointer to the event context for the
pipe so that events can be waited for asynchronously.

The only part that remains synchronous is the initial bind
calls. These could also be made async if necessary, although I suspect
most applications won't need them to be.
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
e9e5fb2cb0 r1909: nicer format
metze
2007-10-10 12:58:10 -05:00
Volker Lendecke
5dc793b2b4 r1894: Convert // to /* */ 2007-10-10 12:58:09 -05:00
Stefan Metzmacher
084845c1ab r1872: revert -r 1845 because the caling function should look at the fault_code
when it gets NT_STATUS_NET_WRITE_FAULT

metze
2007-10-10 12:58:06 -05:00
Jelmer Vernooij
189ed09840 r1867: Add README file in build/pidl/ 2007-10-10 12:58:04 -05:00
Stefan Metzmacher
0cf0c36460 r1845: map DCERPC_FAULT_LOGON_FAILURE to NT_STATUS_LOGON_FAILURE
metze
2007-10-10 12:58:01 -05:00
Jelmer Vernooij
ef0fc269f0 r1838: Updates from the airplane:
- IDL fixes + adding comments
 - Start working on dcom infrastructure
2007-10-10 12:58:00 -05:00
Tim Potter
197fb3a264 r1826: Implement some stub functions: ndr_pull_{save,restore,set_offset}()
Implement ndr_pull_relative()

Call ndr_pull_uintX() for ndr_pull_intX()

Generate warnings for unimplemented functions pulling NTTIME and HYPER_T.

Implement ndr_pull_dom_sid2()

We now dissect a lot more of the samr torture test without errors.
2007-10-10 12:58:00 -05:00
Tim Potter
1d0bde1c77 r1815: Update parser for recent changes to perl parser. 2007-10-10 12:57:59 -05:00
Jelmer Vernooij
85fb26a05d r1786: Add support for the 'helpstring' attribute on interfaces 2007-10-10 12:57:56 -05:00
Tim Potter
456a4d1d72 r1767: Checkin of workarea. Sorry Jelmer but this overwrites some of your changes
which I will have to merge in later on.

This latest version of eparser tries to stick more closely to the original
parser.pm.
2007-10-10 12:57:55 -05:00
Andrew Tridgell
ecb7378bbc r1757: much simpler (and smaller, faster etc) way of doing relative pointers
in pidl. This mechanism should be much easier to extend to the
"retrospective subcontexts" that jelmer needs.

also produced more standards complient full-pointer offsets. This
keeps ethereal happy with decoding our epmapper frames.
2007-10-10 12:57:54 -05:00
Jelmer Vernooij
45c3d0036b r1736: - Pidl updates:
- Support for "object oriented" interfaces in pidl
 - Support for inherited interfaces in pidl
 - Simplification of the support for properties on an interface
- Start on dcom rpc torture tests
2007-10-10 12:57:51 -05:00
Jelmer Vernooij
547f860285 r1703: - Lots of RPC updates, adding new pipes and protocols.
- More updates/fixes to the ethereal parser generator
2007-10-10 12:57:49 -05:00
Jelmer Vernooij
8cd33b6cce r1701: Bugfixes to Tim's ethereal parser generator 2007-10-10 12:57:49 -05:00