• Jakub Pawlowski's avatar
    Restructure GATTC · 36b67072
    Jakub Pawlowski authored
    This patch changes how GATTC is structured. Up till now, it
    contained tBTA_GATTC_CACHE and tBTA_GATTC_CACHE_ATTR. Those
    structures were so ugly, someone hide them inside internal
    header, to make sure noone would ever access them from outside
    GATTC. They are now replaced with:
    tBTA_GATTC_SERVICE,
    tBTA_GATTC_CHARACTERISTIC,
    tBTA_GATTC_DESCRIPTOR and
    tBTA_GATTC_INCLUDED_SVC.
    
    Those looks much better, and were made globally avaliable.
    Thanks to way they're build, we no longer need set of access
    methods, which were also very ugly:
    BTA_GATTC_GetFirstChar
    BTA_GATTC_GetNextChar
    BTA_GATTC_GetFirstIncludedService
    etc.
    
    This patch breaks HID, DO NOT SUBMIT without HID refactor.
    
    Bug: 27455533
    Change-Id: Ic42cfff175e0cc1a0d8e1a1216e2b4b756cbf77d
    36b67072
bta_gattc_int.h 18.4 KB