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