aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-13 19:35:59 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-13 19:35:59 +0000
commitea86ed1263ec076f14681226c4f52dc1f70489c3 (patch)
tree6965bcb0befaa661d965f52f7a917aa1d502a399 /res
parentc74e090245d4327130e492e495769d5b3b81836b (diff)
Merged revisions 168562 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r168562 | russell | 2009-01-13 13:22:13 -0600 (Tue, 13 Jan 2009) | 10 lines Merged revisions 168561 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r168561 | russell | 2009-01-13 13:13:05 -0600 (Tue, 13 Jan 2009) | 2 lines Revert unnecessary indications API change from rev 122314 ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@168565 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_indications.c20
-rw-r--r--res/snmp/agent.c4
2 files changed, 12 insertions, 12 deletions
diff --git a/res/res_indications.c b/res/res_indications.c
index ff2e2c9bc..285671bf9 100644
--- a/res/res_indications.c
+++ b/res/res_indications.c
@@ -65,7 +65,7 @@ char *playtones_desc=
*/
static char *handle_cli_indication_add(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
- struct ind_tone_zone *tz;
+ struct tone_zone *tz;
int created_country = 0;
switch (cmd) {
@@ -115,7 +115,7 @@ static char *handle_cli_indication_add(struct ast_cli_entry *e, int cmd, struct
*/
static char *handle_cli_indication_remove(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
- struct ind_tone_zone *tz;
+ struct tone_zone *tz;
switch (cmd) {
case CLI_INIT:
@@ -160,7 +160,7 @@ static char *handle_cli_indication_remove(struct ast_cli_entry *e, int cmd, stru
*/
static char *handle_cli_indication_show(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
- struct ind_tone_zone *tz = NULL;
+ struct tone_zone *tz = NULL;
char buf[256];
int found_country = 0;
@@ -189,7 +189,7 @@ static char *handle_cli_indication_show(struct ast_cli_entry *e, int cmd, struct
int i, j;
for (i = 2; i < a->argc; i++) {
if (strcasecmp(tz->country, a->argv[i]) == 0 && !tz->alias[0]) {
- struct ind_tone_zone_sound* ts;
+ struct tone_zone_sound* ts;
if (!found_country) {
found_country = 1;
ast_cli(a->fd, "Country Indication PlayList\n");
@@ -221,7 +221,7 @@ static char *handle_cli_indication_show(struct ast_cli_entry *e, int cmd, struct
*/
static int handle_playtones(struct ast_channel *chan, void *data)
{
- struct ind_tone_zone_sound *ts;
+ struct tone_zone_sound *ts;
int res;
if (!data || !((char*)data)[0]) {
@@ -250,10 +250,10 @@ static int handle_stopplaytones(struct ast_channel *chan, void *data)
}
/* helper function to delete a tone_zone in its entirety */
-static inline void free_zone(struct ind_tone_zone* zone)
+static inline void free_zone(struct tone_zone* zone)
{
while (zone->tones) {
- struct ind_tone_zone_sound *tmp = zone->tones->next;
+ struct tone_zone_sound *tmp = zone->tones->next;
ast_free((void *)zone->tones->name);
ast_free((void *)zone->tones->data);
ast_free(zone->tones);
@@ -273,7 +273,7 @@ static int ind_load_module(int reload)
struct ast_variable *v;
char *cxt;
char *c;
- struct ind_tone_zone *tones;
+ struct tone_zone *tones;
const char *country = NULL;
struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
@@ -333,7 +333,7 @@ static int ind_load_module(int reload)
c = countries;
country = strsep(&c,",");
while (country) {
- struct ind_tone_zone* azone;
+ struct tone_zone* azone;
if (!(azone = ast_calloc(1, sizeof(*azone)))) {
ast_config_destroy(cfg);
free_zone(tones);
@@ -350,7 +350,7 @@ static int ind_load_module(int reload)
}
} else {
/* add tone to country */
- struct ind_tone_zone_sound *ps,*ts;
+ struct 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 */
diff --git a/res/snmp/agent.c b/res/snmp/agent.c
index 225fb63a7..5760be85f 100644
--- a/res/snmp/agent.c
+++ b/res/snmp/agent.c
@@ -644,7 +644,7 @@ static u_char *ast_var_indications(struct variable *vp, oid *name, size_t *lengt
int exact, size_t *var_len, WriteMethod **write_method)
{
static unsigned long long_ret;
- struct ind_tone_zone *tz = NULL;
+ struct tone_zone *tz = NULL;
if (header_generic(vp, name, length, exact, var_len, write_method))
return NULL;
@@ -674,7 +674,7 @@ static u_char *ast_var_indications_table(struct variable *vp, oid *name, size_t
int exact, size_t *var_len, WriteMethod **write_method)
{
static unsigned long long_ret;
- struct ind_tone_zone *tz = NULL;
+ struct tone_zone *tz = NULL;
int i;
if (header_simple_table(vp, name, length, exact, var_len, write_method, -1))