sm_inter.h 3.1 KB

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