File: sim_sm_inter.x

package info (click to toggle)
nfs-utils 1%3A2.6.2-4%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,144 kB
  • sloc: ansic: 49,497; sh: 5,200; python: 2,385; makefile: 933
file content (32 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (15)
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
/*
 * Copyright (C) 1995, 1997-1999 Jeffrey A. Uphoff
 * Modified by Olaf Kirch, 1996.
 * Modified by H.J. Lu, 1998.
 *
 * NSM for Linux.
 */

#ifdef RPC_CLNT
%#include <string.h>
#endif

program SIM_SM_PROG { 
	version SIM_SM_VERS  {
		void			 SIM_SM_MON(struct status) = 1;
	} = 1;
} = 200048;

const	SM_MAXSTRLEN = 1024;
const	SM_PRIV_SIZE = 16;

/* 
 * structure of the status message sent back by the status monitor
 * when monitor site status changes
 */
%#ifndef SM_INTER_X
struct status {
	string mon_name<SM_MAXSTRLEN>;
	int state;
	opaque priv[SM_PRIV_SIZE]; /* stored private information */
};
%#endif /* SM_INTER_X */