summaryrefslogtreecommitdiff
path: root/include/asterisk/app.h
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-07-13 19:27:09 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-07-13 19:27:09 +0000
commit9a7a5d56237c32bc59ea1e4be6d8591db9aab76b (patch)
tree859ad2ea8849226a0f89cbffd8d03220c5ab21d5 /include/asterisk/app.h
parentf62a613d241ce6587b82a5d6d55a3c6af775fb9d (diff)
fix up lock breakage from bug #4245
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/app.h')
-rwxr-xr-xinclude/asterisk/app.h15
1 files changed, 13 insertions, 2 deletions
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);