हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
btgatt_interface_t स्ट्रक्चर का रेफ़रंस
#include <
bt_gatt.h
>
यह स्टैंडर्ड ब्लूटूथ GATT इंटरफ़ेस दिखाता है.
bt_gatt.h
फ़ाइल की लाइन
40
पर परिभाषा.
इंटरफ़ेस बंद करता है
bt_gatt.h
फ़ाइल की लाइन
50
पर परिभाषा.
GATT क्लाइंट इंटरफ़ेस के तरीकों के लिए पॉइंटर.
परिभाषा,
bt_gatt.h
फ़ाइल की लाइन
53
पर दी गई है.
इंटरफ़ेस को शुरू करता है और कॉलबैक रूटीन उपलब्ध कराता है
bt_gatt.h
फ़ाइल की लाइन
47
पर परिभाषा.
GATT सर्वर इंटरफ़ेस के तरीकों का पॉइंटर.
bt_gatt.h
फ़ाइल की लाइन
56
पर परिभाषा.
sizeof(btgatt_interface_t) पर सेट करें
परिभाषा,
bt_gatt.h
फ़ाइल की लाइन
42
पर दी गई है.
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
-
hardware/libhardware/include/hardware/
bt_gatt.h
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Android Hardware Abstraction Layer: btgatt_interface_t Struct Reference\n\nbtgatt_interface_t Struct Reference\n===================================\n\n[Data Fields](#pub-attribs) \nbtgatt_interface_t Struct Reference \n\n`\n#include \u003c\n`[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/structbtgatt__interface__t#a854352f53b148adc24983a58a1866d66) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [init](/reference/hal/structbtgatt__interface__t#a15fca7a0f2a74810223a31f3e1b234b2) )(const [btgatt_callbacks_t](/reference/hal/structbtgatt__callbacks__t) \\*callbacks) |\n| ||\n| void(\\* | [cleanup](/reference/hal/structbtgatt__interface__t#a8e1ba7348775abcd3cd56ec6f718bea0) )(void) |\n| ||\n| const [btgatt_client_interface_t](/reference/hal/structbtgatt__client__interface__t) \\* | [client](/reference/hal/structbtgatt__interface__t#ad376dedbfa9df97ca8eaad22cb074cd7) |\n| ||\n| const [btgatt_server_interface_t](/reference/hal/structbtgatt__server__interface__t) \\* | [server](/reference/hal/structbtgatt__interface__t#a782f6b6e9804f4f5a802a9d74094a782) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nRepresents the standard Bluetooth GATT interface.\n\n\nDefinition at line\n[40](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\nField Documentation\n-------------------\n\n\n|------------------------|\n| void(\\* cleanup)(void) |\n\n\nCloses the interface\n\n\nDefinition at line\n[50](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|------------------------------------------------------------------------------------------------|\n| const [btgatt_client_interface_t](/reference/hal/structbtgatt__client__interface__t) \\* client |\n\n\nPointer to the GATT client interface methods.\n\n\nDefinition at line\n[53](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* init)(const [btgatt_callbacks_t](/reference/hal/structbtgatt__callbacks__t) \\*callbacks) |\n\n\nInitializes the interface and provides callback routines\n\n\nDefinition at line\n[47](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|------------------------------------------------------------------------------------------------|\n| const [btgatt_server_interface_t](/reference/hal/structbtgatt__server__interface__t) \\* server |\n\n\nPointer to the GATT server interface methods.\n\n\nDefinition at line\n[56](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|-------------|\n| size_t size |\n\n\nSet to sizeof(btgatt_interface_t)\n\n\nDefinition at line\n[42](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)"]]