اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
مرجع بنية GpsXtraInterface
#include <
gps.h
>
واجهة موسّعة لدعم XTRA
التعريف في السطر
858
من الملف
gps.h
.
يفتح واجهة XTRA ويقدّم إجراءات الاستدعاء لتنفيذ هذه الواجهة.
التعريف في السطر
865
من الملف
gps.h
.
int(* inject_xtra_data)(char *data, int length)
|
تُستخدَم لإضافة بيانات XTRA إلى نظام تحديد المواقع العالمي (GPS).
التعريف في السطر
867
من الملف
gps.h
.
تم ضبطه على sizeof(GpsXtraInterface)
التعريف في السطر
860
من الملف
gps.h
.
تم إنشاء مستندات هذه البنية من الملف التالي:
-
hardware/libhardware/include/hardware/
gps.h
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Android Hardware Abstraction Layer: GpsXtraInterface Struct Reference\n\nGpsXtraInterface Struct Reference\n=================================\n\n[Data Fields](#pub-attribs) \nGpsXtraInterface 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_gps_xtra_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| int(\\* | [init](/reference/hal/struct_gps_xtra_interface#a571611028fb8daaf70ebb3714ef06dd3) )( [GpsXtraCallbacks](/reference/hal/struct_gps_xtra_callbacks) \\*callbacks) |\n| ||\n| int(\\* | [inject_xtra_data](/reference/hal/struct_gps_xtra_interface#af0d98449621abe32abfedcd414d7fbd1) )(char \\*data, int length) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nExtended interface for XTRA support.\n\n\nDefinition at line\n[858](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| int(\\* init)( [GpsXtraCallbacks](/reference/hal/struct_gps_xtra_callbacks) \\*callbacks) |\n\n\nOpens the XTRA interface and provides the callback routines to the implementation of this interface.\n\n\nDefinition at line\n[865](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| int(\\* inject_xtra_data)(char \\*data, int length) |\n\n\nInjects XTRA data into the GPS.\n\n\nDefinition at line\n[867](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(GpsXtraInterface)\n\n\nDefinition at line\n[860](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)"]]