From 90a8bcf11ab1f795cf560ace7b60178a6c32a014 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 13 Jul 2005 19:27:09 +0000 Subject: fix up lock breakage from bug #4245 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6125 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/app.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'include/asterisk/app.h') diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 8d571e28e..4ab7ef263 100755 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -139,8 +139,19 @@ int ast_play_and_record(struct ast_channel *chan, const char *playfile, const ch /* permitted silence time in milliseconds of 'maxsilence' under 'silencethreshold' or use '-1' for either or both parameters for defaults. */ int ast_play_and_prepend(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime_sec, char *fmt, int *duration, int beep, int silencethreshold, int maxsilence_ms); -/* Lock a path */ -int ast_lock_path(const char *path); +enum AST_LOCK_RESULT { + AST_LOCK_SUCCESS = 0, + AST_LOCK_TIMEOUT = -1, + AST_LOCK_PATH_NOT_FOUND = -2, + AST_LOCK_FAILURE = -3, +}; + +/* + * \brief Lock a filesystem path. + * \param path the path to be locked + * \return one of AST_LOCK_RESULT values + */ +enum AST_LOCK_RESULT ast_lock_path(const char *path); /* Unlock a path */ int ast_unlock_path(const char *path); -- cgit v1.2.3