diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-25 15:40:38 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-25 15:40:38 +0000 |
commit | d686e9230bc89035926cd5573e49ce4021ed54f0 (patch) | |
tree | 64190d51d24987e9ba9ffdeb8193a03a4c7e4b16 /apps/app_db.c | |
parent | 40d58097e96c4278266c9ac545af8ae41d016cb5 (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: http://svn.digium.com/svn/asterisk/trunk@30241 f38db490-d61c-443f-a65b-d21fe96a405b
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, '/')) { |