From 8dd5705a591ee617478663180316dd0f768049b9 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Tue, 6 Apr 2010 15:10:47 +0300 Subject: librpc/idl: Use [nopython] attr for types used in decode_PrimaryKerberos method C code generation for python module generates invalid code (i.e. can not be compiled). Another reason to 'hide' those types from Python is that those types are not used at the moment (and most probably won't be used in the future) --- librpc/idl/drsblobs.idl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'librpc/idl/drsblobs.idl') diff --git a/librpc/idl/drsblobs.idl b/librpc/idl/drsblobs.idl index f25e178a0c..89b5760823 100644 --- a/librpc/idl/drsblobs.idl +++ b/librpc/idl/drsblobs.idl @@ -334,13 +334,13 @@ interface drsblobs { [in] package_PackagesBlob blob ); - typedef struct { + typedef [nopython] struct { [value(2*strlen_m(string))] uint16 length; [value(2*strlen_m(string))] uint16 size; [relative,subcontext(0),subcontext_size(size),flag(STR_NOTERM|NDR_REMAINING)] string *string; } package_PrimaryKerberosString; - typedef struct { + typedef [nopython] struct { [value(0)] uint16 reserved1; [value(0)] uint16 reserved2; [value(0)] uint32 reserved3; @@ -349,7 +349,7 @@ interface drsblobs { [relative,subcontext(0),subcontext_size(value_len),flag(NDR_REMAINING)] DATA_BLOB *value; } package_PrimaryKerberosKey3; - typedef struct { + typedef [nopython] struct { uint16 num_keys; uint16 num_old_keys; package_PrimaryKerberosString salt; @@ -362,7 +362,7 @@ interface drsblobs { [value(0)] uint32 padding5; } package_PrimaryKerberosCtr3; - typedef struct { + typedef [nopython] struct { [value(0)] uint16 reserved1; [value(0)] uint16 reserved2; [value(0)] uint32 reserved3; @@ -372,7 +372,7 @@ interface drsblobs { [relative,subcontext(0),subcontext_size(value_len),flag(NDR_REMAINING)] DATA_BLOB *value; } package_PrimaryKerberosKey4; - typedef struct { + typedef [nopython] struct { uint16 num_keys; [value(0)] uint16 num_service_keys; uint16 num_old_keys; @@ -385,12 +385,12 @@ interface drsblobs { package_PrimaryKerberosKey4 older_keys[num_older_keys]; } package_PrimaryKerberosCtr4; - typedef [nodiscriminant] union { + typedef [nodiscriminant,nopython] union { [case(3)] package_PrimaryKerberosCtr3 ctr3; [case(4)] package_PrimaryKerberosCtr4 ctr4; } package_PrimaryKerberosCtr; - typedef [public] struct { + typedef [public,nopython] struct { uint16 version; [value(0)] uint16 flags; [switch_is(version)] package_PrimaryKerberosCtr ctr; -- cgit