summaryrefslogtreecommitdiff
path: root/main/indications.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-07-05 11:29:01 -0400
committerSean Bright <sean.bright@gmail.com>2017-07-05 11:25:58 -0500
commit325eeced6a7edea019cc6a013460f617d10bfc28 (patch)
tree3484e7e9df9081ea97a003964993ff7087d558b3 /main/indications.c
parentb62a3f0a67628e99cfceca36bafb1362788700ff (diff)
core: Remove 'Data Retrieval API'
This API was not actively maintained, was not added to new modules (such as res_pjsip), and there exist better alternatives to acquire the same information, such as the ARI. Change-Id: I4b2185a83aeb74798b4ad43ff8f89f971096aa83
Diffstat (limited to 'main/indications.c')
-rw-r--r--main/indications.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/main/indications.c b/main/indications.c
index 0af6668cf..8940a37b0 100644
--- a/main/indications.c
+++ b/main/indications.c
@@ -41,23 +41,9 @@
#include "asterisk/cli.h"
#include "asterisk/module.h"
#include "asterisk/astobj2.h"
-#include "asterisk/data.h"
#include "asterisk/_private.h" /* _init(), _reload() */
-#define DATA_EXPORT_TONE_ZONE(MEMBER) \
- MEMBER(ast_tone_zone, country, AST_DATA_STRING) \
- MEMBER(ast_tone_zone, description, AST_DATA_STRING) \
- MEMBER(ast_tone_zone, nrringcadence, AST_DATA_UNSIGNED_INTEGER)
-
-AST_DATA_STRUCTURE(ast_tone_zone, DATA_EXPORT_TONE_ZONE);
-
-#define DATA_EXPORT_TONE_ZONE_SOUND(MEMBER) \
- MEMBER(ast_tone_zone_sound, name, AST_DATA_STRING) \
- MEMBER(ast_tone_zone_sound, data, AST_DATA_STRING)
-
-AST_DATA_STRUCTURE(ast_tone_zone_sound, DATA_EXPORT_TONE_ZONE_SOUND);
-
/* Globals */
static const char config[] = "indications.conf";
@@ -1124,33 +1110,6 @@ static int ast_tone_zone_cmp(void *obj, void *arg, int flags)
CMP_MATCH | CMP_STOP : 0;
}
-int ast_tone_zone_data_add_structure(struct ast_data *tree, struct ast_tone_zone *zone)
-{
- struct ast_data *data_zone_sound;
- struct ast_tone_zone_sound *s;
-
- ast_data_add_structure(ast_tone_zone, tree, zone);
-
- if (AST_LIST_EMPTY(&zone->tones)) {
- return 0;
- }
-
- data_zone_sound = ast_data_add_node(tree, "tones");
- if (!data_zone_sound) {
- return -1;
- }
-
- ast_tone_zone_lock(zone);
-
- AST_LIST_TRAVERSE(&zone->tones, s, entry) {
- ast_data_add_structure(ast_tone_zone_sound, data_zone_sound, s);
- }
-
- ast_tone_zone_unlock(zone);
-
- return 0;
-}
-
/*!
* \internal
* \brief Clean up resources on Asterisk shutdown