1[
2  {
3    "filename": "chre_api/include/chre_api/chre/wwan.h",
4    "includes": [
5      "chre_api/include/chre_api/chre/common.h"
6    ],
7    "output_includes": [
8      "chpp/common/common_types.h",
9      "chre_api/chre/wwan.h"
10    ],
11    "struct_info": [
12      {
13        "name": "chreWwanCellInfoResult",
14        "annotations": [
15          {
16            "field": "version",
17            "annotation": "fixed_value",
18            "value": "CHRE_WWAN_CELL_INFO_RESULT_VERSION"
19          },
20          {
21            "field": "errorCode",
22            "annotation": "enum",
23            "enum_type": "chreError"
24          },
25          {
26            "field": "cookie",
27            "annotation": "fixed_value",
28            "value": "0"
29          },
30          {
31            "field": "cookie",
32            "annotation": "rewrite_type",
33            "type_override": "uint32_t"
34          },
35          {
36            "field": "reserved",
37            "annotation": "fixed_value",
38            "value": "0"
39          },
40          {
41            "field": "cells",
42            "annotation": "var_len_array",
43            "length_field": "cellInfoCount"
44          }
45        ]
46      },
47      {
48        "name": "chreWwanCellInfo",
49        "annotations": [
50          {
51            "field": "cellInfoType",
52            "annotation": "enum",
53            "enum_type": "chreWwanCellInfoType"
54          },
55          {
56            "field": "CellInfo",
57            "annotation": "union_variant",
58            "discriminator": "cellInfoType",
59            "mapping": [
60              [
61                "CHRE_WWAN_CELL_INFO_TYPE_GSM",
62                "gsm"
63              ],
64              [
65                "CHRE_WWAN_CELL_INFO_TYPE_CDMA",
66                "cdma"
67              ],
68              [
69                "CHRE_WWAN_CELL_INFO_TYPE_LTE",
70                "lte"
71              ],
72              [
73                "CHRE_WWAN_CELL_INFO_TYPE_WCDMA",
74                "wcdma"
75              ],
76              [
77                "CHRE_WWAN_CELL_INFO_TYPE_TD_SCDMA",
78                "tdscdma"
79              ],
80              [
81                "CHRE_WWAN_CELL_INFO_TYPE_NR",
82                "nr"
83              ]
84            ]
85          },
86          {
87            "field": "reserved",
88            "annotation": "fixed_value",
89            "value": "0"
90          }
91        ]
92      },
93      {
94        "name": "chreWwanCellIdentityGsm",
95        "annotations": [
96          {
97            "field": "reserved",
98            "annotation": "fixed_value",
99            "value": "0"
100          }
101        ]
102      }
103    ],
104    "root_structs": [
105      "chreWwanCellInfoResult"
106    ]
107  },
108  {
109    "filename": "chre_api/include/chre_api/chre/wifi.h",
110    "includes": [
111      "chre_api/include/chre_api/chre/common.h"
112    ],
113    "output_includes": [
114      "chpp/common/common_types.h",
115      "chre_api/chre/wifi.h"
116    ],
117    "struct_info": [
118      {
119        "name": "chreWifiScanEvent",
120        "annotations": [
121          {
122            "field": "version",
123            "annotation": "fixed_value",
124            "value": "CHRE_WIFI_SCAN_EVENT_VERSION"
125          },
126          {
127            "field": "scannedFreqList",
128            "annotation": "var_len_array",
129            "length_field": "scannedFreqListLen"
130          },
131          {
132            "field": "results",
133            "annotation": "var_len_array",
134            "length_field": "resultCount"
135          }
136        ]
137      },
138      {
139        "name": "chreWifiScanResult",
140        "annotations": [
141          {
142            "field": "reserved",
143            "annotation": "fixed_value",
144            "value": "0"
145          }
146        ]
147      },
148      {
149        "name": "chreWifiScanParams",
150        "annotations": [
151          {
152            "field": "frequencyList",
153            "annotation": "var_len_array",
154            "length_field": "frequencyListLen"
155          },
156          {
157            "field": "ssidList",
158            "annotation": "var_len_array",
159            "length_field": "ssidListLen"
160          }
161        ]
162      },
163      {
164        "name": "chreWifiRangingEvent",
165        "annotations": [
166          {
167            "field": "version",
168            "annotation": "fixed_value",
169            "value": "CHRE_WIFI_RANGING_EVENT_VERSION"
170          },
171          {
172            "field": "reserved",
173            "annotation": "fixed_value",
174            "value": "0"
175          },
176          {
177            "field": "results",
178            "annotation": "var_len_array",
179            "length_field": "resultCount"
180          }
181        ]
182      },
183      {
184        "name": "chreWifiRangingResult",
185        "annotations": [
186          {
187            "field": "reserved",
188            "annotation": "fixed_value",
189            "value": "0"
190          }
191        ]
192      },
193      {
194        "name": "chreWifiRangingParams",
195        "annotations": [
196          {
197            "field": "targetList",
198            "annotation": "var_len_array",
199            "length_field": "targetListLen"
200          }
201        ]
202      },
203      {
204        "name": "chreWifiRangingTarget",
205        "annotations": [
206          {
207            "field": "reserved",
208            "annotation": "fixed_value",
209            "value": "0"
210          }
211        ]
212      },
213      {
214        "name": "chreWifiNanSubscribeConfig",
215        "annotations": [
216          {
217            "field": "subscribeType",
218            "annotation": "enum",
219            "enum_type": "chreWifiNanSubscribeType"
220          },
221          {
222            "field": "service",
223            "annotation": "string"
224          },
225          {
226            "field": "serviceSpecificInfo",
227            "annotation": "var_len_array",
228            "length_field": "serviceSpecificInfoSize"
229          },
230          {
231            "field": "matchFilter",
232            "annotation": "var_len_array",
233            "length_field": "matchFilterLength"
234          }
235        ]
236      },
237      {
238        "name": "chreWifiNanDiscoveryEvent",
239        "annotations": [
240          {
241            "field": "serviceSpecificInfo",
242            "annotation": "var_len_array",
243            "length_field": "serviceSpecificInfoSize"
244          }
245        ]
246      }
247    ],
248    "root_structs": [
249      "chreWifiScanEvent",
250      "chreWifiScanParams",
251      "chreWifiRangingEvent",
252      "chreWifiRangingParams",
253      "chreWifiNanSubscribeConfig",
254      "chreWifiNanDiscoveryEvent",
255      "chreWifiNanSessionLostEvent",
256      "chreWifiNanSessionTerminatedEvent",
257      "chreWifiNanRangingParams"
258    ]
259  },
260  {
261    "filename": "chre_api/include/chre_api/chre/gnss.h",
262    "includes": [
263      "chre_api/include/chre_api/chre/common.h"
264    ],
265    "output_includes": [
266      "chpp/common/common_types.h",
267      "chre_api/chre/gnss.h"
268    ],
269    "struct_info": [
270      {
271        "name": "chreGnssDataEvent",
272        "annotations": [
273          {
274            "field": "version",
275            "annotation": "fixed_value",
276            "value": "CHRE_GNSS_DATA_EVENT_VERSION"
277          },
278          {
279            "field": "reserved",
280            "annotation": "fixed_value",
281            "value": "0"
282          },
283          {
284            "field": "measurements",
285            "annotation": "var_len_array",
286            "length_field": "measurement_count"
287          }
288        ]
289      },
290      {
291        "name": "chreGnssLocationEvent",
292        "annotations": [
293          {
294            "field": "reserved",
295            "annotation": "fixed_value",
296            "value": "0"
297          }
298        ]
299      },
300      {
301        "name": "chreGnssClock",
302        "annotations": [
303          {
304            "field": "reserved",
305            "annotation": "fixed_value",
306            "value": "0"
307          }
308        ]
309      }
310    ],
311    "root_structs": [
312      "chreGnssDataEvent",
313      "chreGnssLocationEvent"
314    ]
315  }
316]
317