freetdm: added documentation and clean up script

This commit is contained in:
Moises Silva authored and Moises Silva committed 2010-04-28 18:17:50 -04:00
1 parent 56db486189
commit e6f6f559ae
5 files changed
+686 -138

No files matched your search

+8 -9
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))) {