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