aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-19 07:23:22 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-19 07:23:22 +0000
commit8dc8ee64d0b884345eebe006feef9f079f6b1711 (patch)
treebf0929759c163de64e35936191f4de8e1860e330 /say.c
parente05d203399a4f8131da7d4f1fa31ef3fae529866 (diff)
move to a different file (channel.c for the time being) the
wrappers around the basic 'say' functions, and redeclare these wrappers as ordinary functions rather than function pointers. This way, alternative implementations of the 'say' functions will only have to implement the basic functions and not the wrappers. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21338 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rw-r--r--say.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/say.c b/say.c
index 908660efa..d89643a69 100644
--- a/say.c
+++ b/say.c
@@ -132,11 +132,6 @@ static int say_character_str_full(struct ast_channel *chan, const char *str, con
return res;
}
-static int say_character_str(struct ast_channel *chan, const char *str, const char *ints, const char *lang)
-{
- return ast_say_character_str_full(chan, str, ints, lang, -1, -1);
-}
-
static int say_phonetic_str_full(struct ast_channel *chan, const char *str, const char *ints, const char *lang, int audiofd, int ctrlfd)
{
const char *fn;
@@ -211,11 +206,6 @@ static int say_phonetic_str_full(struct ast_channel *chan, const char *str, cons
return res;
}
-static int say_phonetic_str(struct ast_channel *chan, const char *str, const char *ints, const char *lang)
-{
- return ast_say_phonetic_str_full(chan, str, ints, lang, -1, -1);
-}
-
static int say_digit_str_full(struct ast_channel *chan, const char *str, const char *ints, const char *lang, int audiofd, int ctrlfd)
{
const char *fn;
@@ -262,24 +252,6 @@ static int say_digit_str_full(struct ast_channel *chan, const char *str, const c
return res;
}
-static int say_digit_str(struct ast_channel *chan, const char *str, const char *ints, const char *lang)
-{
- return ast_say_digit_str_full(chan, str, ints, lang, -1, -1);
-}
-
-static int say_digits_full(struct ast_channel *chan, int num, const char *ints, const char *lang, int audiofd, int ctrlfd)
-{
- char fn2[256];
-
- snprintf(fn2, sizeof(fn2), "%d", num);
- return ast_say_digit_str_full(chan, fn2, ints, lang, audiofd, ctrlfd);
-}
-
-static int say_digits(struct ast_channel *chan, int num, const char *ints, const char *lang)
-{
- return ast_say_digits_full(chan, num, ints, lang, -1, -1);
-}
-
/* Forward declarations */
/*! \page Def_syntaxlang Asterisk Language Syntaxes supported
\note Not really language codes.
@@ -456,12 +428,6 @@ static int say_number_full(struct ast_channel *chan, int num, const char *ints,
return(ast_say_number_full_en(chan, num, ints, language, audiofd, ctrlfd));
}
-/*! \brief ast_say_number: call language-specific functions without file descriptors */
-static int say_number(struct ast_channel *chan, int num, const char *ints, const char *language, const char *options)
-{
- return(ast_say_number_full(chan, num, ints, language, options, -1, -1));
-}
-
/*! \brief ast_say_number_full_en: English syntax */
/* This is the default syntax, if no other syntax defined in this file is used */
static int ast_say_number_full_en(struct ast_channel *chan, int num, const char *ints, const char *language, int audiofd, int ctrlfd)
@@ -2288,12 +2254,6 @@ static int say_enumeration_full(struct ast_channel *chan, int num, const char *i
return(ast_say_enumeration_full_en(chan, num, ints, language, audiofd, ctrlfd));
}
-/*! \brief ast_say_enumeration: call language-specific functions without file descriptors */
-static int say_enumeration(struct ast_channel *chan, int num, const char *ints, const char *language, const char *options)
-{
- return(ast_say_enumeration_full(chan, num, ints, language, options, -1, -1));
-}
-
/*! \brief ast_say_enumeration_full_en: English syntax */
/* This is the default syntax, if no other syntax defined in this file is used */
static int ast_say_enumeration_full_en(struct ast_channel *chan, int num, const char *ints, const char *language, int audiofd, int ctrlfd)
@@ -6201,17 +6161,10 @@ static int ast_say_date_with_format_gr(struct ast_channel *chan, time_t time, co
*/
static void __attribute__((constructor)) __say_init(void)
{
- ast_say_number = say_number;
ast_say_number_full = say_number_full;
- ast_say_enumeration = say_enumeration;
ast_say_enumeration_full = say_enumeration_full;
- ast_say_digits = say_digits;
- ast_say_digits_full = say_digits_full;
- ast_say_digit_str = say_digit_str;
ast_say_digit_str_full = say_digit_str_full;
- ast_say_character_str = say_character_str;
ast_say_character_str_full = say_character_str_full;
- ast_say_phonetic_str = say_phonetic_str;
ast_say_phonetic_str_full = say_phonetic_str_full;
ast_say_datetime = say_datetime;
ast_say_time = say_time;