From d0e73ab534831a6c57f21a472ef90afffa575e3a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 1 May 2009 18:17:10 +0200 Subject: s4:rpc_server: export dcesrv_add_ep() so that torture tests can use it metze --- source4/rpc_server/config.mk | 3 +++ source4/rpc_server/service_rpc.c | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/source4/rpc_server/config.mk b/source4/rpc_server/config.mk index 93617c2c98..527770a8cd 100644 --- a/source4/rpc_server/config.mk +++ b/source4/rpc_server/config.mk @@ -230,3 +230,6 @@ SUBSYSTEM = service PRIVATE_DEPENDENCIES = dcerpc_server DCESRV_OBJ_FILES = $(rpc_serversrcdir)/service_rpc.o + +$(eval $(call proto_header_template,$(rpc_serversrcdir)/service_rpc.h,$(DCESRV_OBJ_FILES:.o=.c))) + diff --git a/source4/rpc_server/service_rpc.c b/source4/rpc_server/service_rpc.c index 01bc00762d..3d5c364ec9 100644 --- a/source4/rpc_server/service_rpc.c +++ b/source4/rpc_server/service_rpc.c @@ -28,6 +28,7 @@ #include "../lib/util/dlinklist.h" #include "rpc_server/dcerpc_server.h" #include "rpc_server/dcerpc_server_proto.h" +#include "rpc_server/service_rpc.h" #include "lib/events/events.h" #include "smbd/service_task.h" #include "smbd/service_stream.h" @@ -658,11 +659,11 @@ static NTSTATUS dcesrv_add_ep_tcp(struct dcesrv_context *dce_ctx, return NT_STATUS_OK; } - -static NTSTATUS dcesrv_add_ep(struct dcesrv_context *dce_ctx, - struct loadparm_context *lp_ctx, - struct dcesrv_endpoint *e, - struct tevent_context *event_ctx, const struct model_ops *model_ops) +NTSTATUS dcesrv_add_ep(struct dcesrv_context *dce_ctx, + struct loadparm_context *lp_ctx, + struct dcesrv_endpoint *e, + struct tevent_context *event_ctx, + const struct model_ops *model_ops) { switch (e->ep_description->transport) { case NCACN_UNIX_STREAM: -- cgit