-
Notifications
You must be signed in to change notification settings - Fork 1
/
addon-instance_2_peripheral_8h_source.html
641 lines (639 loc) · 114 KB
/
addon-instance_2_peripheral_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Kodi Development: /home/alwin/Development/Kodi/kodi-N-sync-addon-doxygen/xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/Peripheral.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="kodi-dev.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Kodi Development
 <span id="projectnumber">20.0</span>
</div>
<div id="projectbrief">for Binary and Script based Add-Ons</div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.svg"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('addon-instance_2_peripheral_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">Peripheral.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (C) 2014-2018 Team Kodi</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * This file is part of Kodi - https://kodi.tv</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * SPDX-License-Identifier: GPL-2.0-or-later</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * See LICENSES/README.md for more information.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "../AddonBase.h"</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "peripheral/PeripheralUtils.h"</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span>kodi</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">namespace </span>addon</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> {</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">//##############################################################################</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"></span> </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">//##############################################################################</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"></span> </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">//##############################################################################</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"></span> </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">//##############################################################################</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"></span> </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">//##############################################################################</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"></span> </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classkodi_1_1addon_1_1_c_instance_peripheral.html"> 215</a></span> <span class="comment"></span><span class="keyword">class </span>ATTRIBUTE_HIDDEN <a class="code" href="classkodi_1_1addon_1_1_c_instance_peripheral.html">CInstancePeripheral</a> : <span class="keyword">public</span> <a class="code" href="classkodi_1_1addon_1_1_i_addon_instance.html">IAddonInstance</a></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> {</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral.html#ga90637840f375f1197b057b2e33700fcc"> 224</a></span> <span class="comment"></span> <a class="code" href="group__cpp__kodi__addon__peripheral.html#ga90637840f375f1197b057b2e33700fcc">CInstancePeripheral</a>()</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  : <a class="code" href="classkodi_1_1addon_1_1_i_addon_instance.html">IAddonInstance</a>(<a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e.html#ggada0b4c3c9f9c168e5e1c27145ec72357ade93c676241ca75ddf7e1a0200bcd323">ADDON_INSTANCE_PERIPHERAL</a>, <a class="code" href="group__cpp__kodi.html#ga3f6e41fe0bc423ec7d065fbdf3f47e98">GetKodiTypeVersion</a>(<a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e.html#ggada0b4c3c9f9c168e5e1c27145ec72357ade93c676241ca75ddf7e1a0200bcd323">ADDON_INSTANCE_PERIPHERAL</a>))</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  {</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span> (CAddonBase::m_interface->globalSingleInstance != <span class="keyword">nullptr</span>)</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keywordflow">throw</span> std::logic_error(<span class="stringliteral">"kodi::addon::CInstancePeripheral: Creation of more as one in single "</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="stringliteral">"instance way is not allowed!"</span>);</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  </div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  SetAddonStruct(CAddonBase::m_interface->firstKodiInstance);</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  CAddonBase::m_interface->globalSingleInstance = <span class="keyword">this</span>;</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral.html#ga9d1de5ba156e97878cf14ad739f86cf3"> 277</a></span> <span class="comment"></span> <span class="keyword">explicit</span> <a class="code" href="group__cpp__kodi__addon__peripheral.html#ga9d1de5ba156e97878cf14ad739f86cf3">CInstancePeripheral</a>(KODI_HANDLE instance, <span class="keyword">const</span> std::string& kodiVersion = <span class="stringliteral">""</span>)</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  : <a class="code" href="classkodi_1_1addon_1_1_i_addon_instance.html">IAddonInstance</a>(<a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e.html#ggada0b4c3c9f9c168e5e1c27145ec72357ade93c676241ca75ddf7e1a0200bcd323">ADDON_INSTANCE_PERIPHERAL</a>,</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  !kodiVersion.empty() ? kodiVersion</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  : <a class="code" href="group__cpp__kodi.html#ga3f6e41fe0bc423ec7d065fbdf3f47e98">GetKodiTypeVersion</a>(<a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e.html#ggada0b4c3c9f9c168e5e1c27145ec72357ade93c676241ca75ddf7e1a0200bcd323">ADDON_INSTANCE_PERIPHERAL</a>))</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  {</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordflow">if</span> (CAddonBase::m_interface->globalSingleInstance != <span class="keyword">nullptr</span>)</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordflow">throw</span> std::logic_error(<span class="stringliteral">"kodi::addon::CInstancePeripheral: Creation of multiple together with "</span></div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="stringliteral">"single instance way is not allowed!"</span>);</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  SetAddonStruct(instance);</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  }</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  </div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral.html#gad66a1fdcdf06b8a0e8b328c3b638ecda"> 294</a></span> <span class="comment"></span> <a class="code" href="group__cpp__kodi__addon__peripheral.html#gad66a1fdcdf06b8a0e8b328c3b638ecda">~CInstancePeripheral</a>() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  </div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="comment"></span> </div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00339"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga92e1a52f948ac6756dceb5b96a68d87d"> 339</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga92e1a52f948ac6756dceb5b96a68d87d">GetCapabilities</a>(<a class="code" href="classkodi_1_1addon_1_1_peripheral_capabilities.html">kodi::addon::PeripheralCapabilities</a>& capabilities) {}</div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  </div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga95d628668ae804bb0174ae3bafb00605"> 357</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> <a class="code" href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga95d628668ae804bb0174ae3bafb00605">PerformDeviceScan</a>(</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  std::vector<std::shared_ptr<kodi::addon::Peripheral>>& scan_results)</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  {</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632">PERIPHERAL_ERROR_NOT_IMPLEMENTED</a>;</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  }</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  </div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00375"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga5105eba6927df9b9f5fb0c32ab2f27d6"> 375</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> <a class="code" href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga5105eba6927df9b9f5fb0c32ab2f27d6">GetEvents</a>(std::vector<kodi::addon::PeripheralEvent>& events)</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  {</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632">PERIPHERAL_ERROR_NOT_IMPLEMENTED</a>;</div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  }</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  </div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00387"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga28b8fc8093e0136649546995ba240f9d"> 387</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga28b8fc8093e0136649546995ba240f9d">SendEvent</a>(<span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_peripheral_event.html">kodi::addon::PeripheralEvent</a>& event) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  </div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  </div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> <span class="comment"></span> </div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00421"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaf851c51d9b5e0f9618ede38a1ec3d0a5"> 421</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaf851c51d9b5e0f9618ede38a1ec3d0a5">GetJoystickInfo</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index, <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a>& info)</div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  {</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632">PERIPHERAL_ERROR_NOT_IMPLEMENTED</a>;</div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  }</div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  </div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00438"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaefe210d984b25f95af4f3fef76ff17be"> 438</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaefe210d984b25f95af4f3fef76ff17be">GetFeatures</a>(<span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a>& joystick,</div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  <span class="keyword">const</span> std::string& controller_id,</div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  std::vector<kodi::addon::JoystickFeature>& features)</div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  {</div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632">PERIPHERAL_ERROR_NOT_IMPLEMENTED</a>;</div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  }</div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  </div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga43cb256eb7abc19327502f4e403954ef"> 455</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga43cb256eb7abc19327502f4e403954ef">MapFeatures</a>(<span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a>& joystick,</div>
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="keyword">const</span> std::string& controller_id,</div>
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="keyword">const</span> std::vector<kodi::addon::JoystickFeature>& features)</div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  {</div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632">PERIPHERAL_ERROR_NOT_IMPLEMENTED</a>;</div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  }</div>
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  </div>
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00473"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaf18f8c347315da51e1c1102073f9dc5b"> 473</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaf18f8c347315da51e1c1102073f9dc5b">GetIgnoredPrimitives</a>(</div>
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a>& joystick, std::vector<kodi::addon::DriverPrimitive>& primitives)</div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  {</div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632">PERIPHERAL_ERROR_NOT_IMPLEMENTED</a>;</div>
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  }</div>
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  </div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00487"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga570ba1d61a598ebacd7417777601cb0f"> 487</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga570ba1d61a598ebacd7417777601cb0f">SetIgnoredPrimitives</a>(</div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a>& joystick,</div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keyword">const</span> std::vector<kodi::addon::DriverPrimitive>& primitives)</div>
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  {</div>
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632">PERIPHERAL_ERROR_NOT_IMPLEMENTED</a>;</div>
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  }</div>
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  </div>
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00500"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga7f9d8d381a5dc91dc4bf46b90c0e5079"> 500</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga7f9d8d381a5dc91dc4bf46b90c0e5079">SaveButtonMap</a>(<span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a>& joystick) {}</div>
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  </div>
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00507"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga338642a8f80125aa6842ca142b1ae101"> 507</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga338642a8f80125aa6842ca142b1ae101">RevertButtonMap</a>(<span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a>& joystick) {}</div>
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  </div>
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00515"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaafd57d5d1d0c3c2585433a50cec1e98f"> 515</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaafd57d5d1d0c3c2585433a50cec1e98f">ResetButtonMap</a>(<span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a>& joystick,</div>
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <span class="keyword">const</span> std::string& controller_id)</div>
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  {</div>
<div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  }</div>
<div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  </div>
<div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00525"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga971f07a9b76152a5779626b5f945c6ac"> 525</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga971f07a9b76152a5779626b5f945c6ac">PowerOffJoystick</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index) {}</div>
<div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  </div>
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  </div>
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> <span class="comment"></span> </div>
<div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00542"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga9caefecb4b4d01305666c470a1523e48"> 542</a></span> <span class="comment"></span> <span class="keyword">const</span> std::string <a class="code" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga9caefecb4b4d01305666c470a1523e48">AddonPath</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_instanceData->props->addon_path; }</div>
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  </div>
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00554"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga7929d298b4ee683951e2f094ef2ef1d5"> 554</a></span> <span class="comment"></span> <span class="keyword">const</span> std::string <a class="code" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga7929d298b4ee683951e2f094ef2ef1d5">UserPath</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_instanceData->props->user_path; }</div>
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  </div>
<div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00562"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga6e68fb96881f6f92cd2855d86abf245e"> 562</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga6e68fb96881f6f92cd2855d86abf245e">TriggerScan</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  {</div>
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <span class="keywordflow">return</span> m_instanceData->toKodi->trigger_scan(m_instanceData->toKodi->kodiInstance);</div>
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  }</div>
<div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  </div>
<div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00576"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga6267f9639dad833a142b82f9603bd4b8"> 576</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga6267f9639dad833a142b82f9603bd4b8">RefreshButtonMaps</a>(<span class="keyword">const</span> std::string& deviceName = <span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& controllerId = <span class="stringliteral">""</span>)</div>
<div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  {</div>
<div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <span class="keywordflow">return</span> m_instanceData->toKodi->refresh_button_maps(m_instanceData->toKodi->kodiInstance,</div>
<div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  deviceName.c_str(), controllerId.c_str());</div>
<div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  }</div>
<div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  </div>
<div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00592"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga1ff163511ccd603fd2788414933461d3"> 592</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga1ff163511ccd603fd2788414933461d3">FeatureCount</a>(<span class="keyword">const</span> std::string& controllerId,</div>
<div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  <a class="code" href="group__cpp__kodi__addon__peripheral___defs___joystick___j_o_y_s_t_i_c_k___f_e_a_t_u_r_e___t_y_p_e.html#gab9c890fb10d00739767a71a15410740b">JOYSTICK_FEATURE_TYPE</a> type = <a class="code" href="group__cpp__kodi__addon__peripheral___defs___joystick___j_o_y_s_t_i_c_k___f_e_a_t_u_r_e___t_y_p_e.html#ggab9c890fb10d00739767a71a15410740ba92e69541ee89fe3f697cd4e047275a82">JOYSTICK_FEATURE_TYPE_UNKNOWN</a>)</div>
<div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  {</div>
<div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  <span class="keywordflow">return</span> m_instanceData->toKodi->feature_count(m_instanceData->toKodi->kodiInstance,</div>
<div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  controllerId.c_str(), type);</div>
<div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  }</div>
<div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  </div>
<div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00608"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga73250856de613d39bcf8868abc471569"> 608</a></span> <span class="comment"></span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___joystick___j_o_y_s_t_i_c_k___f_e_a_t_u_r_e___t_y_p_e.html#gab9c890fb10d00739767a71a15410740b">JOYSTICK_FEATURE_TYPE</a> <a class="code" href="group__cpp__kodi__addon__peripheral__callbacks.html#ga73250856de613d39bcf8868abc471569">FeatureType</a>(<span class="keyword">const</span> std::string& controllerId, <span class="keyword">const</span> std::string& featureName)</div>
<div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  {</div>
<div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  <span class="keywordflow">return</span> m_instanceData->toKodi->feature_type(m_instanceData->toKodi->kodiInstance,</div>
<div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  controllerId.c_str(), featureName.c_str());</div>
<div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  }</div>
<div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  </div>
<div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  </div>
<div class="line"><a name="l00617"></a><span class="lineno"> 617</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  <span class="keywordtype">void</span> SetAddonStruct(KODI_HANDLE instance)</div>
<div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  {</div>
<div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <span class="keywordflow">if</span> (instance == <span class="keyword">nullptr</span>)</div>
<div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <span class="keywordflow">throw</span> std::logic_error(<span class="stringliteral">"kodi::addon::CInstancePeripheral: Creation with empty addon "</span></div>
<div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  <span class="stringliteral">"structure not allowed, table must be given from Kodi!"</span>);</div>
<div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  </div>
<div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  m_instanceData = <span class="keyword">static_cast<</span><a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>*<span class="keyword">></span>(instance);</div>
<div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  m_instanceData->toAddon->addonInstance = <span class="keyword">this</span>;</div>
<div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  </div>
<div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  m_instanceData->toAddon->get_capabilities = ADDON_GetCapabilities;</div>
<div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  m_instanceData->toAddon->perform_device_scan = ADDON_PerformDeviceScan;</div>
<div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  m_instanceData->toAddon->free_scan_results = ADDON_FreeScanResults;</div>
<div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  m_instanceData->toAddon->get_events = ADDON_GetEvents;</div>
<div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  m_instanceData->toAddon->free_events = ADDON_FreeEvents;</div>
<div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  m_instanceData->toAddon->send_event = ADDON_SendEvent;</div>
<div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  </div>
<div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  m_instanceData->toAddon->get_joystick_info = ADDON_GetJoystickInfo;</div>
<div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  m_instanceData->toAddon->free_joystick_info = ADDON_FreeJoystickInfo;</div>
<div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  m_instanceData->toAddon->get_features = ADDON_GetFeatures;</div>
<div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  m_instanceData->toAddon->free_features = ADDON_FreeFeatures;</div>
<div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  m_instanceData->toAddon->map_features = ADDON_MapFeatures;</div>
<div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  m_instanceData->toAddon->get_ignored_primitives = ADDON_GetIgnoredPrimitives;</div>
<div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  m_instanceData->toAddon->free_primitives = ADDON_FreePrimitives;</div>
<div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  m_instanceData->toAddon->set_ignored_primitives = ADDON_SetIgnoredPrimitives;</div>
<div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  m_instanceData->toAddon->save_button_map = ADDON_SaveButtonMap;</div>
<div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  m_instanceData->toAddon->revert_button_map = ADDON_RevertButtonMap;</div>
<div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  m_instanceData->toAddon->reset_button_map = ADDON_ResetButtonMap;</div>
<div class="line"><a name="l00645"></a><span class="lineno"> 645</span>  m_instanceData->toAddon->power_off_joystick = ADDON_PowerOffJoystick;</div>
<div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  }</div>
<div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  </div>
<div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_GetCapabilities(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  <a class="code" href="struct_p_e_r_i_p_h_e_r_a_l___c_a_p_a_b_i_l_i_t_i_e_s.html">PERIPHERAL_CAPABILITIES</a>* capabilities)</div>
<div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  {</div>
<div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  <span class="keywordflow">if</span> (!addonInstance || !capabilities)</div>
<div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  </div>
<div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  <a class="code" href="classkodi_1_1addon_1_1_peripheral_capabilities.html">kodi::addon::PeripheralCapabilities</a> peripheralCapabilities(capabilities);</div>
<div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  ->GetCapabilities(peripheralCapabilities);</div>
<div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  }</div>
<div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  </div>
<div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> ADDON_PerformDeviceScan(</div>
<div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  <span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* peripheral_count,</div>
<div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  <a class="code" href="struct_p_e_r_i_p_h_e_r_a_l___i_n_f_o.html">PERIPHERAL_INFO</a>** scan_results)</div>
<div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  {</div>
<div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  <span class="keywordflow">if</span> (!addonInstance || !peripheral_count || !scan_results)</div>
<div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0">PERIPHERAL_ERROR_INVALID_PARAMETERS</a>;</div>
<div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  </div>
<div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  std::vector<std::shared_ptr<kodi::addon::Peripheral>> peripherals;</div>
<div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> err = <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  ->PerformDeviceScan(peripherals);</div>
<div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  <span class="keywordflow">if</span> (err == <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcac5bea9b91a12695c05ea00687f246265">PERIPHERAL_NO_ERROR</a>)</div>
<div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  {</div>
<div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  *peripheral_count = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(peripherals.size());</div>
<div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  kodi::addon::Peripherals::ToStructs(peripherals, scan_results);</div>
<div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  }</div>
<div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  </div>
<div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  <span class="keywordflow">return</span> err;</div>
<div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  }</div>
<div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  </div>
<div class="line"><a name="l00679"></a><span class="lineno"> 679</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_FreeScanResults(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> peripheral_count,</div>
<div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  <a class="code" href="struct_p_e_r_i_p_h_e_r_a_l___i_n_f_o.html">PERIPHERAL_INFO</a>* scan_results)</div>
<div class="line"><a name="l00682"></a><span class="lineno"> 682</span>  {</div>
<div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  <span class="keywordflow">if</span> (!addonInstance)</div>
<div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  </div>
<div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  kodi::addon::Peripherals::FreeStructs(peripheral_count, scan_results);</div>
<div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  }</div>
<div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  </div>
<div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> ADDON_GetEvents(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* event_count,</div>
<div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  <a class="code" href="struct_p_e_r_i_p_h_e_r_a_l___e_v_e_n_t.html">PERIPHERAL_EVENT</a>** events)</div>
<div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  {</div>
<div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  <span class="keywordflow">if</span> (!addonInstance || !event_count || !events)</div>
<div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0">PERIPHERAL_ERROR_INVALID_PARAMETERS</a>;</div>
<div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  </div>
<div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  std::vector<kodi::addon::PeripheralEvent> peripheralEvents;</div>
<div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> err = <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  ->GetEvents(peripheralEvents);</div>
<div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  <span class="keywordflow">if</span> (err == <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcac5bea9b91a12695c05ea00687f246265">PERIPHERAL_NO_ERROR</a>)</div>
<div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  {</div>
<div class="line"><a name="l00701"></a><span class="lineno"> 701</span>  *event_count = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(peripheralEvents.size());</div>
<div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  kodi::addon::PeripheralEvents::ToStructs(peripheralEvents, events);</div>
<div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  }</div>
<div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  </div>
<div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  <span class="keywordflow">return</span> err;</div>
<div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  }</div>
<div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  </div>
<div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_FreeEvents(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> event_count,</div>
<div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  <a class="code" href="struct_p_e_r_i_p_h_e_r_a_l___e_v_e_n_t.html">PERIPHERAL_EVENT</a>* events)</div>
<div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  {</div>
<div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  <span class="keywordflow">if</span> (!addonInstance)</div>
<div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  </div>
<div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  kodi::addon::PeripheralEvents::FreeStructs(event_count, events);</div>
<div class="line"><a name="l00716"></a><span class="lineno"> 716</span>  }</div>
<div class="line"><a name="l00717"></a><span class="lineno"> 717</span>  </div>
<div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> ADDON_SendEvent(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00719"></a><span class="lineno"> 719</span>  <span class="keyword">const</span> <a class="code" href="struct_p_e_r_i_p_h_e_r_a_l___e_v_e_n_t.html">PERIPHERAL_EVENT</a>* event)</div>
<div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  {</div>
<div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  <span class="keywordflow">if</span> (!addonInstance || !event)</div>
<div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00723"></a><span class="lineno"> 723</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00724"></a><span class="lineno"> 724</span>  ->SendEvent(<a class="code" href="classkodi_1_1addon_1_1_peripheral_event.html">kodi::addon::PeripheralEvent</a>(*event));</div>
<div class="line"><a name="l00725"></a><span class="lineno"> 725</span>  }</div>
<div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  </div>
<div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  </div>
<div class="line"><a name="l00728"></a><span class="lineno"> 728</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> ADDON_GetJoystickInfo(</div>
<div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  <span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index, <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* info)</div>
<div class="line"><a name="l00730"></a><span class="lineno"> 730</span>  {</div>
<div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  <span class="keywordflow">if</span> (!addonInstance || !info)</div>
<div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0">PERIPHERAL_ERROR_INVALID_PARAMETERS</a>;</div>
<div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  </div>
<div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a> addonInfo;</div>
<div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> err = <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  ->GetJoystickInfo(index, addonInfo);</div>
<div class="line"><a name="l00737"></a><span class="lineno"> 737</span>  <span class="keywordflow">if</span> (err == <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcac5bea9b91a12695c05ea00687f246265">PERIPHERAL_NO_ERROR</a>)</div>
<div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  {</div>
<div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  addonInfo.ToStruct(*info);</div>
<div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  }</div>
<div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  </div>
<div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  <span class="keywordflow">return</span> err;</div>
<div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  }</div>
<div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  </div>
<div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_FreeJoystickInfo(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* info)</div>
<div class="line"><a name="l00747"></a><span class="lineno"> 747</span>  {</div>
<div class="line"><a name="l00748"></a><span class="lineno"> 748</span>  <span class="keywordflow">if</span> (!addonInstance)</div>
<div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  </div>
<div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  kodi::addon::Joystick::FreeStruct(*info);</div>
<div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  }</div>
<div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  </div>
<div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> ADDON_GetFeatures(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* joystick,</div>
<div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* controller_id,</div>
<div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* feature_count,</div>
<div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  <a class="code" href="struct_j_o_y_s_t_i_c_k___f_e_a_t_u_r_e.html">JOYSTICK_FEATURE</a>** features)</div>
<div class="line"><a name="l00759"></a><span class="lineno"> 759</span>  {</div>
<div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  <span class="keywordflow">if</span> (!addonInstance || !joystick || !controller_id || !feature_count || !features)</div>
<div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0">PERIPHERAL_ERROR_INVALID_PARAMETERS</a>;</div>
<div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  </div>
<div class="line"><a name="l00763"></a><span class="lineno"> 763</span>  <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a> addonJoystick(*joystick);</div>
<div class="line"><a name="l00764"></a><span class="lineno"> 764</span>  std::vector<kodi::addon::JoystickFeature> featuresVector;</div>
<div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  </div>
<div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> err = <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  ->GetFeatures(addonJoystick, controller_id, featuresVector);</div>
<div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  <span class="keywordflow">if</span> (err == <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcac5bea9b91a12695c05ea00687f246265">PERIPHERAL_NO_ERROR</a>)</div>
<div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  {</div>
<div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  *feature_count = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(featuresVector.size());</div>
<div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  kodi::addon::JoystickFeatures::ToStructs(featuresVector, features);</div>
<div class="line"><a name="l00772"></a><span class="lineno"> 772</span>  }</div>
<div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  </div>
<div class="line"><a name="l00774"></a><span class="lineno"> 774</span>  <span class="keywordflow">return</span> err;</div>
<div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  }</div>
<div class="line"><a name="l00776"></a><span class="lineno"> 776</span>  </div>
<div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_FreeFeatures(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00778"></a><span class="lineno"> 778</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> feature_count,</div>
<div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  <a class="code" href="struct_j_o_y_s_t_i_c_k___f_e_a_t_u_r_e.html">JOYSTICK_FEATURE</a>* features)</div>
<div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  {</div>
<div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  <span class="keywordflow">if</span> (!addonInstance)</div>
<div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  </div>
<div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  kodi::addon::JoystickFeatures::FreeStructs(feature_count, features);</div>
<div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  }</div>
<div class="line"><a name="l00786"></a><span class="lineno"> 786</span>  </div>
<div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> ADDON_MapFeatures(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* joystick,</div>
<div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* controller_id,</div>
<div class="line"><a name="l00790"></a><span class="lineno"> 790</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> feature_count,</div>
<div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___f_e_a_t_u_r_e.html">JOYSTICK_FEATURE</a>* features)</div>
<div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  {</div>
<div class="line"><a name="l00793"></a><span class="lineno"> 793</span>  <span class="keywordflow">if</span> (!addonInstance || !joystick || !controller_id || (feature_count > 0 && !features))</div>
<div class="line"><a name="l00794"></a><span class="lineno"> 794</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0">PERIPHERAL_ERROR_INVALID_PARAMETERS</a>;</div>
<div class="line"><a name="l00795"></a><span class="lineno"> 795</span>  </div>
<div class="line"><a name="l00796"></a><span class="lineno"> 796</span>  <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a> addonJoystick(*joystick);</div>
<div class="line"><a name="l00797"></a><span class="lineno"> 797</span>  std::vector<kodi::addon::JoystickFeature> primitiveVector;</div>
<div class="line"><a name="l00798"></a><span class="lineno"> 798</span>  </div>
<div class="line"><a name="l00799"></a><span class="lineno"> 799</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < feature_count; i++)</div>
<div class="line"><a name="l00800"></a><span class="lineno"> 800</span>  primitiveVector.emplace_back(*(features + i));</div>
<div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  </div>
<div class="line"><a name="l00802"></a><span class="lineno"> 802</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  ->MapFeatures(addonJoystick, controller_id, primitiveVector);</div>
<div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  }</div>
<div class="line"><a name="l00805"></a><span class="lineno"> 805</span>  </div>
<div class="line"><a name="l00806"></a><span class="lineno"> 806</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> ADDON_GetIgnoredPrimitives(</div>
<div class="line"><a name="l00807"></a><span class="lineno"> 807</span>  <span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00808"></a><span class="lineno"> 808</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* joystick,</div>
<div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* primitive_count,</div>
<div class="line"><a name="l00810"></a><span class="lineno"> 810</span>  <a class="code" href="struct_j_o_y_s_t_i_c_k___d_r_i_v_e_r___p_r_i_m_i_t_i_v_e.html">JOYSTICK_DRIVER_PRIMITIVE</a>** primitives)</div>
<div class="line"><a name="l00811"></a><span class="lineno"> 811</span>  {</div>
<div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  <span class="keywordflow">if</span> (!addonInstance || !joystick || !primitive_count || !primitives)</div>
<div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0">PERIPHERAL_ERROR_INVALID_PARAMETERS</a>;</div>
<div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  </div>
<div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a> addonJoystick(*joystick);</div>
<div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  std::vector<kodi::addon::DriverPrimitive> primitiveVector;</div>
<div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  </div>
<div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> err = <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  ->GetIgnoredPrimitives(addonJoystick, primitiveVector);</div>
<div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  <span class="keywordflow">if</span> (err == <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcac5bea9b91a12695c05ea00687f246265">PERIPHERAL_NO_ERROR</a>)</div>
<div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  {</div>
<div class="line"><a name="l00822"></a><span class="lineno"> 822</span>  *primitive_count = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(primitiveVector.size());</div>
<div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  kodi::addon::DriverPrimitives::ToStructs(primitiveVector, primitives);</div>
<div class="line"><a name="l00824"></a><span class="lineno"> 824</span>  }</div>
<div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  </div>
<div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  <span class="keywordflow">return</span> err;</div>
<div class="line"><a name="l00827"></a><span class="lineno"> 827</span>  }</div>
<div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  </div>
<div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_FreePrimitives(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> primitive_count,</div>
<div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <a class="code" href="struct_j_o_y_s_t_i_c_k___d_r_i_v_e_r___p_r_i_m_i_t_i_v_e.html">JOYSTICK_DRIVER_PRIMITIVE</a>* primitives)</div>
<div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  {</div>
<div class="line"><a name="l00833"></a><span class="lineno"> 833</span>  <span class="keywordflow">if</span> (!addonInstance)</div>
<div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  </div>
<div class="line"><a name="l00836"></a><span class="lineno"> 836</span>  kodi::addon::DriverPrimitives::FreeStructs(primitive_count, primitives);</div>
<div class="line"><a name="l00837"></a><span class="lineno"> 837</span>  }</div>
<div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  </div>
<div class="line"><a name="l00839"></a><span class="lineno"> 839</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a> ADDON_SetIgnoredPrimitives(</div>
<div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00841"></a><span class="lineno"> 841</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* joystick,</div>
<div class="line"><a name="l00842"></a><span class="lineno"> 842</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> primitive_count,</div>
<div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___d_r_i_v_e_r___p_r_i_m_i_t_i_v_e.html">JOYSTICK_DRIVER_PRIMITIVE</a>* primitives)</div>
<div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  {</div>
<div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  <span class="keywordflow">if</span> (!addonInstance || !joystick || (primitive_count > 0 && !primitives))</div>
<div class="line"><a name="l00846"></a><span class="lineno"> 846</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0">PERIPHERAL_ERROR_INVALID_PARAMETERS</a>;</div>
<div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  </div>
<div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a> addonJoystick(*joystick);</div>
<div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  std::vector<kodi::addon::DriverPrimitive> primitiveVector;</div>
<div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  </div>
<div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < primitive_count; i++)</div>
<div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  primitiveVector.emplace_back(*(primitives + i));</div>
<div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  </div>
<div class="line"><a name="l00854"></a><span class="lineno"> 854</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  ->SetIgnoredPrimitives(addonJoystick, primitiveVector);</div>
<div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  }</div>
<div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  </div>
<div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_SaveButtonMap(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* joystick)</div>
<div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  {</div>
<div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  <span class="keywordflow">if</span> (!addonInstance || !joystick)</div>
<div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  </div>
<div class="line"><a name="l00864"></a><span class="lineno"> 864</span>  <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a> addonJoystick(*joystick);</div>
<div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  ->SaveButtonMap(addonJoystick);</div>
<div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  }</div>
<div class="line"><a name="l00868"></a><span class="lineno"> 868</span>  </div>
<div class="line"><a name="l00869"></a><span class="lineno"> 869</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_RevertButtonMap(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* joystick)</div>
<div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  {</div>
<div class="line"><a name="l00872"></a><span class="lineno"> 872</span>  <span class="keywordflow">if</span> (!addonInstance || !joystick)</div>
<div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00874"></a><span class="lineno"> 874</span>  </div>
<div class="line"><a name="l00875"></a><span class="lineno"> 875</span>  <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a> addonJoystick(*joystick);</div>
<div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00877"></a><span class="lineno"> 877</span>  ->RevertButtonMap(addonJoystick);</div>
<div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  }</div>
<div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  </div>
<div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_ResetButtonMap(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00881"></a><span class="lineno"> 881</span>  <span class="keyword">const</span> <a class="code" href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a>* joystick,</div>
<div class="line"><a name="l00882"></a><span class="lineno"> 882</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* controller_id)</div>
<div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  {</div>
<div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  <span class="keywordflow">if</span> (!addonInstance || !joystick || !controller_id)</div>
<div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  </div>
<div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  <a class="code" href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a> addonJoystick(*joystick);</div>
<div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  ->ResetButtonMap(addonJoystick, controller_id);</div>
<div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  }</div>
<div class="line"><a name="l00891"></a><span class="lineno"> 891</span>  </div>
<div class="line"><a name="l00892"></a><span class="lineno"> 892</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ADDON_PowerOffJoystick(<span class="keyword">const</span> <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* addonInstance,</div>
<div class="line"><a name="l00893"></a><span class="lineno"> 893</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)</div>
<div class="line"><a name="l00894"></a><span class="lineno"> 894</span>  {</div>
<div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  <span class="keywordflow">if</span> (!addonInstance)</div>
<div class="line"><a name="l00896"></a><span class="lineno"> 896</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  </div>
<div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  <span class="keyword">static_cast<</span>CInstancePeripheral*<span class="keyword">></span>(addonInstance->toAddon->addonInstance)</div>
<div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  ->PowerOffJoystick(index);</div>
<div class="line"><a name="l00900"></a><span class="lineno"> 900</span>  }</div>
<div class="line"><a name="l00901"></a><span class="lineno"> 901</span>  </div>
<div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  <a class="code" href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a>* m_instanceData;</div>
<div class="line"><a name="l00903"></a><span class="lineno"> 903</span> };</div>
<div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  </div>
<div class="line"><a name="l00905"></a><span class="lineno"> 905</span> } <span class="comment">/* namespace addon */</span></div>
<div class="line"><a name="l00906"></a><span class="lineno"> 906</span> } <span class="comment">/* namespace kodi */</span></div>
<div class="line"><a name="l00907"></a><span class="lineno"> 907</span> <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclasskodi_1_1addon_1_1_c_instance_peripheral_html"><div class="ttname"><a href="classkodi_1_1addon_1_1_c_instance_peripheral.html">kodi::addon::CInstancePeripheral</a></div><div class="ttdef"><b>Definition:</b> Peripheral.h:216</div></div>
<div class="ttc" id="aclasskodi_1_1addon_1_1_i_addon_instance_html"><div class="ttname"><a href="classkodi_1_1addon_1_1_i_addon_instance.html">kodi::addon::IAddonInstance</a></div><div class="ttdef"><b>Definition:</b> AddonBase.h:186</div></div>
<div class="ttc" id="aclasskodi_1_1addon_1_1_joystick_html"><div class="ttname"><a href="classkodi_1_1addon_1_1_joystick.html">kodi::addon::Joystick</a></div><div class="ttdef"><b>Definition:</b> PeripheralUtils.h:569</div></div>
<div class="ttc" id="aclasskodi_1_1addon_1_1_peripheral_capabilities_html"><div class="ttname"><a href="classkodi_1_1addon_1_1_peripheral_capabilities.html">kodi::addon::PeripheralCapabilities</a></div><div class="ttdef"><b>Definition:</b> PeripheralUtils.h:133</div></div>
<div class="ttc" id="aclasskodi_1_1addon_1_1_peripheral_event_html"><div class="ttname"><a href="classkodi_1_1addon_1_1_peripheral_event.html">kodi::addon::PeripheralEvent</a></div><div class="ttdef"><b>Definition:</b> PeripheralUtils.h:369</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e_html_ggada0b4c3c9f9c168e5e1c27145ec72357ade93c676241ca75ddf7e1a0200bcd323"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e.html#ggada0b4c3c9f9c168e5e1c27145ec72357ade93c676241ca75ddf7e1a0200bcd323">ADDON_INSTANCE_PERIPHERAL</a></div><div class="ttdeci">@ ADDON_INSTANCE_PERIPHERAL</div><div class="ttdoc">Peripheral instance, see kodi::addon::CInstancePeripheral.</div><div class="ttdef"><b>Definition:</b> versions.h:229</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r_html_gac7750274e47096d64b98c9ea082dc1bc"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#gac7750274e47096d64b98c9ea082dc1bc">PERIPHERAL_ERROR</a></div><div class="ttdeci">PERIPHERAL_ERROR</div><div class="ttdef"><b>Definition:</b> peripheral.h:36</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r_html_ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcabc808811fe350ecc357204fcf80945f0">PERIPHERAL_ERROR_INVALID_PARAMETERS</a></div><div class="ttdeci">@ PERIPHERAL_ERROR_INVALID_PARAMETERS</div><div class="ttdoc">-3 : The parameters of the method are invalid for this operation</div><div class="ttdef"><b>Definition:</b> peripheral.h:47</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r_html_ggac7750274e47096d64b98c9ea082dc1bcac5bea9b91a12695c05ea00687f246265"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcac5bea9b91a12695c05ea00687f246265">PERIPHERAL_NO_ERROR</a></div><div class="ttdeci">@ PERIPHERAL_NO_ERROR</div><div class="ttdoc">0 : No error occurred</div><div class="ttdef"><b>Definition:</b> peripheral.h:38</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r_html_ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral___defs___general___p_e_r_i_p_h_e_r_a_l___e_r_r_o_r.html#ggac7750274e47096d64b98c9ea082dc1bcadcda7d5b9b321357d8cf3c1df2017632">PERIPHERAL_ERROR_NOT_IMPLEMENTED</a></div><div class="ttdeci">@ PERIPHERAL_ERROR_NOT_IMPLEMENTED</div><div class="ttdoc">-4 : The method that the frontend called is not implemented</div><div class="ttdef"><b>Definition:</b> peripheral.h:50</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral___defs___joystick___j_o_y_s_t_i_c_k___f_e_a_t_u_r_e___t_y_p_e_html_gab9c890fb10d00739767a71a15410740b"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral___defs___joystick___j_o_y_s_t_i_c_k___f_e_a_t_u_r_e___t_y_p_e.html#gab9c890fb10d00739767a71a15410740b">JOYSTICK_FEATURE_TYPE</a></div><div class="ttdeci">JOYSTICK_FEATURE_TYPE</div><div class="ttdef"><b>Definition:</b> peripheral.h:494</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral___defs___joystick___j_o_y_s_t_i_c_k___f_e_a_t_u_r_e___t_y_p_e_html_ggab9c890fb10d00739767a71a15410740ba92e69541ee89fe3f697cd4e047275a82"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral___defs___joystick___j_o_y_s_t_i_c_k___f_e_a_t_u_r_e___t_y_p_e.html#ggab9c890fb10d00739767a71a15410740ba92e69541ee89fe3f697cd4e047275a82">JOYSTICK_FEATURE_TYPE_UNKNOWN</a></div><div class="ttdeci">@ JOYSTICK_FEATURE_TYPE_UNKNOWN</div><div class="ttdoc">Unknown type.</div><div class="ttdef"><b>Definition:</b> peripheral.h:496</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__callbacks_html_ga1ff163511ccd603fd2788414933461d3"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__callbacks.html#ga1ff163511ccd603fd2788414933461d3">kodi::addon::CInstancePeripheral::FeatureCount</a></div><div class="ttdeci">unsigned int FeatureCount(const std::string &controllerId, JOYSTICK_FEATURE_TYPE type=JOYSTICK_FEATURE_TYPE_UNKNOWN)</div><div class="ttdoc">Return the number of features belonging to the specified controller.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:592</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__callbacks_html_ga6267f9639dad833a142b82f9603bd4b8"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__callbacks.html#ga6267f9639dad833a142b82f9603bd4b8">kodi::addon::CInstancePeripheral::RefreshButtonMaps</a></div><div class="ttdeci">void RefreshButtonMaps(const std::string &deviceName="", const std::string &controllerId="")</div><div class="ttdoc">Notify the frontend that button maps have changed.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:576</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__callbacks_html_ga6e68fb96881f6f92cd2855d86abf245e"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__callbacks.html#ga6e68fb96881f6f92cd2855d86abf245e">kodi::addon::CInstancePeripheral::TriggerScan</a></div><div class="ttdeci">void TriggerScan(void)</div><div class="ttdoc">Trigger a scan for peripherals.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:562</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__callbacks_html_ga73250856de613d39bcf8868abc471569"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__callbacks.html#ga73250856de613d39bcf8868abc471569">kodi::addon::CInstancePeripheral::FeatureType</a></div><div class="ttdeci">JOYSTICK_FEATURE_TYPE FeatureType(const std::string &controllerId, const std::string &featureName)</div><div class="ttdoc">Return the type of the feature.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:608</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__callbacks_html_ga7929d298b4ee683951e2f094ef2ef1d5"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__callbacks.html#ga7929d298b4ee683951e2f094ef2ef1d5">kodi::addon::CInstancePeripheral::UserPath</a></div><div class="ttdeci">const std::string UserPath() const</div><div class="ttdoc">Used to get the full path to the add-on's user profile.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:554</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__callbacks_html_ga9caefecb4b4d01305666c470a1523e48"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__callbacks.html#ga9caefecb4b4d01305666c470a1523e48">kodi::addon::CInstancePeripheral::AddonPath</a></div><div class="ttdeci">const std::string AddonPath() const</div><div class="ttdoc">Used to get the full path where the add-on is installed.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:542</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_ga338642a8f80125aa6842ca142b1ae101"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga338642a8f80125aa6842ca142b1ae101">kodi::addon::CInstancePeripheral::RevertButtonMap</a></div><div class="ttdeci">virtual void RevertButtonMap(const kodi::addon::Joystick &joystick)</div><div class="ttdoc">Revert the button map to the last time it was loaded or committed to disk.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:507</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_ga43cb256eb7abc19327502f4e403954ef"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga43cb256eb7abc19327502f4e403954ef">kodi::addon::CInstancePeripheral::MapFeatures</a></div><div class="ttdeci">virtual PERIPHERAL_ERROR MapFeatures(const kodi::addon::Joystick &joystick, const std::string &controller_id, const std::vector< kodi::addon::JoystickFeature > &features)</div><div class="ttdoc">Add or update joystick features.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:455</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_ga570ba1d61a598ebacd7417777601cb0f"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga570ba1d61a598ebacd7417777601cb0f">kodi::addon::CInstancePeripheral::SetIgnoredPrimitives</a></div><div class="ttdeci">virtual PERIPHERAL_ERROR SetIgnoredPrimitives(const kodi::addon::Joystick &joystick, const std::vector< kodi::addon::DriverPrimitive > &primitives)</div><div class="ttdoc">Set the list of driver primitives that are ignored for the device.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:487</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_ga7f9d8d381a5dc91dc4bf46b90c0e5079"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga7f9d8d381a5dc91dc4bf46b90c0e5079">kodi::addon::CInstancePeripheral::SaveButtonMap</a></div><div class="ttdeci">virtual void SaveButtonMap(const kodi::addon::Joystick &joystick)</div><div class="ttdoc">Save the button map for the given joystick.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:500</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_ga971f07a9b76152a5779626b5f945c6ac"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#ga971f07a9b76152a5779626b5f945c6ac">kodi::addon::CInstancePeripheral::PowerOffJoystick</a></div><div class="ttdeci">virtual void PowerOffJoystick(unsigned int index)</div><div class="ttdoc">Powers off the given joystick if supported.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:525</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_gaafd57d5d1d0c3c2585433a50cec1e98f"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaafd57d5d1d0c3c2585433a50cec1e98f">kodi::addon::CInstancePeripheral::ResetButtonMap</a></div><div class="ttdeci">virtual void ResetButtonMap(const kodi::addon::Joystick &joystick, const std::string &controller_id)</div><div class="ttdoc">Reset the button map for the given joystick and controller profile ID.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:515</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_gaefe210d984b25f95af4f3fef76ff17be"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaefe210d984b25f95af4f3fef76ff17be">kodi::addon::CInstancePeripheral::GetFeatures</a></div><div class="ttdeci">virtual PERIPHERAL_ERROR GetFeatures(const kodi::addon::Joystick &joystick, const std::string &controller_id, std::vector< kodi::addon::JoystickFeature > &features)</div><div class="ttdoc">Get the features that allow translating the joystick into the controller profile.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:438</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_gaf18f8c347315da51e1c1102073f9dc5b"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaf18f8c347315da51e1c1102073f9dc5b">kodi::addon::CInstancePeripheral::GetIgnoredPrimitives</a></div><div class="ttdeci">virtual PERIPHERAL_ERROR GetIgnoredPrimitives(const kodi::addon::Joystick &joystick, std::vector< kodi::addon::DriverPrimitive > &primitives)</div><div class="ttdoc">Get the driver primitives that should be ignored while mapping the device.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:473</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__joystick_op_html_gaf851c51d9b5e0f9618ede38a1ec3d0a5"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__joystick_op.html#gaf851c51d9b5e0f9618ede38a1ec3d0a5">kodi::addon::CInstancePeripheral::GetJoystickInfo</a></div><div class="ttdeci">virtual PERIPHERAL_ERROR GetJoystickInfo(unsigned int index, kodi::addon::Joystick &info)</div><div class="ttdoc">Get extended info about an attached joystick.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:421</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__peripheral_op_html_ga28b8fc8093e0136649546995ba240f9d"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga28b8fc8093e0136649546995ba240f9d">kodi::addon::CInstancePeripheral::SendEvent</a></div><div class="ttdeci">virtual bool SendEvent(const kodi::addon::PeripheralEvent &event)</div><div class="ttdoc">Send an input event to the peripheral.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:387</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__peripheral_op_html_ga5105eba6927df9b9f5fb0c32ab2f27d6"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga5105eba6927df9b9f5fb0c32ab2f27d6">kodi::addon::CInstancePeripheral::GetEvents</a></div><div class="ttdeci">virtual PERIPHERAL_ERROR GetEvents(std::vector< kodi::addon::PeripheralEvent > &events)</div><div class="ttdoc">Get all events that have occurred since the last call to GetEvents().</div><div class="ttdef"><b>Definition:</b> Peripheral.h:375</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__peripheral_op_html_ga92e1a52f948ac6756dceb5b96a68d87d"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga92e1a52f948ac6756dceb5b96a68d87d">kodi::addon::CInstancePeripheral::GetCapabilities</a></div><div class="ttdeci">virtual void GetCapabilities(kodi::addon::PeripheralCapabilities &capabilities)</div><div class="ttdoc">Get the list of features that this add-on provides.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:339</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral__peripheral_op_html_ga95d628668ae804bb0174ae3bafb00605"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral__peripheral_op.html#ga95d628668ae804bb0174ae3bafb00605">kodi::addon::CInstancePeripheral::PerformDeviceScan</a></div><div class="ttdeci">virtual PERIPHERAL_ERROR PerformDeviceScan(std::vector< std::shared_ptr< kodi::addon::Peripheral >> &scan_results)</div><div class="ttdoc">Perform a scan for joysticks.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:357</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral_html_ga90637840f375f1197b057b2e33700fcc"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral.html#ga90637840f375f1197b057b2e33700fcc">kodi::addon::CInstancePeripheral::CInstancePeripheral</a></div><div class="ttdeci">CInstancePeripheral()</div><div class="ttdoc">Peripheral class constructor.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:224</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral_html_ga9d1de5ba156e97878cf14ad739f86cf3"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral.html#ga9d1de5ba156e97878cf14ad739f86cf3">kodi::addon::CInstancePeripheral::CInstancePeripheral</a></div><div class="ttdeci">CInstancePeripheral(KODI_HANDLE instance, const std::string &kodiVersion="")</div><div class="ttdoc">Peripheral addon class constructor used to support multiple instance types.</div><div class="ttdef"><b>Definition:</b> Peripheral.h:277</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__peripheral_html_gad66a1fdcdf06b8a0e8b328c3b638ecda"><div class="ttname"><a href="group__cpp__kodi__addon__peripheral.html#gad66a1fdcdf06b8a0e8b328c3b638ecda">kodi::addon::CInstancePeripheral::~CInstancePeripheral</a></div><div class="ttdeci">~CInstancePeripheral() override=default</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="agroup__cpp__kodi_html_ga3f6e41fe0bc423ec7d065fbdf3f47e98"><div class="ttname"><a href="group__cpp__kodi.html#ga3f6e41fe0bc423ec7d065fbdf3f47e98">kodi::GetKodiTypeVersion</a></div><div class="ttdeci">std::string ATTRIBUTE_HIDDEN GetKodiTypeVersion(int type)</div><div class="ttdoc">To get used version inside Kodi itself about asked type.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:630</div></div>
<div class="ttc" id="astruct_addon_instance___peripheral_html"><div class="ttname"><a href="struct_addon_instance___peripheral.html">AddonInstance_Peripheral</a></div><div class="ttdef"><b>Definition:</b> peripheral.h:697</div></div>
<div class="ttc" id="astruct_j_o_y_s_t_i_c_k___d_r_i_v_e_r___p_r_i_m_i_t_i_v_e_html"><div class="ttname"><a href="struct_j_o_y_s_t_i_c_k___d_r_i_v_e_r___p_r_i_m_i_t_i_v_e.html">JOYSTICK_DRIVER_PRIMITIVE</a></div><div class="ttdoc">Driver primitive struct.</div><div class="ttdef"><b>Definition:</b> peripheral.h:469</div></div>
<div class="ttc" id="astruct_j_o_y_s_t_i_c_k___f_e_a_t_u_r_e_html"><div class="ttname"><a href="struct_j_o_y_s_t_i_c_k___f_e_a_t_u_r_e.html">JOYSTICK_FEATURE</a></div><div class="ttdoc">Mapping between higher-level controller feature and its driver primitives.</div><div class="ttdef"><b>Definition:</b> peripheral.h:594</div></div>
<div class="ttc" id="astruct_j_o_y_s_t_i_c_k___i_n_f_o_html"><div class="ttname"><a href="struct_j_o_y_s_t_i_c_k___i_n_f_o.html">JOYSTICK_INFO</a></div><div class="ttdoc">Info specific to joystick peripherals.</div><div class="ttdef"><b>Definition:</b> peripheral.h:239</div></div>
<div class="ttc" id="astruct_p_e_r_i_p_h_e_r_a_l___c_a_p_a_b_i_l_i_t_i_e_s_html"><div class="ttname"><a href="struct_p_e_r_i_p_h_e_r_a_l___c_a_p_a_b_i_l_i_t_i_e_s.html">PERIPHERAL_CAPABILITIES</a></div><div class="ttdoc">Peripheral add-on capabilities.</div><div class="ttdef"><b>Definition:</b> peripheral.h:100</div></div>
<div class="ttc" id="astruct_p_e_r_i_p_h_e_r_a_l___e_v_e_n_t_html"><div class="ttname"><a href="struct_p_e_r_i_p_h_e_r_a_l___e_v_e_n_t.html">PERIPHERAL_EVENT</a></div><div class="ttdoc">Event information.</div><div class="ttdef"><b>Definition:</b> peripheral.h:214</div></div>
<div class="ttc" id="astruct_p_e_r_i_p_h_e_r_a_l___i_n_f_o_html"><div class="ttname"><a href="struct_p_e_r_i_p_h_e_r_a_l___i_n_f_o.html">PERIPHERAL_INFO</a></div><div class="ttdoc">Information shared between peripherals.</div><div class="ttdef"><b>Definition:</b> peripheral.h:88</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_818aca8f237de2dab4b332e67c44f0ac.html">include</a></li><li class="navelem"><a class="el" href="dir_e2893ada97b5f5ed70c6c1eae148df10.html">kodi</a></li><li class="navelem"><a class="el" href="dir_726c3e97bb7ce1b0cced8dcef60872f1.html">addon-instance</a></li><li class="navelem"><b>Peripheral.h</b></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>