s4-netlogon: merge netr_DatabaseSync2 from s3 idl.
[ira/wip.git] / source4 / librpc / idl / netlogon.idl
index f547ec7493639c4e5d4db8192bdbcebdac0f355b..e6ac70a8638d223eb271f29a253f42e874029da0 100644 (file)
@@ -46,7 +46,7 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *server_name,
                [in]   [string,charset(UTF16)] uint16 account_name[],
                [in]   [string,charset(UTF16)] uint16 workstation[],
-               [out,ref]  netr_UasInfo *info
+               [out,ref]  netr_UasInfo **info
                );
 
 
@@ -289,10 +289,10 @@ interface netlogon
                [in,unique] netr_Authenticator                     *credential,
                [in,out,unique] netr_Authenticator                 *return_authenticator,
                [in]  netr_LogonInfoClass                           logon_level,
-               [in]  [switch_is(logon_level)] netr_LogonLevel      logon,
+               [in,ref]  [switch_is(logon_level)] netr_LogonLevel *logon,
                [in]  uint16                                        validation_level,
-               [out] [switch_is(validation_level)] netr_Validation validation,
-               [out] uint8                                         authoritative
+               [out,ref] [switch_is(validation_level)] netr_Validation *validation,
+               [out,ref] uint8                                    *authoritative
                );
 
 
@@ -724,12 +724,12 @@ interface netlogon
        NTSTATUS netr_DatabaseDeltas(
                [in]      [string,charset(UTF16)] uint16 logon_server[],
                [in]      [string,charset(UTF16)] uint16 computername[],
-               [in]      netr_Authenticator credential,
-               [in,out]  netr_Authenticator return_authenticator,
+               [in,ref]  netr_Authenticator *credential,
+               [in,out,ref]  netr_Authenticator *return_authenticator,
                [in]      netr_SamDatabaseID database_id,
-               [in,out]  udlong sequence_num,
-               [in]      uint32 preferredmaximumlength,
-               [out,unique] netr_DELTA_ENUM_ARRAY *delta_enum_array
+               [in,out,ref]  udlong *sequence_num,
+               [out,ref]     netr_DELTA_ENUM_ARRAY **delta_enum_array,
+               [in]      uint32 preferredmaximumlength
                );
 
 
@@ -739,12 +739,12 @@ interface netlogon
        NTSTATUS netr_DatabaseSync(
                [in]     [string,charset(UTF16)] uint16 logon_server[],
                [in]     [string,charset(UTF16)] uint16 computername[],
-               [in]     netr_Authenticator credential,
-               [in,out] netr_Authenticator return_authenticator,
+               [in,ref] netr_Authenticator *credential,
+               [in,out,ref] netr_Authenticator *return_authenticator,
                [in]     netr_SamDatabaseID database_id,
-               [in,out] uint32 sync_context,
-               [in]     uint32 preferredmaximumlength,
-               [out,unique] netr_DELTA_ENUM_ARRAY *delta_enum_array
+               [in,out,ref] uint32 *sync_context,
+               [out,ref]    netr_DELTA_ENUM_ARRAY **delta_enum_array,
+               [in]     uint32 preferredmaximumlength
                );
 
 
@@ -767,15 +767,15 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *logon_server,
                [in]     [string,charset(UTF16)] uint16 computername[],
                [in]     netr_Authenticator credential,
-               [in,out] netr_Authenticator return_authenticator,
+               [in,out,ref] netr_Authenticator *return_authenticator,
                [in]     netr_UAS_INFO_0 uas,
                [in]     uint32 count,
                [in]     uint32 level,
                [in]     uint32 buffersize,
-               [out,subcontext(4)] netr_AccountBuffer buffer,
-               [out]    uint32 count_returned,
-               [out]    uint32 total_entries,
-               [out]    netr_UAS_INFO_0 recordid
+               [out,ref,subcontext(4)] netr_AccountBuffer *buffer,
+               [out,ref]    uint32 *count_returned,
+               [out,ref]    uint32 *total_entries,
+               [out,ref]    netr_UAS_INFO_0 *recordid
                );
 
 
