64 static const char dt_app[] =
"DBdeltree";
68 char *argv, *family, *keytree;
72 if (strchr(argv,
'/')) {
73 family = strsep(&argv,
"/");
74 keytree = strsep(&argv,
"\0");
75 if (!family || !keytree) {
76 ast_debug(1,
"Ignoring; Syntax error in argument\n");
79 if (ast_strlen_zero(keytree))
87 ast_verb(3,
"DBdeltree: family=%s, keytree=%s\n", family, keytree);
89 ast_verb(3,
"DBdeltree: family=%s\n", family);
93 ast_verb(3,
"DBdeltree: Error deleting key from database.\n");
99 static int unload_module(
void)
104 static int load_module(
void)
Main Channel structure associated with a channel.
Asterisk locking-related definitions:
Asterisk main include file. File version handling, generic pbx functions.
Generic File Format Support. Should be included by clients of the file handling routines. File service providers should instead include mod_format.h.
int ast_unregister_application(const char *app)
Unregister an application.
General Asterisk PBX channel definitions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
#define ast_debug(level,...)
Log a DEBUG message.
Core PBX routines and definitions.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
Persistent data storage (akin to *doze registry)
int ast_db_deltree(const char *family, const char *keytree)
Delete one or more entries in astdb.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.