2004-11-23 20:38:32 +03:00
#include "idl_types.h"
[
uuid("38578646-4566-4564-2244-275796345667"),
version(0.0),
2005-02-13 02:03:26 +03:00
pointer_default(unique),
r6973: Merge new version of pidl into the main SAMBA_4_0 branch.
The main difference in this new version is the extra data structure generated
between the IDL data structure and the NDR parser:
IDL -> NDR -> { ndr_parser, ndr_header, eparser, etc }
This makes the ndr_parser.pm internals much more sane.
Other changes include:
- Remove unnecessary calls with NDR_BUFFERS (for example, GUID doesn't have any buffers, just scalars) as well as some (unnecessary) nested setting of flags.
- Parse array loops in the C code rather then calling ndr_pull_array(). This allows us to have, for example, arrays of pointers or arrays of pointers to arrays, etc..
- Use if() {} rather then if () goto foo; everywhere
- NDR_IN no longer implies LIBNDR_FLAG_REF_ALLOC
- By default, top level pointers are now "ref" (as is the default in
most other IDL compilers). This can be overridden using the
default_pointer_top() property.
- initial work on new ethereal parser generators by Alan DeKok and me
- pidl now writes errors in the standard format used by compilers, which
is parsable by most editors
- ability to warn about the fact that pidl extension(s) have been used,
useful for making sure IDL files work with other IDL compilers.
oh, and there's probably some other things I can't think of right now..
(This used to be commit 13cf227615f6b9e0e5fa62e59197024410254f01)
2005-05-25 17:50:27 +04:00
pointer_default_top(unique),
2005-03-22 17:49:11 +03:00
helpstring("Active Directory Replication LDAP Blobs"),
depends(drsuapi)
2004-11-23 20:38:32 +03:00
]
interface drsblobs {
2005-03-22 17:49:11 +03:00
declare bitmap drsuapi_DsReplicaSyncOptions;
2005-03-23 21:54:06 +03:00
declare bitmap drsuapi_DsReplicaNeighbourFlags;
2005-03-22 17:49:11 +03:00
declare [v1_enum] enum drsuapi_DsAttributeId;
2004-11-24 17:33:40 +03:00
/*
* replPropertyMetaData
* w2k uses version 1
* w2k3 uses version 1
*/
2004-11-23 20:38:32 +03:00
typedef struct {
2005-03-22 17:49:11 +03:00
drsuapi_DsAttributeId attid;
2004-11-23 20:38:32 +03:00
uint32 version;
NTTIME_1sec orginating_time;
2005-03-22 17:49:11 +03:00
GUID orginating_invocation_id;
2005-01-27 09:33:07 +03:00
hyper orginating_usn;
hyper local_usn;
2004-11-24 17:33:40 +03:00
} replPropertyMetaData1;
2004-11-23 20:38:32 +03:00
typedef struct {
uint32 count;
2004-11-27 18:10:57 +03:00
uint32 reserved;
2004-11-24 17:33:40 +03:00
replPropertyMetaData1 array[count];
} replPropertyMetaDataCtr1;
typedef [nodiscriminant] union {
[case(1)] replPropertyMetaDataCtr1 ctr1;
2004-11-23 20:38:32 +03:00
} replPropertyMetaDataCtr;
2004-11-24 17:33:40 +03:00
typedef [public] struct {
uint32 version;
2004-11-27 18:10:57 +03:00
uint32 reserved;
2004-11-24 17:33:40 +03:00
[switch_is(version)] replPropertyMetaDataCtr ctr;
} replPropertyMetaDataBlob;
2004-11-23 20:38:32 +03:00
void decode_replPropertyMetaData(
2004-11-24 17:33:40 +03:00
[in] replPropertyMetaDataBlob blob
);
/*
* replUpToDateVector
* w2k uses version 1
* w2k3 uses version 2
*/
typedef struct {
uint32 count;
2004-11-27 18:10:57 +03:00
uint32 reserved;
2005-03-22 17:49:11 +03:00
drsuapi_DsReplicaCoursor coursors[count];
2004-11-24 17:33:40 +03:00
} replUpToDateVectorCtr1;
typedef struct {
uint32 count;
2004-11-27 18:10:57 +03:00
uint32 reserved;
2005-03-22 17:49:11 +03:00
drsuapi_DsReplicaCoursor2 coursors[count];
2004-11-24 17:33:40 +03:00
} replUpToDateVectorCtr2;
typedef [nodiscriminant] union {
[case(1)] replUpToDateVectorCtr1 ctr1;
[case(2)] replUpToDateVectorCtr2 ctr2;
} replUpToDateVectorCtr;
typedef [public] struct {
uint32 version;
2004-11-27 18:10:57 +03:00
uint32 reserved;
2004-11-24 17:33:40 +03:00
[switch_is(version)] replUpToDateVectorCtr ctr;
} replUpToDateVectorBlob;
void decode_replUpToDateVector(
[in] replUpToDateVectorBlob blob
2004-11-23 20:38:32 +03:00
);
2004-11-25 14:20:09 +03:00
/*
* repsFrom/repsTo
* w2k uses version 1
* w2k3 uses version 1
*/
2004-11-27 18:10:57 +03:00
typedef [gensize] struct {
2004-11-25 14:20:09 +03:00
asclstr dns_name;
2004-11-27 18:10:57 +03:00
} repsFromTo1OtherInfo;
typedef [gensize,flag(NDR_PAHEX)] struct {
/* this includes the 8 bytes of the repsFromToBlob header */
2005-01-05 05:01:19 +03:00
[value(ndr_size_repsFromTo1(r, ndr->flags)+8)] uint32 blobsize;
2004-12-06 18:17:43 +03:00
uint32 consecutive_sync_failures;
2004-11-27 18:10:57 +03:00
NTTIME_1sec last_success;
NTTIME_1sec last_attempt;
WERROR result_last_attempt;
2005-03-05 21:34:18 +03:00
[relative] repsFromTo1OtherInfo *other_info;
2005-01-05 05:01:19 +03:00
[value(ndr_size_repsFromTo1OtherInfo(r->other_info, ndr->flags))] uint32 other_info_length;
2005-03-23 21:54:06 +03:00
drsuapi_DsReplicaNeighbourFlags replica_flags;
2004-11-27 18:10:57 +03:00
uint8 schedule[84];
uint32 reserved;
2005-03-23 21:54:06 +03:00
drsuapi_DsReplicaHighWaterMark highwatermark;
2004-12-06 18:17:43 +03:00
GUID source_dsa_obj_guid; /* the 'objectGuid' field of the CN=NTDS Settings object */
GUID source_dsa_invocation_id; /* the 'invocationId' field of the CN=NTDS Settings object */
2004-11-27 18:10:57 +03:00
GUID transport_guid;
2004-11-25 14:20:09 +03:00
} repsFromTo1;
typedef [nodiscriminant] union {
[case(1)] repsFromTo1 ctr1;
} repsFromTo;
2004-11-27 18:10:57 +03:00
typedef [public] struct {
2004-11-25 14:20:09 +03:00
uint32 version;
2004-11-27 18:10:57 +03:00
uint32 reserved;
2004-11-25 14:20:09 +03:00
[switch_is(version)] repsFromTo ctr;
} repsFromToBlob;
void decode_repsFromTo(
[in] repsFromToBlob blob
);
2005-03-17 03:33:56 +03:00
2005-03-22 17:49:11 +03:00
typedef [public,gensize] struct {
[value(ndr_size_ldapControlDirSyncBlob(r, ndr->flags))] uint32 blobsize; /* just a guess! --metze */
2005-03-17 03:33:56 +03:00
uint32 u1;
NTTIME time;
uint32 u2;
uint32 u3;
uint32 u4;
2005-03-23 21:54:06 +03:00
drsuapi_DsReplicaHighWaterMark highwatermark;
2005-03-17 03:33:56 +03:00
GUID guid1;
2005-03-22 17:49:11 +03:00
hyper h4;
replUpToDateVectorCtr1 uptodateness_vector;
2005-03-17 03:33:56 +03:00
} ldapControlDirSyncBlob;
void decode_ldapControlDirSync(
[in] ldapControlDirSyncBlob blob
);
2005-03-22 17:49:11 +03:00
typedef [public] struct {
uint32 marker;
DATA_BLOB data;
} DsCompressedChunk;
typedef [public] struct {
DsCompressedChunk chunks[5];
} DsCompressedBlob;
void decode_DsCompressed(
[in] DsCompressedBlob blob
);
2004-11-23 20:38:32 +03:00
}