Stefan Metzmacher
3a0fa3605b
pidl:Samba3/ServerNDR: skip DCERPC pipe elements and leave NULL pointers.
...
We don't support them anyway, but this lets us adding them to the idl
file and only ignore it on the server.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-01-07 08:37:37 +01:00
Andreas Schneider
fae6091f1d
s3-rpc_server: Make it possible to use more rpc exceptions.
2012-07-06 10:00:56 +02:00
Günther Deschner
9115615663
pidl: add an include for "ntdomain.h" for s3 server stubs.
...
Guenther
2011-03-30 01:13:09 +02:00
Stefan Metzmacher
29bd658634
pidl:Samba3/ClientNDR: don't generate stubs for functions with pipe elements
...
metze
2011-03-10 14:31:17 +01:00
Stefan Metzmacher
4b068bb919
pidl:Samba3/ServerNDR: correctly initialise ndr_push struct
...
We need to copy the ptr_count from the ndr_pull struct to the ndr_push struct,
otherwise we'll reuse full pointer ids, which will cause the client to
fail in the ndr unmarshalling.
metze
2011-01-26 08:51:46 +01:00
Günther Deschner
df7523c792
pidl: fix minor typo in s3 server generation.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 11 15:12:57 UTC 2010 on sn-devel-104
2010-10-11 15:12:57 +00:00
Stefan Metzmacher
a701484230
pidl:Samba3/ClientNDR: remove unused ParseOutputArgument function
...
metze
2010-08-26 13:29:21 +02:00
Volker Lendecke
b3f9345d76
Fix a typo
2010-08-16 21:14:25 +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
a2e1f54b3e
pidl:Samba3/ClientNDR: ignore "todo" functions
...
metze
2010-08-12 14:31:16 +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
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
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
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
Günther Deschner
0798ddf63a
pidl: add NDR_PRINT_DEBUG output to generated s3 server dispatch tables.
...
This dramatically helps tracking and debugging usage of the
rpc_pipe_open_internal users.
Guenther
2010-05-08 23:00:20 +02:00
Günther Deschner
094ee6cb43
pidl: indent cosmetics for s3 server stubs.
...
Guenther
2010-05-03 14:44:57 +02:00
Günther Deschner
79f82998b1
pidl: fix handling of output arguments in s3 client stubs.
...
a20e095 used (uint8_t) instead of (uint8_t *).
Guenther
2009-11-27 16:15:33 +01:00
Stefan Metzmacher
a20e095b1f
pidl:Samba3/ClientNDR: $size can be 'foo / 2' so we need to add '(' and ')'
...
foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.
metze
2009-11-26 11:47:42 +01:00
Volker Lendecke
e181b88978
Revert "s3: Do not reference ndr_table_<pipe> in the cli_ routines directly"
...
This reverts commit daa964013bc5d036f4da571ce22c0052ef40943a.
2009-11-08 19:43:47 +01:00
Volker Lendecke
47455b4d1a
Revert "s3: Do not reference the ndr_tables in the server calls directly"
...
This reverts commit 98fb71782e05ae72cd6abeb38b6e0b96a50c1761.
2009-11-08 19:43:46 +01:00
Volker Lendecke
82c35e460e
Revert "s3: Do not reference ndr_table when calling rpc_srv_register"
...
This reverts commit 494b2aff8826947e3bd556aecb175746163da485.
2009-11-08 19:43:46 +01:00
Volker Lendecke
494b2aff88
s3: Do not reference ndr_table when calling rpc_srv_register
2009-11-08 13:12:15 +01:00
Volker Lendecke
98fb71782e
s3: Do not reference the ndr_tables in the server calls directly
...
This involves storing the interface table in the pipes_struct
2009-11-08 13:12:14 +01:00
Volker Lendecke
daa964013b
s3: Do not reference ndr_table_<pipe> in the cli_ routines directly
2009-11-08 13:12:13 +01:00
Volker Lendecke
5cdee7ae05
s3: Do the printing for DEBUGLEVEL>=10 centrally
...
12 insertions(+), 10651 deletions(-)
I think that says it all :-)
2009-11-07 11:07:37 +01:00
Stefan Metzmacher
2ed71264e1
pidl:Samba3/ClientNDR: add support tevent_req based _send/recv() client functions
...
metze
2009-07-31 14:10:14 +02:00
Stefan Metzmacher
28a4656738
pidl:Samba3/ClientNDR: rename ParseFunction => ParseFunctionSync and add ParseFunction as glue
...
This prepares the following ParseFunctionAsync* commits.
metze
2009-07-31 12:49:47 +02:00
Stefan Metzmacher
6a1ff90708
pidl:Samba3/ClientNDR: allow passing optional variable prefixes to ParseOutputArgument()
...
metze
2009-07-31 12:49:46 +02:00
Jelmer Vernooij
54a2f51d57
pidl: Print proper errors when arrays don't have a specified size rather than spewing pages of perl warnings.
2009-07-19 20:42:52 +02:00
Tim Prouty
7168cf440e
pidl: Fix a const build warning in the samba3 merged build
...
../librpc/gen_ndr/cli_spoolss.c: In function `rpccli_spoolss_EnumPrinterData':
../librpc/gen_ndr/cli_spoolss.c:3400: warning: passing arg 1 of `memcpy' discards qualifiers from pointer target type
This is a very similar fix to:
2337f402f0f2fd6c1fa077b1b35347905a38c715
2009-02-07 00:47:32 -08:00
Günther Deschner
2bbe0c2859
pidl: return early when AllocOutVar() in s3 server generator has nothing to do.
...
Jelmer, Metze, please check.
Guenther
2009-02-06 18:53:40 +01:00
Michael Adam
842d24f23d
pidl: reduce implicit cast warnings in gen_ndr server code
...
Michael
2009-01-22 08:16:54 +01:00
Jelmer Vernooij
11a25f9050
Allow calling DCE/RPC server implementations directly using
...
rpc_pipe_client.
2009-01-21 14:05:51 +01:00
Volker Lendecke
125696b73d
Pass the full ndr_interface_table into the s3 rpcserver when registering
2009-01-09 23:17:57 +01:00
Jelmer Vernooij
9692c71aa1
Make some fatal errors non-fatal. This means we generate invalid code in
...
some cases, but we do print errors. We don't use all generated code yet at the
moment, so this isn't much of a problem.
2008-12-16 18:02:14 +01:00
Günther Deschner
2865be8a1c
pidl: fix generated s3-server in,out,ref qualifiers that are used for buffer allocation.
...
Guenther
2008-11-19 21:50:02 +01:00
Günther Deschner
216c788b0c
pidl: skip generation of noopnum functions in generated s3 server.
...
Guenther
2008-11-15 00:32:55 +01:00
Günther Deschner
cf06b75f0a
pidl: do not generate cli_ functions for noopnum flaged functions.
...
Guenther
2008-11-15 00:32:55 +01:00
Jelmer Vernooij
9f2ed1e00f
Share RPC binding string utility functions.
2008-10-12 19:05:46 +02:00
Günther Deschner
44f7c1c216
pidl: fix samba3 server wrt to samba4 ndr_pull_init_blob protype.
...
this is in preparation for the final nbt merge.
Guenther
2008-09-23 23:34:27 +02:00
Jelmer Vernooij
79190992b3
Move pidl to top-level directory.
2008-09-17 17:12:27 +02:00