messaging.idl: add structure to marshall dbwrap_tdb2 changes
[Samba.git] / source / librpc / idl / messaging.idl
blobad9d7106d02e72b49d2cb4457dacfe5a7f0556ab
1 #include "idl_types.h"
3 /*
4 IDL structures for messaging code
5 */
8 pointer_default(unique)
10 interface messaging
12 /* messaging struct sent across the sockets and stored in the tdb */
14 typedef [public] struct {
15 uint32 msg_version;
16 uint32 msg_type;
17 server_id dest;
18 server_id src;
19 DATA_BLOB buf;
20 } messaging_rec;
22 typedef [public] struct {
23 uint32 num_messages;
24 messaging_rec messages[num_messages];
25 } messaging_array;
28 * struct used for change notify messages
29 * in the dbwrap_tdb2 code
31 typedef [public] struct {
32 [charset(DOS),value("TDB2")] uint8 magic_string[4];
33 [value(1)] uint32 magic_version;
34 [charset(UTF8),string] uint8 name[];
35 uint32 old_seqnum;
36 uint32 new_seqnum;
37 uint32 num_changes;
38 uint32 num_keys;
39 DATA_BLOB keys[num_keys];
40 } dbwrap_tdb2_changes;