diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-05-25 15:40:38 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-05-25 15:40:38 +0000 |
commit | a96606b32934c1b756364fda6e1fb2c4825e54d7 (patch) | |
tree | 64190d51d24987e9ba9ffdeb8193a03a4c7e4b16 /apps/app_db.c | |
parent | 18248f092f5c3f3eddc43d722f9c219ed57f3702 (diff) |
add DB_DELETE function for the common case of retrieving and deleting a key in
a single operation (issue #7214, twilson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_db.c')
-rw-r--r-- | apps/app_db.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/app_db.c b/apps/app_db.c index 4c5f5c6fa..55fe25dcc 100644 --- a/apps/app_db.c +++ b/apps/app_db.c @@ -48,9 +48,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/lock.h" #include "asterisk/options.h" +/*! \todo XXX Remove this application after 1.4 is relased */ static char *d_descrip = " DBdel(family/key): This applicaiton will delete a key from the Asterisk\n" -"database.\n"; +"database.\n" +" This application has been DEPRECATED in favor of the DB_DELETE function.\n"; static char *dt_descrip = " DBdeltree(family[/keytree]): This application will delete a family or keytree\n" @@ -109,9 +111,15 @@ static int del_exec(struct ast_channel *chan, void *data) { char *argv, *family, *key; struct localuser *u; + static int deprecation_warning = 0; LOCAL_USER_ADD(u); + if (!deprecation_warning) { + deprecation_warning = 1; + ast_log(LOG_WARNING, "The DBdel application has been deprecated in favor of the DB_DELETE dialplan function!\n"); + } + argv = ast_strdupa(data); if (strchr(argv, '/')) { |