summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-09-13 20:51:48 +0000
committerMark Spencer <markster@digium.com>2003-09-13 20:51:48 +0000
commit56f915e783e003d027f0ee4674299080e4d893c8 (patch)
tree0e8008c721582afe7e8954a6be00bdba448be121 /include
parentc511b967eda76b558d96754f71f3755e49d39498 (diff)
CLeanup PBX patch and add localtime stuff for saytime (bug #168)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/localtime.h22
-rwxr-xr-xinclude/asterisk/pbx.h2
-rwxr-xr-xinclude/asterisk/say.h2
3 files changed, 26 insertions, 0 deletions
diff --git a/include/asterisk/localtime.h b/include/asterisk/localtime.h
new file mode 100755
index 000000000..320c293d7
--- /dev/null
+++ b/include/asterisk/localtime.h
@@ -0,0 +1,22 @@
+/*
+ * Asterisk -- A telephony toolkit for Linux.
+ *
+ * Custom localtime functions for multiple timezones
+ *
+ * Copyright (C) 2003, Mark Spencer
+ *
+ * Tilghman Lesher <tlesher@vcch.com>
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License
+ */
+
+#ifndef _ASTERISK_LOCALTIME_H
+#define _ASTERISK_LOCALTIME_H
+
+extern int ast_tzsetwall(void);
+extern void ast_tzset(const char *name);
+extern struct tm *ast_localtime(const time_t *timep, struct tm *p_tm, const char *zone);
+extern time_t ast_mktime(struct tm * const tmp, const char *zone);
+
+#endif
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index c2c4878b9..32dfcc127 100755
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -523,6 +523,8 @@ extern void pbx_builtin_setvar_helper(struct ast_channel *chan, char *name, char
extern void pbx_builtin_clear_globals(void);
extern void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count);
+int ast_extension_patmatch(const char *pattern, const char *data);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
diff --git a/include/asterisk/say.h b/include/asterisk/say.h
index 7c0d911d7..c1bfdeac3 100755
--- a/include/asterisk/say.h
+++ b/include/asterisk/say.h
@@ -69,6 +69,8 @@ int ast_say_date(struct ast_channel *chan, time_t t, char *ints, char *lang);
int ast_say_datetime_from_now(struct ast_channel *chan, time_t t, char *ints, char *lang);
+int ast_say_date_with_format(struct ast_channel *chan, time_t t, char *ints, char *lang, char *format, char *timezone);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif