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
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
|
# Auto generated documentation by Rockbox plugin API generator v2
# Made by Maurus Cuelenaere
# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
# $Id$
#
# Generated from https://git.rockbox.org/cgit/rockbox.git/aapps/plugin.h
#
# Format:
# \group memory and strings
# \conditions defined(HAVE_BACKLIGHT)
# \param fmt
# \return
# \description
# \see func1 func2 [S[apps/plugin.c]]
#
# Markup:
# [W[wiki url]]
# [S[svn url]]
# [F[function]]
# [[url]]
# %BR%
# =code=
char *strcasestr (const char* phaystack, const char* pneedle)
\group strings and memory
\param phaystack
\param pneedle
\return
\description
unsigned char **language_strings
\return
\description
int action_get_touchscreen_press(short *x, short *y)
\group action handling
\conditions (defined(HAVE_TOUCHSCREEN))
\param x
\param y
\return
\description
int action_get_touchscreen_press_in_vp(short *x1, short *y1, struct viewport *vp)
\group action handling
\conditions (defined(HAVE_TOUCHSCREEN))
\param x1
\param y1
\param vp
\return
\description
bool action_userabort(int timeout)
\group action handling
\param timeout
\return
\description
bool add_event(unsigned short id, void (*handler)(unsigned short id, void *data))
\group event api
\param id
\param handler
\return
\description
void add_playbacklog(struct mp3entry *id3)
\group new stuff at the end, sort into place next time the API gets incompatible
\param id3
\description
void adjust_volume(int steps)
\group sound
\param steps
\description
int atoi(const char *str)
\group strings and memory
\param str
\return
\description he atoi() function converts the initial portion of a string pointed to by str to int
struct mp3entry* audio_current_track(void)
\group playback control
\return the mp3entry struct of the currently playing track
\description
\see [S[firmware/export/id3.h]]
void audio_ff_rewind(long newtime)
\group playback control
\param newtime
\description
void audio_flush_and_reload_tracks(void)
\group playback control
\description
int audio_get_file_pos(void)
\group playback control
\return
\description
void audio_hard_stop(void)
\group playback control
\conditions (defined(PLUGIN_USE_IRAM))
\description
void audio_next(void)
\group playback control
\description
struct mp3entry* audio_next_track(void)
\group playback control
\return the mp3entry struct of the upcoming track
\description
\see [S[firmware/export/id3.h]]
void audio_pause(void)
\group playback control
\description
void audio_play(unsigned long elapsed, unsigned long offset)
\group playback control
\param elapsed
\param offset
\description
void audio_prev(void)
\group playback control
\description
void audio_resume(void)
\group playback control
\description
void audio_set_input_source(int source, unsigned flags)
\group sound
\conditions (INPUT_SRC_CAPS != 0)
\param source
\param flags
\description
void audio_set_output_source(int monitor)
\group sound
\conditions (INPUT_SRC_CAPS != 0)
\param monitor
\description
void audio_set_recording_gain(int left, int right, int type)
\group sound
\conditions (defined(HAVE_RECORDING))
\param left
\param right
\param type
\description
int audio_status(void)
\group playback control
\return
\description
void audio_stop(void)
\group playback control
\description
void backlight_off(void)
\group For OLED targets like the Sansa Clip, the backlight_* functions control * the display enable, which has essentially the same effect.
\conditions (defined(HAVE_BACKLIGHT))
\description Turns the backlight off
void backlight_on(void)
\group For OLED targets like the Sansa Clip, the backlight_* functions control * the display enable, which has essentially the same effect.
\conditions (defined(HAVE_BACKLIGHT))
\description Turns the backlight on
void backlight_set_brightness(int val)
\group For OLED targets like the Sansa Clip, the backlight_* functions control * the display enable, which has essentially the same effect.
\conditions (defined(HAVE_BACKLIGHT)) && (defined(HAVE_BACKLIGHT_BRIGHTNESS))
\param val
\description
void backlight_set_timeout(int index)
\group For OLED targets like the Sansa Clip, the backlight_* functions control * the display enable, which has essentially the same effect.
\conditions (defined(HAVE_BACKLIGHT))
\param index 0 : backlight always off%BR%1 : no time out%BR%2 : 1s%BR%3 : 2s%BR%4 : 3s%BR%5 : 4s%BR%6 : 5s%BR%7 : 6s%BR%8 : 7s%BR%9 : 8s%BR%10 : 9s%BR%11 : 10s%BR%12 : 15s%BR%13 : 20s%BR%14 : 25s%BR%15 : 30s%BR%16 : 45s%BR%17 : 60s%BR%18 : 90s%BR%other : backlight always off
\description Set the backlight timeout
void backlight_set_timeout_plugged(int index)
\conditions (defined(HAVE_BACKLIGHT)) && (CONFIG_CHARGING)
\param index
\description
int battery_current(void)
\group power
\return
\description
int battery_level(void)
\group power
\return battery level in percent
\description On the simulator, battery_level is always 75
bool battery_level_safe(void)
\group power
\return
\description
int battery_time(void)
\group power
\return
\description
int battery_voltage(void)
\group power
\return
\description
void beep_play(unsigned int frequency, unsigned int duration, unsigned int amplitude)
\group sound
\param frequency
\param duration
\param amplitude
\description
unsigned short *bidi_l2v( const unsigned char *str, int orientation )
\param str
\param orientation
\return
\description
bool browse_id3(struct mp3entry *id3, int playlist_display_index, int playlist_amount, struct tm *modified, int track_ct, int (*view_text)(const char *title, const char *text))
\param id3
\param playlist_display_index
\param playlist_amount
\param modified
\param track_ct
\param view_text
\return
\description
int buflib_alloc(struct buflib_context* ctx, size_t size)
\group the buflib memory management library
\param ctx
\param size
\return
\description
int buflib_alloc_ex(struct buflib_context* ctx, size_t size, struct buflib_callbacks *ops)
\group the buflib memory management library
\param ctx
\param size
\param ops
\return
\description
int buflib_alloc_maximum(struct buflib_context* ctx, size_t* size, struct buflib_callbacks *ops)
\group the buflib memory management library
\param ctx
\param size
\param ops
\return
\description
size_t buflib_available(struct buflib_context* ctx)
\group the buflib memory management library
\param ctx
\return
\description
void buflib_buffer_in(struct buflib_context* ctx, int size)
\group the buflib memory management library
\param ctx
\param size
\description
void* buflib_buffer_out(struct buflib_context* ctx, size_t* size)
\group the buflib memory management library
\param ctx
\param size
\return
\description
int buflib_free(struct buflib_context* ctx, int handle)
\group the buflib memory management library
\param ctx
\param handle
\return
\description
void* buflib_get_data(struct buflib_context* ctx, int handle)
\group the buflib memory management library
\param ctx
\param handle
\return
\description
void buflib_init(struct buflib_context* ctx, void* buf, size_t size)
\group the buflib memory management library
\param ctx
\param buf
\param size
\description
bool buflib_shrink(struct buflib_context* ctx, int handle, void* new_start, size_t new_size)
\group the buflib memory management library
\param ctx
\param handle
\param new_start
\param new_size
\return
\description
void buttonlight_off(void)
\group button
\conditions (defined(HAVE_BUTTON_LIGHT))
\description
void buttonlight_on(void)
\group button
\conditions (defined(HAVE_BUTTON_LIGHT))
\description
void buttonlight_set_brightness(int val)
\group button
\conditions (defined(HAVE_BUTTON_LIGHT)) && (defined(HAVE_BUTTONLIGHT_BRIGHTNESS))
\param val
\description
void buttonlight_set_timeout(int value)
\group button
\conditions (defined(HAVE_BUTTON_LIGHT))
\param value
\description
void button_clear_queue(void)
\group button
\description Empty the button queue
long button_get(bool block)
\group button
\param block If is set TRUE, button_get won't return until a key is pressed
\return a bitmask for which keys were pressed
\description
intptr_t button_get_data(void)
\group button
\conditions (defined(HAVE_BUTTON_DATA))
\return
\description
bool button_get_sw_poweroff_state(void)
\group button
\conditions (defined(HAVE_SW_POWEROFF))
\return
\description
long button_get_w_tmo(int ticks)
\group button
\param ticks
\return a bitmask for which keys were pressed; if no key was pressed, return BUTTON_NONE
\description Wait for a key press for =ticks= ticks. (there are HZ ticks per second)
bool button_hold(void)
\group button
\conditions (defined(HAS_BUTTON_HOLD))
\return
\description
int button_queue_count(void)
\group button
\return
\description
void button_queue_post(long id, intptr_t data)
\conditions (defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP))
\param id
\param data
\description
void button_set_sw_poweroff_state(bool enable)
\group button
\conditions (defined(HAVE_SW_POWEROFF))
\param enable
\description
int button_status(void)
\group button
\return a bitmask for which keys are currently pressed
\description
int button_status_wdata(int *pdata)
\group button
\conditions (defined(HAVE_BUTTON_DATA))
\param pdata
\return
\description
void cancel_cpu_boost(void)
\group kernel/ system
\conditions (defined(HAVE_SCHEDULER_BOOSTCTRL))
\description Unboosts the CPU for the current thread
const struct cbmp_bitmap_info_entry *core_bitmaps
\return
\description
const unsigned char *font_get_bits( struct font *pf, unsigned short char_code )
\param pf
\param char_code
\return
\description
const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs)
\group unicode stuff
\param utf8
\param ucs
\return
\description
const unsigned char *_rbctype_
\group strings and memory
\conditions ((CONFIG_PLATFORM & PLATFORM_NATIVE))
\return
\description
bool charger_inserted(void)
\group power
\conditions (CONFIG_CHARGING)
\return
\description
bool charging_state(void)
\group power
\conditions (CONFIG_CHARGING) && (CONFIG_CHARGING >= CHARGING_MONITOR)
\return
\description
int closedir(DIR* dirp)
\group dir
\param dir
\return
\description The closedir() function closes the directory stream associated with =dir=. The directory stream descriptor dir is not available after this call.
int codec_close(void)
\group misc
\return
\description
int codec_load_file(const char* codec, struct codec_api *api)
\group misc
\param codec
\param api
\return
\description
int codec_run_proc(void)
\group misc
\return
\description
void codec_thread_do_callback(void (*fn)(void), unsigned int *audio_thread_id)
\group misc
\param fn
\param audio_thread_id
\description
void commit_dcache(void)
\description
void commit_discard_dcache(void)
\description
void commit_discard_idcache(void)
\description
int core_set_keyremap(struct button_mapping* core_keymap, int count)
\group action handling
\param core_keymap
\param count
\return
\description
int count_mp3_frames(int fd, int startpos, int filesize, void (*progressfunc)(int), unsigned char* buf, size_t buflen)
\group metadata
\param fd
\param startpos
\param filesize
\param progressfunc
\param buf
\param buflen
\return
\description
void cpu_boost(bool on_off)
\group kernel/ system
\conditions ((CONFIG_PLATFORM & PLATFORM_NATIVE)) && (defined(HAVE_ADJUSTABLE_CPU_FREQ)) && (!( defined(CPU_BOOST_LOGGING) ))
\param on_off
\description Boosts the CPU if =on_off= is true, otherwise it unboosts the CPU
void cpu_boost_(bool on_off,char*location,int line)
\group kernel/ system
\conditions ((CONFIG_PLATFORM & PLATFORM_NATIVE)) && (defined(HAVE_ADJUSTABLE_CPU_FREQ)) && (defined(CPU_BOOST_LOGGING))
\param on_off
\param charlocation
\param line
\description
long *cpu_frequency
\group kernel/ system
\conditions ((CONFIG_PLATFORM & PLATFORM_NATIVE))
\return the current cpu frequency
\description
uint32_t crc_32(const void *src, uint32_t len, uint32_t crc32)
\group file
\param src
\param len
\param crc32
\return
\description
uint32_t crc_32r(const void *src, uint32_t len, uint32_t crc32)
\group file
\param src
\param len
\param crc32
\return
\description
char *create_numbered_filename(char *buffer, const char *path, const char *prefix, const char *suffix, int numberlen IF_CNFN_NUM_(, int *num))
\group file
\param buffer
\param path
\param prefix
\param suffix
\param num
\param numberlen
\return
\description
unsigned int create_thread(void (*function)(void), void* stack, size_t stack_size, unsigned flags, const char *name IF_PRIO(, int priority) IF_COP(, unsigned int core))
\group kernel/ system
\param function
\param stack
\param stack_size
\param flags
\param priority
\param core
\param name
\description Creates a thread
\return its ID if context area could be allocated, else return -1
int create_xing_header(int fd, long startpos, long filesize, unsigned char *buf, unsigned long num_frames, unsigned long rec_time, unsigned long header_template, void (*progressfunc)(int), bool generate_toc, unsigned char* tempbuf, size_t tempbuf_len)
\group metadata
\param fd
\param startpos
\param filesize
\param buf
\param num_frames
\param rec_time
\param header_template
\param progressfunc
\param generate_toc
\param tempbuf
\param tempbuf_len
\return
\description
volatile long* current_tick
\group kernel/ system
\return
\description
void debugf(const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2)
\group misc
\conditions (defined(DEBUG) || defined(SIMULATOR))
\param fmt
\description Prints =fmt= in a printf-like fashion to STDERR
long default_event_handler(long event)
\group kernel/ system
\param event
\return SYS_USB_CONNECTED and call usb_screen() if =event= equals to SYS_USB_CONNECTED, else do nothing and return 0
\description
long default_event_handler_ex(long event, void (*callback)(void *), void *parameter)
\group kernel/ system
\param event
\param callback
\param parameter
\return
\description
bool detect_flashed_ramimage(void)
\group Routines for the iriver_flash -plugin.
\conditions (defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES))
\return
\description
bool detect_flashed_romimage(void)
\group Routines for the iriver_flash -plugin.
\conditions (defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES))
\return
\description
bool detect_original_firmware(void)
\group Routines for the iriver_flash -plugin.
\conditions (defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES))
\return
\description
bool dir_exists(const char *dirname)
\group dir
\param dirname
\return
\description
struct dirinfo dir_get_info(DIR *dirp, struct dirent *entry)
\group dir
\param dirp
\param entry
\return
\description
int do_menu(const struct menu_item_ex *menu, int *start_selected, struct viewport parent[NB_SCREENS], bool hide_theme)
\group menu
\param menu
\param start_selected
\param parent[NB_SCREENS]
\param hide_theme
\return
\description
intptr_t dsp_configure(struct dsp_config *dsp, unsigned int setting, intptr_t value)
\group sound
\param dsp
\param setting
\param value
\return
\description
void dsp_dither_enable(bool enable)
\group sound
\param enable
\description
void dsp_eq_enable(bool enable)
\group sound
\param enable
\description
struct dsp_config * dsp_get_config(unsigned int dsp_id)
\group sound
\param dsp_id
\return
\description
int32_t dsp_get_timestretch(void)
\group sound
\conditions (defined(HAVE_PITCHCONTROL))
\return
\description
void dsp_process(struct dsp_config *dsp, struct dsp_buffer *src, struct dsp_buffer *dst)
\group sound
\param dsp
\param src
\param dst
\description
void dsp_set_crossfeed_type(int type)
\group sound
\param type
\description
void dsp_set_timestretch(int32_t percent)
\group sound
\conditions (defined(HAVE_PITCHCONTROL))
\param percent
\description
bool dsp_timestretch_available(void)
\group sound
\conditions (defined(HAVE_PITCHCONTROL))
\return
\description
void dsp_timestretch_enable(bool enabled)
\group sound
\conditions (defined(HAVE_PITCHCONTROL))
\param enabled
\description
int fdprintf(int fildes, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3)
\group file
\param fildes
\param fmt
\return number of characters writen to =fd= or a negative value upon error
\description Write a formated string in the =fd=
int filetype_get_attr(const char* file)
\param file
\return
\description
char* filetype_get_plugin(int attr, char *buffer, size_t buffer_len)
\param attr
\param buffer
\param buffer_len
\return
\description
bool file_exists(const char *path)
\group file
\param path
\return
\description
void ** find_array_ptr(void **arr, void *ptr)
\group misc
\param arr
\param ptr
\return
\description
void fix_path_part(char* path, int offset, int count)
\group pathfuncs
\param path
\param offset
\param count
\description
struct font* font_get(int font)
\param font
\return the font structure for =font=
\description If the requested font isn't loaded/compiled-in, decrement the font number and try again.
\see [S[firmware/export/font.h]]
int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber)
\param str
\param w
\param h
\param fontnumber
\return
\description
int font_get_width(struct font* pf, unsigned short char_code)
\param pf
\param char_code
\return
\description
int font_load(const char *path)
\param path
\description Load font =path=
\return returns ID or -1 if failed
\see [S[firmware/export/font.h]]
void font_unload(int font_id)
\param font_id
\description
const char* format_time_auto(char *buffer, int buf_len, long value, int unit_idx, bool supress_unit)
\group misc
\param buffer
\param buf_len
\param value
\param unit_idx
\param supress_unit
\return
\description
int ftruncate(int fildes, off_t length)
\group file
\param fildes
\param length
\return
\description
int get_action(int context, int timeout)
\group action handling
\param context
\param timeout
\return
\description
const char *get_codec_filename(int cod_spec)
\group misc
\param cod_spec
\return
\description
const char* get_codec_string(int codectype)
\group metadata
\param codectype
\return
\description
const char* get_codepage_name(int cp)
\param cp
\return
\description
int get_custom_action(int context,int timeout, const struct button_mapping* (*get_context_map)(int))
\group action handling
\param context
\param timeout
\param get_context_map
\return
\description
bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
\group metadata
\param id3
\param fd
\param trackname
\return
\description
int get_sleep_timer(void)
\group kernel/ system
\return
\description
struct tm* get_time(void)
\group misc
\return current time
\description
\see [S[firmware/include/time.h]]
struct user_settings* global_settings
\group misc
\return the global_settings struct
\description
\see [S[apps/settings.h]]
struct system_status *global_status
\group misc
\return the global_status struct
\description
\see [S[apps/settings.h]]
struct tm * gmtime_r(const time_t *timep, struct tm *tm)
\group misc
\param timep
\param tm
\return
\description
void gui_scrollbar_draw(struct screen * screen, int x, int y, int width, int height, int items, int min_shown, int max_shown, unsigned flags)
\param screen
\param x
\param y
\param width
\param height
\param items
\param min_shown
\param max_shown
\param flags
\description
void gui_synclist_add_item(struct gui_synclist * lists)
\group list
\param lists
\description
void gui_synclist_del_item(struct gui_synclist * lists)
\group list
\param lists
\description
bool gui_synclist_do_button(struct gui_synclist * lists, int *action)
\group list
\param lists
\param action
\return
\description
void gui_synclist_draw(struct gui_synclist * lists)
\group list
\param lists
\description
int gui_synclist_get_nb_items(struct gui_synclist * lists)
\group list
\param lists
\return
\description
int gui_synclist_get_sel_pos(struct gui_synclist * lists)
\group list
\param lists
\return
\description
void gui_synclist_init(struct gui_synclist * lists, list_get_name callback_get_item_name, void * data, bool scroll_all,int selected_size, struct viewport parent[NB_SCREENS])
\group list
\param lists
\param callback_get_item_name
\param data
\param scroll_all
\param selected_size
\param parent[NB_SCREENS]
\description
void gui_synclist_select_item(struct gui_synclist * lists, int item_number)
\group list
\param lists
\param item_number
\description
void gui_synclist_set_icon_callback(struct gui_synclist * lists, list_get_icon icon_callback)
\group list
\param lists
\param icon_callback
\description
void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items)
\group list
\param lists
\param nb_items
\description
void gui_synclist_set_title(struct gui_synclist *lists, const char* title, enum themable_icons icon)
\group list
\param lists
\param title
\param icon
\description
void gui_synclist_set_voice_callback(struct gui_synclist * lists, list_speak_item voice_callback)
\group list
\param lists
\param voice_callback
\description
void gui_synclist_speak_item(struct gui_synclist * lists)
\group list
\param lists
\description
enum yesno_res gui_syncyesno_run(const struct text_message * main_message, const struct text_message * yes_message, const struct text_message * no_message)
\group list
\param main_message
\param yes_message
\param no_message
\return
\description
unsigned char* iso_decode(const unsigned char *iso, unsigned char *utf8, int cp, int count)
\group unicode stuff
\param iso
\param utf8
\param cp
\param count
\return
\description
bool is_backlight_on(bool ignore_always_off)
\group For OLED targets like the Sansa Clip, the backlight_* functions control * the display enable, which has essentially the same effect.
\conditions (defined(HAVE_BACKLIGHT))
\param ignore_always_off
\return
\description
bool is_diacritic(const unsigned short char_code, bool *is_rtl)
\param char_code
\param is_rtl
\return
\description
int kbd_input(char* buffer, int buflen, unsigned short *kbd)
\group misc
\param buffer
\param buflen
\param *kbd
\return 0 upon success, negative upon failure
\description Prompt for a string to be stored in =buffer= which is of length =buflen=
void keyclick_click(bool rawbutton, int action)
\param rawbutton
\param action
\description
int lang_is_rtl(void)
\group language
\return
\description
void lcd_bitmap(const fb_data *src, int x, int y, int width, int height)
\group lcd
\conditions (LCD_DEPTH > 1)
\param src
\param x
\param y
\param width
\param height
\description Put a bitmap at given XY coordinates. Element src[i] is the binary representation of column number i of the bitmap read from bottom to top.
void lcd_bitmap_part(const fb_data *src, int src_x, int src_y, int stride, int x, int y, int width, int height)
\group lcd
\conditions (LCD_DEPTH > 1)
\param src
\param src_x
\param src_y
\param stride
\param x
\param y
\param width
\param height
\description
void lcd_bitmap_transparent(const fb_data *src, int x, int y, int width, int height)
\group lcd
\conditions (LCD_DEPTH >= 16)
\param src
\param x
\param y
\param width
\param height
\description
void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, int stride, int x, int y, int width, int height)
\group lcd
\conditions (LCD_DEPTH >= 16)
\param src
\param src_x
\param src_y
\param stride
\param x
\param y
\param width
\param height
\description
void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases, int bx, int by, int bwidth, int bheight, int stride)
\group lcd
\conditions ((LCD_DEPTH < 4) && (CONFIG_PLATFORM & PLATFORM_NATIVE))
\param values
\param phases
\param bx
\param by
\param bwidth
\param bheight
\param stride
\description
void lcd_blit_mono(const unsigned char *data, int x, int by, int width, int bheight, int stride)
\group lcd
\conditions ((LCD_DEPTH < 4) && (CONFIG_PLATFORM & PLATFORM_NATIVE))
\param data
\param x
\param by
\param width
\param bheight
\param stride
\description
void lcd_blit_pal256(unsigned char *src, int src_x, int src_y, int x, int y, int width, int height)
\group lcd
\conditions (defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256))
\param src
\param src_x
\param src_y
\param x
\param y
\param width
\param height
\description
void lcd_blit_yuv(unsigned char * const src[3], int src_x, int src_y, int stride, int x, int y, int width, int height)
\group lcd
\conditions (LCD_DEPTH >= 16) && (MEMORYSIZE > 2)
\param src[3]
\param src_x
\param src_y
\param stride
\param x
\param y
\param width
\param height
\description
void lcd_bmp_part(const struct bitmap *bm, int src_x, int src_y, int x, int y, int width, int height)
\group lcd
\param bm
\param src_x
\param src_y
\param x
\param y
\param width
\param height
\description
void lcd_clear_display(void)
\group lcd
\description Clears the LCD and the framebuffer
void lcd_drawline(int x1, int y1, int x2, int y2)
\group lcd
\param x1 X top coordinate
\param y1 Y top coordinate
\param x2 X bottom coordinate
\param y2 Y bottom coordinate
\description Draws a line at (=x1=, =y1=) -> (=x2=, =y2=) within current drawing mode
void lcd_drawpixel(int x, int y)
\group lcd
\param x
\param y
\description Draws a pixel at (=x=, =y=) within current drawing mode
void lcd_drawrect(int x, int y, int width, int height)
\group lcd
\param x
\param y
\param width
\param height
\description Draws a rectangle at (=x=, =y=) -> (=x= + =width=, =y= + =height=) within current drawing mode
void lcd_fillrect(int x, int y, int width, int height)
\group lcd
\param x
\param y
\param width
\param height
\description Draws a filled rectangle at (=x=, =y=) -> (=x= + =width=, =y= + =height=) within current drawing mode
int lcd_getstringsize(const unsigned char *str, int *w, int *h)
\group lcd
\param str String
\param w Width
\param h Height
\return Success or not
\description Stores the width and height of the string in =w= and =h=
fb_data* lcd_get_backdrop(void)
\group lcd
\conditions (LCD_DEPTH > 1)
\return Pointer to framebuffer data
\description Gets the current backdrop
\see lcd_framebuffer
unsigned lcd_get_background(void)
\group lcd
\conditions (LCD_DEPTH > 1)
\return
\description
int lcd_get_drawmode(void)
\group lcd
\return current LCD drawing mode
\description
unsigned lcd_get_foreground(void)
\group lcd
\conditions (LCD_DEPTH > 1)
\return
\description
void lcd_hline(int x1, int x2, int y)
\group lcd
\param x1 X start coordinate
\param x2 X end coordinate
\param y Y coordinate
\description Draws a horizontal line at (=x1=, =y=) -> (=x2=, =y=) within current drawing mode
void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width, int height)
\group lcd
\param src
\param x
\param y
\param width
\param height
\description
void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, int stride, int x, int y, int width, int height)
\group lcd
\param src
\param src_x
\param src_y
\param stride
\param x
\param y
\param width
\param height
\description
void lcd_pal256_update_pal(fb_data *palette)
\group lcd
\conditions (defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256))
\param palette
\description
void lcd_puts(int x, int y, const unsigned char *string)
\group lcd
\param x Row X
\param y Column Y
\param string
\description Puts string on the LCD at row =x= and column =y=
void lcd_putsf(int x, int y, const unsigned char *fmt, ...)
\group lcd
\param x
\param y
\param fmt
\description
void lcd_putsxy(int x, int y, const unsigned char *string)
\group lcd
\param x X coordinate
\param y Y coordinate
\param string
\description Puts string on the LCD at position (=x=, =y=)
void lcd_putsxyf(int x, int y, const unsigned char *fmt, ...)
\group lcd
\param x
\param y
\param fmt
\description
bool lcd_puts_scroll(int x, int y, const unsigned char* string)
\group lcd
\param x Row X
\param y Column Y
\param string
\return
\description Puts scrolling string on the LCD at row =x= and column =y=. The scrolling style is STYLE_DEFAULT.
void lcd_remote_bitmap(const fb_remote_data *src, int x, int y, int width, int height)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD)) && ((LCD_REMOTE_DEPTH > 1))
\param src
\param x
\param y
\param width
\param height
\description
void lcd_remote_bitmap_part(const fb_remote_data *src, int src_x, int src_y, int stride, int x, int y, int width, int height)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD)) && ((LCD_REMOTE_DEPTH > 1))
\param src
\param src_x
\param src_y
\param stride
\param x
\param y
\param width
\param height
\description
void lcd_remote_clear_display(void)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\description
void lcd_remote_drawline(int x1, int y1, int x2, int y2)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x1 X top coordinate
\param y1 Y top coordinate
\param x2 X bottom coordinate
\param y2 Y bottom coordinate
\description Draws a line at (=x1=, =y1=) -> (=x2=, =y2=) within current drawing mode
void lcd_remote_drawpixel(int x, int y)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\param y
\description Draws a pixel at (=x=, =y=) within current drawing mode
void lcd_remote_drawrect(int x, int y, int nx, int ny)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\param y
\param nx
\param ny
\description
void lcd_remote_fillrect(int x, int y, int nx, int ny)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\param y
\param nx
\param ny
\description
int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param str String
\param w Width
\param h Height
\return Success or not
\description Stores the width and height of the string in =w= and =h=
unsigned lcd_remote_get_background(void)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD)) && ((LCD_REMOTE_DEPTH > 1))
\return
\description
int lcd_remote_get_drawmode(void)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\return
\description
unsigned lcd_remote_get_foreground(void)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD)) && ((LCD_REMOTE_DEPTH > 1))
\return
\description
void lcd_remote_hline(int x1, int x2, int y)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x1
\param x2
\param y
\description
void lcd_remote_mono_bitmap(const unsigned char *src, int x, int y, int width, int height)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param src
\param x
\param y
\param width
\param height
\description
void lcd_remote_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, int stride, int x, int y, int width, int height)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param src
\param src_x
\param src_y
\param stride
\param x
\param y
\param width
\param height
\description
void lcd_remote_puts(int x, int y, const unsigned char *string)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\param y
\param string
\description
void lcd_remote_putsxy(int x, int y, const unsigned char *string)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\param y
\param string
\description
bool lcd_remote_puts_scroll(int x, int y, const unsigned char* string)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\param y
\param string
\return
\description
void lcd_remote_scroll_stop(void)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\description
void lcd_remote_setfont(int font)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param font
\description Set default font
void lcd_remote_set_background(unsigned background)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD)) && ((LCD_REMOTE_DEPTH > 1))
\param background
\description
void lcd_remote_set_contrast(int x)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\description
void lcd_remote_set_drawmode(int mode)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param mode
\description
void lcd_remote_set_foreground(unsigned foreground)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD)) && ((LCD_REMOTE_DEPTH > 1))
\param foreground
\description
void lcd_remote_update(void)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\description
void lcd_remote_update_rect(int x, int y, int width, int height)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\param y
\param width
\param height
\description
void lcd_remote_vline(int x, int y1, int y2)
\group remote lcd
\conditions (defined(HAVE_REMOTE_LCD))
\param x
\param y1
\param y2
\description
void lcd_scroll_stop(void)
\group lcd
\description
void lcd_setfont(int font)
\group lcd
\param font
\description Set default font
void lcd_set_backdrop(fb_data* backdrop)
\group lcd
\conditions (LCD_DEPTH > 1)
\param backdrop Pointer to backdrop image
\description Set the backdrop to =backdrop=
\see lcd_framebuffer
void lcd_set_background(unsigned foreground)
\group lcd
\conditions (LCD_DEPTH > 1)
\param foreground
\description
void lcd_set_contrast(int x)
\group lcd
\conditions (defined(HAVE_LCD_CONTRAST))
\param x Should be between =MIN_CONTRAST_SETTING= and =MAX_CONTRAST_SETTING=
\description Sets LCD contrast to value =x=
void lcd_set_drawmode(int mode)
\group lcd
\param mode
\description
void lcd_set_foreground(unsigned foreground)
\group lcd
\conditions (LCD_DEPTH > 1)
\param foreground
\description
void lcd_set_invert_display(bool yesno)
\group lcd
\conditions (defined(HAVE_LCD_INVERT))
\param yesno
\description
void lcd_set_mode(int mode)
\group lcd
\conditions (defined(HAVE_LCD_MODES))
\param mode
\description
struct viewport* lcd_set_viewport(struct viewport* vp)
\group lcd
\param vp
\return
\description
void lcd_update(void)
\group lcd
\description Pushes LCD framebuffer changes to the LCD
void lcd_update_rect(int x, int y, int width, int height)
\group lcd
\param x measured in pixels
\param y measured in pixels
\param width measured in pixels
\param height measured in pixels
\description Pushes LCD framebuffer changes to the LCD within rectangle (=x=, =y=) -> (=x= + =width=, =y= + =height=). Notice that the smallest vertical resolution in updates that the hardware supports is 8 pixels.
void lcd_vline(int x, int y1, int y2)
\group lcd
\param x X coordinate
\param y1 Y start coordinate
\param y2 Y end coordinate
\description Draws a vertical line at (=x=, =y1=) -> (=x=, =y2=) within current drawing mode
void lcd_yuv_set_options(unsigned options)
\group lcd
\conditions (LCD_DEPTH >= 16) && (MEMORYSIZE > 2) && (defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) || defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(SANSA_FUZEV2) || defined(TOSHIBA_GIGABEAT_S) || defined(PHILIPS_SA9200))
\param options
\description
void lc_close(void *handle)
\group load code api for overlay
\param handle
\description
void* lc_get_header(void *handle)
\group load code api for overlay
\param handle
\return
\description
void* lc_open(const char *filename, unsigned char *buf, size_t buf_size)
\group load code api for overlay
\param filename
\param buf
\param buf_size
\return
\description
void* lc_open_from_mem(void* addr, size_t blob_size)
\group load code api for overlay
\param addr
\param blob_size
\return
\description
void led(bool on)
\group misc
\param on
\description
void logf(const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2)
\group misc
\conditions (defined(ROCKBOX_HAS_LOGF))
\param fmt
\description
const unsigned long *audio_master_sampr_list
\group sound
\return
\description
const unsigned long *hw_freq_sampr
\group sound
\return
\description
const unsigned long *rec_freq_sampr
\group sound
\conditions (defined(HAVE_RECORDING))
\return
\description
void *memchr(const void *s1, int c, size_t n)
\group strings and memory
\param s1
\param c
\param n
\return
\description
int memcmp(const void *s1, const void *s2, size_t n)
\group strings and memory
\param s1
\param s2
\param n
\return
\description
void* memcpy(void *out, const void *in, size_t n)
\group strings and memory
\param out
\param in
\param n
\return
\description Copies =n= bytes of data in memory from =in= to =out=
void* memmove(void *out, const void *in, size_t n)
\group strings and memory
\param out
\param in
\param n
\return
\description
void* memset(void *dst, int c, size_t length)
\group strings and memory
\param dst
\param c
\param length
\return
\description Fills a memory region with specified byte value =c=
void mixer_channel_calculate_peaks(enum pcm_mixer_channel channel, struct pcm_peaks *peaks)
\param channel
\param peaks
\description
const void * mixer_channel_get_buffer(enum pcm_mixer_channel channel, int *count)
\param channel
\param count
\return
\description
size_t mixer_channel_get_bytes_waiting(enum pcm_mixer_channel channel)
\param channel
\return
\description
void mixer_channel_play_data(enum pcm_mixer_channel channel, pcm_play_callback_type get_more, const void *start, size_t size)
\param channel
\param get_more
\param start
\param size
\description
void mixer_channel_play_pause(enum pcm_mixer_channel channel, bool play)
\param channel
\param play
\description
void mixer_channel_set_amplitude(enum pcm_mixer_channel channel, unsigned int amplitude)
\param channel
\param amplitude
\description
void mixer_channel_set_buffer_hook(enum pcm_mixer_channel channel, chan_buffer_hook_fn_type fn)
\param channel
\param fn
\description
enum channel_status mixer_channel_status(enum pcm_mixer_channel channel)
\param channel
\return
\description
void mixer_channel_stop(enum pcm_mixer_channel channel)
\param channel
\description
unsigned int mixer_get_frequency(void)
\return
\description
void mixer_set_frequency(unsigned int samplerate)
\param samplerate
\description
int mkdir(const char *path)
\group dir
\param path
\return
\description
time_t mktime(struct tm *t)
\group misc
\conditions (CONFIG_RTC)
\param t
\return
\description
void mutex_init(struct mutex *m)
\group kernel/ system
\param m
\description
void mutex_lock(struct mutex *m)
\group kernel/ system
\param m
\description
void mutex_unlock(struct mutex *m)
\group kernel/ system
\param m
\description
void onplay_show_playlist_cat_menu(const char* track_name, int attr, void (*add_to_pl_cb))
\param track_name
\param attr
\param add_to_pl_cb
\description
void onplay_show_playlist_menu(const char* path, int attr, void (*playlist_insert_cb))
\param path
\param attr
\param playlist_insert_cb
\description
int open(const char *path, int oflag, ...)
\group file
\param path
\param oflag
\return
\description
DIR * opendir(const char *dirname)
\group dir
\param dirname
\return a pointer to the directory stream
\description The opendir() function opens a directory stream corresponding to the directory name. The stream is positioned at the first entry in the directory.
int open_utf8(const char* pathname, int flags)
\group file
\param pathname
\param flags
\return
\description
bool option_screen(const struct settings_list *setting, struct viewport parent[NB_SCREENS], bool use_temp_var, const unsigned char* option_title)
\group options
\param setting
\param parent[NB_SCREENS]
\param use_temp_var
\param option_title
\return
\description
char* output_dyn_value(char *buf, int buf_size, int64_t value, const unsigned char * const *units, unsigned int unit_count, bool binary_scale)
\group strings and memory
\param buf
\param buf_size
\param value
\param units
\param unit_count
\param binary_scale
\return
\description
int path_strip_volume(const char *name, const char **nameptr, bool greedy)
\group pathfuncs
\conditions (defined(HAVE_MULTIVOLUME))
\param name
\param nameptr
\param greedy
\return
\description
void pcmbuf_fade(bool fade, bool in)
\param fade
\param in
\description
void pcmbuf_set_low_latency(bool state)
\param state
\description
void pcm_apply_settings(void)
\group sound
\description
void pcm_calculate_rec_peaks(int *left, int *right)
\group sound
\conditions (defined(HAVE_RECORDING))
\param left
\param right
\description
void pcm_close_recording(void)
\group sound
\conditions (defined(HAVE_RECORDING))
\description
void pcm_init_recording(void)
\group sound
\conditions (defined(HAVE_RECORDING))
\description
bool pcm_is_playing(void)
\group sound
\return true unless playback is paused
\description
void pcm_play_data(pcm_play_callback_type get_more, pcm_status_callback_type status_cb, const void *start, size_t size)
\group sound
\param get_more Optional callback
\param status_cb Optional status callback
\param start is the address of raw 16-16, interleaved PCM data
\param size is the size of the data to play
\description
void pcm_play_lock(void)
\group sound
\description
void pcm_play_stop(void)
\group sound
\description Stops the playback and empties the audio buffer.
void pcm_play_unlock(void)
\group sound
\description
void pcm_record_data(pcm_rec_callback_type more_ready, pcm_status_callback_type status_cb, void *start, size_t size)
\group sound
\conditions (defined(HAVE_RECORDING))
\param more_ready
\param status_cb
\param start
\param size
\description
void pcm_set_frequency(unsigned int frequency)
\group sound
\param frequency
\description
void pcm_stop_recording(void)
\group sound
\conditions (defined(HAVE_RECORDING))
\description
int playlist_amount(void)
\group playback control
\return the number of tracks in current playlist
\description
int playlist_create(const char *dir, const char *file)
\group playback control
\param dir
\param file
\return
\description
bool playlist_entries_iterate(const char *filename, struct playlist_insert_context *pl_context, bool (*action_cb)(const char *file_name))
\group playback control
\param filename
\param pl_context
\param action_cb
\return
\description
struct playlist_info* playlist_get_current(void)
\group playback control
\return pointer to current playlist
\description
int playlist_get_display_index(void)
\group playback control
\return
\description
int playlist_get_first_index(const struct playlist_info* playlist)
\group playback control
\param playlist
\return
\description
int playlist_get_resume_info(int *resume_index)
\group playback control
\param resume_index
\return
\description
int playlist_get_track_info(struct playlist_info* playlist, int index, struct playlist_track_info* info)
\group playback control
\param playlist
\param index
\param info
\return
\description
int playlist_insert_directory(struct playlist_info* playlist, const char *dirname, int position, bool queue, bool recurse)
\group playback control
\param playlist
\param dirname
\param position
\param queue
\param recurse
\return
\description
int playlist_insert_playlist(struct playlist_info* playlist, const char *filename, int position, bool queue)
\group playback control
\param playlist
\param filename
\param position
\param queue
\return
\description
int playlist_insert_track(struct playlist_info* playlist, const char *filename, int position, bool queue, bool sync)
\group playback control
\param playlist
\param filename
\param position
\param queue
\param sync
\return
\description
int playlist_remove_all_tracks(struct playlist_info *playlist)
\group playback control
\param playlist
\return
\description
int playlist_resume(void)
\group playback control
\return
\description
void playlist_resume_track(int start_index, unsigned int crc, unsigned long elapsed, unsigned long offset)
\group playback control
\param start_index
\param crc
\param elapsed
\param offset
\description
void playlist_set_modified(struct playlist_info *playlist, bool modified)
\group playback control
\param playlist
\param modified
\description
int playlist_shuffle(int random_seed, int start_index)
\group playback control
\param random_seed
\param start_index
\return
\description
void playlist_start(int start_index, unsigned long elapsed, unsigned long offset)
\group playback control
\param start_index
\param elapsed
\param offset
\description
void playlist_sync(struct playlist_info* playlist)
\group playback control
\param playlist
\description
void* plugin_get_audio_buffer(size_t *buffer_size)
\group plugin
\param buffer_size
\return
\description Steals =buffer_size= bytes from the available RAM, reducing the available buffer for audio buffering
void* plugin_get_buffer(size_t *buffer_size)
\group plugin
\param buffer_size this is the memory size left in plugin buffer upon return
\return a pointer to the portion of the plugin buffer that is not already being used. If no plugin is loaded, returns the entire plugin buffer.
\description
char* plugin_get_current_filename(void)
\group plugin
\return
\description
int plugin_open(const char *path, const char *parameter)
\group plugin
\param path
\param parameter
\return
\description
void plugin_release_audio_buffer(void)
\group plugin
\description
size_t plugin_reserve_buffer(size_t buffer_size)
\group plugin
\param buffer_size
\return
\description
void plugin_tsr(int (*exit_callback)(bool reenter))
\group plugin
\param exit_callback
\description
int close(int filedes)
\group file
\param fiedes
\return 0 upon success
\description The close() function will deallocate the file descriptor indicated by =fd=. To deallocate means to make the file descriptor available for return by subsequent calls to open() or other functions that allocate file descriptors.
int creat(const char *pathname, mode_t mode)
\group file
\param pathname
\param mode
\return the file descriptor associated to this file
\description Create a file with mode O_RDONLY, O_WRONLY or O_RDWR
off_t filesize(int filedes)
\group file
\param filedes
\return size of a file; upon error, returns -1
\description
int ftruncate(int fildes, off_t length)
\group file
\param fildes
\param length
\return
\description Truncate file to the specified =length=
off_t lseek(int fildes, off_t offset, int whence)
\group file
\param fildes
\param offset
\param whence
\return
\description The lseek() function sets the file pointer associated with the open file descriptor specified by =fd= as follows: If =whence= is SEEK_SET, the pointer is set to =offset= bytes. If =whence= is SEEK_CUR, the pointer is set to its current location plus =offset=. If =whence= is SEEK_END, the pointer is set to the size of the file plus =offset=.
int open(const char *path, int oflag, ...)
\group file
\param path
\param oflag
\return
\description The open() function establishes the connection between a file and a file descriptor. It creates an open file description that refers to a file and a file descriptor that refers to that open file description. The file descriptor is used by other I/O functions to refer to that file.
ssize_t read(int fildes, void *buf, size_t nbyte)
\group file
\param fildes
\param buf
\param nbyte
\return
\description The read() function attempts to read =count= bytes from the file associated with the open file descriptor, =fd=, into the buffer pointed to by =buf=
int remove(const char *path)
\group file
\param path
\return
\description remove() deletes a name from the filesystem. It calls unlink for files, and rmdir for directories.
int rename(const char *old, const char *new)
\group file
\param old points to the pathname of the file to be renamed
\param new points to the new pathname of the file
\return
\description The rename() function changes the name of a file
unsigned sleep(unsigned ticks)
\group kernel/ system
\param ticks
\return
\description Sleep a specified number of =ticks=, we have HZ ticks per second
ssize_t write(int fildes, const void *buf, size_t nbyte)
\group file
\param fildes
\param buf
\param nbyte
\return
\description Write writes up to =count= bytes to the file referenced by the file descriptor =fd= from the buffer starting at =buf=
void profile_func_enter(void *this_fn, void *call_site)
\conditions (defined(RB_PROFILE))
\param this_fn
\param call_site
\description
void profile_func_exit(void *this_fn, void *call_site)
\conditions (defined(RB_PROFILE))
\param this_fn
\param call_site
\description
void profile_thread(void)
\conditions (defined(RB_PROFILE))
\description
void profstop(void)
\conditions (defined(RB_PROFILE))
\description
void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
\group misc
\param base start of array
\param nmemb number of elements
\param size describes the size of each element of the array
\param compar
\description qsort sorts an array (begining at =base=) of =nmemb= objects
void queue_delete(struct event_queue *q)
\param q
\description
bool queue_empty(const struct event_queue *q)
\param q
\return
\description
void queue_enable_queue_send(struct event_queue *q, struct queue_sender_list *send, unsigned int thread_id)
\param q
\param send
\param thread_id
\description
void queue_init(struct event_queue *q, bool register_queue)
\param q
\param register_queue
\description
void queue_post(struct event_queue *q, long id, intptr_t data)
\param q
\param id
\param data
\description
void queue_remove_from_head(struct event_queue *q, long id)
\param q
\param id
\description
void queue_reply(struct event_queue *q, intptr_t retval)
\param q
\param retval
\description
intptr_t queue_send(struct event_queue *q, long id, intptr_t data)
\param q
\param id
\param data
\return
\description
void queue_wait(struct event_queue *q, struct queue_event *ev)
\param q
\param ev
\description
void queue_wait_w_tmo(struct event_queue *q, struct queue_event *ev, int ticks)
\param q
\param ev
\param ticks
\description
int rand(void)
\group misc
\return a pseudo random number between 0 and 0x7fffffff
\description
const char *rbversion
\return version of the plugin API
\description
struct dirent * readdir(DIR *dirp)
\group dir
\param dirp
\return a pointer to a dirent structure representing the next directory entry in the directory stream pointed to by =dir= or NULL on reaching the end-of-file or if an error occurred
\description
int read_bmp_fd(int fd, struct bitmap *bm, int maxsize, int format, const struct custom_format *cformat)
\param fd
\param bm
\param maxsize
\param format
\param cformat
\return
\description
int read_bmp_file(const char* filename, struct bitmap *bm, int maxsize, int format, const struct custom_format *cformat)
\param filename
\param bm
\param maxsize
\param format
\param cformat
\return
\description
int read_jpeg_fd(int fd, struct bitmap *bm, int maxsize, int format, const struct custom_format *cformat)
\conditions (defined(HAVE_JPEG))
\param fd
\param bm
\param maxsize
\param format
\param cformat
\return
\description
int read_jpeg_file(const char* filename, struct bitmap *bm, int maxsize, int format, const struct custom_format *cformat)
\conditions (defined(HAVE_JPEG))
\param filename
\param bm
\param maxsize
\param format
\param cformat
\return
\description
int read_line(int fd, char* buffer, int buffer_size)
\group file
\param fd
\param buffer
\param buffer_size
\return number of bytes read (which may be larger than the number of bytes stored in buffer) or upon error -1 (and buffer contains whatever could be read)
\description Read (up to) a line of text from =fd= into =buffer=. A line is terminated by a LF char. Neither LF nor CR chars are stored in buffer.
void register_storage_idle_func(void (*function)(void))
\group file
\conditions (USING_STORAGE_CALLBACK)
\param function
\description
void reload_directory(void)
\group file
\description
void remote_backlight_off(void)
\conditions (defined(HAVE_BACKLIGHT)) && (defined(HAVE_REMOTE_LCD))
\description Turns the remote backlight off
void remote_backlight_on(void)
\conditions (defined(HAVE_BACKLIGHT)) && (defined(HAVE_REMOTE_LCD))
\description Turns the remote backlight on
void remote_backlight_set_timeout(int index)
\conditions (defined(HAVE_BACKLIGHT)) && (defined(HAVE_REMOTE_LCD))
\param index
\description
void remote_backlight_set_timeout_plugged(int index)
\conditions (defined(HAVE_BACKLIGHT)) && (defined(HAVE_REMOTE_LCD)) && (CONFIG_CHARGING)
\param index
\description
int remove_array_ptr(void **arr, void *ptr)
\group misc
\param arr
\param ptr
\return
\description
void remove_event(unsigned short id, void (*handler)(unsigned short id, void *data))
\group event api
\param id
\param handler
\description
void reset_poweroff_timer(void)
\group kernel/ system
\description The function name pretty much says what it's supposed to do
int rmdir(const char *path)
\group dir
\param path
\return
\description
int rockbox_browse(struct browse_context *browse)
\group browsing
\param browse
\return
\description
struct menu_table *root_menu_get_options(int *nb_options)
\group menu
\param nb_options
\return
\description
void root_menu_load_from_cfg(void* setting, char *value)
\group menu
\param setting
\param value
\description
void root_menu_set_default(void* setting, void* defaultval)
\group menu
\param setting
\param defaultval
\description
char* root_menu_write_to_cfg(void* setting, char*buf, int buf_len)
\group menu
\param setting
\param charbuf
\param buf_len
\return
\description
int round_value_to_list32(unsigned long value, const unsigned long list[], int count, bool signd)
\group misc
\param value
\param list[]
\param count
\param signd
\return
\description
struct screen* screens[NB_SCREENS]
\group remote lcd
\return
\description
void screen_clear_area(struct screen * display, int xstart, int ystart, int width, int height)
\param display
\param xstart
\param ystart
\param width
\param height
\description
void screen_dump_set_hook(void (*hook)(int fh))
\param hook
\description
bool search_albumart_files(const struct mp3entry *id3, const char *size_string, char *buf, int buflen)
\conditions (defined(HAVE_ALBUMART))
\param id3
\param size_string
\param buf Pointer to output
\param buflen Max length for =buf=
\return true if an album art was found
\description Searches the the album art file for the given =id3= struct, appending the =size_string= to the search pattern (cover.bmp). It writes the complete path into =buf=, but not more bytes than =buflen=.
void semaphore_init(struct semaphore *s, int max, int start)
\group kernel/ system
\conditions (defined(HAVE_SEMAPHORE_OBJECTS))
\param s
\param max
\param start
\description
void semaphore_release(struct semaphore *s)
\group kernel/ system
\conditions (defined(HAVE_SEMAPHORE_OBJECTS))
\param s
\description
int semaphore_wait(struct semaphore *s, int timeout)
\group kernel/ system
\conditions (defined(HAVE_SEMAPHORE_OBJECTS))
\param s
\param timeout
\return
\description
void send_event(unsigned short id, void *data)
\group event api
\param id
\param data
\description
const struct settings_list* find_setting(const void* variable)
\group options
\param variable
\param id
\return
\description
const struct settings_list* get_settings_list(int*count)
\group options
\param intcount
\return
\description
bool settings_parseline(char* line, char** name, char** value)
\group file
\param line
\param name
\param value
\return false if no valid config entry was found
\description Parse a line from a configuration file. The line format is: 'name: value'. Any whitespace before setting name or value (after ':') is ignored. A # as first non-whitespace character discards the whole line. Function sets pointers to null-terminated setting name and value.
int settings_save(void)
\group options
\return
\description
bool set_bool(const char* string, const bool* variable )
\group options
\param string
\param variable
\return
\description
bool set_bool_options(const char* string, const bool* variable, const char* yes_str, int yes_voice, const char* no_str, int no_voice, void (*function)(bool))
\group options
\param string
\param variable
\param yes_str
\param yes_voice
\param no_str
\param no_voice
\param function
\return
\description
bool set_color(struct screen *display, char *title, unsigned *color, unsigned banned_color)
\conditions (defined(HAVE_LCD_COLOR))
\param display
\param title
\param color
\param banned_color
\return
\description
void set_current_file(const char* path)
\param path
\description
void set_dirfilter(int l_dirfilter)
\param l_dirfilter
\description
bool set_int(const unsigned char* string, const char* unit, int voice_unit, const int* variable, void (*function)(int), int step, int min, int max, const char* (*formatter)(char*, size_t, int, const char*) )
\group options
\param string
\param unit
\param voice_unit
\param variable
\param function
\param step
\param min
\param max
\param formatter
\return
\description
bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit, const int* variable, void (*function)(int), int step, int min, int max, const char* (*formatter)(char*, size_t, int, const char*) , int32_t (*get_talk_id)(int, int))
\group options
\param string
\param unit
\param voice_unit
\param variable
\param function
\param step
\param min
\param max
\param formatter
\param get_talk_id
\return
\description
bool set_option(const char* string, const void* variable, enum optiontype type, const struct opt_items* options, int numoptions, void (*function)(int))
\group options
\param string
\param variable
\param type
\param options
\param numoptions
\param function
\return
\description
void set_sleeptimer_duration(int minutes)
\group kernel/ system
\param minutes
\description
void simplelist_info_init(struct simplelist_info *info, char* title, int count, void* data)
\group list
\param info
\param title
\param count
\param data
\description
bool simplelist_show_list(struct simplelist_info *info)
\group list
\param info
\return
\description
void sim_lcd_ex_init(unsigned long (*getpixel)(int, int))
\group special simulator hooks
\conditions ((CONFIG_PLATFORM & PLATFORM_HOSTED)) && (LCD_DEPTH < 8)
\param getpixel
\description
void sim_lcd_ex_update_rect(int x, int y, int width, int height)
\group special simulator hooks
\conditions ((CONFIG_PLATFORM & PLATFORM_HOSTED)) && (LCD_DEPTH < 8)
\param x
\param y
\param width
\param height
\description
int snprintf(char *buf, size_t size, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4)
\group strings and memory
\param buf
\param size
\param fmt
\return the number of characters printed or that would have been printed if the output was truncated (not including the trailing NULL character) upon success
\description Write a formatted string =fmt= in buffer =buf= of size =size= (including the trailing NULL character). These support %c, %s, %d and %x only with the width and zero padding flag only.
int sound_current(int setting); /*stub*
\group sound
\param setting
\return
\description
int sound_default(int setting)
\group sound
\param setting
\return
\description
int sound_enum_hw_eq_band_setting(unsigned int band, unsigned int band_setting)
\group sound
\conditions (defined(AUDIOHW_HAVE_EQ))
\param band
\param band_setting
\return
\description
int32_t sound_get_pitch(void)
\group sound
\conditions (defined (HAVE_PITCHCONTROL))
\return
\description
int sound_max(int setting)
\group sound
\param setting
\return
\description
int sound_min(int setting)
\group sound
\param setting
\return
\description
void sound_set(int setting, int value)
\group sound
\param setting
\param value
\description
void sound_set_pitch(int32_t pitch)
\group sound
\conditions (defined (HAVE_PITCHCONTROL))
\param pitch
\description
const char * sound_unit(int setting)
\group sound
\param setting
\return
\description
int sound_val2phys(int setting, int value)
\group sound
\param setting
\param value
\return
\description
void splash(int ticks, const char *str)
\group lcd
\param ticks
\param str
\description Display a formatted string in a box for =ticks= time. The string is formatted as with the printf function. (there are =HZ= ticks per second)
void splashf(int ticks, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3)
\group lcd
\param ticks
\param fmt
\description
void splash_progress(int current, int total, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4)
\group lcd
\param current
\param total
\param fmt
\description
void splash_progress_set_delay(long delay_ticks)
\group lcd
\param delay_ticks
\description
void srand(unsigned int seed)
\group misc
\param seed
\description Seed the random number generator
void storage_sleep(void)
\group file
\description
void storage_spin(void)
\group file
\description
void storage_spindown(int seconds)
\group file
\param seconds
\description
int strcasecmp(const char *, const char *)
\group strings and memory
\param
\param
\return an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2
\description The strcasecmp() function compares the two strings s1 and s2, ignoring the case of the characters
char *strcat(char *s1, const char *s2)
\group strings and memory
\param s1
\param s2
\return =s1= concatenated with =s2=
\description Appends =s2= to =s1=, replacing the NULL terminating character of =s1= and returns it
char *strchr(const char *s, int c)
\group strings and memory
\param s
\param c
\return
\description
int strcmp(const char *, const char *)
\group strings and memory
\param
\param
\return
\description strcmp() compares the string a to string b. If a sorts lexicographically after b, strcmp returns a number greater than zero. If the two strings match, strcmp returns zero. If a sorts lexicographically before b, strcmp returns a number less than zero.
char* strcpy(char *dst, const char *src)
\group strings and memory
\param dst
\param src
\return the initial value of =dst=
\description strcpy() copies the string pointed to by =src= (including the terminating null character) to the array pointed to by =dst=
char* strip_extension(char* buffer, int buffer_size, const char *filename)
\group file
\param buffer
\param buffer_size
\param filename
\return
\description
size_t strlcat(char *dst, const char *src, size_t length)
\group strings and memory
\param dst
\param src
\param length
\return
\description
size_t strlcpy(char *dst, const char *src, size_t length)
\group strings and memory
\param dst
\param src
\param length
\return
\description
size_t strlen(const char *str)
\group strings and memory
\param str
\return the character count
\description The strlen() function works out the length of the string starting at =str= by counting characters until it reaches a null character.
int strncasecmp(const char *s1, const char *s2, size_t n)
\group strings and memory
\param s1
\param s2
\param n
\return
\description Like strcasecmp() but only on the first =n= characters
\see strcasecmp
int strncmp(const char *, const char *, size_t)
\group strings and memory
\param
\param
\param size_t
\return
\description
char * strrchr(const char *s, int c)
\group strings and memory
\param s
\param c
\return a pointer to the located character, or a null pointer if =c= does not occur in string.
\description This function finds the last occurence of =c= (converted to a char) in the string pointed to by string (including the terminating null character)
char* strtok_r(char *ptr, const char *sep, char **end)
\group strings and memory
\param ptr
\param sep
\param end
\return
\description
int system_memory_guard(int newmode)
\group kernel/ system
\conditions ((CONFIG_PLATFORM & PLATFORM_NATIVE))
\param newmode
\return
\description
void system_sound_play(enum system_sound sound)
\param sound
\description
void sys_poweroff(void)
\group reboot and poweroff
\description
void sys_reboot(void)
\group reboot and poweroff
\description
void tagcache_commit_finalize(void)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\description
bool tagcache_fill_tags(struct mp3entry *id3, const char *filename)
\group metadata
\conditions (defined(HAVE_TAGCACHE)) && (defined(HAVE_TC_RAMCACHE)) && (defined(HAVE_DIRCACHE))
\param id3
\param filename
\return
\description
bool tagcache_get_next(struct tagcache_search *tcs, char *buf, long size)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\param tcs
\param buf
\param size
\return
\description
long tagcache_get_numeric(const struct tagcache_search *tcs, int tag)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\param tcs
\param tag
\return
\description
struct tagcache_stat* tagcache_get_stat(void)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\return
\description
bool tagcache_is_in_ram(void)
\group metadata
\conditions (defined(HAVE_TAGCACHE)) && (defined(HAVE_TC_RAMCACHE))
\return
\description
bool tagcache_retrieve(struct tagcache_search *tcs, int idxid, int tag, char *buf, long size)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\param tcs
\param idxid
\param tag
\param buf
\param size
\return
\description
bool tagcache_search(struct tagcache_search *tcs, int tag)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\param tcs
\param tag
\return
\description
bool tagcache_search_add_filter(struct tagcache_search *tcs, int tag, int seek)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\param tcs
\param tag
\param seek
\return
\description
void tagcache_search_finish(struct tagcache_search *tcs)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\param tcs
\description
void tagcache_search_set_uniqbuf(struct tagcache_search *tcs, void *buffer, long length)
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\param tcs
\param buffer
\param length
\description
bool tagtree_subentries_do_action(bool (*action_cb)(const char *file_name))
\group metadata
\conditions (defined(HAVE_TAGCACHE))
\param action_cb
\return
\description
void talk_date(const struct tm *tm, bool enqueue)
\group talking
\param tm
\param enqueue
\description
int talk_dir_or_spell(const char* filename, const long *prefix_ids, bool enqueue)
\group talking
\param filename
\param prefix_ids
\param enqueue
\return
\description
void talk_disable(bool disable)
\group talking
\param disable
\description
int talk_file(const char *root, const char *dir, const char *file, const char *ext, const long *prefix_ids, bool enqueue)
\group talking
\param root
\param dir
\param file
\param ext
\param prefix_ids
\param enqueue
\return
\description
int talk_file_or_spell(const char *dirname, const char* filename, const long *prefix_ids, bool enqueue)
\group talking
\param dirname
\param filename
\param prefix_ids
\param enqueue
\return
\description
void talk_force_enqueue_next(void)
\group talking
\description
void talk_force_shutup(void)
\group talking
\description
int talk_fullpath(const char* path, bool enqueue)
\group talking
\param path
\param enqueue
\return
\description
int talk_id(int32_t id, bool enqueue)
\group talking
\param id
\param enqueue
\return
\description
int talk_idarray(const long *idarray, bool enqueue)
\group talking
\param idarray
\param enqueue
\return
\description
int talk_number(long n, bool enqueue)
\group talking
\param n
\param enqueue
\return
\description
void talk_shutup(void)
\group talking
\description
int talk_spell(const char* spell, bool enqueue)
\group talking
\param spell
\param enqueue
\return
\description
void talk_time(const struct tm *tm, bool enqueue)
\group talking
\param tm
\param enqueue
\description
int talk_value_decimal(long n, int unit, int decimals, bool enqueue)
\group talking
\param n
\param unit
\param decimals
\param enqueue
\return
\description
void thread_exit(void)
\group kernel/ system
\description
unsigned int thread_self(void)
\group kernel/ system
\return
\description
int thread_set_priority(unsigned int thread_id, int priority)
\group kernel/ system
\conditions (defined(HAVE_PRIORITY_SCHEDULING))
\param thread_id
\param priority
\return
\description
void thread_thaw(unsigned int thread_id)
\group kernel/ system
\param thread_id
\description
void thread_wait(unsigned int thread_id)
\group kernel/ system
\param thread_id
\description
bool timer_register(int reg_prio, void (*unregister_callback)(void), long cycles, void (*timer_callback)(void) IF_COP(, int core))
\param reg_prio
\param unregister_callback
\param cycles
\param core
\param timer_callback
\return
\description
bool timer_set_period(long count)
\param count
\return
\description
void timer_unregister(void)
\description
enum touchscreen_mode touchscreen_get_mode(void)
\group button
\conditions (defined(HAVE_TOUCHSCREEN))
\return
\description
void touchscreen_set_mode(enum touchscreen_mode)
\group button
\conditions (defined(HAVE_TOUCHSCREEN))
\param touchscreen_mode
\description
struct tree_context* tree_get_context(void)
\group browsing
\return
\description
struct entry* tree_get_entries(struct tree_context* t)
\group browsing
\param t
\return
\description
struct entry* tree_get_entry_at(struct tree_context* t, int index)
\group browsing
\param t
\param index
\return
\description
void trigger_cpu_boost(void)
\group kernel/ system
\conditions (defined(HAVE_SCHEDULER_BOOSTCTRL))
\description Boosts the CPU for the current thread
void unregister_storage_idle_func(void (*function)(void), bool run)
\group file
\conditions (USING_STORAGE_CALLBACK)
\param function
\param run
\description
void usb_acknowledge(long id)
\group usb
\param id
\description
void usb_hid_send(usage_page_t usage_page, int id)
\group usb
\conditions (defined(USB_ENABLE_HID))
\param usage_page
\param id
\description
bool usb_inserted(void)
\group usb
\return
\description
unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8)
\group unicode stuff
\param ucs
\param utf8
\return
\description
unsigned long utf8length(const unsigned char *utf8)
\group unicode stuff
\param utf8
\return
\description
int utf8seek(const unsigned char* utf8, int offset)
\group unicode stuff
\param utf8
\param offset
\return
\description
unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, int count)
\group unicode stuff
\param utf16
\param utf8
\param count
\return
\description
unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, int count)
\group unicode stuff
\param utf16
\param utf8
\param count
\return
\description
void viewportmanager_theme_enable(enum screen_type screen, bool enable, struct viewport *viewport)
\param screen
\param enable
\param viewport
\description
void viewportmanager_theme_undo(enum screen_type screen, bool force_redraw)
\param screen
\param force_redraw
\description
void viewport_set_buffer(struct viewport *vp, struct frame_buffer_t *buffer, const enum screen_type screen)
\param vp
\param buffer
\param screen
\description
void viewport_set_defaults(struct viewport *vp, const enum screen_type screen)
\param vp
\param screen
\description
void viewport_set_fullscreen(struct viewport *vp, const enum screen_type screen)
\param vp
\param screen
\description
int vsnprintf(char *buf, size_t size, const char *fmt, va_list ap)
\group strings and memory
\param buf
\param size
\param fmt
\param ap
\return
\description
int vuprintf(vuprintf_push_cb push, void *userp, const char *fmt, va_list ap)
\group strings and memory
\param push
\param userp
\param fmt
\param ap
\return
\description
bool warn_on_pl_erase(void)
\group playback control
\return
\description
void wheel_send_events(bool send)
\conditions (defined(HAVE_WHEEL_POSITION))
\param send
\description
int wheel_status(void)
\conditions (defined(HAVE_WHEEL_POSITION))
\return
\description
ssize_t write(int fildes, const void *buf, size_t nbyte)
\group file
\param fildes
\param buf
\param nbyte
\return
\description
bool yesno_pop(const char* text)
\group list
\param text
\return
\description
void yield(void)
\group kernel/ system
\description Let another thread run. This should be used as soon as you have to "wait" for something or similar, and also if you do anything that takes "a long time". This function is the entire foundation that our "cooperative multitasking" is based on. Use it!
\see [W[RockboxKernel]]
void __div0(void)
\group kernel/ system
\conditions (defined(ARM_NEED_DIV0))
\description
int * __errno(void)
\group misc
\conditions ((CONFIG_PLATFORM & PLATFORM_NATIVE))
\return
\description
# END
|