-
Notifications
You must be signed in to change notification settings - Fork 1
/
_addon_base_8h_source.html
860 lines (858 loc) · 141 KB
/
_addon_base_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
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
<!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/AddonBase.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_base_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">AddonBase.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) 2005-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 "c-api/addon_base.h"</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "versions.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">#include <assert.h></span> <span class="comment">/* assert */</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <stdarg.h></span> <span class="comment">/* va_list, va_start, va_arg, va_end */</span></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="preprocessor">#ifdef __cplusplus</span></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> <span class="preprocessor">#include <cstdlib></span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <cstring></span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <ctime></span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <memory></span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <stdexcept></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <string></span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <vector></span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "tools/StringUtils.h"</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span>kodi</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span>gui</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">struct </span>IRenderHelper;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> } <span class="comment">/* namespace gui */</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"></span><span class="keyword">using</span> HardwareContext = ADDON_HARDWARE_CONTEXT;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classkodi_1_1_c_setting_value.html"> 118</a></span> <span class="comment"></span><span class="keyword">class </span>ATTRIBUTE_HIDDEN <a class="code" href="classkodi_1_1_c_setting_value.html">CSettingValue</a></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> {</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">explicit</span> <a class="code" href="classkodi_1_1_c_setting_value.html">CSettingValue</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* settingValue) : m_settingValue(settingValue) {}</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">bool</span> empty()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (m_settingValue == <span class="keyword">nullptr</span>) ? true : <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga764f99b38cb3cd18ab87c5261321e063"> 142</a></span>  std::string <a class="code" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga764f99b38cb3cd18ab87c5261321e063">GetString</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<span class="keyword">const</span> <span class="keywordtype">char</span>*)m_settingValue; }</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga3f9636de28d683833247125cd9427046"> 145</a></span>  <span class="keywordtype">int</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga3f9636de28d683833247125cd9427046">GetInt</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *(<span class="keyword">const</span> <span class="keywordtype">int</span>*)m_settingValue; }</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga3aa86241f9d3a2905616b393a858b354"> 148</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga3aa86241f9d3a2905616b393a858b354">GetUInt</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>*)m_settingValue; }</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga41c297793cf20f9c7812dc56a68f7ce4"> 151</a></span>  <span class="keywordtype">bool</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga41c297793cf20f9c7812dc56a68f7ce4">GetBoolean</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *(<span class="keyword">const</span> <span class="keywordtype">bool</span>*)m_settingValue; }</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#gaa61c6d39394461db44dfd5d01df49a73"> 154</a></span>  <span class="keywordtype">float</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#gaa61c6d39394461db44dfd5d01df49a73">GetFloat</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *(<span class="keyword">const</span> <span class="keywordtype">float</span>*)m_settingValue; }</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keyword">template</span><<span class="keyword">typename</span> enumType></div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#gadd5b4ff49052225ffea10c04c870b5b9"> 159</a></span>  enumType <a class="code" href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#gadd5b4ff49052225ffea10c04c870b5b9">GetEnum</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>enumType<span class="keyword">></span>(*(<span class="keyword">const</span> <span class="keywordtype">int</span>*)m_settingValue);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  }</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keyword">const</span> <span class="keywordtype">void</span>* m_settingValue;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> };</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="keyword">namespace </span>addon</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> {</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment"> * Internal class to control various instance types with general parts defined</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment"> * here.</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment"> * Mainly is this currently used to identify requested instance types.</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment"> * @note This class is not need to know during add-on development thats why</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment"> * commented with "*".</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classkodi_1_1addon_1_1_i_addon_instance.html"> 185</a></span> <span class="keyword">class </span>ATTRIBUTE_HIDDEN <a class="code" href="classkodi_1_1addon_1_1_i_addon_instance.html">IAddonInstance</a></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> {</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keyword">explicit</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#gada0b4c3c9f9c168e5e1c27145ec72357">ADDON_TYPE</a> type, <span class="keyword">const</span> std::string& version)</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  : m_type(type), m_kodiVersion(version)</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  {</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keyword">virtual</span> ~<a class="code" href="classkodi_1_1addon_1_1_i_addon_instance.html">IAddonInstance</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> CreateInstance(<span class="keywordtype">int</span> instanceType,</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">const</span> std::string& instanceID,</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  KODI_HANDLE instance,</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keyword">const</span> std::string& version,</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  KODI_HANDLE& addonInstance)</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  {</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">return</span> ADDON_STATUS_NOT_IMPLEMENTED;</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  }</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  </div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keyword">const</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e.html#gada0b4c3c9f9c168e5e1c27145ec72357">ADDON_TYPE</a> m_type;</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keyword">const</span> std::string m_kodiVersion;</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  std::string m_id;</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> };</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment"> * Internally used helper class to manage processing of a "C" structure in "CPP"</span></div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment"> * class.</span></div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"> * At constant, the "C" structure is copied, otherwise the given pointer is</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment"> * superseded and is changeable.</span></div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"> * -----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment"> * Example:</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="comment"> * ~~~~~~~~~~~~~{.cpp}</span></div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="comment"> * extern "C" typedef struct C_SAMPLE_DATA</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="comment"> * {</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="comment"> * unsigned int iUniqueId;</span></div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="comment"> * } C_SAMPLE_DATA;</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="comment"> * class CPPSampleData : public CStructHdl<CPPSampleData, C_SAMPLE_DATA></span></div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment"> * {</span></div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment"> * public:</span></div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="comment"> * CPPSampleData() = default;</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment"> * CPPSampleData(const CPPSampleData& sample) : CStructHdl(sample) { }</span></div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="comment"> * CPPSampleData(const C_SAMPLE_DATA* sample) : CStructHdl(sample) { }</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"> * CPPSampleData(C_SAMPLE_DATA* sample) : CStructHdl(sample) { }</span></div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> * void SetUniqueId(unsigned int uniqueId) { m_cStructure->iUniqueId = uniqueId; }</span></div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment"> * unsigned int GetUniqueId() const { return m_cStructure->iUniqueId; }</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment"> * };</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="comment"> * ~~~~~~~~~~~~~</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="comment"> * It also works with the following example:</span></div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="comment"> * ~~~~~~~~~~~~~{.cpp}</span></div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment"> * CPPSampleData test;</span></div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment"> * // Some work</span></div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment"> * C_SAMPLE_DATA* data = test;</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment"> * // Give "data" to Kodi</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment"> * ~~~~~~~~~~~~~</span></div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="keyword">template</span><<span class="keyword">class</span> CPP_CLASS, <span class="keyword">typename</span> C_STRUCT></div>
<div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="classkodi_1_1addon_1_1_c_struct_hdl.html"> 249</a></span> <span class="keyword">class </span><a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> {</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a>() : m_cStructure(<span class="keyword">new</span> C_STRUCT()), m_owner(<span class="keyword">true</span>) {}</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  </div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a>(<span class="keyword">const</span> CPP_CLASS& cppClass)</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  : m_cStructure(<span class="keyword">new</span> C_STRUCT(*cppClass.m_cStructure)), m_owner(<span class="keyword">true</span>)</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  {</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  }</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a>(<span class="keyword">const</span> C_STRUCT* cStructure) : m_cStructure(<span class="keyword">new</span> C_STRUCT(*cStructure)), m_owner(<span class="keyword">true</span>) {}</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  </div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a>(C_STRUCT* cStructure) : m_cStructure(cStructure) { assert(cStructure); }</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  </div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a>& operator=(<span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a>& right)</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  {</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  assert(&right.m_cStructure);</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">if</span> (m_cStructure && !m_owner)</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  {</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  memcpy(m_cStructure, right.m_cStructure, <span class="keyword">sizeof</span>(C_STRUCT));</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  }</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  {</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">if</span> (m_owner)</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keyword">delete</span> m_cStructure;</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  m_owner = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  m_cStructure = <span class="keyword">new</span> C_STRUCT(*right.m_cStructure);</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  }</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  }</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  </div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keyword">const</span> <a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a>& operator=(<span class="keyword">const</span> C_STRUCT& right)</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>  assert(&right);</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordflow">if</span> (m_cStructure && !m_owner)</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  {</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  memcpy(m_cStructure, &right, <span class="keyword">sizeof</span>(C_STRUCT));</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  }</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  {</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordflow">if</span> (m_owner)</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keyword">delete</span> m_cStructure;</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  m_owner = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  m_cStructure = <span class="keyword">new</span> C_STRUCT(*right);</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  }</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</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="keyword">virtual</span> ~<a class="code" href="classkodi_1_1addon_1_1_c_struct_hdl.html">CStructHdl</a>()</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  {</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordflow">if</span> (m_owner)</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keyword">delete</span> m_cStructure;</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  }</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  </div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keyword">operator</span> C_STRUCT*() { <span class="keywordflow">return</span> m_cStructure; }</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keyword">operator</span> <span class="keyword">const</span> C_STRUCT*() <span class="keyword">const</span> { <span class="keywordflow">return</span> m_cStructure; }</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  </div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keyword">const</span> C_STRUCT* GetCStructure()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_cStructure; }</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  </div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  C_STRUCT* m_cStructure = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  </div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordtype">bool</span> m_owner = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> };</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  </div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="classkodi_1_1addon_1_1_c_addon_base.html"> 321</a></span> <span class="comment"></span><span class="keyword">class </span>ATTRIBUTE_HIDDEN <a class="code" href="classkodi_1_1addon_1_1_c_addon_base.html">CAddonBase</a></div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> {</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase.html#gac0e0188d41e22618ecef6bd69ece39cb"> 328</a></span> <span class="comment"></span> <a class="code" href="group__cpp__kodi__addon__addonbase.html#gac0e0188d41e22618ecef6bd69ece39cb">CAddonBase</a>()</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  {</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  m_interface->toAddon->destroy = ADDONBASE_Destroy;</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  m_interface->toAddon->create_instance = ADDONBASE_CreateInstance;</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  m_interface->toAddon->destroy_instance = ADDONBASE_DestroyInstance;</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  m_interface->toAddon->set_setting = ADDONBASE_SetSetting;</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  }</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  </div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase.html#gabd0cd0f2367440fcc93266949ffd9da5"> 341</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__addonbase.html#gabd0cd0f2367440fcc93266949ffd9da5">~CAddonBase</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  </div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00360"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase.html#gabf149cc30b4d67b82e939b64ab923d89"> 360</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> <a class="code" href="group__cpp__kodi__addon__addonbase.html#gabf149cc30b4d67b82e939b64ab923d89">Create</a>() { <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a6925909b93ca05098ca5272f16e091c0">ADDON_STATUS_OK</a>; }</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  </div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="comment">// obsolete</span></div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> GetStatus() { <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a6925909b93ca05098ca5272f16e091c0">ADDON_STATUS_OK</a>; }</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  </div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase.html#ga1729a597265408b52198edba006e00fd"> 416</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> <a class="code" href="group__cpp__kodi__addon__addonbase.html#ga1729a597265408b52198edba006e00fd">SetSetting</a>(<span class="keyword">const</span> std::string& settingName,</div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="keyword">const</span> <a class="code" href="classkodi_1_1_c_setting_value.html">kodi::CSettingValue</a>& settingValue)</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  {</div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502ac0720dbdce3dcb194f12a0eceb59a501">ADDON_STATUS_UNKNOWN</a>;</div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  }</div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="comment">//----------------------------------------------------------------------------</span></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="comment">//==========================================================================</span></div>
<div class="line"><a name="l00481"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase.html#ga74ea538a2191541a57115fa89790358c"> 481</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> <a class="code" href="group__cpp__kodi__addon__addonbase.html#ga74ea538a2191541a57115fa89790358c">CreateInstance</a>(<span class="keywordtype">int</span> instanceType,</div>
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keyword">const</span> std::string& instanceID,</div>
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  KODI_HANDLE instance,</div>
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keyword">const</span> std::string& version,</div>
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  KODI_HANDLE& addonInstance)</div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  {</div>
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <span class="keywordflow">return</span> ADDON_STATUS_NOT_IMPLEMENTED;</div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  }</div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="comment">//--------------------------------------------------------------------------</span></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="comment">//==========================================================================</span></div>
<div class="line"><a name="l00505"></a><span class="lineno"><a class="line" href="group__cpp__kodi__addon__addonbase.html#gaf503045d18aaaef1e68796c8d14fff0a"> 505</a></span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__cpp__kodi__addon__addonbase.html#gaf503045d18aaaef1e68796c8d14fff0a">DestroyInstance</a>(<span class="keywordtype">int</span> instanceType,</div>
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keyword">const</span> std::string& instanceID,</div>
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  KODI_HANDLE addonInstance)</div>
<div class="line"><a name="l00508"></a><span class="lineno"> 508</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="l00511"></a><span class="lineno"> 511</span>  </div>
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="comment">/* Background helper for GUI render systems, e.g. Screensaver or Visualization */</span></div>
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  std::shared_ptr<kodi::gui::IRenderHelper> m_renderHelper;</div>
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  </div>
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  <span class="comment">/* Global variables of class */</span></div>
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <span class="keyword">static</span> <a class="code" href="struct_addon_global_interface.html">AddonGlobalInterface</a>*</div>
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  m_interface; <span class="comment">// Interface function table to hold addresses on add-on and from kodi</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="keyword">private</span>:</div>
<div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> ADDONBASE_Destroy()</div>
<div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  {</div>
<div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <span class="keyword">delete</span> <span class="keyword">static_cast<</span><a class="code" href="classkodi_1_1addon_1_1_c_addon_base.html">CAddonBase</a>*<span class="keyword">></span>(m_interface->addonBase);</div>
<div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  m_interface->addonBase = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  }</div>
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  </div>
<div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> ADDONBASE_SetSetting(<span class="keyword">const</span> <span class="keywordtype">char</span>* settingName, <span class="keyword">const</span> <span class="keywordtype">void</span>* settingValue)</div>
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  {</div>
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>CAddonBase*<span class="keyword">></span>(m_interface->addonBase)</div>
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  ->SetSetting(settingName, <a class="code" href="classkodi_1_1_c_setting_value.html">CSettingValue</a>(settingValue));</div>
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  }</div>
<div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  </div>
<div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> ADDONBASE_CreateInstance(<span class="keywordtype">int</span> instanceType,</div>
<div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* instanceID,</div>
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  KODI_HANDLE instance,</div>
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* version,</div>
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  KODI_HANDLE* addonInstance,</div>
<div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  KODI_HANDLE parent)</div>
<div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  {</div>
<div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  CAddonBase* base = <span class="keyword">static_cast<</span>CAddonBase*<span class="keyword">></span>(m_interface->addonBase);</div>
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  </div>
<div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> status = ADDON_STATUS_NOT_IMPLEMENTED;</div>
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  </div>
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  <span class="comment">/* Check about single instance usage:</span></div>
<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="comment"> * 1. The kodi side instance pointer must be equal to first one</span></div>
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="comment"> * 2. The addon side instance pointer must be set</span></div>
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="comment"> * 3. And the requested type must be equal with used add-on class</span></div>
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordflow">if</span> (m_interface->firstKodiInstance == instance && m_interface->globalSingleInstance &&</div>
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="keyword">static_cast<</span>IAddonInstance*<span class="keyword">></span>(m_interface->globalSingleInstance)->m_type == instanceType)</div>
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  {</div>
<div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  <span class="comment">/* The handling here is intended for the case of the add-on only one</span></div>
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="comment"> * instance and this is integrated in the add-on base class.</span></div>
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  *addonInstance = m_interface->globalSingleInstance;</div>
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  status = <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a6925909b93ca05098ca5272f16e091c0">ADDON_STATUS_OK</a>;</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="keywordflow">else</span></div>
<div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  {</div>
<div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  <span class="comment">/* Here it should use the CreateInstance instance function to allow</span></div>
<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> <span class="comment"> * creation of several on one addon.</span></div>
<div class="line"><a name="l00561"></a><span class="lineno"> 561</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  </div>
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <span class="comment">/* Check first a parent is defined about (e.g. Codec within inputstream) */</span></div>
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <span class="keywordflow">if</span> (parent != <span class="keyword">nullptr</span>)</div>
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  status = <span class="keyword">static_cast<</span>IAddonInstance*<span class="keyword">></span>(parent)->CreateInstance(</div>
<div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  instanceType, instanceID, instance, version, *addonInstance);</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">/* if no parent call the main instance creation function to get it */</span></div>
<div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <span class="keywordflow">if</span> (status == ADDON_STATUS_NOT_IMPLEMENTED)</div>
<div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  {</div>
<div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  status = base->CreateInstance(instanceType, instanceID, instance, version, *addonInstance);</div>
<div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  }</div>
<div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  }</div>
<div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  </div>
<div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  <span class="keywordflow">if</span> (*addonInstance == <span class="keyword">nullptr</span>)</div>
<div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  {</div>
<div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <span class="keywordflow">if</span> (status == <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a6925909b93ca05098ca5272f16e091c0">ADDON_STATUS_OK</a>)</div>
<div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  {</div>
<div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  m_interface->toKodi->addon_log_msg(m_interface->toKodi->kodiBase, <a class="code" href="group__cpp__kodi___defs___addon_log.html#gga913895aaf2ef685961947f8d6b93e038a1a33911413fbeacfa24b2cdfb31f6a95">ADDON_LOG_FATAL</a>,</div>
<div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <span class="stringliteral">"kodi::addon::CAddonBase CreateInstance returned an "</span></div>
<div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="stringliteral">"empty instance pointer, but reported OK!"</span>);</div>
<div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502ae4970102d8dd8b9775fc84fd43d6d87b">ADDON_STATUS_PERMANENT_FAILURE</a>;</div>
<div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  }</div>
<div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  {</div>
<div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  <span class="keywordflow">return</span> status;</div>
<div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  }</div>
<div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  }</div>
<div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  </div>
<div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  <span class="keywordflow">if</span> (<span class="keyword">static_cast<</span>IAddonInstance*<span class="keyword">></span>(*addonInstance)->m_type != instanceType)</div>
<div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  {</div>
<div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  m_interface->toKodi->addon_log_msg(</div>
<div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  m_interface->toKodi->kodiBase, <a class="code" href="group__cpp__kodi___defs___addon_log.html#gga913895aaf2ef685961947f8d6b93e038a1a33911413fbeacfa24b2cdfb31f6a95">ADDON_LOG_FATAL</a>,</div>
<div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  <span class="stringliteral">"kodi::addon::CAddonBase CreateInstance difference between given and returned"</span>);</div>
<div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  <span class="keyword">delete</span> <span class="keyword">static_cast<</span>IAddonInstance*<span class="keyword">></span>(*addonInstance);</div>
<div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  *addonInstance = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  <span class="keywordflow">return</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502ae4970102d8dd8b9775fc84fd43d6d87b">ADDON_STATUS_PERMANENT_FAILURE</a>;</div>
<div class="line"><a name="l00598"></a><span class="lineno"> 598</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">// Store the used ID inside instance, to have on destroy calls by addon to identify</span></div>
<div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <span class="keyword">static_cast<</span>IAddonInstance*<span class="keyword">></span>(*addonInstance)->m_id = instanceID;</div>
<div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  </div>
<div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  <span class="keywordflow">return</span> status;</div>
<div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  }</div>
<div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  </div>
<div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> ADDONBASE_DestroyInstance(<span class="keywordtype">int</span> instanceType, KODI_HANDLE instance)</div>
<div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  {</div>
<div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  CAddonBase* base = <span class="keyword">static_cast<</span>CAddonBase*<span class="keyword">></span>(m_interface->addonBase);</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">if</span> (m_interface->globalSingleInstance == <span class="keyword">nullptr</span> && instance != base)</div>
<div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  {</div>
<div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  base->DestroyInstance(instanceType, <span class="keyword">static_cast<</span>IAddonInstance*<span class="keyword">></span>(instance)->m_id, instance);</div>
<div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  <span class="keyword">delete</span> <span class="keyword">static_cast<</span>IAddonInstance*<span class="keyword">></span>(instance);</div>
<div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  }</div>
<div class="line"><a name="l00615"></a><span class="lineno"> 615</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>  </div>
<div class="line"><a name="l00618"></a><span class="lineno"> 618</span> } <span class="comment">/* namespace addon */</span></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="comment">//==============================================================================</span></div>
<div class="line"><a name="l00630"></a><span class="lineno"><a class="line" href="group__cpp__kodi.html#ga3f6e41fe0bc423ec7d065fbdf3f47e98"> 630</a></span> <span class="comment"></span><span class="keyword">inline</span> std::string ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi.html#ga3f6e41fe0bc423ec7d065fbdf3f47e98">GetKodiTypeVersion</a>(<span class="keywordtype">int</span> type)</div>
<div class="line"><a name="l00631"></a><span class="lineno"> 631</span> {</div>
<div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  <span class="keyword">using namespace </span>kodi::addon;</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>  <span class="keywordtype">char</span>* str = CAddonBase::m_interface->toKodi->get_type_version(</div>
<div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  CAddonBase::m_interface->toKodi->kodiBase, type);</div>
<div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  std::string ret = str;</div>
<div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  CAddonBase::m_interface->toKodi->free_string(CAddonBase::m_interface->toKodi->kodiBase, str);</div>
<div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00639"></a><span class="lineno"> 639</span> }</div>
<div class="line"><a name="l00640"></a><span class="lineno"> 640</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  </div>
<div class="line"><a name="l00642"></a><span class="lineno"> 642</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00649"></a><span class="lineno"><a class="line" href="group__cpp__kodi.html#ga2781900156274d2865c19a553e6827b7"> 649</a></span> <span class="comment"></span><span class="keyword">inline</span> std::string ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi.html#ga2781900156274d2865c19a553e6827b7">GetAddonPath</a>(<span class="keyword">const</span> std::string& append = <span class="stringliteral">""</span>)</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="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  </div>
<div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  <span class="keywordtype">char</span>* str =</div>
<div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  CAddonBase::m_interface->toKodi->get_addon_path(CAddonBase::m_interface->toKodi->kodiBase);</div>
<div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  std::string ret = str;</div>
<div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  CAddonBase::m_interface->toKodi->free_string(CAddonBase::m_interface->toKodi->kodiBase, str);</div>
<div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  <span class="keywordflow">if</span> (!append.empty())</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="keywordflow">if</span> (append.at(0) != <span class="charliteral">'\\'</span> && append.at(0) != <span class="charliteral">'/'</span>)</div>
<div class="line"><a name="l00660"></a><span class="lineno"> 660</span> <span class="preprocessor">#ifdef TARGET_WINDOWS</span></div>
<div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  ret.append(<span class="stringliteral">"\\"</span>);</div>
<div class="line"><a name="l00662"></a><span class="lineno"> 662</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  ret.append(<span class="stringliteral">"/"</span>);</div>
<div class="line"><a name="l00664"></a><span class="lineno"> 664</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  ret.append(append);</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>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00668"></a><span class="lineno"> 668</span> }</div>
<div class="line"><a name="l00669"></a><span class="lineno"> 669</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  </div>
<div class="line"><a name="l00671"></a><span class="lineno"> 671</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00681"></a><span class="lineno"><a class="line" href="group__cpp__kodi.html#ga4359d2b581989bb9670a725ad248a505"> 681</a></span> <span class="comment"></span><span class="keyword">inline</span> std::string ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi.html#ga4359d2b581989bb9670a725ad248a505">GetBaseUserPath</a>(<span class="keyword">const</span> std::string& append = <span class="stringliteral">""</span>)</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="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  </div>
<div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <span class="keywordtype">char</span>* str = CAddonBase::m_interface->toKodi->get_base_user_path(</div>
<div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  CAddonBase::m_interface->toKodi->kodiBase);</div>
<div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  std::string ret = str;</div>
<div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  CAddonBase::m_interface->toKodi->free_string(CAddonBase::m_interface->toKodi->kodiBase, str);</div>
<div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <span class="keywordflow">if</span> (!append.empty())</div>
<div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  {</div>
<div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  <span class="keywordflow">if</span> (append.at(0) != <span class="charliteral">'\\'</span> && append.at(0) != <span class="charliteral">'/'</span>)</div>
<div class="line"><a name="l00692"></a><span class="lineno"> 692</span> <span class="preprocessor">#ifdef TARGET_WINDOWS</span></div>
<div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  ret.append(<span class="stringliteral">"\\"</span>);</div>
<div class="line"><a name="l00694"></a><span class="lineno"> 694</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  ret.append(<span class="stringliteral">"/"</span>);</div>
<div class="line"><a name="l00696"></a><span class="lineno"> 696</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  ret.append(append);</div>
<div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  }</div>
<div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  <span class="keywordflow">return</span> ret;</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> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  </div>
<div class="line"><a name="l00703"></a><span class="lineno"> 703</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00718"></a><span class="lineno"><a class="line" href="group__cpp__kodi.html#gac14be189194d589bc9f23e23168849e7"> 718</a></span> <span class="comment"></span><span class="keyword">inline</span> std::string ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi.html#gac14be189194d589bc9f23e23168849e7">GetLibPath</a>()</div>
<div class="line"><a name="l00719"></a><span class="lineno"> 719</span> {</div>
<div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  </div>
<div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  <span class="keywordflow">return</span> CAddonBase::m_interface->libBasePath;</div>
<div class="line"><a name="l00723"></a><span class="lineno"> 723</span> }</div>
<div class="line"><a name="l00724"></a><span class="lineno"> 724</span> <span class="comment">//------------------------------------------------------------------------------</span></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> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00749"></a><span class="lineno"><a class="line" href="group__cpp__kodi.html#gaaa1f205f9375cd086229a1455ede11cc"> 749</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi.html#gaaa1f205f9375cd086229a1455ede11cc">Log</a>(<span class="keyword">const</span> <a class="code" href="group__cpp__kodi___defs___addon_log.html#ga913895aaf2ef685961947f8d6b93e038">AddonLog</a> loglevel, <span class="keyword">const</span> <span class="keywordtype">char</span>* format, ...)</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>  <span class="keyword">using namespace </span>kodi::addon;</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>  va_list args;</div>
<div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  va_start(args, format);</div>
<div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  <span class="keyword">const</span> std::string str = <a class="code" href="group__cpp__kodi__tools___string_utils___format_control.html#ga089127b34d609b689f1f0e6b0544c353">kodi::tools::StringUtils::FormatV</a>(format, args);</div>
<div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  va_end(args);</div>
<div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  CAddonBase::m_interface->toKodi->addon_log_msg(CAddonBase::m_interface->toKodi->kodiBase,</div>
<div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  loglevel, str.c_str());</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="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  </div>
<div class="line"><a name="l00762"></a><span class="lineno"> 762</span> <span class="comment">//##############################################################################</span></div>
<div class="line"><a name="l00774"></a><span class="lineno"> 774</span> <span class="comment"></span> </div>
<div class="line"><a name="l00776"></a><span class="lineno"> 776</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00784"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#gafdfce08e2f545e1951011b9a59b4e3f3"> 784</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#gafdfce08e2f545e1951011b9a59b4e3f3">IsSettingUsingDefault</a>(<span class="keyword">const</span> std::string& settingName)</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>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  <span class="keywordflow">return</span> CAddonBase::m_interface->toKodi->is_setting_using_default(</div>
<div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  CAddonBase::m_interface->toKodi->kodiBase, settingName.c_str());</div>
<div class="line"><a name="l00789"></a><span class="lineno"> 789</span> }</div>
<div class="line"><a name="l00790"></a><span class="lineno"> 790</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  </div>
<div class="line"><a name="l00792"></a><span class="lineno"> 792</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00815"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga0fa39ae77ecaebdbca29a9eb12def5b5"> 815</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga0fa39ae77ecaebdbca29a9eb12def5b5">CheckSettingString</a>(<span class="keyword">const</span> std::string& settingName,</div>
<div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  std::string& settingValue)</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>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  </div>
<div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  <span class="keywordtype">char</span>* buffer = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  <span class="keywordtype">bool</span> ret = CAddonBase::m_interface->toKodi->get_setting_string(</div>
<div class="line"><a name="l00822"></a><span class="lineno"> 822</span>  CAddonBase::m_interface->toKodi->kodiBase, settingName.c_str(), &buffer);</div>
<div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  <span class="keywordflow">if</span> (buffer)</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>  <span class="keywordflow">if</span> (ret)</div>
<div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  settingValue = buffer;</div>
<div class="line"><a name="l00827"></a><span class="lineno"> 827</span>  CAddonBase::m_interface->toKodi->free_string(CAddonBase::m_interface->toKodi->kodiBase, buffer);</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="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00830"></a><span class="lineno"> 830</span> }</div>
<div class="line"><a name="l00831"></a><span class="lineno"> 831</span> <span class="comment">//------------------------------------------------------------------------------</span></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="comment">//==============================================================================</span></div>
<div class="line"><a name="l00852"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga3ceb7548f335e4219e4be53c0813d0ea"> 852</a></span> <span class="comment"></span><span class="keyword">inline</span> std::string ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga3ceb7548f335e4219e4be53c0813d0ea">GetSettingString</a>(<span class="keyword">const</span> std::string& settingName,</div>
<div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  <span class="keyword">const</span> std::string& defaultValue = <span class="stringliteral">""</span>)</div>
<div class="line"><a name="l00854"></a><span class="lineno"> 854</span> {</div>
<div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  std::string settingValue = defaultValue;</div>
<div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  <a class="code" href="group__cpp__kodi__settings.html#ga0fa39ae77ecaebdbca29a9eb12def5b5">CheckSettingString</a>(settingName, settingValue);</div>
<div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  <span class="keywordflow">return</span> settingValue;</div>
<div class="line"><a name="l00858"></a><span class="lineno"> 858</span> }</div>
<div class="line"><a name="l00859"></a><span class="lineno"> 859</span> <span class="comment">//------------------------------------------------------------------------------</span></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="comment">//==============================================================================</span></div>
<div class="line"><a name="l00880"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga80d769921d3f3bbe2113fadec5812f34"> 880</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga80d769921d3f3bbe2113fadec5812f34">SetSettingString</a>(<span class="keyword">const</span> std::string& settingName,</div>
<div class="line"><a name="l00881"></a><span class="lineno"> 881</span>  <span class="keyword">const</span> std::string& settingValue)</div>
<div class="line"><a name="l00882"></a><span class="lineno"> 882</span> {</div>
<div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  </div>
<div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  CAddonBase::m_interface->toKodi->set_setting_string(CAddonBase::m_interface->toKodi->kodiBase,</div>
<div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  settingName.c_str(), settingValue.c_str());</div>
<div class="line"><a name="l00887"></a><span class="lineno"> 887</span> }</div>
<div class="line"><a name="l00888"></a><span class="lineno"> 888</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  </div>
<div class="line"><a name="l00890"></a><span class="lineno"> 890</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00913"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga7d65f40b5bbd6bf5aaee1a4b163da3d2"> 913</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga7d65f40b5bbd6bf5aaee1a4b163da3d2">CheckSettingInt</a>(<span class="keyword">const</span> std::string& settingName, <span class="keywordtype">int</span>& settingValue)</div>
<div class="line"><a name="l00914"></a><span class="lineno"> 914</span> {</div>
<div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l00916"></a><span class="lineno"> 916</span>  </div>
<div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  <span class="keywordflow">return</span> CAddonBase::m_interface->toKodi->get_setting_int(CAddonBase::m_interface->toKodi->kodiBase,</div>
<div class="line"><a name="l00918"></a><span class="lineno"> 918</span>  settingName.c_str(), &settingValue);</div>
<div class="line"><a name="l00919"></a><span class="lineno"> 919</span> }</div>
<div class="line"><a name="l00920"></a><span class="lineno"> 920</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  </div>
<div class="line"><a name="l00922"></a><span class="lineno"> 922</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00941"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga98644f28dcb8d375446d66d2c99d69cb"> 941</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">int</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga98644f28dcb8d375446d66d2c99d69cb">GetSettingInt</a>(<span class="keyword">const</span> std::string& settingName, <span class="keywordtype">int</span> defaultValue = 0)</div>
<div class="line"><a name="l00942"></a><span class="lineno"> 942</span> {</div>
<div class="line"><a name="l00943"></a><span class="lineno"> 943</span>  <span class="keywordtype">int</span> settingValue = defaultValue;</div>
<div class="line"><a name="l00944"></a><span class="lineno"> 944</span>  <a class="code" href="group__cpp__kodi__settings.html#ga7d65f40b5bbd6bf5aaee1a4b163da3d2">CheckSettingInt</a>(settingName, settingValue);</div>
<div class="line"><a name="l00945"></a><span class="lineno"> 945</span>  <span class="keywordflow">return</span> settingValue;</div>
<div class="line"><a name="l00946"></a><span class="lineno"> 946</span> }</div>
<div class="line"><a name="l00947"></a><span class="lineno"> 947</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00948"></a><span class="lineno"> 948</span>  </div>
<div class="line"><a name="l00949"></a><span class="lineno"> 949</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00968"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#gabb36374fc18ac27da7b07395a4b2010a"> 968</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#gabb36374fc18ac27da7b07395a4b2010a">SetSettingInt</a>(<span class="keyword">const</span> std::string& settingName, <span class="keywordtype">int</span> settingValue)</div>
<div class="line"><a name="l00969"></a><span class="lineno"> 969</span> {</div>
<div class="line"><a name="l00970"></a><span class="lineno"> 970</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l00971"></a><span class="lineno"> 971</span>  </div>
<div class="line"><a name="l00972"></a><span class="lineno"> 972</span>  CAddonBase::m_interface->toKodi->set_setting_int(CAddonBase::m_interface->toKodi->kodiBase,</div>
<div class="line"><a name="l00973"></a><span class="lineno"> 973</span>  settingName.c_str(), settingValue);</div>
<div class="line"><a name="l00974"></a><span class="lineno"> 974</span> }</div>
<div class="line"><a name="l00975"></a><span class="lineno"> 975</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00976"></a><span class="lineno"> 976</span>  </div>
<div class="line"><a name="l00977"></a><span class="lineno"> 977</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01000"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga91dbcd080212d8f236b72845df9c98cc"> 1000</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga91dbcd080212d8f236b72845df9c98cc">CheckSettingBoolean</a>(<span class="keyword">const</span> std::string& settingName, <span class="keywordtype">bool</span>& settingValue)</div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> {</div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>  </div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>  <span class="keywordflow">return</span> CAddonBase::m_interface->toKodi->get_setting_bool(</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>  CAddonBase::m_interface->toKodi->kodiBase, settingName.c_str(), &settingValue);</div>
<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> }</div>
<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>  </div>
<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01028"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#gac99ff742b7c9f18bd61808464ed7e644"> 1028</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#gac99ff742b7c9f18bd61808464ed7e644">GetSettingBoolean</a>(<span class="keyword">const</span> std::string& settingName,</div>
<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>  <span class="keywordtype">bool</span> defaultValue = <span class="keyword">false</span>)</div>
<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> {</div>
<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>  <span class="keywordtype">bool</span> settingValue = defaultValue;</div>
<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>  <a class="code" href="group__cpp__kodi__settings.html#ga91dbcd080212d8f236b72845df9c98cc">CheckSettingBoolean</a>(settingName, settingValue);</div>
<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>  <span class="keywordflow">return</span> settingValue;</div>
<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> }</div>
<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>  </div>
<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01056"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga96cf17c7e640ddf4a48f30170d5b2e0e"> 1056</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga96cf17c7e640ddf4a48f30170d5b2e0e">SetSettingBoolean</a>(<span class="keyword">const</span> std::string& settingName, <span class="keywordtype">bool</span> settingValue)</div>
<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> {</div>
<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>  </div>
<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>  CAddonBase::m_interface->toKodi->set_setting_bool(CAddonBase::m_interface->toKodi->kodiBase,</div>
<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>  settingName.c_str(), settingValue);</div>
<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> }</div>
<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>  </div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01088"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga5a0ff70a8ef49304808f9ef4c05164eb"> 1088</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga5a0ff70a8ef49304808f9ef4c05164eb">CheckSettingFloat</a>(<span class="keyword">const</span> std::string& settingName, <span class="keywordtype">float</span>& settingValue)</div>
<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> {</div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>  </div>
<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>  <span class="keywordflow">return</span> CAddonBase::m_interface->toKodi->get_setting_float(</div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>  CAddonBase::m_interface->toKodi->kodiBase, settingName.c_str(), &settingValue);</div>
<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> }</div>
<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>  </div>
<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01116"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga8df463677c7530e577438a21b65884c0"> 1116</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">float</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga8df463677c7530e577438a21b65884c0">GetSettingFloat</a>(<span class="keyword">const</span> std::string& settingName,</div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>  <span class="keywordtype">float</span> defaultValue = 0.0f)</div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> {</div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>  <span class="keywordtype">float</span> settingValue = defaultValue;</div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>  <a class="code" href="group__cpp__kodi__settings.html#ga5a0ff70a8ef49304808f9ef4c05164eb">CheckSettingFloat</a>(settingName, settingValue);</div>
<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>  <span class="keywordflow">return</span> settingValue;</div>
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> }</div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>  </div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01144"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga19f37ddffcf939ca03da266f0b3db9f4"> 1144</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga19f37ddffcf939ca03da266f0b3db9f4">SetSettingFloat</a>(<span class="keyword">const</span> std::string& settingName, <span class="keywordtype">float</span> settingValue)</div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> {</div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>  </div>
<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>  CAddonBase::m_interface->toKodi->set_setting_float(CAddonBase::m_interface->toKodi->kodiBase,</div>
<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>  settingName.c_str(), settingValue);</div>
<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> }</div>
<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>  </div>
<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> <span class="comment"></span><span class="keyword">template</span><<span class="keyword">typename</span> enumType></div>
<div class="line"><a name="l01185"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#gad382c63b67d853965c599f909b359b54"> 1185</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#gad382c63b67d853965c599f909b359b54">CheckSettingEnum</a>(<span class="keyword">const</span> std::string& settingName,</div>
<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>  enumType& settingValue)</div>
<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> {</div>
<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>  </div>
<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>  <span class="keywordtype">int</span> settingValueInt = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(settingValue);</div>
<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>  <span class="keywordtype">bool</span> ret = CAddonBase::m_interface->toKodi->get_setting_int(</div>
<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>  CAddonBase::m_interface->toKodi->kodiBase, settingName.c_str(), &settingValueInt);</div>
<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>  <span class="keywordflow">if</span> (ret)</div>
<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>  settingValue = <span class="keyword">static_cast<</span>enumType<span class="keyword">></span>(settingValueInt);</div>
<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> }</div>
<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>  </div>
<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> <span class="comment"></span><span class="keyword">template</span><<span class="keyword">typename</span> enumType></div>
<div class="line"><a name="l01228"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga72a7a2a3c9311be0e67ef4d9919a624d"> 1228</a></span> <span class="keyword">inline</span> enumType ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga72a7a2a3c9311be0e67ef4d9919a624d">GetSettingEnum</a>(<span class="keyword">const</span> std::string& settingName,</div>
<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>  enumType defaultValue = <span class="keyword">static_cast<</span>enumType<span class="keyword">></span>(0))</div>
<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> {</div>
<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>  enumType settingValue = defaultValue;</div>
<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>  <a class="code" href="group__cpp__kodi__settings.html#gad382c63b67d853965c599f909b359b54">CheckSettingEnum</a>(settingName, settingValue);</div>
<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>  <span class="keywordflow">return</span> settingValue;</div>
<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> }</div>
<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>  </div>
<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> <span class="comment"></span><span class="keyword">template</span><<span class="keyword">typename</span> enumType></div>
<div class="line"><a name="l01266"></a><span class="lineno"><a class="line" href="group__cpp__kodi__settings.html#ga5fc604a44c4dfe08aea4772fc212c99a"> 1266</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi__settings.html#ga5fc604a44c4dfe08aea4772fc212c99a">SetSettingEnum</a>(<span class="keyword">const</span> std::string& settingName, enumType settingValue)</div>
<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> {</div>
<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>  </div>
<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>  CAddonBase::m_interface->toKodi->set_setting_int(CAddonBase::m_interface->toKodi->kodiBase,</div>
<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>  settingName.c_str(),</div>
<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>  <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(settingValue));</div>
<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> }</div>
<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>  </div>
<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l01285"></a><span class="lineno"><a class="line" href="group__cpp__kodi.html#ga6d42f2bf354215e0460162d34dd68574"> 1285</a></span> <span class="comment"></span><span class="keyword">inline</span> std::string ATTRIBUTE_HIDDEN <a class="code" href="group__cpp__kodi.html#ga6d42f2bf354215e0460162d34dd68574">TranslateAddonStatus</a>(<a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a> status)</div>
<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> {</div>
<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>  <span class="keywordflow">switch</span> (status)</div>
<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>  {</div>
<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>  <span class="keywordflow">case</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a6925909b93ca05098ca5272f16e091c0">ADDON_STATUS_OK</a>:</div>
<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>  <span class="keywordflow">return</span> <span class="stringliteral">"OK"</span>;</div>
<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>  <span class="keywordflow">case</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a51393b8c3a7a1b1c42e19dfd307c8a77">ADDON_STATUS_LOST_CONNECTION</a>:</div>
<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Lost Connection"</span>;</div>
<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>  <span class="keywordflow">case</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a755c26a3ce9842923c872886e2860a40">ADDON_STATUS_NEED_RESTART</a>:</div>
<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Need Restart"</span>;</div>
<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>  <span class="keywordflow">case</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a46ed82ddfcab5af9b59a3c3ae4c2bdf0">ADDON_STATUS_NEED_SETTINGS</a>:</div>
<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Need Settings"</span>;</div>
<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>  <span class="keywordflow">case</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502ac0720dbdce3dcb194f12a0eceb59a501">ADDON_STATUS_UNKNOWN</a>:</div>
<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Unknown error"</span>;</div>
<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>  <span class="keywordflow">case</span> <a class="code" href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502ae4970102d8dd8b9775fc84fd43d6d87b">ADDON_STATUS_PERMANENT_FAILURE</a>:</div>
<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Permanent failure"</span>;</div>
<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>  <span class="keywordflow">case</span> ADDON_STATUS_NOT_IMPLEMENTED:</div>
<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Not implemented"</span>;</div>
<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>  <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>  <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>  }</div>
<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Unknown"</span>;</div>
<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> }</div>
<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>  </div>
<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01328"></a><span class="lineno"><a class="line" href="group__cpp__kodi.html#ga5e8c4e403f511f0c91104677a75a18d1"> 1328</a></span> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">void</span>* <a class="code" href="group__cpp__kodi.html#ga5e8c4e403f511f0c91104677a75a18d1">GetInterface</a>(<span class="keyword">const</span> std::string& name, <span class="keyword">const</span> std::string& version)</div>
<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span> {</div>
<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>  <span class="keyword">using namespace </span>kodi::addon;</div>
<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>  </div>
<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>  <a class="code" href="struct_addon_to_kodi_func_table___addon.html">AddonToKodiFuncTable_Addon</a>* toKodi = CAddonBase::m_interface->toKodi;</div>
<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>  </div>
<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>  <span class="keywordflow">return</span> toKodi->get_interface(toKodi->kodiBase, name.c_str(), version.c_str());</div>
<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> }</div>
<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> <span class="comment">//----------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>  </div>
<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> } <span class="comment">/* namespace kodi */</span></div>
<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>  </div>
<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> <span class="comment"></span><span class="preprocessor">#define ADDONCREATOR(AddonClass) \</span></div>
<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> <span class="preprocessor"> extern "C"</span> ATTRIBUTE_DLL_EXPORT ADDON_STATUS ADDON_Create( \</div>
<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>  KODI_HANDLE addonInterface, const char* <span class="comment">/*globalApiVersion*/</span><span class="preprocessor">, void* </span><span class="comment">/*unused*/</span><span class="preprocessor">) \</span></div>
<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="preprocessor"> kodi::addon::CAddonBase::m_interface = static_cast<AddonGlobalInterface*>(addonInterface); \</span></div>
<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="preprocessor"> kodi::addon::CAddonBase::m_interface->addonBase = new AddonClass; \</span></div>
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="preprocessor"> return static_cast<kodi::addon::CAddonBase*>(kodi::addon::CAddonBase::m_interface->addonBase) \</span></div>
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="preprocessor"> ->Create(); \</span></div>
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> <span class="preprocessor"> extern "C"</span> ATTRIBUTE_DLL_EXPORT const char* ADDON_GetTypeVersion(int type) \</div>
<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>  { \</div>
<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>  return kodi::addon::GetTypeVersion(type); \</div>
<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>  } \</div>
<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>  extern "C" ATTRIBUTE_DLL_EXPORT const char* ADDON_GetTypeMinVersion(int type) \</div>
<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>  { \</div>
<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>  return kodi::addon::GetTypeMinVersion(type); \</div>
<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>  } \</div>
<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>  AddonGlobalInterface* kodi::addon::CAddonBase::m_interface = nullptr;</div>
<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>  </div>
<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclasskodi_1_1_c_setting_value_html"><div class="ttname"><a href="classkodi_1_1_c_setting_value.html">kodi::CSettingValue</a></div><div class="ttdef"><b>Definition:</b> AddonBase.h:119</div></div>
<div class="ttc" id="aclasskodi_1_1addon_1_1_c_addon_base_html"><div class="ttname"><a href="classkodi_1_1addon_1_1_c_addon_base.html">kodi::addon::CAddonBase</a></div><div class="ttdef"><b>Definition:</b> AddonBase.h:322</div></div>
<div class="ttc" id="aclasskodi_1_1addon_1_1_c_struct_hdl_html"><div class="ttname"><a href="classkodi_1_1addon_1_1_c_struct_hdl.html">kodi::addon::CStructHdl</a></div><div class="ttdef"><b>Definition:</b> AddonBase.h:250</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="agroup__cpp__kodi___defs___addon_log_html_ga913895aaf2ef685961947f8d6b93e038"><div class="ttname"><a href="group__cpp__kodi___defs___addon_log.html#ga913895aaf2ef685961947f8d6b93e038">AddonLog</a></div><div class="ttdeci">AddonLog</div><div class="ttdef"><b>Definition:</b> addon_base.h:172</div></div>
<div class="ttc" id="agroup__cpp__kodi___defs___addon_log_html_gga913895aaf2ef685961947f8d6b93e038a1a33911413fbeacfa24b2cdfb31f6a95"><div class="ttname"><a href="group__cpp__kodi___defs___addon_log.html#gga913895aaf2ef685961947f8d6b93e038a1a33911413fbeacfa24b2cdfb31f6a95">ADDON_LOG_FATAL</a></div><div class="ttdeci">@ ADDON_LOG_FATAL</div><div class="ttdoc">4 : To notify fatal unrecoverable errors, which can may also indicate upcoming crashes.</div><div class="ttdef"><b>Definition:</b> addon_base.h:187</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s_html_ga335347495ed00620451a69cfe3494502"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#ga335347495ed00620451a69cfe3494502">ADDON_STATUS</a></div><div class="ttdeci">ADDON_STATUS</div><div class="ttdef"><b>Definition:</b> addon_base.h:128</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s_html_gga335347495ed00620451a69cfe3494502a46ed82ddfcab5af9b59a3c3ae4c2bdf0"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a46ed82ddfcab5af9b59a3c3ae4c2bdf0">ADDON_STATUS_NEED_SETTINGS</a></div><div class="ttdeci">@ ADDON_STATUS_NEED_SETTINGS</div><div class="ttdoc">Necessary settings are not yet set.</div><div class="ttdef"><b>Definition:</b> addon_base.h:139</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s_html_gga335347495ed00620451a69cfe3494502a51393b8c3a7a1b1c42e19dfd307c8a77"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a51393b8c3a7a1b1c42e19dfd307c8a77">ADDON_STATUS_LOST_CONNECTION</a></div><div class="ttdeci">@ ADDON_STATUS_LOST_CONNECTION</div><div class="ttdoc">A needed connection was lost.</div><div class="ttdef"><b>Definition:</b> addon_base.h:133</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s_html_gga335347495ed00620451a69cfe3494502a6925909b93ca05098ca5272f16e091c0"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a6925909b93ca05098ca5272f16e091c0">ADDON_STATUS_OK</a></div><div class="ttdeci">@ ADDON_STATUS_OK</div><div class="ttdoc">For everything OK and no error.</div><div class="ttdef"><b>Definition:</b> addon_base.h:130</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s_html_gga335347495ed00620451a69cfe3494502a755c26a3ce9842923c872886e2860a40"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502a755c26a3ce9842923c872886e2860a40">ADDON_STATUS_NEED_RESTART</a></div><div class="ttdeci">@ ADDON_STATUS_NEED_RESTART</div><div class="ttdoc">Addon needs a restart inside Kodi.</div><div class="ttdef"><b>Definition:</b> addon_base.h:136</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s_html_gga335347495ed00620451a69cfe3494502ac0720dbdce3dcb194f12a0eceb59a501"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502ac0720dbdce3dcb194f12a0eceb59a501">ADDON_STATUS_UNKNOWN</a></div><div class="ttdeci">@ ADDON_STATUS_UNKNOWN</div><div class="ttdoc">Unknown and incomprehensible error.</div><div class="ttdef"><b>Definition:</b> addon_base.h:142</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s_html_gga335347495ed00620451a69cfe3494502ae4970102d8dd8b9775fc84fd43d6d87b"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___s_t_a_t_u_s.html#gga335347495ed00620451a69cfe3494502ae4970102d8dd8b9775fc84fd43d6d87b">ADDON_STATUS_PERMANENT_FAILURE</a></div><div class="ttdeci">@ ADDON_STATUS_PERMANENT_FAILURE</div><div class="ttdoc">Permanent failure, like failing to resolve methods.</div><div class="ttdef"><b>Definition:</b> addon_base.h:145</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e_html_gada0b4c3c9f9c168e5e1c27145ec72357"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___a_d_d_o_n___t_y_p_e.html#gada0b4c3c9f9c168e5e1c27145ec72357">ADDON_TYPE</a></div><div class="ttdeci">ADDON_TYPE</div><div class="ttdef"><b>Definition:</b> versions.h:201</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___c_setting_value_html_ga3aa86241f9d3a2905616b393a858b354"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga3aa86241f9d3a2905616b393a858b354">kodi::CSettingValue::GetUInt</a></div><div class="ttdeci">unsigned int GetUInt() const</div><div class="ttdoc">To get settings value as unsigned integer.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:148</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___c_setting_value_html_ga3f9636de28d683833247125cd9427046"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga3f9636de28d683833247125cd9427046">kodi::CSettingValue::GetInt</a></div><div class="ttdeci">int GetInt() const</div><div class="ttdoc">To get settings value as integer.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:145</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___c_setting_value_html_ga41c297793cf20f9c7812dc56a68f7ce4"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga41c297793cf20f9c7812dc56a68f7ce4">kodi::CSettingValue::GetBoolean</a></div><div class="ttdeci">bool GetBoolean() const</div><div class="ttdoc">To get settings value as boolean.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:151</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___c_setting_value_html_ga764f99b38cb3cd18ab87c5261321e063"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#ga764f99b38cb3cd18ab87c5261321e063">kodi::CSettingValue::GetString</a></div><div class="ttdeci">std::string GetString() const</div><div class="ttdoc">To get settings value as string.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:142</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___c_setting_value_html_gaa61c6d39394461db44dfd5d01df49a73"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#gaa61c6d39394461db44dfd5d01df49a73">kodi::CSettingValue::GetFloat</a></div><div class="ttdeci">float GetFloat() const</div><div class="ttdoc">To get settings value as floating point.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:154</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase___defs___c_setting_value_html_gadd5b4ff49052225ffea10c04c870b5b9"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase___defs___c_setting_value.html#gadd5b4ff49052225ffea10c04c870b5b9">kodi::CSettingValue::GetEnum</a></div><div class="ttdeci">enumType GetEnum() const</div><div class="ttdoc">To get settings value as enum.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:159</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase_html_ga1729a597265408b52198edba006e00fd"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase.html#ga1729a597265408b52198edba006e00fd">kodi::addon::CAddonBase::SetSetting</a></div><div class="ttdeci">virtual ADDON_STATUS SetSetting(const std::string &settingName, const kodi::CSettingValue &settingValue)</div><div class="ttdoc">To inform addon about changed settings values.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:416</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase_html_ga74ea538a2191541a57115fa89790358c"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase.html#ga74ea538a2191541a57115fa89790358c">kodi::addon::CAddonBase::CreateInstance</a></div><div class="ttdeci">virtual ADDON_STATUS CreateInstance(int instanceType, const std::string &instanceID, KODI_HANDLE instance, const std::string &version, KODI_HANDLE &addonInstance)</div><div class="ttdoc">Instance created.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:481</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase_html_gabd0cd0f2367440fcc93266949ffd9da5"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase.html#gabd0cd0f2367440fcc93266949ffd9da5">kodi::addon::CAddonBase::~CAddonBase</a></div><div class="ttdeci">virtual ~CAddonBase()=default</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase_html_gabf149cc30b4d67b82e939b64ab923d89"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase.html#gabf149cc30b4d67b82e939b64ab923d89">kodi::addon::CAddonBase::Create</a></div><div class="ttdeci">virtual ADDON_STATUS Create()</div><div class="ttdoc">Main addon creation function.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:360</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase_html_gac0e0188d41e22618ecef6bd69ece39cb"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase.html#gac0e0188d41e22618ecef6bd69ece39cb">kodi::addon::CAddonBase::CAddonBase</a></div><div class="ttdeci">CAddonBase()</div><div class="ttdoc">Addon base class constructor.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:328</div></div>
<div class="ttc" id="agroup__cpp__kodi__addon__addonbase_html_gaf503045d18aaaef1e68796c8d14fff0a"><div class="ttname"><a href="group__cpp__kodi__addon__addonbase.html#gaf503045d18aaaef1e68796c8d14fff0a">kodi::addon::CAddonBase::DestroyInstance</a></div><div class="ttdeci">virtual void DestroyInstance(int instanceType, const std::string &instanceID, KODI_HANDLE addonInstance)</div><div class="ttdoc">Instance destroy.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:505</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga0fa39ae77ecaebdbca29a9eb12def5b5"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga0fa39ae77ecaebdbca29a9eb12def5b5">kodi::CheckSettingString</a></div><div class="ttdeci">bool ATTRIBUTE_HIDDEN CheckSettingString(const std::string &settingName, std::string &settingValue)</div><div class="ttdoc">Check and get a string setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:815</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga19f37ddffcf939ca03da266f0b3db9f4"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga19f37ddffcf939ca03da266f0b3db9f4">kodi::SetSettingFloat</a></div><div class="ttdeci">void ATTRIBUTE_HIDDEN SetSettingFloat(const std::string &settingName, float settingValue)</div><div class="ttdoc">Set floating point setting of addon.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1144</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga3ceb7548f335e4219e4be53c0813d0ea"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga3ceb7548f335e4219e4be53c0813d0ea">kodi::GetSettingString</a></div><div class="ttdeci">std::string ATTRIBUTE_HIDDEN GetSettingString(const std::string &settingName, const std::string &defaultValue="")</div><div class="ttdoc">Get string setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:852</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga5a0ff70a8ef49304808f9ef4c05164eb"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga5a0ff70a8ef49304808f9ef4c05164eb">kodi::CheckSettingFloat</a></div><div class="ttdeci">bool ATTRIBUTE_HIDDEN CheckSettingFloat(const std::string &settingName, float &settingValue)</div><div class="ttdoc">Check and get a floating point setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1088</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga5fc604a44c4dfe08aea4772fc212c99a"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga5fc604a44c4dfe08aea4772fc212c99a">kodi::SetSettingEnum</a></div><div class="ttdeci">void ATTRIBUTE_HIDDEN SetSettingEnum(const std::string &settingName, enumType settingValue)</div><div class="ttdoc">Set enum setting of addon.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1266</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga72a7a2a3c9311be0e67ef4d9919a624d"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga72a7a2a3c9311be0e67ef4d9919a624d">kodi::GetSettingEnum</a></div><div class="ttdeci">enumType ATTRIBUTE_HIDDEN GetSettingEnum(const std::string &settingName, enumType defaultValue=static_cast< enumType >(0))</div><div class="ttdoc">Get enum setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1228</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga7d65f40b5bbd6bf5aaee1a4b163da3d2"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga7d65f40b5bbd6bf5aaee1a4b163da3d2">kodi::CheckSettingInt</a></div><div class="ttdeci">bool ATTRIBUTE_HIDDEN CheckSettingInt(const std::string &settingName, int &settingValue)</div><div class="ttdoc">Check and get a integer setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:913</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga80d769921d3f3bbe2113fadec5812f34"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga80d769921d3f3bbe2113fadec5812f34">kodi::SetSettingString</a></div><div class="ttdeci">void ATTRIBUTE_HIDDEN SetSettingString(const std::string &settingName, const std::string &settingValue)</div><div class="ttdoc">Set string setting of addon.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:880</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga8df463677c7530e577438a21b65884c0"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga8df463677c7530e577438a21b65884c0">kodi::GetSettingFloat</a></div><div class="ttdeci">float ATTRIBUTE_HIDDEN GetSettingFloat(const std::string &settingName, float defaultValue=0.0f)</div><div class="ttdoc">Get floating point setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1116</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga91dbcd080212d8f236b72845df9c98cc"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga91dbcd080212d8f236b72845df9c98cc">kodi::CheckSettingBoolean</a></div><div class="ttdeci">bool ATTRIBUTE_HIDDEN CheckSettingBoolean(const std::string &settingName, bool &settingValue)</div><div class="ttdoc">Check and get a boolean setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1000</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga96cf17c7e640ddf4a48f30170d5b2e0e"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga96cf17c7e640ddf4a48f30170d5b2e0e">kodi::SetSettingBoolean</a></div><div class="ttdeci">void ATTRIBUTE_HIDDEN SetSettingBoolean(const std::string &settingName, bool settingValue)</div><div class="ttdoc">Set boolean setting of addon.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1056</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_ga98644f28dcb8d375446d66d2c99d69cb"><div class="ttname"><a href="group__cpp__kodi__settings.html#ga98644f28dcb8d375446d66d2c99d69cb">kodi::GetSettingInt</a></div><div class="ttdeci">int ATTRIBUTE_HIDDEN GetSettingInt(const std::string &settingName, int defaultValue=0)</div><div class="ttdoc">Get integer setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:941</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_gabb36374fc18ac27da7b07395a4b2010a"><div class="ttname"><a href="group__cpp__kodi__settings.html#gabb36374fc18ac27da7b07395a4b2010a">kodi::SetSettingInt</a></div><div class="ttdeci">void ATTRIBUTE_HIDDEN SetSettingInt(const std::string &settingName, int settingValue)</div><div class="ttdoc">Set integer setting of addon.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:968</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_gac99ff742b7c9f18bd61808464ed7e644"><div class="ttname"><a href="group__cpp__kodi__settings.html#gac99ff742b7c9f18bd61808464ed7e644">kodi::GetSettingBoolean</a></div><div class="ttdeci">bool ATTRIBUTE_HIDDEN GetSettingBoolean(const std::string &settingName, bool defaultValue=false)</div><div class="ttdoc">Get boolean setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1028</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_gad382c63b67d853965c599f909b359b54"><div class="ttname"><a href="group__cpp__kodi__settings.html#gad382c63b67d853965c599f909b359b54">kodi::CheckSettingEnum</a></div><div class="ttdeci">bool ATTRIBUTE_HIDDEN CheckSettingEnum(const std::string &settingName, enumType &settingValue)</div><div class="ttdoc">Check and get a enum setting value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1185</div></div>
<div class="ttc" id="agroup__cpp__kodi__settings_html_gafdfce08e2f545e1951011b9a59b4e3f3"><div class="ttname"><a href="group__cpp__kodi__settings.html#gafdfce08e2f545e1951011b9a59b4e3f3">kodi::IsSettingUsingDefault</a></div><div class="ttdeci">bool ATTRIBUTE_HIDDEN IsSettingUsingDefault(const std::string &settingName)</div><div class="ttdoc">Check the given setting name is set to default value.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:784</div></div>
<div class="ttc" id="agroup__cpp__kodi__tools___string_utils___format_control_html_ga089127b34d609b689f1f0e6b0544c353"><div class="ttname"><a href="group__cpp__kodi__tools___string_utils___format_control.html#ga089127b34d609b689f1f0e6b0544c353">kodi::tools::StringUtils::FormatV</a></div><div class="ttdeci">static std::string FormatV(PRINTF_FORMAT_STRING const char *fmt, va_list args)</div><div class="ttdoc">Returns the C++ string pointed by given format list.</div><div class="ttdef"><b>Definition:</b> StringUtils.h:604</div></div>
<div class="ttc" id="agroup__cpp__kodi_html_ga2781900156274d2865c19a553e6827b7"><div class="ttname"><a href="group__cpp__kodi.html#ga2781900156274d2865c19a553e6827b7">kodi::GetAddonPath</a></div><div class="ttdeci">std::string ATTRIBUTE_HIDDEN GetAddonPath(const std::string &append="")</div><div class="ttdoc">To get the addon system installation folder.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:649</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="agroup__cpp__kodi_html_ga4359d2b581989bb9670a725ad248a505"><div class="ttname"><a href="group__cpp__kodi.html#ga4359d2b581989bb9670a725ad248a505">kodi::GetBaseUserPath</a></div><div class="ttdeci">std::string ATTRIBUTE_HIDDEN GetBaseUserPath(const std::string &append="")</div><div class="ttdoc">To get the user-related folder of the addon.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:681</div></div>
<div class="ttc" id="agroup__cpp__kodi_html_ga5e8c4e403f511f0c91104677a75a18d1"><div class="ttname"><a href="group__cpp__kodi.html#ga5e8c4e403f511f0c91104677a75a18d1">kodi::GetInterface</a></div><div class="ttdeci">void * GetInterface(const std::string &name, const std::string &version)</div><div class="ttdoc">Returns a function table to a named interface.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1328</div></div>
<div class="ttc" id="agroup__cpp__kodi_html_ga6d42f2bf354215e0460162d34dd68574"><div class="ttname"><a href="group__cpp__kodi.html#ga6d42f2bf354215e0460162d34dd68574">kodi::TranslateAddonStatus</a></div><div class="ttdeci">std::string ATTRIBUTE_HIDDEN TranslateAddonStatus(ADDON_STATUS status)</div><div class="ttdoc">Get to related ADDON_STATUS a human readable text.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:1285</div></div>
<div class="ttc" id="agroup__cpp__kodi_html_gaaa1f205f9375cd086229a1455ede11cc"><div class="ttname"><a href="group__cpp__kodi.html#gaaa1f205f9375cd086229a1455ede11cc">kodi::Log</a></div><div class="ttdeci">void ATTRIBUTE_HIDDEN Log(const AddonLog loglevel, const char *format,...)</div><div class="ttdoc">Add a message to Kodi's log.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:749</div></div>
<div class="ttc" id="agroup__cpp__kodi_html_gac14be189194d589bc9f23e23168849e7"><div class="ttname"><a href="group__cpp__kodi.html#gac14be189194d589bc9f23e23168849e7">kodi::GetLibPath</a></div><div class="ttdeci">std::string ATTRIBUTE_HIDDEN GetLibPath()</div><div class="ttdoc">This function gives OS associated executable binary path of the addon.</div><div class="ttdef"><b>Definition:</b> AddonBase.h:718</div></div>
<div class="ttc" id="astruct_addon_global_interface_html"><div class="ttname"><a href="struct_addon_global_interface.html">AddonGlobalInterface</a></div><div class="ttdoc">Main structure passed from kodi to addon with basic information needed to create add-on.</div><div class="ttdef"><b>Definition:</b> addon_base.h:275</div></div>
<div class="ttc" id="astruct_addon_to_kodi_func_table___addon_html"><div class="ttname"><a href="struct_addon_to_kodi_func_table___addon.html">AddonToKodiFuncTable_Addon</a></div><div class="ttdef"><b>Definition:</b> addon_base.h:216</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"><b>AddonBase.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>