Skip to content

Commit

Permalink
binc_advertisement_get_local_name
Browse files Browse the repository at this point in the history
  • Loading branch information
abqjln committed Oct 8, 2024
1 parent 7388eca commit 59bb366
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions binc/advertisement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions binc/advertisement.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59bb366

Please sign in to comment.