@@ -786,15 +786,15 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *logon_server,
                [in]      [string,charset(UTF16)] uint16 computername[],
                [in]      netr_Authenticator credential,
-               [in,out]  netr_Authenticator return_authenticator,
+               [in,out,ref]  netr_Authenticator *return_authenticator,
                [in]      uint32 reference,
                [in]      uint32 level,
                [in]      uint32 buffersize,
-               [out,subcontext(4)] netr_AccountBuffer buffer,
-               [out]     uint32 count_returned,
-               [out]     uint32 total_entries,
-               [out]     uint32 next_reference,
-               [in,out]  netr_UAS_INFO_0 recordid
+               [out,ref,subcontext(4)] netr_AccountBuffer *buffer,
+               [out,ref]     uint32 *count_returned,
+               [out,ref]     uint32 *total_entries,
+               [out,ref]     uint32 *next_reference,
+               [in,out,ref]  netr_UAS_INFO_0 *recordid
                );
 
 
@@ -804,7 +804,7 @@ interface netlogon
        WERROR netr_GetDcName(
                [in]  [string,charset(UTF16)] uint16 logon_server[],
                [in,unique] [string,charset(UTF16)] uint16 *domainname,
-               [out,unique] [string,charset(UTF16)] uint16 *dcname
+               [out,ref] [string,charset(UTF16)] uint16 **dcname
                );
 
        /*****************/
@@ -857,7 +857,7 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *logon_server,
                [in]   netr_LogonControlCode function_code,
                [in]   uint32 level,
-               [out,switch_is(level)]  netr_CONTROL_QUERY_INFORMATION info
+               [out,ref,switch_is(level)]  netr_CONTROL_QUERY_INFORMATION *info
                );
 
 
@@ -867,7 +867,7 @@ interface netlogon
        WERROR netr_GetAnyDCName(
                [in,unique] [string,charset(UTF16)] uint16 *logon_server,
                [in,unique] [string,charset(UTF16)] uint16 *domainname,
-               [out,unique] [string,charset(UTF16)] uint16 *dcname
+               [out,ref] [string,charset(UTF16)] uint16 **dcname
                );
 
 
@@ -885,8 +885,8 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *logon_server,
                [in]    netr_LogonControlCode function_code,
                [in]    uint32 level,
-               [in][switch_is(function_code)] netr_CONTROL_DATA_INFORMATION  data,
-               [out][switch_is(level)]        netr_CONTROL_QUERY_INFORMATION query
+               [in,ref][switch_is(function_code)] netr_CONTROL_DATA_INFORMATION  *data,
+               [out,ref][switch_is(level)]        netr_CONTROL_QUERY_INFORMATION *query
                );
 
 
@@ -940,13 +940,13 @@ interface netlogon
        NTSTATUS netr_DatabaseSync2(
                [in]     [string,charset(UTF16)] uint16 logon_server[],
                [in]     [string,charset(UTF16)] uint16 computername[],
-               [in]     netr_Authenticator credential,
-               [in,out] netr_Authenticator return_authenticator,
+               [in,ref] netr_Authenticator *credential,
+               [in,out,ref] netr_Authenticator *return_authenticator,
                [in]     netr_SamDatabaseID database_id,
                [in]     uint16 restart_state,
-               [in,out] uint32 sync_context,
-               [in]     uint32 preferredmaximumlength,
-               [out,unique] netr_DELTA_ENUM_ARRAY *delta_enum_array
+               [in,out,ref] uint32 *sync_context,
+               [out,ref]    netr_DELTA_ENUM_ARRAY **delta_enum_array,
+               [in]     uint32 preferredmaximumlength
                );
 
 
@@ -974,7 +974,7 @@ interface netlogon
                [in]   uint32 function_code,
                [in]   uint32 level,
                [in][switch_is(function_code)] netr_CONTROL_DATA_INFORMATION  data,
-               [out][switch_is(level)]        netr_CONTROL_QUERY_INFORMATION query
+               [out,ref][switch_is(level)]     netr_CONTROL_QUERY_INFORMATION *query
                );
 
        /*****************/
