Jelmer Vernooij
0bc53f7d9f
pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.
2010-09-03 02:39:38 +02:00
Jelmer Vernooij
c5449c9298
pidl: Factor out generation of interface type name.
2010-09-03 00:35:29 +02:00
Andrew Tridgell
71f2ebcae0
pidl: cope with dom_sid28 in python generator
...
treated the same as dom_sid2
2010-09-02 13:37:07 +10:00
Andrew Tridgell
58d92cefe2
pidl-python: cope with NULL pointers in more places
...
NULL is converted to Py_None
2010-09-02 13:37:07 +10:00
Stefan Metzmacher
831611e221
pidl:Samba4/NDR/Client: support argument based stubs for [in,out,string]
...
metze
2010-08-28 10:59:20 +02:00
Stefan Metzmacher
94faf0ccbe
pidl:NDR: [in,out,string] doesn't need to pointers
...
metze
2010-08-28 10:59:19 +02:00
Stefan Metzmacher
aa3b75ad1f
pidl:Samba4/NDR/Client: correctly copy [out,charset()] buffers
...
If the conversion from CH_UTF16 to CH_UNIX uses multi-byte characters
in CH_UNIX, we should not silently truncate the string, but return
an error.
metze
2010-08-28 10:59:19 +02:00
Stefan Metzmacher
eeebaa63f1
pidl:Samba4/NDR/Client: fix skip reason for unsized arrays
...
metze
2010-08-28 10:59:18 +02:00
Andrew Tridgell
9cb771a4a0
pidl-python: ensure we allocate ref ptrs before use
...
this fixes a crash on samba4.samr.python in the build farm
2010-08-26 22:50:20 +10:00
Stefan Metzmacher
a701484230
pidl:Samba3/ClientNDR: remove unused ParseOutputArgument function
...
metze
2010-08-26 13:29:21 +02:00
Andrew Tridgell
4f8087cdb9
s4-python: reference substructures onto the parent structure
...
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-25 23:05:05 +10:00
Andrew Tridgell
895064000d
pidl-python: fixed the docstrings for ndr_print, ndr_pack and ndr_unpack
2010-08-23 15:55:38 +10:00
Andrew Tridgell
34b8615574
pidl: cope with bad type conversions in unions
...
This prevents a crash when converting bad types in NDR unions
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-22 14:57:34 +10:00
Andrew Tridgell
5a025c82f5
pidl: added a __ndr_print__() method on python NDR objects
...
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-22 14:57:34 +10:00
Volker Lendecke
b3f9345d76
Fix a typo
2010-08-16 21:14:25 +02:00
Stefan Metzmacher
b0b73ca041
pidl:Samba4/NDR/Client.pm: correctly copy fixed size out arrays
...
metze
2010-08-16 10:08:45 +02:00
Michael Adam
045f4c96d5
pidl: fix printing of server side ndr request debug messages
...
The macros NDR_PRINT_IN_DEBUG and NDR_PRINT_OUT_DEBUG are made for
the client side. For the server side, the NDR_SET_VALUES flag needs
to be added for the OUT struct and not for the IN struct, otherwise,
the OUT part can print uninitialized data and the IN part may
recalculate string lengths illegally.
2010-08-13 23:50:41 +02:00
Stefan Metzmacher
5130e664b9
pidl:Samba3/ClientNDR: implement rpccli_ stubs on top of dcerpc_ stubs
...
metze
2010-08-12 14:31:23 +02:00
Stefan Metzmacher
51fb4c3860
pidl:Samba4/NDR/Client: add sync dcerpc_pipe based stubs as compat for OpenChange
...
This will activate the compat wrappers for all functions of an interface:
#define DCERPC_IFACE_MYPROTO_COMPAT 1
#include <ndr_myproto_c.h>
This will activates the compat wrappers just for specific functions:
#define DCERPC_CALL_MYFN1_COMPAT 1
#define DCERPC_CALL_MYFN2_COMPAT 1
#include <ndr_myproto_c.h>
metze
2010-08-12 14:31:20 +02:00
Stefan Metzmacher
719981adfd
pidl:Samba4/NDR/Client: add non struct base dcerpc_binding_handle client stubs
...
metze
2010-08-12 14:31:20 +02:00
Stefan Metzmacher
62297dff8f
pidl:Samba4/NDR/Client: convert code to $self->pidl()
...
metze
2010-08-12 14:31:19 +02:00
Stefan Metzmacher
570eefc57a
pidl:Samba4/NDR/Client: s/interface/if/
...
metze
2010-08-12 14:31:19 +02:00
Stefan Metzmacher
76691e9eaf
pidl:Samba4/NDR/Client: make use of the new dcerpc_binding_handle_call() infrastructure
...
metze
2010-08-12 14:31:18 +02:00
Stefan Metzmacher
db89fdac73
pidl:Samba4/NDR/Client: remove old dcerpc_pipe based sync stubs
...
They're unused in Samba and only used by OpenChange.
I'll add a compat functions for OpenChange later.
metze
2010-08-12 14:31:18 +02:00
Stefan Metzmacher
a2e1f54b3e
pidl:Samba3/ClientNDR: ignore "todo" functions
...
metze
2010-08-12 14:31:16 +02:00
Stefan Metzmacher
a22989a54a
pidl:NDR: correctly handle no pointer bracket arrays with 'string'
...
metze
2010-08-09 19:39:10 +02:00
Stefan Metzmacher
0a7f749bc8
pidl:NDR: correctly handle bracket arrays with 'string'
...
metze
2010-08-08 11:05:19 +02:00
Stefan Metzmacher
33d1879d5b
pidl: Samba3/ClientNDR - Correctly copy arrays, if r.out.size < r.in.size.
...
metze
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-08-06 14:20:08 +02:00
Andrew Tridgell
a41dffcb6a
pidl: added a new type dnsp_name
...
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-08-05 17:31:29 +10:00
Andreas Schneider
c1e81686af
pidl: Use struct pipes_struct.
2010-07-28 10:39:22 +02:00
Andreas Schneider
5cefbfef26
s3-rpc_server: Added callbacks for init and shutdown of a rpc service.
...
This adds two callback function for each rpc service. One is for
initialisation and the other for shutdown. rpc_<service>_unregister()
needs to be called to execute the shutdown function.
2010-07-19 12:59:18 +02:00
Simo Sorce
100d37fc46
s3-dcerpc: Use DATA_BLOB for pipes_struct input data
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Simo Sorce
31b59bbf99
s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOB
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:16 +02:00
Günther Deschner
690ed0c5e2
s3-rpc: when using rpc_pipe_open_internal, make sure to go through NDR.
...
Otherwise a lot of information that is usually generated in the ndr_push remains
in an uninitialized state.
Guenther
2010-07-08 16:35:26 +02:00
Günther Deschner
1dcf0e917e
pidl: s3 server stubs: make sure LIBNDR_FLAG_BIGENDIAN is set when negotiated.
...
Guenther
2010-07-05 18:06:30 +02:00
Matthieu Patou
7703b89ae5
pidl: Finish to fix the python generated code for 64bit integers
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-25 11:33:16 +02:00
Jelmer Vernooij
700fcfbc63
pidl/python: Make sure to always increment reference counter when using
...
Py_None.
2010-06-25 00:16:18 +02:00
Jelmer Vernooij
4a75cb9cd5
pidl/python: Increment reference counter on Py_None to prevent us from
...
accidentally deallocating it.
2010-06-24 23:17:51 +02:00
Stefan Metzmacher
9e3511ef1c
pidl/wscript: build manpages in build group 'final'
...
So that waf --target=smbtorture doesn't build them
metze
2010-06-17 09:11:58 +02:00
Stefan Metzmacher
b0b2b4ff8b
pidl/wscript: only try to build pidl manpages if pod2man is available
...
metze
2010-06-17 09:11:57 +02:00
Stefan Metzmacher
e80f576db6
pidl/wscript: call pod2man with the detected perl version
...
Some systems like SLES11 have a broken perl path in pod2man.
metze
2010-06-17 09:11:57 +02:00
Jelmer Vernooij
65ca3e4ee9
pidl-waf: Avoid relying on MakeMaker when installing pidl manpages.
2010-06-16 18:25:04 +02:00
Günther Deschner
bd4bbd9beb
pidl: make sure to fill in cli->pipes_struct->hdr_req.opnum in s3 server dispatch tables.
...
Guenther
2010-06-16 12:15:24 +02:00
Jelmer Vernooij
2c125595fb
waf: Fix installation of pidl manapges.
2010-06-16 00:05:53 +02:00
Andrew Bartlett
f5f184a77c
pidl: Allow new property 'no_srv_register'.
...
This Samba-only property prevents pild from emitting the
rpc_wbint_init function, which causes problems because it needs
rpc_srv_register().
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 17:17:29 +02:00
Jelmer Vernooij
b8268cf7b0
s3: Remove use of iconv_convenience.
2010-05-18 11:45:31 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Julien Kerihuel
9cddf891ad
Choose between local tevent_status.h header file and installed one
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-12 19:30:56 +02:00
Björn Jacke
1a441113ef
not all versions of env like more than one argument...
2010-05-11 20:46:19 +02:00
Björn Jacke
5d5e3920dc
pidl: fix build on systems that don't have perl in /usr/bin/
2010-05-11 19:13:21 +02:00