aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_indications.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-25 06:38:09 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-25 06:38:09 +0000
commit1b4ffa52484b48cd5af12e659ec12e32c8ebdaa8 (patch)
tree5b90e73ac89248eea33d1422f7da41214e0e3703 /res/res_indications.c
parentd5ae839795fbfd49def8978575b9ae0650ae6c78 (diff)
rename the structs struct tone_zone_sound and struct tone_zone
defined in indications.h to ind_tone_zone_sound and ind_tone_zone, to avoid conflicts with the structs with the same names defined in tonezone.h Hope i haven't missed any instance. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48958 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_indications.c')
-rw-r--r--res/res_indications.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/res/res_indications.c b/res/res_indications.c
index a4d8ae20e..c0b1404c2 100644
--- a/res/res_indications.c
+++ b/res/res_indications.c
@@ -85,7 +85,7 @@ char *playtones_desc=
*/
static int handle_add_indication(int fd, int argc, char *argv[])
{
- struct tone_zone *tz;
+ struct ind_tone_zone *tz;
int created_country = 0;
if (argc != 5) return RESULT_SHOWUSAGE;
@@ -119,7 +119,7 @@ static int handle_add_indication(int fd, int argc, char *argv[])
*/
static int handle_remove_indication(int fd, int argc, char *argv[])
{
- struct tone_zone *tz;
+ struct ind_tone_zone *tz;
if (argc != 3 && argc != 4) return RESULT_SHOWUSAGE;
if (argc == 3) {
@@ -148,7 +148,7 @@ static int handle_remove_indication(int fd, int argc, char *argv[])
*/
static int handle_show_indications(int fd, int argc, char *argv[])
{
- struct tone_zone *tz = NULL;
+ struct ind_tone_zone *tz = NULL;
char buf[256];
int found_country = 0;
@@ -166,7 +166,7 @@ static int handle_show_indications(int fd, int argc, char *argv[])
for (i=2; i<argc; i++) {
if (strcasecmp(tz->country,argv[i])==0 &&
!tz->alias[0]) {
- struct tone_zone_sound* ts;
+ struct ind_tone_zone_sound* ts;
if (!found_country) {
found_country = 1;
ast_cli(fd,"Country Indication PlayList\n"
@@ -196,7 +196,7 @@ static int handle_show_indications(int fd, int argc, char *argv[])
*/
static int handle_playtones(struct ast_channel *chan, void *data)
{
- struct tone_zone_sound *ts;
+ struct ind_tone_zone_sound *ts;
int res;
if (!data || !((char*)data)[0]) {
@@ -231,7 +231,7 @@ static int ind_load_module(void)
struct ast_variable *v;
char *cxt;
char *c;
- struct tone_zone *tones;
+ struct ind_tone_zone *tones;
const char *country = NULL;
/* that the following cast is needed, is yuk! */
@@ -284,7 +284,7 @@ static int ind_load_module(void)
c = countries;
country = strsep(&c,",");
while (country) {
- struct tone_zone* azone;
+ struct ind_tone_zone* azone;
if (!(azone = ast_calloc(1, sizeof(*azone)))) {
ast_config_destroy(cfg);
return -1;
@@ -300,7 +300,7 @@ static int ind_load_module(void)
}
} else {
/* add tone to country */
- struct tone_zone_sound *ps,*ts;
+ struct ind_tone_zone_sound *ps,*ts;
for (ps=NULL,ts=tones->tones; ts; ps=ts, ts=ts->next) {
if (strcasecmp(v->name,ts->name)==0) {
/* already there */