Skip to contentSkip to conversation

build: Cleanup GATT profiles

PATCH New Luiz Augusto von Dentz 1 participant 1 message Aug 31, 2017

Subsystems (2)
lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 build: Cleanup GATT profiles

From: Luiz Augusto von Dentz <[email protected]>

Alert, cyclingspeed, heartrate and proximity can all be implemented using the GATT D-Bus API so they no longer need dedicated APIs.

---
 Makefile.am                       |   7 +-
 Makefile.tools                    |   6 +-
 doc/alert-api.txt                 | 108 -----
 doc/cyclingspeed-api.txt          |  99 -----
 doc/heartrate-api.txt             |  77 ----
 doc/proximity-api.txt             |  56 ---
 profiles/proximity/immalert.c     | 292 --------------
 profiles/proximity/immalert.h     |  26 --
 profiles/proximity/linkloss.c     | 340 ----------------
 profiles/proximity/linkloss.h     |  26 --
 profiles/proximity/main.c         |  81 ----
 profiles/proximity/manager.c      | 196 ---------
 profiles/proximity/manager.h      |  26 --
 profiles/proximity/monitor.c      | 822 --------------------------------------
 profiles/proximity/monitor.h      |  43 --
 profiles/proximity/proximity.conf |   9 -
 profiles/proximity/reporter.c     | 270 -------------
 profiles/proximity/reporter.h     |  46 ---
 test/test-alert                   | 185 ---------
 test/test-cyclingspeed            | 197 ---------
 test/test-heartrate               | 108 -----
 test/test-proximity               |  70 ----
 22 files changed, 4 insertions(+), 3086 deletions(-)
 delete mode 100644 doc/alert-api.txt
 delete mode 100644 doc/cyclingspeed-api.txt
 delete mode 100644 doc/heartrate-api.txt
 delete mode 100644 doc/proximity-api.txt
 delete mode 100644 profiles/proximity/immalert.c
 delete mode 100644 profiles/proximity/immalert.h
 delete mode 100644 profiles/proximity/linkloss.c
 delete mode 100644 profiles/proximity/linkloss.h
 delete mode 100644 profiles/proximity/main.c
 delete mode 100644 profiles/proximity/manager.c
 delete mode 100644 profiles/proximity/manager.h
 delete mode 100644 profiles/proximity/monitor.c
 delete mode 100644 profiles/proximity/monitor.h
 delete mode 100644 profiles/proximity/proximity.conf
 delete mode 100644 profiles/proximity/reporter.c
 delete mode 100644 profiles/proximity/reporter.h
 delete mode 100755 test/test-alert
 delete mode 100755 test/test-cyclingspeed
 delete mode 100755 test/test-heartrate
 delete mode 100755 test/test-proximity
Makefile.am +2 -5
index eaed632e8..c9c639d88 100644
@@ -216,7 +216,7 @@ man_MANS = src/bluetoothd.8
 
 EXTRA_DIST += src/genbuiltin src/bluetooth.conf \
 			src/main.conf profiles/network/network.conf \
-			profiles/input/input.conf profiles/proximity/proximity.conf
+			profiles/input/input.conf
 
 test_scripts =
 unit_tests =
@@ -254,10 +254,7 @@ EXTRA_DIST += doc/mgmt-api.txt \
 		doc/health-api.txt doc/sap-api.txt \
 		doc/input-api.txt
 
-EXTRA_DIST += doc/alert-api.txt \
-		doc/proximity-api.txt doc/heartrate-api.txt \
-		doc/thermometer-api.txt doc/cyclingspeed-api.txt \
-		doc/gatt-api.txt doc/advertising-api.txt
+EXTRA_DIST += doc/gatt-api.txt doc/advertising-api.txt
 
 EXTRA_DIST += doc/obex-api.txt doc/obex-agent-api.txt
 
Makefile.tools +2 -4
index f6cc80bdf..dde566d6d 100644
@@ -438,13 +438,11 @@ test_scripts += test/sap_client.py test/bluezutils.py \
 		test/test-discovery test/test-manager test/test-adapter \
 		test/test-device test/simple-agent \
 		test/simple-endpoint test/test-sap-server \
