xref: /freebsd/sys/nlm/sm_inter.h (revision 61af1d13936ec56808f62d13dd8698f73b440dc1)
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5 /* $FreeBSD$ */
6 
7 #ifndef _SM_INTER_H_RPCGEN
8 #define	_SM_INTER_H_RPCGEN
9 
10 #include <rpc/rpc.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #define	SM_MAXSTRLEN 1024
17 
18 struct sm_name {
19 	char *mon_name;
20 };
21 typedef struct sm_name sm_name;
22 
23 struct my_id {
24 	char *my_name;
25 	int my_prog;
26 	int my_vers;
27 	int my_proc;
28 };
29 typedef struct my_id my_id;
30 
31 struct mon_id {
32 	char *mon_name;
33 	struct my_id my_id;
34 };
35 typedef struct mon_id mon_id;
36 
37 struct mon {
38 	struct mon_id mon_id;
39 	char priv[16];
40 };
41 typedef struct mon mon;
42 
43 struct stat_chge {
44 	char *mon_name;
45 	int state;
46 };
47 typedef struct stat_chge stat_chge;
48 
49 struct sm_stat {
50 	int state;
51 };
52 typedef struct sm_stat sm_stat;
53 
54 enum sm_res {
55 	stat_succ = 0,
56 	stat_fail = 1
57 };
58 typedef enum sm_res sm_res;
59 
60 struct sm_stat_res {
61 	sm_res res_stat;
62 	int state;
63 };
64 typedef struct sm_stat_res sm_stat_res;
65 
66 struct sm_status {
67 	char *mon_name;
68 	int state;
69 	char priv[16];
70 };
71 typedef struct sm_status sm_status;
72 
73 #define	SM_PROG ((unsigned long)(100024))
74 #define	SM_VERS ((unsigned long)(1))
75 
76 extern  void sm_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
77 #define	SM_STAT ((unsigned long)(1))
78 extern  struct sm_stat_res * sm_stat_1(struct sm_name *, CLIENT *);
79 extern  struct sm_stat_res * sm_stat_1_svc(struct sm_name *, struct svc_req *);
80 #define	SM_MON ((unsigned long)(2))
81 extern  struct sm_stat_res * sm_mon_1(struct mon *, CLIENT *);
82 extern  struct sm_stat_res * sm_mon_1_svc(struct mon *, struct svc_req *);
83 #define	SM_UNMON ((unsigned long)(3))
84 extern  struct sm_stat * sm_unmon_1(struct mon_id *, CLIENT *);
85 extern  struct sm_stat * sm_unmon_1_svc(struct mon_id *, struct svc_req *);
86 #define	SM_UNMON_ALL ((unsigned long)(4))
87 extern  struct sm_stat * sm_unmon_all_1(struct my_id *, CLIENT *);
88 extern  struct sm_stat * sm_unmon_all_1_svc(struct my_id *, struct svc_req *);
89 #define	SM_SIMU_CRASH ((unsigned long)(5))
90 extern  void * sm_simu_crash_1(void *, CLIENT *);
91 extern  void * sm_simu_crash_1_svc(void *, struct svc_req *);
92 #define	SM_NOTIFY ((unsigned long)(6))
93 extern  void * sm_notify_1(struct stat_chge *, CLIENT *);
94 extern  void * sm_notify_1_svc(struct stat_chge *, struct svc_req *);
95 extern int sm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
96 
97 /* the xdr functions */
98 extern  bool_t xdr_sm_name(XDR *, sm_name*);
99 extern  bool_t xdr_my_id(XDR *, my_id*);
100 extern  bool_t xdr_mon_id(XDR *, mon_id*);
101 extern  bool_t xdr_mon(XDR *, mon*);
102 extern  bool_t xdr_stat_chge(XDR *, stat_chge*);
103 extern  bool_t xdr_sm_stat(XDR *, sm_stat*);
104 extern  bool_t xdr_sm_res(XDR *, sm_res*);
105 extern  bool_t xdr_sm_stat_res(XDR *, sm_stat_res*);
106 extern  bool_t xdr_sm_status(XDR *, sm_status*);
107 
108 #ifdef __cplusplus
109 }
110 #endif
111 
112 #endif /* !_SM_INTER_H_RPCGEN */
113