diff --git a/binc/advertisement.c b/binc/advertisement.c index 5645106..4743365 100644 --- a/binc/advertisement.c +++ b/binc/advertisement.c @@ -221,6 +221,11 @@ const char *binc_advertisement_get_path(const Advertisement *advertisement) { return advertisement->path; } +const char *binc_advertisement_get_local_name(const Advertisement *advertisement) { + g_assert(advertisement != NULL); + return advertisement->local_name; +} + void binc_advertisement_set_services(Advertisement *advertisement, const GPtrArray *service_uuids) { g_assert(advertisement != NULL); g_assert(service_uuids != NULL); diff --git a/binc/advertisement.h b/binc/advertisement.h index ff3fd26..5f2dce1 100644 --- a/binc/advertisement.h +++ b/binc/advertisement.h @@ -51,6 +51,8 @@ void binc_advertisement_register(Advertisement *advertisement, const Adapter *ad void binc_advertisement_unregister(Advertisement *advertisement, const Adapter *adapter); +const char *binc_advertisement_get_local_name(const Advertisement *advertisement); + #ifdef __cplusplus } #endif