Stefan Metzmacher
2ba9453e9f
pidl:NDR/Client: avoid useless memcpy()
...
If the src and dest pointer of memcpy would be the same
we should avoid it in order to avoid valgrind warnings.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-01-07 08:37:38 +01:00
Stefan Metzmacher
f50b561336
pidl:NDR/Client: fix dcerpc_function() with [out,ref] pointers
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-01-07 08:37:37 +01:00
Stefan Metzmacher
662fc2de8c
pidl:NDR/Client: simplify tevent_req_nterror() usage
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-01-07 08:37:37 +01:00
Stefan Metzmacher
02c34fe4e5
pidl:NDR/Client: add missing TALLOC_FREE(subreq) after dcerpc_binding_handle_call_recv()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-01-07 08:37:37 +01:00
Stefan Metzmacher
6771ade5e7
pidl:Samba4/NDR/Client: fix arguments to warning()
...
We want the file:line: information displayed.
metze
2011-03-11 11:02:23 +01:00
Stefan Metzmacher
d79fb9098b
pidl: add support for 'pipe' at the NDR layer
...
metze
2011-03-10 14:31:19 +01:00
Stefan Metzmacher
91ef694351
pidl:NDR/Client: skip all functions if pipe elements are used
...
We don't support pipe at the dcerpc level yet.
metze
2011-03-10 14:31:18 +01:00
Stefan Metzmacher
f383497436
pidl:NDR/Client: skip sync functions if pipe elements are used
...
metze
2011-03-10 14:31:18 +01:00
Stefan Metzmacher
1a96ec2109
pidl:Samba4/NDR/Client: remove compat mode for dcerpc_pipe based bindings
...
The only consumer "openchange" uses the dcerpc_binding_handle based
functions now.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan 21 08:16:25 CET 2011 on sn-devel-104
2011-01-21 08:16:25 +01:00
Stefan Metzmacher
3fa29cdd94
pidl:NDR/Client: make the generated code look a bit nicer
...
metze
2010-09-28 23:06:48 +02:00
Stefan Metzmacher
65c5278f4d
pidl:NDR/Client.pm: remove unreached code
...
metze
2010-09-28 23:06:42 +02: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
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
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
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
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
Stefan Metzmacher
a8e81c25eb
pidl:Samba4/NDR/Client: map NT_STATUS_NET_WRITE_FAULT to the matching NT_STATUS_RPC_* code
...
metze
2010-04-15 09:34:03 +02:00
Stefan Metzmacher
e230c8dd24
pidl:Samba4/Client: don't mix rpc and application NTSTATUS errors anymore for the new bindings
...
The new dcerpc_binding_handle based client stubs don't mix error codes anymore,
while the old dcerpc_pipe based ones still do to keep OpenChange happy for now.
metze
2010-03-29 15:35:53 +02:00
Stefan Metzmacher
d0662ac4d0
pidl:Samba4/NDR/Client: make the old rpc_request style async functions static
...
metze
2010-03-12 15:25:49 +01:00
Stefan Metzmacher
15d9675b04
pidl:Samba4/NDR/Client: generate stubs for dcerpc_binding_handle abstraction
...
metze
2010-03-12 15:25:41 +01:00
Stefan Metzmacher
454bedcb80
pidl:Samba4/NDR/Client: don't generate client stubs for function marked as [todo]
...
metze
2010-03-12 15:25:40 +01:00
Stefan Metzmacher
20980eb787
pidl:NDR/Client.pm: generate explicit _recv functions
...
metze
2010-03-01 16:11:51 +01:00
Stefan Metzmacher
9930e5b3db
pidl:Samba4/client: fix dcerpc_ndr_request_send() callers
...
For samba4 you need one of this:
samba/source4# make full_idl
samba/source4# make clean
samba# git clean -x -f
metze
2009-04-20 18:17:09 +02:00
Stefan Metzmacher
ed98cba5ab
pidl:Samba4/client: use dcerpc_ndr_request() for sync requests
...
metze
2009-04-20 18:15:01 +02:00
Jelmer Vernooij
d7c7b31bba
Only define _GNU_SOURCE if it's not defined yet.
2009-02-25 16:54:35 +01:00
Jelmer Vernooij
79190992b3
Move pidl to top-level directory.
2008-09-17 17:12:27 +02:00