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 7*37c593c5STigran Mkrtchyan extern void clear_current_stateid(struct nfsd4_compound_state *cstate); 862cd4a59STigran Mkrtchyan /* 962cd4a59STigran Mkrtchyan * functions to set current state id 1062cd4a59STigran Mkrtchyan */ 119428fe1aSTigran Mkrtchyan extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *); 128b70484cSTigran Mkrtchyan extern void nfsd4_set_openstateid(struct nfsd4_compound_state *, struct nfsd4_open *); 1362cd4a59STigran Mkrtchyan extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *, struct nfsd4_lock *); 148b70484cSTigran Mkrtchyan extern void nfsd4_set_closestateid(struct nfsd4_compound_state *, struct nfsd4_close *); 158b70484cSTigran Mkrtchyan 1662cd4a59STigran Mkrtchyan /* 1762cd4a59STigran Mkrtchyan * functions to consume current state id 1862cd4a59STigran Mkrtchyan */ 199428fe1aSTigran Mkrtchyan extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *); 209428fe1aSTigran Mkrtchyan extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *, struct nfsd4_delegreturn *); 211e97b519STigran Mkrtchyan extern void nfsd4_get_freestateid(struct nfsd4_compound_state *, struct nfsd4_free_stateid *); 221e97b519STigran Mkrtchyan extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *, struct nfsd4_setattr *); 2362cd4a59STigran Mkrtchyan extern void nfsd4_get_closestateid(struct nfsd4_compound_state *, struct nfsd4_close *); 2462cd4a59STigran Mkrtchyan extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *, struct nfsd4_locku *); 2530813e27STigran Mkrtchyan extern void nfsd4_get_readstateid(struct nfsd4_compound_state *, struct nfsd4_read *); 2630813e27STigran Mkrtchyan extern void nfsd4_get_writestateid(struct nfsd4_compound_state *, struct nfsd4_write *); 2762cd4a59STigran Mkrtchyan 288b70484cSTigran Mkrtchyan #endif /* _NFSD4_CURRENT_STATE_H */ 29