हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
AGpsStatus स्ट्रक्चर का रेफ़रंस
#include <
gps.h
>
परिभाषा,
gps.h
की फ़ाइल के
885
पंक्ति पर दी गई है.
struct sockaddr_storage addr
|
शिकायत करने के लिए, इसमें IPv4 (AF_INET) या IPv6 (AF_INET6) पता होना चाहिए. addr.ss_family की कोई भी अन्य वैल्यू अस्वीकार कर दी जाएगी.
परिभाषा,
gps.h
फ़ाइल की लाइन
902
पर दी गई है.
अगर फ़ील्ड 'addr' में IPv4 पता है, तो इसे मान्य IPv4 पते पर सेट किया जाना चाहिए. अगर ऐसा नहीं है, तो इसे INADDR_NONE पर सेट किया जाना चाहिए.
परिभाषा,
gps.h
फ़ाइल की लाइन
896
पर दी गई है.
sizeof(AGpsStatus) पर सेट करें
परिभाषा,
gps.h
फ़ाइल की लाइन
887
पर दी गई है.
परिभाषा,
gps.h
फ़ाइल की लाइन
890
पर दी गई है.
परिभाषा,
gps.h
फ़ाइल की लाइन
889
पर दी गई है.
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
-
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: AGpsStatus Struct Reference\n\nAGpsStatus Struct Reference\n===========================\n\n[Data Fields](#pub-attribs) \nAGpsStatus 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_a_gps_status#a854352f53b148adc24983a58a1866d66) |\n| ||\n| [AGpsType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) | [type](/reference/hal/struct_a_gps_status#ab639ef6817d6d72c3935f2fefaceb388) |\n| ||\n| [AGpsStatusValue](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) | [status](/reference/hal/struct_a_gps_status#ae9d376f9eb394301034e54329ce1c0d9) |\n| ||\n| uint32_t | [ipaddr](/reference/hal/struct_a_gps_status#ae1eb735f98e6aa289cc149178b6e0b00) |\n| ||\n| struct sockaddr_storage | [addr](/reference/hal/struct_a_gps_status#a7fe4b3f87e7a49d2520a0d26563bb921) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[885](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| struct sockaddr_storage addr |\n\n\nMust contain the IPv4 (AF_INET) or IPv6 (AF_INET6) address to report. Any other value of addr.ss_family will be rejected.\n\n\nDefinition at line\n[902](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| uint32_t ipaddr |\n\n\nMust be set to a valid IPv4 address if the field 'addr' contains an IPv4 address, or set to INADDR_NONE otherwise.\n\n\nDefinition at line\n[896](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(AGpsStatus)\n\n\nDefinition at line\n[887](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| [AGpsStatusValue](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) status |\n\n\nDefinition at line\n[890](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| [AGpsType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) type |\n\n\nDefinition at line\n[889](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)"]]