int unload_module(void) { int res; res = cw_format_unregister(name16); if (res) { cw_log(LOG_WARNING, "Failed to unregister format %s.\n", name16); return(-1); } res = cw_format_unregister(name24); if (res) { cw_log(LOG_WARNING, "Failed to unregister format %s.\n", name24); return(-1); } res = cw_format_unregister(name32); if (res) { cw_log(LOG_WARNING, "Failed to unregister format %s.\n", name32); return(-1); } res = cw_format_unregister(name40); if (res) { cw_log(LOG_WARNING, "Failed to unregister format %s.\n", name40); return(-1); } return(0); }
int unload_module(void) { return cw_format_unregister(name); }