mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
ac3f08ddbe
doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker (This used to be commit eaefd00563173dfabb7716c5695ac0a2f7139bb6)
27 lines
442 B
Plaintext
27 lines
442 B
Plaintext
#include "idl_types.h"
|
|
|
|
/*
|
|
IDL structures for messaging code
|
|
*/
|
|
|
|
[
|
|
pointer_default(unique)
|
|
]
|
|
interface messaging
|
|
{
|
|
/* messaging struct sent across the sockets and stored in the tdb */
|
|
|
|
typedef [public] struct {
|
|
uint32 msg_version;
|
|
uint32 msg_type;
|
|
server_id dest;
|
|
server_id src;
|
|
DATA_BLOB buf;
|
|
} messaging_rec;
|
|
|
|
typedef [public] struct {
|
|
uint32 num_messages;
|
|
messaging_rec messages[num_messages];
|
|
} messaging_array;
|
|
}
|