r14384: Remove orpc code from includes.h
authorJelmer Vernooij <jelmer@samba.org>
Tue, 14 Mar 2006 16:21:34 +0000 (16:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:17 +0000 (13:57 -0500)
source/include/includes.h
source/lib/com/dcom/dcom.h
source/librpc/config.mk
source/librpc/idl/orpc.idl
source/librpc/ndr/ndr_orpc.h [deleted file]

index 43e07ad4823c9e43cdb10568a29ef644ca459dd2..f7504dcf5d207a76955bdf180b3bfe7fb34b1bf1 100644 (file)
@@ -116,7 +116,6 @@ enum brl_type {
 #include "libcli/util/nterr.h"
 #include "libcli/util/doserr.h"
 #include "librpc/ndr/libndr.h"
-#include "librpc/ndr/ndr_orpc.h"
 #include "librpc/rpc/dcerpc.h"
 #include "libcli/nbt/libnbt.h"
 #include "libcli/util/proto.h"
index 308852848d413e94bb8c27bb7e66d96b72a4764e..438bf8b9f7372bbb96ed9853e9b227f151f89b38 100644 (file)
@@ -22,6 +22,7 @@
 #define _DCOM_H 
 
 #include "lib/com/com.h"
+#include "librpc/gen_ndr/orpc.h"
 #include "lib/com/dcom/proto.h"
 
 struct dcom_client_context {
index 6d63b1bde833c821d527d84691d5123f6c3e9256..afcb59bbf59198487d27ae504ea5032276aeffdd 100644 (file)
@@ -322,7 +322,7 @@ NOPROTO = YES
 REQUIRED_SUBSYSTEMS = LIBNDR NDR_ORPC
 
 [SUBSYSTEM::NDR_ORPC_MANUAL]
-PRIVATE_PROTO_HEADER = ndr/ndr_orpc_proto.h
+PRIVATE_PROTO_HEADER = ndr/ndr_orpc.h
 OBJ_FILES = ndr/ndr_orpc.o 
 
 [LIBRARY::NDR_ORPC]
index 24879bbe179393822d2407bc75fb5b53f33945e4..71a4fd65d2b089702fed701cf3bf789743630de5 100644 (file)
@@ -6,7 +6,8 @@
  */
 
 [
-       pointer_default(unique)
+       pointer_default(unique),
+       helper("librpc/ndr/ndr_orpc.h")
 ]
 interface ObjectRpcBaseTypes
 {
@@ -38,6 +39,7 @@ interface ObjectRpcBaseTypes
 
        /* Component Object Model version number */
 
+
        typedef [public] struct 
        {
                uint16 MajorVersion; /* Major version number */
@@ -103,6 +105,16 @@ interface ObjectRpcBaseTypes
                nstring NetworkAddr; 
        }       STRINGBINDING;
 
+       typedef [public,nopush,nopull,noprint] struct 
+       {
+               STRINGBINDING **stringbindings;
+       } STRINGARRAY;
+
+       typedef [public,nopush,nopull,noprint] struct 
+       {
+               STRINGBINDING **stringbindings;
+               SECURITYBINDING **securitybindings;
+       } DUALSTRINGARRAY;
 
        const uint16 COM_C_AUTHZ_NONE = 0xffff;
        typedef [public,flag(NDR_NOALIGN)] struct 
diff --git a/source/librpc/ndr/ndr_orpc.h b/source/librpc/ndr/ndr_orpc.h
deleted file mode 100644 (file)
index 171a783..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* 
-   Unix SMB/CIFS implementation.
-
-   definitions for marshalling/unmarshalling DCOM string arrays
-
-   Copyright (C) Jelmer Vernooij 2004
-   
-   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
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-   
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-
-#ifndef __NDR_ORPC_H__
-#define __NDR_ORPC_H__
-
-struct STRINGARRAY
-{
-       struct STRINGBINDING **stringbindings;
-};
-
-struct DUALSTRINGARRAY
-{
-       struct STRINGBINDING **stringbindings;
-       struct SECURITYBINDING **securitybindings;
-};
-
-#include "librpc/gen_ndr/orpc.h"
-#include "librpc/ndr/ndr_orpc_proto.h"
-
-#endif /* __NDR_ORPC_H__ */