18b70484cSTigran Mkrtchyan #ifndef _NFSD4_CURRENT_STATE_H 28b70484cSTigran Mkrtchyan #define _NFSD4_CURRENT_STATE_H 38b70484cSTigran Mkrtchyan 48b70484cSTigran Mkrtchyan #include "state.h" 58b70484cSTigran Mkrtchyan #include "xdr4.h" 68b70484cSTigran Mkrtchyan 762cd4a59STigran Mkrtchyan /* 862cd4a59STigran Mkrtchyan * functions to set current state id 962cd4a59STigran Mkrtchyan */ 108b70484cSTigran Mkrtchyan extern void nfsd4_set_openstateid(struct nfsd4_compound_state *, struct nfsd4_open *); 1162cd4a59STigran Mkrtchyan extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *, struct nfsd4_lock *); 128b70484cSTigran Mkrtchyan extern void nfsd4_set_closestateid(struct nfsd4_compound_state *, struct nfsd4_close *); 138b70484cSTigran Mkrtchyan 1462cd4a59STigran Mkrtchyan /* 1562cd4a59STigran Mkrtchyan * functions to consume current state id 1662cd4a59STigran Mkrtchyan */ 1762cd4a59STigran Mkrtchyan extern void nfsd4_get_closestateid(struct nfsd4_compound_state *, struct nfsd4_close *); 1862cd4a59STigran Mkrtchyan extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *, struct nfsd4_locku *); 19*30813e27STigran Mkrtchyan extern void nfsd4_get_readstateid(struct nfsd4_compound_state *, struct nfsd4_read *); 20*30813e27STigran Mkrtchyan extern void nfsd4_get_writestateid(struct nfsd4_compound_state *, struct nfsd4_write *); 2162cd4a59STigran Mkrtchyan 228b70484cSTigran Mkrtchyan #endif /* _NFSD4_CURRENT_STATE_H */ 23