Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binc_advertisement_get_local_name #69

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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