libubx/ubx.c
static void ubx_module_cleanup(ubx_node_info_t *ni, const char *lib)
{
	ubx_module_t *mod;

	HASH_FIND_STR(ni->modules, lib, mod);

	if (mod == NULL) {
		logf_err(ni, "unknown module %s", lib);
		return;
	}

	mod->cleanup(ni);
}
/**
 * ubx_module_close - close a module from a node.
 *
 * @param ni node_info
 * @param lib name of module library to unload
 */
close a module from a node.
@param ni node_info
@param lib name of module library to unload
close a module from a node . @param ni node_info @param lib name of module library to unload
static void ubx_module_cleanup(ubx_node_info_t *ni, const char *lib)
{
	ubx_module_t *mod;
	HASH_FIND_STR(ni->modules, lib, mod);
	if (mod == NULL) {
		logf_err(ni, "unknown module %s", lib);
		return;
	}
	mod->cleanup(ni);
}
static void ubx_module_cleanup ( ubx_node_info_t * ni , const char * lib ) { ubx_module_t * mod ; HASH_FIND_STR ( ni -> modules , lib , mod ) ; if ( mod == NULL ) { logf_err ( ni , " " , lib ) ; return ; } mod -> cleanup ( ni ) ; }
ubx_module_close - close a module from a node.
ubx_module_close - close a module from a node .