svn commit: samba r7634 - in branches/SAMBA_4_0/source/rpc_server/echo: .

metze at samba.org metze at samba.org
Thu Jun 16 11:52:16 GMT 2005


Author: metze
Date: 2005-06-16 11:52:15 +0000 (Thu, 16 Jun 2005)
New Revision: 7634

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7634

Log:
move TestSleep functions so that all of them are together

metze
Modified:
   branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c	2005-06-16 11:36:09 UTC (rev 7633)
+++ branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c	2005-06-16 11:52:15 UTC (rev 7634)
@@ -118,28 +118,6 @@
 	return NT_STATUS_OK;
 }
 
-struct echo_TestSleep_private {
-	struct dcesrv_call_state *dce_call;
-	struct echo_TestSleep *r;
-};
-
-static void echo_TestSleep_handler(struct event_context *ev, struct timed_event *te, 
-				   struct timeval t, void *private)
-{
-	struct echo_TestSleep_private *p = talloc_get_type(private, 
-							   struct echo_TestSleep_private);
-	struct echo_TestSleep *r = p->r;
-	NTSTATUS status;
-
-	r->out.result = r->in.seconds;
-
-	status = dcesrv_reply(p->dce_call);
-	if (!NT_STATUS_IS_OK(status)) {
-		DEBUG(0,("echo_TestSleep_handler: dcesrv_reply() failed - %s\n",
-			nt_errstr(status)));
-	}
-}
-
 static NTSTATUS echo_TestSurrounding(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_TestSurrounding *r)
 {
 	if (!r->in.data) {
@@ -163,6 +141,28 @@
 	return ***r->in.data;
 }
 
+struct echo_TestSleep_private {
+	struct dcesrv_call_state *dce_call;
+	struct echo_TestSleep *r;
+};
+
+static void echo_TestSleep_handler(struct event_context *ev, struct timed_event *te, 
+				   struct timeval t, void *private)
+{
+	struct echo_TestSleep_private *p = talloc_get_type(private, 
+							   struct echo_TestSleep_private);
+	struct echo_TestSleep *r = p->r;
+	NTSTATUS status;
+
+	r->out.result = r->in.seconds;
+
+	status = dcesrv_reply(p->dce_call);
+	if (!NT_STATUS_IS_OK(status)) {
+		DEBUG(0,("echo_TestSleep_handler: dcesrv_reply() failed - %s\n",
+			nt_errstr(status)));
+	}
+}
+
 static long echo_TestSleep(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_TestSleep *r)
 {
 	struct echo_TestSleep_private *p;



More information about the samba-cvs mailing list