Return-Path: From: Andrzej Kaczmarek To: CC: Andrzej Kaczmarek Subject: [PATCH v6 00/13] Heart Rate Profile plugin Date: Thu, 20 Sep 2012 13:14:37 +0200 Message-ID: <1348139690-26985-1-git-send-email-andrzej.kaczmarek@tieto.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi, Here's v6 of heartrate plugin patches. After some thinking I decided to refactor code a bit to keep it more compact and (hopefully) easier to follow. Most important change here is that instead of nested structures to hold all characteristics and descriptors I only store handles to few attributes which are used later. This allows to remove some code lines, mostly helper functions to traverse lists of structures in order to get some attribute handle which is now accessible immediately. So to sum up v5 vs. v6: less code, less patches, still works. Comments are welcome. Andrzej Kaczmarek (6): heartrate: Add attio callbacks heartrate: Discover HRS characteristics heartrate: Discover Heart Rate Measurement CCC heartrate: Add support to enable notifications heartrate: Process measurement notifications heartrate: Add support to reset Energy Expended Rafal Garbat (6): heartrate: Add initial HRP client support heartrate: Read Body Sensor Location characteristics heartrate: Add HeartRateManager interface heartrate: Add GetProperties method heartrate: Add HeartRateWatcher interface to default policy heartrate: Add test script Santiago Carot-Nemesio (1): Heart Rate Profile (HRP) client API Makefile.am | 9 +- Makefile.tools | 4 +- doc/heartrate-api.txt | 84 +++++ lib/uuid.h | 5 + profiles/heartrate/heartrate.c | 826 +++++++++++++++++++++++++++++++++++++++++ profiles/heartrate/heartrate.h | 27 ++ profiles/heartrate/main.c | 52 +++ profiles/heartrate/manager.c | 93 +++++ profiles/heartrate/manager.h | 24 ++ src/bluetooth.conf | 1 + test/test-heartrate | 103 +++++ 11 files changed, 1224 insertions(+), 4 deletions(-) create mode 100644 doc/heartrate-api.txt create mode 100644 profiles/heartrate/heartrate.c create mode 100644 profiles/heartrate/heartrate.h create mode 100644 profiles/heartrate/main.c create mode 100644 profiles/heartrate/manager.c create mode 100644 profiles/heartrate/manager.h create mode 100755 test/test-heartrate -- 1.7.11.3