From c79bcdedc92a5ae7dad67b5f10452d549ccfb39e Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 4 Dec 2019 01:04:32 +0100 Subject: 2/2: wrap ipa_name in osmo_cni_peer_id with type enum and union To be prepared for the future in public API, wrap the new osmo_ipa_name struct in an enum-type and union called osmo_cni_peer. During code review it was requested to insert an ability to handle different kinds of peer id, in order to be able to add a Global Title in the future. Use the generic osmo_cni_peer only in the publicly visible API. For osmo-hlr internal code, I intend to postpone implementing this into the future, when a different peer identification actually gets introduced. This way we don't need to implement it now in all osmo-hlr code paths (save time now), but still make all external API users aware that this type may be extended in the future. Change-Id: Ide9dcdca283ab989240cfc6e53e9211862a199c5 --- src/db_hlr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db_hlr.c') diff --git a/src/db_hlr.c b/src/db_hlr.c index fdac75f..ec8f896 100644 --- a/src/db_hlr.c +++ b/src/db_hlr.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include #define LOGHLR(imsi, level, fmt, args ...) LOGP(DAUC, level, "IMSI='%s': " fmt, imsi, ## args) -- cgit v1.2.3