Skip to content

Commit

Permalink
libnfs: Export nfs_set_timeout() and nfs_get_timeout()
Browse files Browse the repository at this point in the history
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
  • Loading branch information
earlchew committed May 5, 2017
1 parent 2edbd14 commit b01776c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions include/nfsc/libnfs.h
Expand Up @@ -1523,6 +1523,26 @@ struct nfs_server_list {
struct nfs_server_list *nfs_find_local_servers(void);
void free_nfs_srvr_list(struct nfs_server_list *srv);

/*
* sync nfs_set_timeout()
* This function sets the timeout used for sync nfs rpc calls.
*
* Function returns nothing.
*
* int milliseconds : timeout to be applied in milliseconds (-1 no timeout)
*/
EXTERN void nfs_set_timeout(struct nfs_context *nfs, int milliseconds);

/*
* sync nfs_get_timeout()
* This function gets the timeout used for sync nfs rpc calls.
*
* Function returns
* -1 : No timeout applied
* > 0 : Timeout in milliseconds
*/
EXTERN int nfs_get_timeout(struct nfs_context *nfs);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit b01776c

Please sign in to comment.