@@ -1075,7 +1075,7 @@ interface netlogon
                [in,unique] GUID *domain_guid,
                [in,unique] GUID *site_guid,
                [in] netr_DsRGetDCName_flags flags,
-               [out,unique] netr_DsRGetDCNameInfo *info
+               [out,ref] netr_DsRGetDCNameInfo **info
                );
 
        /*****************/
@@ -1123,14 +1123,15 @@ interface netlogon
                [in,unique] GUID *domain_guid,
                [in,unique] [string,charset(UTF16)] uint16 *site_name,
                [in] netr_DsRGetDCName_flags flags,
-               [out,unique] netr_DsRGetDCNameInfo *info
+               [out,ref] netr_DsRGetDCNameInfo **info
                );
 
+
        /****************/
        /* Function 0x1c */
        WERROR netr_DsRGetSiteName(
                [in,unique] [string,charset(UTF16)] uint16 *computer_name,
-               [out,unique] [string,charset(UTF16)] uint16 *site
+               [out,ref] [string,charset(UTF16)] uint16 **site
                );
 
        /****************/
@@ -1236,7 +1237,7 @@ interface netlogon
                [in,out,ref] netr_Authenticator *return_authenticator,
                [in]         uint32 level,
                [in,switch_is(level)] netr_DomainQuery query,
-               [out,switch_is(level)] netr_DomainInfo info
+               [out,ref,switch_is(level)] netr_DomainInfo *info
                );
 
        typedef [flag(NDR_PAHEX)] struct {
@@ -1301,7 +1302,7 @@ interface netlogon
                [in,unique] GUID *domain_guid,
                [in,unique] [string,charset(UTF16)] uint16 *site_name,
                [in] netr_DsRGetDCName_flags flags,
-               [out,unique] netr_DsRGetDCNameInfo *info
+               [out,ref] netr_DsRGetDCNameInfo **info
                );
 
        /****************/
@@ -1374,7 +1375,7 @@ interface netlogon
 
        WERROR netr_DsrGetDcSiteCoverageW(
                [in,unique] [string,charset(UTF16)] uint16 *server_name,
-               [out,unique] DcSitesCtr *ctr
+               [out,ref] DcSitesCtr **ctr
                );
 
        /****************/
@@ -1383,11 +1384,11 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *server_name,
                [in,unique] [string,charset(UTF16)] uint16 *computer_name,
                [in]  netr_LogonInfoClass logon_level,
-               [in]  [switch_is(logon_level)] netr_LogonLevel logon,
+               [in,ref]  [switch_is(logon_level)] netr_LogonLevel *logon,
                [in]  uint16 validation_level,
-               [out] [switch_is(validation_level)] netr_Validation validation,
-               [out] uint8 authoritative,
-               [in,out] uint32 flags
+               [out,ref] [switch_is(validation_level)] netr_Validation *validation,
+               [out,ref] uint8 *authoritative,
+               [in,out,ref] uint32 *flags
                );
 
        /****************/
@@ -1396,8 +1397,7 @@ interface netlogon
        WERROR netr_DsrEnumerateDomainTrusts(
                [in,unique]          [string,charset(UTF16)] uint16           *server_name,
                [in]                 netr_TrustFlags  trust_flags,
-               [out]                uint32           count,
-               [out,unique,size_is(count)] netr_DomainTrust *trusts
+               [out,ref]            netr_DomainTrustList *trusts
                );
 
 
@@ -1457,11 +1457,11 @@ interface netlogon
                [in,unique] netr_Authenticator *credential,
                [in,out,unique] netr_Authenticator *return_authenticator,
                [in]  netr_LogonInfoClass logon_level,
-               [in]  [switch_is(logon_level)] netr_LogonLevel logon,
+               [in,ref]  [switch_is(logon_level)] netr_LogonLevel *logon,
                [in]  uint16 validation_level,
-               [out] [switch_is(validation_level)] netr_Validation validation,
-               [out] uint8 authoritative,
-               [in,out] uint32 flags
+               [out,ref] [switch_is(validation_level)] netr_Validation *validation,
+               [out,ref] uint8 *authoritative,
+               [in,out,ref] uint32 *flags
                );
 
        /****************/