mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
More "moremanager" fixes. Manager commands to check module status.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -288,6 +288,25 @@ void ast_unregister_file_version(const char *file)
|
||||
ast_free(find);
|
||||
}
|
||||
|
||||
/*! \brief Find version for given module name */
|
||||
const char *ast_file_version_find(const char *file)
|
||||
{
|
||||
struct file_version *iterator;
|
||||
|
||||
AST_RWLIST_WRLOCK(&file_versions);
|
||||
AST_RWLIST_TRAVERSE_SAFE_BEGIN(&file_versions, iterator, list) {
|
||||
if (!strcasecmp(iterator->file, file))
|
||||
break;
|
||||
}
|
||||
AST_RWLIST_TRAVERSE_SAFE_END;
|
||||
AST_RWLIST_UNLOCK(&file_versions);
|
||||
if (iterator)
|
||||
return iterator->version;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct thread_list_t {
|
||||
AST_RWLIST_ENTRY(thread_list_t) list;
|
||||
char *name;
|
||||
|
||||
Reference in New Issue
Block a user