aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-11 21:23:45 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-11 21:23:45 +0000
commit388f4545c95b46b2218cc69c4d0af917640ec7b2 (patch)
treea8f6538248f4a949d9e49fd92df0d71716067ec7 /include
parentdefcc2ef52a4db8e9e7738113f0acdb90de3863d (diff)
Make timing stuff generic (bug #2839)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4213 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/pbx.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index ffd20a6bd..a83df1a00 100755
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -69,6 +69,17 @@ struct ast_switch {
int (*matchmore)(struct ast_channel *chan, const char *context, const char *exten, int priority, const char *callerid, const char *data);
};
+struct ast_timing {
+ int hastime; /* If time construct exists */
+ unsigned int monthmask; /* Mask for month */
+ unsigned int daymask; /* Mask for date */
+ unsigned int dowmask; /* Mask for day of week (mon-sun) */
+ unsigned int minmask[24]; /* Mask for minute */
+};
+
+extern int ast_build_timing(struct ast_timing *i, char *info);
+extern int ast_check_timing(struct ast_timing *i);
+
struct ast_pbx {
int dtimeout; /* Timeout between digits (seconds) */
int rtimeout; /* Timeout for response