svn commit: samba r24535 - in branches/SAMBA_4_0/source: librpc/ndr
librpc/rpc librpc/tools pidl/lib/Parse/Pidl/Samba4/NDR
rpc_server/remote scripting/ejs
metze at samba.org
metze at samba.org
Sat Aug 18 10:30:44 GMT 2007
Author: metze
Date: 2007-08-18 10:30:40 +0000 (Sat, 18 Aug 2007)
New Revision: 24535
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24535
Log:
rename struct dcerpc_interface_call -> struct ndr_interface_call
and move it to librpc/ndr/libndr.h
metze
Modified:
branches/SAMBA_4_0/source/librpc/ndr/libndr.h
branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c
branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h
branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
branches/SAMBA_4_0/source/librpc/tools/ndrdump.c
branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
branches/SAMBA_4_0/source/rpc_server/remote/dcesrv_remote.c
branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c
Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/libndr.h
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/libndr.h 2007-08-18 08:19:19 UTC (rev 24534)
+++ branches/SAMBA_4_0/source/librpc/ndr/libndr.h 2007-08-18 10:30:40 UTC (rev 24535)
@@ -290,6 +290,15 @@
extern const struct ndr_syntax_id ndr_transfer_syntax;
extern const struct ndr_syntax_id ndr64_transfer_syntax;
+struct ndr_interface_call {
+ const char *name;
+ size_t struct_size;
+ ndr_push_flags_fn_t ndr_push;
+ ndr_pull_flags_fn_t ndr_pull;
+ ndr_print_function_t ndr_print;
+ BOOL async;
+};
+
/* FIXME: Use represent_as instead */
struct dom_sid;
NTSTATUS ndr_push_dom_sid2(struct ndr_push *ndr, int ndr_flags, const struct dom_sid *sid);
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c 2007-08-18 08:19:19 UTC (rev 24534)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c 2007-08-18 10:30:40 UTC (rev 24535)
@@ -1317,7 +1317,7 @@
TALLOC_CTX *mem_ctx,
void *r)
{
- const struct dcerpc_interface_call *call;
+ const struct ndr_interface_call *call;
struct ndr_push *push;
NTSTATUS status;
DATA_BLOB request;
@@ -1391,7 +1391,7 @@
void *r = req->ndr.struct_ptr;
uint32_t opnum = req->ndr.opnum;
const struct dcerpc_interface_table *table = req->ndr.table;
- const struct dcerpc_interface_call *call = &table->calls[opnum];
+ const struct ndr_interface_call *call = &table->calls[opnum];
/* make sure the recv code doesn't free the request, as we
need to grab the flags element before it is freed */
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h 2007-08-18 08:19:19 UTC (rev 24534)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h 2007-08-18 10:30:40 UTC (rev 24535)
@@ -158,18 +158,6 @@
/* this triggers the DCERPC_PFC_FLAG_CONC_MPX flag in the bind request */
#define DCERPC_CONCURRENT_MULTIPLEX (1<<19)
-/*
- this is used to find pointers to calls
-*/
-struct dcerpc_interface_call {
- const char *name;
- size_t struct_size;
- ndr_push_flags_fn_t ndr_push;
- ndr_pull_flags_fn_t ndr_pull;
- ndr_print_function_t ndr_print;
- BOOL async;
-};
-
struct dcerpc_endpoint_list {
uint32_t count;
const char * const *names;
@@ -185,7 +173,7 @@
struct ndr_syntax_id syntax_id;
const char *helpstring;
uint32_t num_calls;
- const struct dcerpc_interface_call *calls;
+ const struct ndr_interface_call *calls;
const struct dcerpc_endpoint_list *endpoints;
const struct dcerpc_authservice_list *authservices;
};
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c 2007-08-18 08:19:19 UTC (rev 24534)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c 2007-08-18 10:30:40 UTC (rev 24535)
@@ -33,8 +33,8 @@
/*
find a dcerpc call on an interface by name
*/
-const struct dcerpc_interface_call *dcerpc_iface_find_call(const struct dcerpc_interface_table *iface,
- const char *name)
+const struct ndr_interface_call *dcerpc_iface_find_call(const struct dcerpc_interface_table *iface,
+ const char *name)
{
int i;
for (i=0;i<iface->num_calls;i++) {
Modified: branches/SAMBA_4_0/source/librpc/tools/ndrdump.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/tools/ndrdump.c 2007-08-18 08:19:19 UTC (rev 24534)
+++ branches/SAMBA_4_0/source/librpc/tools/ndrdump.c 2007-08-18 10:30:40 UTC (rev 24535)
@@ -27,7 +27,7 @@
#include "librpc/rpc/dcerpc_table.h"
#endif
-static const struct dcerpc_interface_call *find_function(
+static const struct ndr_interface_call *find_function(
const struct dcerpc_interface_table *p,
const char *function)
{
@@ -133,7 +133,7 @@
int main(int argc, const char *argv[])
{
const struct dcerpc_interface_table *p = NULL;
- const struct dcerpc_interface_call *f;
+ const struct ndr_interface_call *f;
const char *pipe_name, *function, *inout, *filename;
uint8_t *data;
size_t size;
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm 2007-08-18 08:19:19 UTC (rev 24534)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm 2007-08-18 10:30:40 UTC (rev 24535)
@@ -2281,7 +2281,7 @@
return if ($#{$interface->{FUNCTIONS}}+1 == 0);
return unless defined ($interface->{PROPERTIES}->{uuid});
- $self->pidl("static const struct dcerpc_interface_call $interface->{NAME}\_calls[] = {");
+ $self->pidl("static const struct ndr_interface_call $interface->{NAME}\_calls[] = {");
foreach my $d (@{$interface->{FUNCTIONS}}) {
next if not defined($d->{OPNUM});
$self->pidl("\t{");
Modified: branches/SAMBA_4_0/source/rpc_server/remote/dcesrv_remote.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/remote/dcesrv_remote.c 2007-08-18 08:19:19 UTC (rev 24534)
+++ branches/SAMBA_4_0/source/rpc_server/remote/dcesrv_remote.c 2007-08-18 10:30:40 UTC (rev 24535)
@@ -156,7 +156,7 @@
struct dcesrv_remote_private *private = dce_call->context->private;
uint16_t opnum = dce_call->pkt.u.request.opnum;
const struct dcerpc_interface_table *table = dce_call->context->iface->private;
- const struct dcerpc_interface_call *call;
+ const struct ndr_interface_call *call;
const char *name;
name = table->calls[opnum].name;
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c 2007-08-18 08:19:19 UTC (rev 24534)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c 2007-08-18 10:30:40 UTC (rev 24535)
@@ -182,7 +182,7 @@
NTSTATUS status;
void *ptr;
struct ejs_rpc *ejs;
- const struct dcerpc_interface_call *call;
+ const struct ndr_interface_call *call;
struct ejs_irpc_connection *p;
struct irpc_request **reqs;
int i, count;
@@ -285,7 +285,7 @@
void *ptr;
struct rpc_request *req;
struct ejs_rpc *ejs;
- const struct dcerpc_interface_call *call;
+ const struct ndr_interface_call *call;
if (argc != 1 || argv[0]->type != MPR_TYPE_OBJECT) {
ejsSetErrorMsg(eid, "rpc_call invalid arguments");
More information about the samba-cvs
mailing list