diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-09-13 20:51:48 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-09-13 20:51:48 +0000 |
commit | 8a8d27a2dfa1536f7273579dc7f4886bf9c4cfed (patch) | |
tree | 0e8008c721582afe7e8954a6be00bdba448be121 /include | |
parent | e1c164d7893f1d41083c35b5f5ea440df0940961 (diff) |
CLeanup PBX patch and add localtime stuff for saytime (bug #168)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1506 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/localtime.h | 22 | ||||
-rwxr-xr-x | include/asterisk/pbx.h | 2 | ||||
-rwxr-xr-x | include/asterisk/say.h | 2 |
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 |