osmo_ss7_asp_find_by_name(): improve docs and coding style

Change-Id: Ia90776c9c3efc3402d59c4f10e5f2cf26274b3f8
Related: SYS#5424
This commit is contained in:
Vadim Yanitskiy 2024-02-27 00:26:03 +07:00
parent 246f7cd881
commit 85055b5ca2
2 changed files with 8 additions and 7 deletions

View File

@ -476,9 +476,9 @@ int osmo_ss7_asp_peer_del_host(struct osmo_ss7_asp_peer *peer, const char *host)
struct osmo_ss7_asp *
osmo_ss7_asp_find_by_name(struct osmo_ss7_instance *inst, const char *name);
struct osmo_ss7_asp
*osmo_ss7_asp_find_by_proto(struct osmo_ss7_as *as,
enum osmo_ss7_asp_protocol proto);
struct osmo_ss7_asp *
osmo_ss7_asp_find_by_proto(struct osmo_ss7_as *as,
enum osmo_ss7_asp_protocol proto);
struct osmo_ss7_asp *
osmo_ss7_asp_find(struct osmo_ss7_instance *inst, const char *name,
uint16_t remote_port, uint16_t local_port,

View File

@ -998,12 +998,13 @@ osmo_ss7_asp_find_by_name(struct osmo_ss7_instance *inst, const char *name)
return NULL;
}
/*! \brief Find an ASP that matches the given protocol.
/*! \brief Find an ASP that matches the given ASP protocol (xUA variant).
* \param[in] as Application Server in which to look for \ref asp
* \param[in] proto ASP protocol (xUA variant) to match
* \returns SS7 ASP in case a matching one is found; NULL otherwise */
struct osmo_ss7_asp
*osmo_ss7_asp_find_by_proto(struct osmo_ss7_as *as,
enum osmo_ss7_asp_protocol proto)
struct osmo_ss7_asp *
osmo_ss7_asp_find_by_proto(struct osmo_ss7_as *as,
enum osmo_ss7_asp_protocol proto)
{
unsigned int i;