freetdm: added documentation and clean up script

This commit is contained in:
Moises Silva
2010-04-26 16:55:44 -04:00
committed by Moises Silva
parent 56db486189
commit e6f6f559ae
5 changed files with 686 additions and 138 deletions

View File

@@ -3163,21 +3163,20 @@ static struct {
} interfaces;
FT_DECLARE(char *) ftdm_api_execute(const char *type, const char *cmd)
FT_DECLARE(char *) ftdm_api_execute(const char *cmd)
{
ftdm_io_interface_t *fio = NULL;
char *dup = NULL, *p;
char *rval = NULL;
char *type = NULL;
if (type && !cmd) {
dup = ftdm_strdup(type);
if ((p = strchr(dup, ' '))) {
*p++ = '\0';
cmd = p;
}
type = dup;
dup = ftdm_strdup(cmd);
if ((p = strchr(dup, ' '))) {
*p++ = '\0';
cmd = p;
}
type = dup;
ftdm_mutex_lock(globals.mutex);
if (!(fio = (ftdm_io_interface_t *) hashtable_search(globals.interface_hash, (void *)type))) {