zephyr
zephyr copied to clipboard
Bluetooth: Host: Move GAP service to new file
Wouldn't subsys/bluetooth/services/gap.c
make more sense as the location?
Wouldn't subsys/bluetooth/services/gap.c make more sense as the location?
To be clear, I'm not 100% convinced of this since GAP is a "core" service, but we do have a "services" directory for GATT services, so...
Wouldn't
subsys/bluetooth/services/gap.c
make more sense as the location?
EDIT: I misread your comment as proposing subsys/bluetooth/gap.c
.
My intention is that gap_svc.c
is the GATT "frontend" for GAP. This file will not be compiled in when the GATT server is not.
I want to move the GAP "values" "backend" into gap.c
later. What I would put into gap.c
is at least bt_dev.name
, bt_dev.appearance
, bt_get_name
, bt_set_name
, bt_get_appearance
, bt_set_appearance
. These are used by more than just the GAP service, for example, advertising.
Wouldn't
subsys/bluetooth/services/gap.c
make more sense as the location?
I am positive to this. True, the service is mandatory on all GATT servers, but that can just be enforced by kconfig / build system.
Fixed failing compliance.
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.