summaryrefslogtreecommitdiffstats
path: root/pidl/lib/Parse/Pidl/Samba4/Python.pm
Commit message (Collapse)AuthorAgeFilesLines
* pidl:Samba4/Python: add interface.abstract_syntax() to each interfaceStefan Metzmacher2014-03-281-0/+39
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* pidl: add more mapped typesAndrew Tridgell2012-02-081-1/+7
| | | | | | | | when we #define one type to another, we need special handling in the python generator Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Feb 8 04:50:06 CET 2012 on sn-devel-104
* pidl:Samba4/Python: add an optional 'allow_remaining' argument to ↵Stefan Metzmacher2012-01-091-3/+26
| | | | | | | | __ndr_unpack__() hooks Thanks to Amitay Isaacs <amitay@gmail.com> for the help with this. metze
* pytalloc: Use consistent prefix for functions, add ABI file.Jelmer Vernooij2011-08-101-18/+18
|
* pidl:Samba4/Python: PyArg_ParseTuple with "s#" returns 'int' instead of 'size_t'Stefan Metzmacher2011-08-081-2/+7
| | | | | | If we pass variable references we don't get implicit casting! metze
* pidl:Python: don't generate functions with pipe elementsStefan Metzmacher2011-03-101-1/+10
| | | | metze
* pidl Add support for uid_t and gid_t typesAndrew Bartlett2011-03-011-2/+2
| | | | | | | | | These are mapped to uint64_t, which should be big enough. This is proposed to be used for internal Samba representations, where it would be more painful to convert all the callers to an uint64_t calling convention. Andrew Bartlett
* pidl:Samba4/Python: fix memory leak in _ndr_print functionsStefan Metzmacher2011-01-061-1/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 6 14:34:31 CET 2011 on sn-devel-104
* pidl:Samba4/Python: avoid ';;' in generated C code.Stefan Metzmacher2011-01-051-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 5 11:10:34 CET 2011 on sn-devel-104
* pidl:Samba4/Python: fix segfault when setting pointers to scalars.Stefan Metzmacher2011-01-051-0/+3
| | | | metze
* Use fail_on_null.Jelmer Vernooij2011-01-031-1/+1
|
* pidl: Add prototype for init function in pidl-generated Python bindings.Jelmer Vernooij2010-12-181-0/+1
|
* pidl: Use system pytalloc if possible.Jelmer Vernooij2010-12-181-1/+1
|
* pidl:Samba4/Python.pm: ignore "SUBCONTEXT" levelsStefan Metzmacher2010-12-101-9/+21
| | | | | | | These are only important for the NDR marshalling and not for the python bindings. metze
* pidl:Samba4/Python.pm: don't handle scalar reference types specialStefan Metzmacher2010-12-101-10/+9
| | | | | | | The only special thing is that don't need get_value_of(), all other checks are needed. metze
* pidl:Samba4/Python.pm: use PyString_FromStringOrNULL() from pyrpc_utilStefan Metzmacher2010-12-081-6/+6
| | | | metze
* pidl/python: Allow import of talloc, even though it doesn't live in theJelmer Vernooij2010-12-011-10/+22
| | | | samba.dcerpc. namespace.
* pidl: Allow more flexibility importing modules using convenience function.Jelmer Vernooij2010-12-011-7/+9
|
* pidl: Base new objects off of talloc object.Jelmer Vernooij2010-12-011-4/+4
|
* pidl: use a union assignment instead of memmoveAndrew Tridgell2010-11-051-2/+4
| | | | | | this means we don't lose type checking Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* ndr dns: Add simple parserKai Blin2010-10-231-0/+9
|
* dnsp: Parse TXT recordsKai Blin2010-10-041-0/+5
|
* ndr: Implement push function for IPv6 addressesKai Blin2010-10-041-0/+6
| | | | | Thanks to Julien Kerihuel for providing the patch that pushed me to finish my own IPv6 patches.
* pidl: Allow longs for bitmasks.Jelmer Vernooij2010-10-031-13/+24
|
* pidl: simplify some generated code.Jelmer Vernooij2010-10-031-4/+2
|
* pidl/Python: use has_property($d, "noopnum") helper functionStefan Metzmacher2010-09-281-1/+1
| | | | metze
* pidl/Python: remove todo handling from PythonFunction(), it's done by the callerStefan Metzmacher2010-09-281-15/+6
| | | | metze
* pytalloc: Add default compare function.Jelmer Vernooij2010-09-211-0/+1
|
* pidl/python: Allow passing in UTF8 string objects as well as unicodeJelmer Vernooij2010-09-201-1/+13
| | | | | | objects for IDL strings. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-pild-python: Fix assignments - even though we reference the mem_ctxJelmer Vernooij2010-09-201-2/+8
| | | | of an object we still use the actual ptr.
* pidl: Fix segfault when accessing unicode objects.Jelmer Vernooij2010-09-201-1/+10
|
* s4-pidl-python: use correct talloc pointer when allocating subobjects.Jelmer Vernooij2010-09-201-18/+13
|
* pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.Jelmer Vernooij2010-09-031-10/+30
|
* pidl: Factor out generation of interface type name.Jelmer Vernooij2010-09-031-4/+5
|
* pidl: cope with dom_sid28 in python generatorAndrew Tridgell2010-09-021-1/+1
| | | | treated the same as dom_sid2
* pidl-python: cope with NULL pointers in more placesAndrew Tridgell2010-09-021-7/+7
| | | | NULL is converted to Py_None
* pidl-python: ensure we allocate ref ptrs before useAndrew Tridgell2010-08-261-1/+5
| | | | this fixes a crash on samba4.samr.python in the build farm
* s4-python: reference substructures onto the parent structureAndrew Tridgell2010-08-251-15/+23
| | | | | | | when a python object that is part of a parent structure is created, we should reference it on the parent structure. This ensures that when the child object goes out of scope that the parent structure is still valid
* pidl-python: fixed the docstrings for ndr_print, ndr_pack and ndr_unpackAndrew Tridgell2010-08-231-3/+3
|
* pidl: cope with bad type conversions in unionsAndrew Tridgell2010-08-221-1/+9
| | | | | | This prevents a crash when converting bad types in NDR unions Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* pidl: added a __ndr_print__() method on python NDR objectsAndrew Tridgell2010-08-221-0/+13
| | | | | | This allows you to print a returned NDR structure using s.__ndr_print__() which gives an easy view of complex structures, such as those from netlogon
* pidl: added a new type dnsp_nameAndrew Tridgell2010-08-051-0/+6
| | | | | | | | This is a name type used in DNS where each DNS component maps to a length byte followed by the string We want these to map to a char *, which is why we need to do this in PIDL
* pidl: Finish to fix the python generated code for 64bit integersMatthieu Patou2010-06-251-3/+30
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pidl/python: Make sure to always increment reference counter when usingJelmer Vernooij2010-06-251-1/+3
| | | | Py_None.
* pidl/python: Increment reference counter on Py_None to prevent us fromJelmer Vernooij2010-06-241-0/+2
| | | | accidentally deallocating it.
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-2/+2
|
* pidl: Fix the generation of py helper for 64 bit integerMatthieu Patou2010-05-021-1/+5
| | | | | | | | | Up to now the generation of code for python helpers dealing with 64 bits (NTTIME,hyper, ...) was broken because they were assumed to be Int (PyInt_From ...) as Integer is always 32 bits in python. This fix use PyLong and states that the incomming data is a long long as it should be 64 bit at least. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pidl:Samba4/Python: librpc/rpc/dcerpc.h isn't needed anymoreStefan Metzmacher2010-03-231-1/+0
| | | | metze
* pidl:Samba4/Python: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-181-2/+2
| | | | metze
* pidl:Samba4/Python: remove compiler warningsStefan Metzmacher2010-03-181-1/+1
| | | | metze