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 */ 10*9428fe1aSTigran Mkrtchyan extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *); 118b70484cSTigran Mkrtchyan extern void nfsd4_set_openstateid(struct nfsd4_compound_state *, struct nfsd4_open *); 1262cd4a59STigran Mkrtchyan extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *, struct nfsd4_lock *); 138b70484cSTigran Mkrtchyan extern void nfsd4_set_closestateid(struct nfsd4_compound_state *, struct nfsd4_close *); 148b70484cSTigran Mkrtchyan 1562cd4a59STigran Mkrtchyan /* 1662cd4a59STigran Mkrtchyan * functions to consume current state id 1762cd4a59STigran Mkrtchyan */ 18*9428fe1aSTigran Mkrtchyan extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *); 19*9428fe1aSTigran Mkrtchyan extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *, struct nfsd4_delegreturn *); 201e97b519STigran Mkrtchyan extern void nfsd4_get_freestateid(struct nfsd4_compound_state *, struct nfsd4_free_stateid *); 211e97b519STigran Mkrtchyan extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *, struct nfsd4_setattr *); 2262cd4a59STigran Mkrtchyan extern void nfsd4_get_closestateid(struct nfsd4_compound_state *, struct nfsd4_close *); 2362cd4a59STigran Mkrtchyan extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *, struct nfsd4_locku *); 2430813e27STigran Mkrtchyan extern void nfsd4_get_readstateid(struct nfsd4_compound_state *, struct nfsd4_read *); 2530813e27STigran Mkrtchyan extern void nfsd4_get_writestateid(struct nfsd4_compound_state *, struct nfsd4_write *); 2662cd4a59STigran Mkrtchyan 278b70484cSTigran Mkrtchyan #endif /* _NFSD4_CURRENT_STATE_H */ 28