Skip to content
Snippets Groups Projects
loader.c 26.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • 
    	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();
    }