-		test/test-proximity test/test-network \
-		test/test-thermometer test/test-profile test/test-health \
+		test/test-network test/test-profile test/test-health \
 		test/test-health-sink test/service-record.dtd \
 		test/service-did.xml test/service-spp.xml test/service-opp.xml \
 		test/service-ftp.xml test/simple-player test/test-nap \
-		test/test-heartrate test/test-alert test/test-hfp \
-		test/test-cyclingspeed test/opp-client test/ftp-client \
+		test/test-hfp test/opp-client test/ftp-client \
 		test/pbap-client test/map-client test/example-advertisement \
 		test/example-gatt-server test/example-gatt-client \
 		test/test-gatt-profile
doc/alert-api.txt deleted +0 -108

108 lines not on this page · raw message

doc/cyclingspeed-api.txt deleted +0 -99

99 lines not on this page · raw message

doc/heartrate-api.txt deleted +0 -77

77 lines not on this page · raw message

doc/proximity-api.txt deleted +0 -56

56 lines not on this page · raw message

profiles/proximity/immalert.c deleted +0 -292

292 lines not on this page · raw message

profiles/proximity/immalert.h deleted +0 -26
deleted file mode 100644
index 1a09fa988..000000000
@@ -1,26 +0,0 @@
-/*
- *
- *  BlueZ - Bluetooth protocol stack for Linux
- *
- *  Copyright (C) 2012  Texas Instruments Corporation
- *
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- *
- */
-
-void imm_alert_register(struct btd_adapter *adapter);
-void imm_alert_unregister(struct btd_adapter *adapter);
-const char *imm_alert_get_level(struct btd_device *device);
profiles/proximity/linkloss.c deleted +0 -340

340 lines not on this page · raw message

profiles/proximity/linkloss.h deleted +0 -26
deleted file mode 100644
index 0447def31..000000000
@@ -1,26 +0,0 @@
-/*
- *
- *  BlueZ - Bluetooth protocol stack for Linux
- *
- *  Copyright (C) 2012  Texas Instruments Corporation
- *
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- *
- */
-
-void link_loss_register(struct btd_adapter *adapter);
-void link_loss_unregister(struct btd_adapter *adapter);
-const char *link_loss_get_alert_level(struct btd_device *device);
profiles/proximity/main.c deleted +0 -81

81 lines not on this page · raw message

profiles/proximity/manager.c deleted +0 -196

196 lines not on this page · raw message

profiles/proximity/manager.h deleted +0 -26
deleted file mode 100644
index e65c31d86..000000000
@@ -1,26 +0,0 @@
-/*
- *
- *  BlueZ - Bluetooth protocol stack for Linux
- *
- *  Copyright (C) 2011  Nokia Corporation
- *  Copyright (C) 2011  Marcel Holtmann <[email protected]>
- *
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- *
- */
-
-int proximity_manager_init(GKeyFile *conf);
-void proximity_manager_exit(void);
profiles/proximity/monitor.c deleted +0 -822

822 lines not on this page · raw message

profiles/proximity/monitor.h deleted +0 -43

43 lines not on this page · raw message

profiles/proximity/proximity.conf deleted +0 -9
deleted file mode 100644
index 417610ff7..000000000
@@ -1,9 +0,0 @@
-# Configuration file for the proximity service
-
-# This section contains options which are not specific to any
-# particular interface
-[General]
-
-# Configuration to allow disabling Proximity services
-# Allowed values: LinkLoss,PathLoss,FindMe
-Disable=PathLoss
profiles/proximity/reporter.c deleted +0 -270

270 lines not on this page · raw message

profiles/proximity/reporter.h deleted +0 -46

46 lines not on this page · raw message

test/test-alert deleted +0 -185

185 lines not on this page · raw message

test/test-cyclingspeed deleted +0 -197

197 lines not on this page · raw message

test/test-heartrate deleted +0 -108

67 lines not on this page · raw message

test/test-proximity deleted +0 -70

70 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.13.5

Part of the diff is not shown here. View the raw message.