libubx/ubx.c
ubx_block_t *ubx_block_unregister(ubx_node_info_t *ni, const char *name)
{
	ubx_block_t *tmpc;

	HASH_FIND_STR(ni->blocks, name, tmpc);

	if (tmpc == NULL) {
		logf_err(ni, "block %s not registered", name);
		goto out;
	}

	HASH_DEL(ni->blocks, tmpc);
 out:
	return tmpc;
}
/**
 * ubx_block_unregister - unregister a block.
 *
 * @param ni
 * @param type
 * @param name
 *
 * @return the unregistered block or NULL in case of failure.
 */
unregister a block.

@return the unregistered block or NULL in case of failure.
unregister a block . @return the unregistered block or NULL in case of failure .
ubx_block_t *ubx_block_unregister(ubx_node_info_t *ni, const char *name)
{
	ubx_block_t *tmpc;
	HASH_FIND_STR(ni->blocks, name, tmpc);
	if (tmpc == NULL) {
		logf_err(ni, "block %s not registered", name);
		goto out;
	}
	HASH_DEL(ni->blocks, tmpc);
 out:
	return tmpc;
}
ubx_block_t * ubx_block_unregister ( ubx_node_info_t * ni , const char * name ) { ubx_block_t * tmpc ; HASH_FIND_STR ( ni -> blocks , name , tmpc ) ; if ( tmpc == NULL ) { logf_err ( ni , " " , name ) ; goto out ; } HASH_DEL ( ni -> blocks , tmpc ) ; out : return tmpc ; }
ubx_block_unregister - unregister a block.
ubx_block_unregister - unregister a block .