summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl/Samba4/Python.pm
AgeCommit message (Collapse)AuthorFilesLines
2010-10-03pidl: simplify some generated code.Jelmer Vernooij1-4/+2
2010-09-28pidl/Python: use has_property($d, "noopnum") helper functionStefan Metzmacher1-1/+1
metze
2010-09-28pidl/Python: remove todo handling from PythonFunction(), it's done by the callerStefan Metzmacher1-15/+6
metze
2010-09-21pytalloc: Add default compare function.Jelmer Vernooij1-0/+1
2010-09-20pidl/python: Allow passing in UTF8 string objects as well as unicodeJelmer Vernooij1-1/+13
objects for IDL strings. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-20s4-pild-python: Fix assignments - even though we reference the mem_ctxJelmer Vernooij1-2/+8
of an object we still use the actual ptr.
2010-09-20pidl: Fix segfault when accessing unicode objects.Jelmer Vernooij1-1/+10
2010-09-20s4-pidl-python: use correct talloc pointer when allocating subobjects.Jelmer Vernooij1-18/+13
2010-09-03pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.Jelmer Vernooij1-10/+30
2010-09-03pidl: Factor out generation of interface type name.Jelmer Vernooij1-4/+5
2010-09-02pidl: cope with dom_sid28 in python generatorAndrew Tridgell1-1/+1
treated the same as dom_sid2
2010-09-02pidl-python: cope with NULL pointers in more placesAndrew Tridgell1-7/+7
NULL is converted to Py_None
2010-08-26pidl-python: ensure we allocate ref ptrs before useAndrew Tridgell1-1/+5
this fixes a crash on samba4.samr.python in the build farm
2010-08-25s4-python: reference substructures onto the parent structureAndrew Tridgell1-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
2010-08-23pidl-python: fixed the docstrings for ndr_print, ndr_pack and ndr_unpackAndrew Tridgell1-3/+3
2010-08-22pidl: cope with bad type conversions in unionsAndrew Tridgell1-1/+9
This prevents a crash when converting bad types in NDR unions Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-22pidl: added a __ndr_print__() method on python NDR objectsAndrew Tridgell1-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
2010-08-05pidl: added a new type dnsp_nameAndrew Tridgell1-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
2010-06-25pidl: Finish to fix the python generated code for 64bit integersMatthieu Patou1-3/+30
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-25pidl/python: Make sure to always increment reference counter when usingJelmer Vernooij1-1/+3
Py_None.
2010-06-24pidl/python: Increment reference counter on Py_None to prevent us fromJelmer Vernooij1-0/+2
accidentally deallocating it.
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-2/+2
2010-05-02pidl: Fix the generation of py helper for 64 bit integerMatthieu Patou1-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>
2010-03-23pidl:Samba4/Python: librpc/rpc/dcerpc.h isn't needed anymoreStefan Metzmacher1-1/+0
metze
2010-03-18pidl:Samba4/Python: make use of dcerpc_binding_handle stubsStefan Metzmacher1-2/+2
metze
2010-03-18pidl:Samba4/Python: remove compiler warningsStefan Metzmacher1-1/+1
metze
2010-03-18pidl:Samba4/Python: remove compiler warnings when using -Wc++Stefan Metzmacher1-1/+1
metze
2010-03-12pidl:Samba/Python: don't generate methods for functions marked as [todo]Stefan Metzmacher1-0/+1
metze
2010-02-09pidl - Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer1-4/+0
This was needed only by Python 2.3 which we no longer support.
2010-01-21pidl: Include Python.h first, to avoid warnings.Jelmer Vernooij1-1/+1
2009-11-20Revert "Work around ndr_unpack failing on structures with relative pointers."Stefan Metzmacher1-18/+1
This reverts commit c2cdb4ad5c9398ef0d3310613107999f8d33c7ce. It's not needed anymore. metze
2009-09-28pidl: Avoid using talloc_free as function pointer, since it may be aJelmer Vernooij1-2/+2
macro.
2009-09-26pidl(s4.python): Fix arguments to PyCObject_FromVoidPtr for string_array's.Jelmer Vernooij1-1/+1
Caught by Guenther.
2009-07-31pidl:Samba4/Python: fix mapType() => mapTypeName()Stefan Metzmacher1-1/+1
This tries to fix commit 8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd. The problem was: Undefined subroutine &Parse::Pidl::Samba4::Python::mapType called at /home/metze/master4/pidl/lib/Parse/Pidl/Samba4/Python.pm line 848. Jelmer: please check this. metze
2009-07-30python: Cope with the dom_sid2 alias in pidl's python generating code.Jelmer Vernooij1-2/+6
This fixes some problems in the samr Python bindings that pidl was (correctly) warning about.
2009-07-30DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.Jelmer Vernooij1-1/+1
Use py_talloc_reference in DCE/RPC code, fixes access to SAMR pipe.
2009-07-19pidl: Print actual type names in errors about unknown origins rather than ↵Jelmer Vernooij1-15/+15
'HASH(0x....)'.
2009-04-21Revert "pidl/python: Add explicit casts, fixing implicit cast warnings."Andrew Bartlett1-1/+1
It was creating new objects with bogus data. This reverts commit 210830392999691469a55f4f5e2032abcdb20b8a.
2009-02-25Work around ndr_unpack failing on structures with relative pointers.Andrew Bartlett1-1/+18
This disgusting hack works around the fact that ndr_pull_struct_blob_all will always fail on structures with relative pointers. So, map ndr_unpack to ndr_pull_struct_blob_all only if we don't have any relative pointers in this structure. Andrew Bartlett
2009-01-22pidl/python: Add explicit casts, fixing implicit cast warnings.Michael Adam1-1/+1
Michael
2009-01-21pidl/python: Add explicit casts, fixes warnings about casts when enabled.Jelmer Vernooij1-4/+4
2009-01-08Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij1-1/+5
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-07s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty1-1/+1
2009-01-06py: Properly increase the reference counter of Py_None.Jelmer Vernooij1-1/+1
2008-12-29pidl: don't generate invalid C codeStefan Metzmacher1-1/+3
When we don't know how to handle a type for the python bindings, we should not generate invalid C code. Jelmer: please fix do the full fix for this. metze
2008-12-22pidl/python: Factor out connect code rather than duplicating it in eachJelmer Vernooij1-82/+2
Python module.
2008-12-22pidl/python: Skip unknown types, rather than dieing.Jelmer Vernooij1-12/+29
2008-12-22Import types from other Python mechanisms using the Python import mechanism, ↵Jelmer Vernooij1-34/+67
to ensure they are initialized.
2008-12-21Simplify customization of pidl-generated Python modules.Jelmer Vernooij1-19/+30
2008-12-21Allow providing extra module-level Python functions.Jelmer Vernooij1-0/+6