हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
GnssConfigurationInterface स्ट्रक्चर का रेफ़रंस
#include <
gps.h
>
प्लैटफ़ॉर्म से HAL में GNSS कॉन्फ़िगरेशन कॉन्टेंट भेजने के लिए इंटरफ़ेस.
परिभाषा,
gps.h
की लाइन
2188
पर दी गई है.
void(* configuration_update)(const char *config_data, int32_t length)
|
एचएएल को जीएनएसएस कॉन्फ़िगरेशन कॉन्टेंट डिलीवर करना. पैरामीटर: config_data - यह एक वर्ण कलेक्शन का पॉइंटर है, जिसमें आम तौर पर फ़ाइल(/etc/gps.conf) से मिलने वाला डेटा होता है. जैसे, UTF8 स्ट्रिंग का क्रम, जिसे '
' से अलग किया जाता है. length - कॉन्फ़िगरेशन डेटा में UTF8 वर्णों की कुल संख्या.
अहम जानकारी: GPS HAL को यह उम्मीद करनी चाहिए कि इस फ़ंक्शन को कई बार कॉल किया जा सकता है. इसे तब भी कॉल किया जा सकता है, जब GpsLocationProvider पहले से ही बना हो और चालू हो. कॉन्फ़िगरेशन डेटा में बदलाव होने के बावजूद, GPS HAL को अलग-अलग कॉलबैक के लिए मौजूदा अनुरोधों को बनाए रखना चाहिए.
परिभाषा,
gps.h
फ़ाइल की लाइन
2205
पर दी गई है.
sizeof(GnssConfigurationInterface) पर सेट करें
परिभाषा,
gps.h
फ़ाइल की लाइन
2190
पर दी गई है.
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
-
hardware/libhardware/include/hardware/
gps.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: GnssConfigurationInterface Struct Reference\n\nGnssConfigurationInterface Struct Reference\n===========================================\n\n[Data Fields](#pub-attribs) \nGnssConfigurationInterface Struct Reference \n\n`\n#include \u003c\n`[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)`\n\u003e\n`\n\n|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/struct_gnss_configuration_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| void(\\* | [configuration_update](/reference/hal/struct_gnss_configuration_interface#aba4127a8b06d8b52f2704706c31dadc5) )(const char \\*config_data, int32_t length) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nInterface for passing GNSS configuration contents from platform to HAL.\n\n\nDefinition at line\n[2188](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\nField Documentation\n-------------------\n\n\n|-------------------------------------------------------------------------|\n| void(\\* configuration_update)(const char \\*config_data, int32_t length) |\n\n\nDeliver GNSS configuration contents to HAL. Parameters: config_data - a pointer to a char array which holds what usually is expected from file(/etc/gps.conf), i.e., a sequence of UTF8 strings separated by '\n\n\n'. length - total number of UTF8 characters in configuraiton data.\n\n\nIMPORTANT: GPS HAL should expect this function can be called multiple times. And it may be called even when GpsLocationProvider is already constructed and enabled. GPS HAL should maintain the existing requests for various callback regardless the change in configuration data.\n\n\nDefinition at line\n[2205](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-------------|\n| size_t size |\n\n\nSet to sizeof(GnssConfigurationInterface)\n\n\nDefinition at line\n[2190](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)"]]