Newer
Older
return cur ? 0 : -1;
}
struct ast_module *ast_module_ref(struct ast_module *mod)
{
ast_atomic_fetchadd_int(&mod->usecount, +1);
ast_update_use_count();
return mod;
}
void ast_module_unref(struct ast_module *mod)
{
ast_atomic_fetchadd_int(&mod->usecount, -1);
ast_update_use_count();
}