diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-17 11:03:48 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-17 11:03:48 +0700 |
commit | 382736448edd65fffc910489a464c63eed309922 (patch) | |
tree | b1cb85077b946f828180de8f2c9588c877769d5b /src/host/trxcon/trx_if.h | |
parent | 1b6be6fc24a4ffecbd3c87550561070b9bca1ffe (diff) |
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
Diffstat (limited to 'src/host/trxcon/trx_if.h')
-rw-r--r-- | src/host/trxcon/trx_if.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/trxcon/trx_if.h b/src/host/trxcon/trx_if.h index d5512527..0b3f36f7 100644 --- a/src/host/trxcon/trx_if.h +++ b/src/host/trxcon/trx_if.h @@ -52,8 +52,8 @@ struct trx_ctrl_msg { int cmd_len; }; -int trx_if_open(struct trx_instance **trx, const char *local_host, - const char *remote_host, uint16_t port); +struct trx_instance *trx_if_open(void *tall_ctx, + const char *local_host, const char *remote_host, uint16_t port); void trx_if_flush_ctrl(struct trx_instance *trx); void trx_if_close(struct trx_instance *trx); |