À partir du 27 mars 2025, nous vous recommandons d'utiliser android-latest-release
au lieu de aosp-main
pour créer et contribuer à AOSP. Pour en savoir plus, consultez la section Modifications apportées à AOSP.
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Documentation de référence sur la struct GpsXtraInterface
#include <
gps.h
>
Interface étendue pour la compatibilité avec XTRA.
Définition à la ligne
858
du fichier
gps.h
.
Ouvre l'interface XTRA et fournit les routines de rappel à l'implémentation de cette interface.
Définition à la ligne
865
du fichier
gps.h
.
int(* inject_xtra_data)(char *data, int length)
|
Injecte des données XTRA dans le GPS.
Définition à la ligne
867
du fichier
gps.h
.
défini sur sizeof(GpsXtraInterface)
Définition à la ligne
860
du fichier
gps.h
.
La documentation de ce struct a été générée à partir du fichier suivant :
-
hardware/libhardware/include/hardware/
gps.h
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/27 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/27 (UTC)."],[],[],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)"]]