summaryrefslogtreecommitdiff
path: root/librpc/idl/server_id.idl
blob: ac2e9ab318274e2e961d62737a7a8a613d211e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[
	pointer_default(unique)
]
interface server_id
{

	/*
	 * Virtual Node Numbers are identifying a node within a cluster.
	 * Ctdbd sets this, we retrieve our vnn from it.
	 */

	const int NONCLUSTER_VNN = 0xFFFFFFFF;

	/* used to look like the following, note that unique_id was not
	 * marshalled at all...

	struct server_id {
		pid_t pid;
	#ifdef CLUSTER_SUPPORT
		uint32 vnn;
	#endif
		uint64_t unique_id;
	};

	*/

	typedef [public] struct {
		hyper pid;
		uint32 task_id;
		uint32 vnn;
		hyper unique_id;
	} server_id;
}