trxcon/trx_if: refactor trx_if_open()
commit382736448edd65fffc910489a464c63eed309922
authorVadim Yanitskiy <axilirator@gmail.com>
Thu, 17 Jan 2019 04:03:48 +0000 (17 11:03 +0700)
committerVadim Yanitskiy <axilirator@gmail.com>
Thu, 17 Jan 2019 04:03:48 +0000 (17 11:03 +0700)
treeb1cb85077b946f828180de8f2c9588c877769d5b
parent1b6be6fc24a4ffecbd3c87550561070b9bca1ffe
trxcon/trx_if: refactor trx_if_open()

The main changes are:

  - return pointer to the allocated trx_instance or NULL,
  - extend debug message with TRX address and base port,
  - accept the talloc context as 'tall_ctx' argument,
  - rename goto label 'error' to 'udp_error',
  - rename argument 'port' to 'base_port'.

Change-Id: I39b24afee2f09d6a6c500cfc26ac45f206589c5c
src/host/trxcon/trx_if.c
src/host/trxcon/trx_if.h
src/host/trxcon/trxcon.c