6729ff
From 101c93f1e54095f8e115e33a66ec1127ead207da Mon Sep 17 00:00:00 2001
6729ff
From: Alexander Bokovoy <ab@samba.org>
6729ff
Date: Tue, 18 Mar 2014 19:41:38 +0200
6729ff
Subject: [PATCH] lsa.idl: define lsa.ForestTrustCollisionInfo and
6729ff
 ForestTrustCollisionRecord as public structs
6729ff
6729ff
For Python bindings PIDL wants the struct to be defined as public if we
6729ff
want to use __ndr_print/pack/unpack.
6729ff
6729ff
Define the [public] attribute to ForestTrustCollisionInfo/Record to
6729ff
allow easier debugging when there is collision in establishing a trust.
6729ff
6729ff
This change does not affect C code as NDR functions are always
6729ff
generated, only not exposed in Python bindings.
6729ff
6729ff
https://bugzilla.samba.org/show_bug.cgi?id=10504
6729ff
6729ff
Signed-off-by: Alexander Bokovoy <ab@samba.org>
6729ff
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
6729ff
6729ff
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
6729ff
Autobuild-Date(master): Mon Mar 24 12:44:50 CET 2014 on sn-devel-104
6729ff
6729ff
(cherry picked from commit 59767911bded48388c27d5f9cd2ff1346a1c01a6)
6729ff
---
6729ff
 librpc/idl/lsa.idl | 4 ++--
6729ff
 1 file changed, 2 insertions(+), 2 deletions(-)
6729ff
6729ff
diff --git a/librpc/idl/lsa.idl b/librpc/idl/lsa.idl
6729ff
index d8f2649..80efbd5 100644
6729ff
--- a/librpc/idl/lsa.idl
6729ff
+++ b/librpc/idl/lsa.idl
6729ff
@@ -1328,14 +1328,14 @@ import "misc.idl", "security.idl";
6729ff
 		[default] uint32 flags;
6729ff
 	} lsa_ForestTrustCollisionFlags;
6729ff
 
6729ff
-	typedef struct {
6729ff
+	typedef [public] struct {
6729ff
 		uint32 index;
6729ff
 		lsa_ForestTrustCollisionRecordType type;
6729ff
 		[switch_is(type)] lsa_ForestTrustCollisionFlags flags;
6729ff
 		lsa_String name;
6729ff
 	} lsa_ForestTrustCollisionRecord;
6729ff
 
6729ff
-	typedef struct {
6729ff
+	typedef [public] struct {
6729ff
 		uint32 count;
6729ff
 		[size_is(count)] lsa_ForestTrustCollisionRecord **entries;
6729ff
 	} lsa_ForestTrustCollisionInfo;
6729ff
-- 
6729ff
1.8.5.3
6729ff