1177633Sdfr/* 2177633Sdfr * Please do not edit this file. 3177633Sdfr * It was generated using rpcgen. 4177633Sdfr */ 5177633Sdfr/* $FreeBSD$ */ 6177633Sdfr 7177633Sdfr#ifndef _NLM_PROT_H_RPCGEN 8177633Sdfr#define _NLM_PROT_H_RPCGEN 9177633Sdfr 10177633Sdfr#include <rpc/rpc.h> 11177633Sdfr 12177633Sdfr#ifdef __cplusplus 13177633Sdfrextern "C" { 14177633Sdfr#endif 15177633Sdfr 16177633Sdfr#define LM_MAXSTRLEN 1024 17177633Sdfr#define MAXNAMELEN LM_MAXSTRLEN+1 18177633Sdfr 19177633Sdfrenum nlm_stats { 20177633Sdfr nlm_granted = 0, 21177633Sdfr nlm_denied = 1, 22177633Sdfr nlm_denied_nolocks = 2, 23177633Sdfr nlm_blocked = 3, 24177633Sdfr nlm_denied_grace_period = 4, 25177633Sdfr nlm_deadlck = 5 26177633Sdfr}; 27177633Sdfrtypedef enum nlm_stats nlm_stats; 28177633Sdfr 29177633Sdfrstruct nlm_holder { 30177633Sdfr bool_t exclusive; 31177633Sdfr int svid; 32177633Sdfr netobj oh; 33177633Sdfr u_int l_offset; 34177633Sdfr u_int l_len; 35177633Sdfr}; 36177633Sdfrtypedef struct nlm_holder nlm_holder; 37177633Sdfr 38177633Sdfrstruct nlm_testrply { 39177633Sdfr nlm_stats stat; 40177633Sdfr union { 41177633Sdfr struct nlm_holder holder; 42177633Sdfr } nlm_testrply_u; 43177633Sdfr}; 44177633Sdfrtypedef struct nlm_testrply nlm_testrply; 45177633Sdfr 46177633Sdfrstruct nlm_stat { 47177633Sdfr nlm_stats stat; 48177633Sdfr}; 49177633Sdfrtypedef struct nlm_stat nlm_stat; 50177633Sdfr 51177633Sdfrstruct nlm_res { 52177633Sdfr netobj cookie; 53177633Sdfr nlm_stat stat; 54177633Sdfr}; 55177633Sdfrtypedef struct nlm_res nlm_res; 56177633Sdfr 57177633Sdfrstruct nlm_testres { 58177633Sdfr netobj cookie; 59177633Sdfr nlm_testrply stat; 60177633Sdfr}; 61177633Sdfrtypedef struct nlm_testres nlm_testres; 62177633Sdfr 63177633Sdfrstruct nlm_lock { 64177633Sdfr char *caller_name; 65177633Sdfr netobj fh; 66177633Sdfr netobj oh; 67177633Sdfr int svid; 68177633Sdfr u_int l_offset; 69177633Sdfr u_int l_len; 70177633Sdfr}; 71177633Sdfrtypedef struct nlm_lock nlm_lock; 72177633Sdfr 73177633Sdfrstruct nlm_lockargs { 74177633Sdfr netobj cookie; 75177633Sdfr bool_t block; 76177633Sdfr bool_t exclusive; 77177633Sdfr struct nlm_lock alock; 78177633Sdfr bool_t reclaim; 79177633Sdfr int state; 80177633Sdfr}; 81177633Sdfrtypedef struct nlm_lockargs nlm_lockargs; 82177633Sdfr 83177633Sdfrstruct nlm_cancargs { 84177633Sdfr netobj cookie; 85177633Sdfr bool_t block; 86177633Sdfr bool_t exclusive; 87177633Sdfr struct nlm_lock alock; 88177633Sdfr}; 89177633Sdfrtypedef struct nlm_cancargs nlm_cancargs; 90177633Sdfr 91177633Sdfrstruct nlm_testargs { 92177633Sdfr netobj cookie; 93177633Sdfr bool_t exclusive; 94177633Sdfr struct nlm_lock alock; 95177633Sdfr}; 96177633Sdfrtypedef struct nlm_testargs nlm_testargs; 97177633Sdfr 98177633Sdfrstruct nlm_unlockargs { 99177633Sdfr netobj cookie; 100177633Sdfr struct nlm_lock alock; 101177633Sdfr}; 102177633Sdfrtypedef struct nlm_unlockargs nlm_unlockargs; 103177633Sdfr/* 104177633Sdfr * The following enums are actually bit encoded for efficient 105177633Sdfr * boolean algebra.... DON'T change them..... 106177633Sdfr */ 107177633Sdfr 108177633Sdfrenum fsh_mode { 109177633Sdfr fsm_DN = 0, 110177633Sdfr fsm_DR = 1, 111177633Sdfr fsm_DW = 2, 112177633Sdfr fsm_DRW = 3 113177633Sdfr}; 114177633Sdfrtypedef enum fsh_mode fsh_mode; 115177633Sdfr 116177633Sdfrenum fsh_access { 117177633Sdfr fsa_NONE = 0, 118177633Sdfr fsa_R = 1, 119177633Sdfr fsa_W = 2, 120177633Sdfr fsa_RW = 3 121177633Sdfr}; 122177633Sdfrtypedef enum fsh_access fsh_access; 123177633Sdfr 124177633Sdfrstruct nlm_share { 125177633Sdfr char *caller_name; 126177633Sdfr netobj fh; 127177633Sdfr netobj oh; 128177633Sdfr fsh_mode mode; 129177633Sdfr fsh_access access; 130177633Sdfr}; 131177633Sdfrtypedef struct nlm_share nlm_share; 132177633Sdfr 133177633Sdfrstruct nlm_shareargs { 134177633Sdfr netobj cookie; 135177633Sdfr nlm_share share; 136177633Sdfr bool_t reclaim; 137177633Sdfr}; 138177633Sdfrtypedef struct nlm_shareargs nlm_shareargs; 139177633Sdfr 140177633Sdfrstruct nlm_shareres { 141177633Sdfr netobj cookie; 142177633Sdfr nlm_stats stat; 143177633Sdfr int sequence; 144177633Sdfr}; 145177633Sdfrtypedef struct nlm_shareres nlm_shareres; 146177633Sdfr 147177633Sdfrstruct nlm_notify { 148177633Sdfr char *name; 149177633Sdfr long state; 150177633Sdfr}; 151177633Sdfrtypedef struct nlm_notify nlm_notify; 152177633Sdfr/* definitions for NLM version 4 */ 153177633Sdfr 154177633Sdfrenum nlm4_stats { 155177633Sdfr nlm4_granted = 0, 156177633Sdfr nlm4_denied = 1, 157177633Sdfr nlm4_denied_nolocks = 2, 158177633Sdfr nlm4_blocked = 3, 159177633Sdfr nlm4_denied_grace_period = 4, 160177633Sdfr nlm4_deadlck = 5, 161177633Sdfr nlm4_rofs = 6, 162177633Sdfr nlm4_stale_fh = 7, 163177633Sdfr nlm4_fbig = 8, 164177633Sdfr nlm4_failed = 9 165177633Sdfr}; 166177633Sdfrtypedef enum nlm4_stats nlm4_stats; 167177633Sdfr 168177633Sdfrstruct nlm4_stat { 169177633Sdfr nlm4_stats stat; 170177633Sdfr}; 171177633Sdfrtypedef struct nlm4_stat nlm4_stat; 172177633Sdfr 173177633Sdfrstruct nlm4_holder { 174177633Sdfr bool_t exclusive; 175177633Sdfr u_int32_t svid; 176177633Sdfr netobj oh; 177177633Sdfr u_int64_t l_offset; 178177633Sdfr u_int64_t l_len; 179177633Sdfr}; 180177633Sdfrtypedef struct nlm4_holder nlm4_holder; 181177633Sdfr 182177633Sdfrstruct nlm4_lock { 183177633Sdfr char *caller_name; 184177633Sdfr netobj fh; 185177633Sdfr netobj oh; 186177633Sdfr u_int32_t svid; 187177633Sdfr u_int64_t l_offset; 188177633Sdfr u_int64_t l_len; 189177633Sdfr}; 190177633Sdfrtypedef struct nlm4_lock nlm4_lock; 191177633Sdfr 192177633Sdfrstruct nlm4_share { 193177633Sdfr char *caller_name; 194177633Sdfr netobj fh; 195177633Sdfr netobj oh; 196177633Sdfr fsh_mode mode; 197177633Sdfr fsh_access access; 198177633Sdfr}; 199177633Sdfrtypedef struct nlm4_share nlm4_share; 200177633Sdfr 201177633Sdfrstruct nlm4_testrply { 202177633Sdfr nlm4_stats stat; 203177633Sdfr union { 204177633Sdfr struct nlm4_holder holder; 205177633Sdfr } nlm4_testrply_u; 206177633Sdfr}; 207177633Sdfrtypedef struct nlm4_testrply nlm4_testrply; 208177633Sdfr 209177633Sdfrstruct nlm4_testres { 210177633Sdfr netobj cookie; 211177633Sdfr nlm4_testrply stat; 212177633Sdfr}; 213177633Sdfrtypedef struct nlm4_testres nlm4_testres; 214177633Sdfr 215177633Sdfrstruct nlm4_testargs { 216177633Sdfr netobj cookie; 217177633Sdfr bool_t exclusive; 218177633Sdfr struct nlm4_lock alock; 219177633Sdfr}; 220177633Sdfrtypedef struct nlm4_testargs nlm4_testargs; 221177633Sdfr 222177633Sdfrstruct nlm4_res { 223177633Sdfr netobj cookie; 224177633Sdfr nlm4_stat stat; 225177633Sdfr}; 226177633Sdfrtypedef struct nlm4_res nlm4_res; 227177633Sdfr 228177633Sdfrstruct nlm4_lockargs { 229177633Sdfr netobj cookie; 230177633Sdfr bool_t block; 231177633Sdfr bool_t exclusive; 232177633Sdfr struct nlm4_lock alock; 233177633Sdfr bool_t reclaim; 234177633Sdfr int state; 235177633Sdfr}; 236177633Sdfrtypedef struct nlm4_lockargs nlm4_lockargs; 237177633Sdfr 238177633Sdfrstruct nlm4_cancargs { 239177633Sdfr netobj cookie; 240177633Sdfr bool_t block; 241177633Sdfr bool_t exclusive; 242177633Sdfr struct nlm4_lock alock; 243177633Sdfr}; 244177633Sdfrtypedef struct nlm4_cancargs nlm4_cancargs; 245177633Sdfr 246177633Sdfrstruct nlm4_unlockargs { 247177633Sdfr netobj cookie; 248177633Sdfr struct nlm4_lock alock; 249177633Sdfr}; 250177633Sdfrtypedef struct nlm4_unlockargs nlm4_unlockargs; 251177633Sdfr 252177633Sdfrstruct nlm4_shareargs { 253177633Sdfr netobj cookie; 254177633Sdfr nlm4_share share; 255177633Sdfr bool_t reclaim; 256177633Sdfr}; 257177633Sdfrtypedef struct nlm4_shareargs nlm4_shareargs; 258177633Sdfr 259177633Sdfrstruct nlm4_shareres { 260177633Sdfr netobj cookie; 261177633Sdfr nlm4_stats stat; 262177633Sdfr int sequence; 263177633Sdfr}; 264177633Sdfrtypedef struct nlm4_shareres nlm4_shareres; 265177633Sdfr 266177633Sdfrstruct nlm_sm_status { 267177633Sdfr char *mon_name; 268177633Sdfr int state; 269177633Sdfr char priv[16]; 270177633Sdfr}; 271177633Sdfrtypedef struct nlm_sm_status nlm_sm_status; 272177633Sdfr 273177633Sdfrstruct nlm4_notify { 274177633Sdfr char *name; 275177633Sdfr int32_t state; 276177633Sdfr}; 277177633Sdfrtypedef struct nlm4_notify nlm4_notify; 278177633Sdfr 279177633Sdfr#define NLM_PROG ((unsigned long)(100021)) 280177633Sdfr#define NLM_SM ((unsigned long)(0)) 281177633Sdfr 282177633Sdfr#define NLM_SM_NOTIFY ((unsigned long)(1)) 283180025Sdfrextern enum clnt_stat nlm_sm_notify_0(struct nlm_sm_status *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 284177633Sdfrextern bool_t nlm_sm_notify_0_svc(struct nlm_sm_status *, void *, struct svc_req *); 285177633Sdfr#define NLM_VERS ((unsigned long)(1)) 286177633Sdfr 287177633Sdfr#define NLM_TEST ((unsigned long)(1)) 288180025Sdfrextern enum clnt_stat nlm_test_1(struct nlm_testargs *, nlm_testres *, CLIENT *, struct rpc_callextra *, struct timeval); 289177633Sdfrextern bool_t nlm_test_1_svc(struct nlm_testargs *, nlm_testres *, struct svc_req *); 290177633Sdfr#define NLM_LOCK ((unsigned long)(2)) 291180025Sdfrextern enum clnt_stat nlm_lock_1(struct nlm_lockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval); 292177633Sdfrextern bool_t nlm_lock_1_svc(struct nlm_lockargs *, nlm_res *, struct svc_req *); 293177633Sdfr#define NLM_CANCEL ((unsigned long)(3)) 294180025Sdfrextern enum clnt_stat nlm_cancel_1(struct nlm_cancargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval); 295177633Sdfrextern bool_t nlm_cancel_1_svc(struct nlm_cancargs *, nlm_res *, struct svc_req *); 296177633Sdfr#define NLM_UNLOCK ((unsigned long)(4)) 297180025Sdfrextern enum clnt_stat nlm_unlock_1(struct nlm_unlockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval); 298177633Sdfrextern bool_t nlm_unlock_1_svc(struct nlm_unlockargs *, nlm_res *, struct svc_req *); 299177633Sdfr#define NLM_GRANTED ((unsigned long)(5)) 300180025Sdfrextern enum clnt_stat nlm_granted_1(struct nlm_testargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval); 301177633Sdfrextern bool_t nlm_granted_1_svc(struct nlm_testargs *, nlm_res *, struct svc_req *); 302177633Sdfr#define NLM_TEST_MSG ((unsigned long)(6)) 303180025Sdfrextern enum clnt_stat nlm_test_msg_1(struct nlm_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 304177633Sdfrextern bool_t nlm_test_msg_1_svc(struct nlm_testargs *, void *, struct svc_req *); 305177633Sdfr#define NLM_LOCK_MSG ((unsigned long)(7)) 306180025Sdfrextern enum clnt_stat nlm_lock_msg_1(struct nlm_lockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 307177633Sdfrextern bool_t nlm_lock_msg_1_svc(struct nlm_lockargs *, void *, struct svc_req *); 308177633Sdfr#define NLM_CANCEL_MSG ((unsigned long)(8)) 309180025Sdfrextern enum clnt_stat nlm_cancel_msg_1(struct nlm_cancargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 310177633Sdfrextern bool_t nlm_cancel_msg_1_svc(struct nlm_cancargs *, void *, struct svc_req *); 311177633Sdfr#define NLM_UNLOCK_MSG ((unsigned long)(9)) 312180025Sdfrextern enum clnt_stat nlm_unlock_msg_1(struct nlm_unlockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 313177633Sdfrextern bool_t nlm_unlock_msg_1_svc(struct nlm_unlockargs *, void *, struct svc_req *); 314177633Sdfr#define NLM_GRANTED_MSG ((unsigned long)(10)) 315180025Sdfrextern enum clnt_stat nlm_granted_msg_1(struct nlm_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 316177633Sdfrextern bool_t nlm_granted_msg_1_svc(struct nlm_testargs *, void *, struct svc_req *); 317177633Sdfr#define NLM_TEST_RES ((unsigned long)(11)) 318180025Sdfrextern enum clnt_stat nlm_test_res_1(nlm_testres *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 319177633Sdfrextern bool_t nlm_test_res_1_svc(nlm_testres *, void *, struct svc_req *); 320177633Sdfr#define NLM_LOCK_RES ((unsigned long)(12)) 321180025Sdfrextern enum clnt_stat nlm_lock_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 322177633Sdfrextern bool_t nlm_lock_res_1_svc(nlm_res *, void *, struct svc_req *); 323177633Sdfr#define NLM_CANCEL_RES ((unsigned long)(13)) 324180025Sdfrextern enum clnt_stat nlm_cancel_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 325177633Sdfrextern bool_t nlm_cancel_res_1_svc(nlm_res *, void *, struct svc_req *); 326177633Sdfr#define NLM_UNLOCK_RES ((unsigned long)(14)) 327180025Sdfrextern enum clnt_stat nlm_unlock_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 328177633Sdfrextern bool_t nlm_unlock_res_1_svc(nlm_res *, void *, struct svc_req *); 329177633Sdfr#define NLM_GRANTED_RES ((unsigned long)(15)) 330180025Sdfrextern enum clnt_stat nlm_granted_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 331177633Sdfrextern bool_t nlm_granted_res_1_svc(nlm_res *, void *, struct svc_req *); 332177633Sdfrextern int nlm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 333177633Sdfr#define NLM_VERSX ((unsigned long)(3)) 334177633Sdfr 335177633Sdfr#define NLM_SHARE ((unsigned long)(20)) 336180025Sdfrextern enum clnt_stat nlm_share_3(nlm_shareargs *, nlm_shareres *, CLIENT *, struct rpc_callextra *, struct timeval); 337177633Sdfrextern bool_t nlm_share_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *); 338177633Sdfr#define NLM_UNSHARE ((unsigned long)(21)) 339180025Sdfrextern enum clnt_stat nlm_unshare_3(nlm_shareargs *, nlm_shareres *, CLIENT *, struct rpc_callextra *, struct timeval); 340177633Sdfrextern bool_t nlm_unshare_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *); 341177633Sdfr#define NLM_NM_LOCK ((unsigned long)(22)) 342180025Sdfrextern enum clnt_stat nlm_nm_lock_3(nlm_lockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval); 343177633Sdfrextern bool_t nlm_nm_lock_3_svc(nlm_lockargs *, nlm_res *, struct svc_req *); 344177633Sdfr#define NLM_FREE_ALL ((unsigned long)(23)) 345180025Sdfrextern enum clnt_stat nlm_free_all_3(nlm_notify *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 346177633Sdfrextern bool_t nlm_free_all_3_svc(nlm_notify *, void *, struct svc_req *); 347177633Sdfrextern int nlm_prog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 348177633Sdfr#define NLM_VERS4 ((unsigned long)(4)) 349177633Sdfr 350177633Sdfr#define NLM4_TEST ((unsigned long)(1)) 351180025Sdfrextern enum clnt_stat nlm4_test_4(nlm4_testargs *, nlm4_testres *, CLIENT *, struct rpc_callextra *, struct timeval); 352177633Sdfrextern bool_t nlm4_test_4_svc(nlm4_testargs *, nlm4_testres *, struct svc_req *); 353177633Sdfr#define NLM4_LOCK ((unsigned long)(2)) 354180025Sdfrextern enum clnt_stat nlm4_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval); 355177633Sdfrextern bool_t nlm4_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *); 356177633Sdfr#define NLM4_CANCEL ((unsigned long)(3)) 357180025Sdfrextern enum clnt_stat nlm4_cancel_4(nlm4_cancargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval); 358177633Sdfrextern bool_t nlm4_cancel_4_svc(nlm4_cancargs *, nlm4_res *, struct svc_req *); 359177633Sdfr#define NLM4_UNLOCK ((unsigned long)(4)) 360180025Sdfrextern enum clnt_stat nlm4_unlock_4(nlm4_unlockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval); 361177633Sdfrextern bool_t nlm4_unlock_4_svc(nlm4_unlockargs *, nlm4_res *, struct svc_req *); 362177633Sdfr#define NLM4_GRANTED ((unsigned long)(5)) 363180025Sdfrextern enum clnt_stat nlm4_granted_4(nlm4_testargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval); 364177633Sdfrextern bool_t nlm4_granted_4_svc(nlm4_testargs *, nlm4_res *, struct svc_req *); 365177633Sdfr#define NLM4_TEST_MSG ((unsigned long)(6)) 366180025Sdfrextern enum clnt_stat nlm4_test_msg_4(nlm4_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 367177633Sdfrextern bool_t nlm4_test_msg_4_svc(nlm4_testargs *, void *, struct svc_req *); 368177633Sdfr#define NLM4_LOCK_MSG ((unsigned long)(7)) 369180025Sdfrextern enum clnt_stat nlm4_lock_msg_4(nlm4_lockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 370177633Sdfrextern bool_t nlm4_lock_msg_4_svc(nlm4_lockargs *, void *, struct svc_req *); 371177633Sdfr#define NLM4_CANCEL_MSG ((unsigned long)(8)) 372180025Sdfrextern enum clnt_stat nlm4_cancel_msg_4(nlm4_cancargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 373177633Sdfrextern bool_t nlm4_cancel_msg_4_svc(nlm4_cancargs *, void *, struct svc_req *); 374177633Sdfr#define NLM4_UNLOCK_MSG ((unsigned long)(9)) 375180025Sdfrextern enum clnt_stat nlm4_unlock_msg_4(nlm4_unlockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 376177633Sdfrextern bool_t nlm4_unlock_msg_4_svc(nlm4_unlockargs *, void *, struct svc_req *); 377177633Sdfr#define NLM4_GRANTED_MSG ((unsigned long)(10)) 378180025Sdfrextern enum clnt_stat nlm4_granted_msg_4(nlm4_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 379177633Sdfrextern bool_t nlm4_granted_msg_4_svc(nlm4_testargs *, void *, struct svc_req *); 380177633Sdfr#define NLM4_TEST_RES ((unsigned long)(11)) 381180025Sdfrextern enum clnt_stat nlm4_test_res_4(nlm4_testres *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 382177633Sdfrextern bool_t nlm4_test_res_4_svc(nlm4_testres *, void *, struct svc_req *); 383177633Sdfr#define NLM4_LOCK_RES ((unsigned long)(12)) 384180025Sdfrextern enum clnt_stat nlm4_lock_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 385177633Sdfrextern bool_t nlm4_lock_res_4_svc(nlm4_res *, void *, struct svc_req *); 386177633Sdfr#define NLM4_CANCEL_RES ((unsigned long)(13)) 387180025Sdfrextern enum clnt_stat nlm4_cancel_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 388177633Sdfrextern bool_t nlm4_cancel_res_4_svc(nlm4_res *, void *, struct svc_req *); 389177633Sdfr#define NLM4_UNLOCK_RES ((unsigned long)(14)) 390180025Sdfrextern enum clnt_stat nlm4_unlock_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 391177633Sdfrextern bool_t nlm4_unlock_res_4_svc(nlm4_res *, void *, struct svc_req *); 392177633Sdfr#define NLM4_GRANTED_RES ((unsigned long)(15)) 393180025Sdfrextern enum clnt_stat nlm4_granted_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 394177633Sdfrextern bool_t nlm4_granted_res_4_svc(nlm4_res *, void *, struct svc_req *); 395177633Sdfr#define NLM4_SHARE ((unsigned long)(20)) 396180025Sdfrextern enum clnt_stat nlm4_share_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *, struct rpc_callextra *, struct timeval); 397177633Sdfrextern bool_t nlm4_share_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *); 398177633Sdfr#define NLM4_UNSHARE ((unsigned long)(21)) 399180025Sdfrextern enum clnt_stat nlm4_unshare_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *, struct rpc_callextra *, struct timeval); 400177633Sdfrextern bool_t nlm4_unshare_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *); 401177633Sdfr#define NLM4_NM_LOCK ((unsigned long)(22)) 402180025Sdfrextern enum clnt_stat nlm4_nm_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval); 403177633Sdfrextern bool_t nlm4_nm_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *); 404177633Sdfr#define NLM4_FREE_ALL ((unsigned long)(23)) 405180025Sdfrextern enum clnt_stat nlm4_free_all_4(nlm4_notify *, void *, CLIENT *, struct rpc_callextra *, struct timeval); 406177633Sdfrextern bool_t nlm4_free_all_4_svc(nlm4_notify *, void *, struct svc_req *); 407177633Sdfrextern int nlm_prog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 408177633Sdfr 409177633Sdfr/* the xdr functions */ 410177633Sdfrextern bool_t xdr_nlm_stats(XDR *, nlm_stats*); 411177633Sdfrextern bool_t xdr_nlm_holder(XDR *, nlm_holder*); 412177633Sdfrextern bool_t xdr_nlm_testrply(XDR *, nlm_testrply*); 413177633Sdfrextern bool_t xdr_nlm_stat(XDR *, nlm_stat*); 414177633Sdfrextern bool_t xdr_nlm_res(XDR *, nlm_res*); 415177633Sdfrextern bool_t xdr_nlm_testres(XDR *, nlm_testres*); 416177633Sdfrextern bool_t xdr_nlm_lock(XDR *, nlm_lock*); 417177633Sdfrextern bool_t xdr_nlm_lockargs(XDR *, nlm_lockargs*); 418177633Sdfrextern bool_t xdr_nlm_cancargs(XDR *, nlm_cancargs*); 419177633Sdfrextern bool_t xdr_nlm_testargs(XDR *, nlm_testargs*); 420177633Sdfrextern bool_t xdr_nlm_unlockargs(XDR *, nlm_unlockargs*); 421177633Sdfrextern bool_t xdr_fsh_mode(XDR *, fsh_mode*); 422177633Sdfrextern bool_t xdr_fsh_access(XDR *, fsh_access*); 423177633Sdfrextern bool_t xdr_nlm_share(XDR *, nlm_share*); 424177633Sdfrextern bool_t xdr_nlm_shareargs(XDR *, nlm_shareargs*); 425177633Sdfrextern bool_t xdr_nlm_shareres(XDR *, nlm_shareres*); 426177633Sdfrextern bool_t xdr_nlm_notify(XDR *, nlm_notify*); 427177633Sdfrextern bool_t xdr_nlm4_stats(XDR *, nlm4_stats*); 428177633Sdfrextern bool_t xdr_nlm4_stat(XDR *, nlm4_stat*); 429177633Sdfrextern bool_t xdr_nlm4_holder(XDR *, nlm4_holder*); 430177633Sdfrextern bool_t xdr_nlm4_lock(XDR *, nlm4_lock*); 431177633Sdfrextern bool_t xdr_nlm4_share(XDR *, nlm4_share*); 432177633Sdfrextern bool_t xdr_nlm4_testrply(XDR *, nlm4_testrply*); 433177633Sdfrextern bool_t xdr_nlm4_testres(XDR *, nlm4_testres*); 434177633Sdfrextern bool_t xdr_nlm4_testargs(XDR *, nlm4_testargs*); 435177633Sdfrextern bool_t xdr_nlm4_res(XDR *, nlm4_res*); 436177633Sdfrextern bool_t xdr_nlm4_lockargs(XDR *, nlm4_lockargs*); 437177633Sdfrextern bool_t xdr_nlm4_cancargs(XDR *, nlm4_cancargs*); 438177633Sdfrextern bool_t xdr_nlm4_unlockargs(XDR *, nlm4_unlockargs*); 439177633Sdfrextern bool_t xdr_nlm4_shareargs(XDR *, nlm4_shareargs*); 440177633Sdfrextern bool_t xdr_nlm4_shareres(XDR *, nlm4_shareres*); 441177633Sdfrextern bool_t xdr_nlm_sm_status(XDR *, nlm_sm_status*); 442177633Sdfrextern bool_t xdr_nlm4_notify(XDR *, nlm4_notify*); 443177633Sdfr 444177633Sdfr#ifdef __cplusplus 445177633Sdfr} 446177633Sdfr#endif 447177633Sdfr 448177633Sdfr#endif /* !_NLM_PROT_H_RPCGEN */ 449