r3896: Correct header files in rpc server templates plus
authorJelmer Vernooij <jelmer@samba.org>
Sat, 20 Nov 2004 23:35:28 +0000 (23:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:02 +0000 (13:06 -0500)
some other minor fixes
(This used to be commit 9fca748fe3c12af83a006f1d0821aa560d08fc95)

source4/build/pidl/template.pm
source4/librpc/idl/dcom.idl
source4/librpc/idl/rot.idl
source4/rpc_server/dcom/rot.c

index 2942c6f7131b8de37f0bff5928313e5464198fe5..27f5d0c277d299eb198b94dd0a3d75dddd0a4b90 100644 (file)
@@ -23,7 +23,7 @@ sub Template($)
 
    endpoint server for the $name pipe
 
-   Copyright (C) YOUR NAME HERE XXXX
+   Copyright (C) YOUR NAME HERE YEAR
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -41,6 +41,9 @@ sub Template($)
 */
 
 #include \"includes.h\"
+#include \"rpc_server/dcerpc_server.h\"
+#include \"librpc/gen_ndr/ndr_$name.h\"
+#include \"rpc_server/common/common.h\"
 
 ";
 
index d9c5a72ab293b2856f2a35d19761b2236220a2f6..d29c7476efa547046aba63d8ce0a1d105608af3c 100644 (file)
@@ -324,6 +324,20 @@ interface IRemUnknown : IUnknown
        WERROR ISCMLocalActivator_CreateInstance( );
 }
 
+[
+       uuid("c6f3ee72-ce7e-11d1-b71e-00c04fc3111a")
+] interface IMachineLocalActivator 
+{
+       WERROR IMachineLocalActivator_foo();
+}
+
+[
+       uuid("e60c73e6-88f9-11cf-9af1-0020af6e72f4")
+] interface ILocalObjectExporter
+{
+       WERROR ILocalObjectExporter_Foo();
+}
+
 /* Looks like this is the equivalent of .NET's 
    System.Activator class */
 [
index d9a67ecbe14ab6f2e248c2e4376885493e537e4a..3b3bd6e98790f39f367a81c410ff2ff49129a0b9 100644 (file)
                                           [out] MInterfacePointer *EnumMoniker
                                           );
 }
+
+/*
+[
+       object,
+] interface IRotData : IUnknown
+{
+       WERROR irotdata_getdata(
+                                                       [out,size_is(max),length_is(ret)] uint8 *data, 
+                                                       [in] uint32 max,
+                                                       [out] uint32 ret
+                                                  );
+}
+*/
index d639bd9bf37338196a7d116f67e16aefca34dc8b..1a588332045089513f65cd476acb7ea87a55b095 100644 (file)
@@ -1,7 +1,7 @@
 /* 
    Unix SMB/CIFS implementation.
 
-   Running object table functions
+   endpoint server for the rot pipe
 
    Copyright (C) Jelmer Vernooij 2004
    
 
 #include "includes.h"
 #include "rpc_server/dcerpc_server.h"
+#include "librpc/gen_ndr/ndr_rot.h"
 #include "rpc_server/common/common.h"
 
-struct dcom_object *dcom_call_get_object(struct dcesrv_call_state *call)
+
+/* 
+  rot_add 
+*/
+static WERROR rot_add(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct rot_add *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/* 
+  rot_remove 
+*/
+static WERROR rot_remove(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct rot_remove *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/* 
+  rot_is_listed 
+*/
+static WERROR rot_is_listed(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct rot_is_listed *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/* 
+  rot_get_interface_pointer 
+*/
+static WERROR rot_get_interface_pointer(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct rot_get_interface_pointer *r)
 {
-       struct GUID *object;
-
-       if (! (call->pkt.pfc_flags & DCERPC_PFC_FLAG_ORPC) ) {
-               return NULL;
-       }
-       
-       object = &call->pkt.u.request.object.object;
-       /* FIXME */
-       return NULL; 
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
 }
+
+
+/* 
+  rot_set_modification_time 
+*/
+static WERROR rot_set_modification_time(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct rot_set_modification_time *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/* 
+  rot_get_modification_time 
+*/
+static WERROR rot_get_modification_time(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct rot_get_modification_time *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/* 
+  rot_enum 
+*/
+static WERROR rot_enum(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct rot_enum *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/* include the generated boilerplate */
+#include "librpc/gen_ndr/ndr_rot_s.c"