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
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
|
/* PhotoFileFormat.c generated by valac 0.34.2, the Vala compiler
* generated from PhotoFileFormat.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
*
* This software is licensed under the GNU Lesser General Public License
* (version 2.1 or later). See the COPYING file in this distribution.
*/
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gphoto2/gphoto2-file.h>
#include <gobject/gvaluecollector.h>
#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))
#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ())
#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver))
#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER))
#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER))
#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver;
typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass;
#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties;
typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass;
#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL)))
#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL)))
#define TYPE_JFIF_FILE_FORMAT_DRIVER (jfif_file_format_driver_get_type ())
#define JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver))
#define JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass))
#define IS_JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER))
#define IS_JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER))
#define JFIF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass))
typedef struct _JfifFileFormatDriver JfifFileFormatDriver;
typedef struct _JfifFileFormatDriverClass JfifFileFormatDriverClass;
#define TYPE_RAW_FILE_FORMAT_DRIVER (raw_file_format_driver_get_type ())
#define RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver))
#define RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass))
#define IS_RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_DRIVER))
#define IS_RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_DRIVER))
#define RAW_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass))
typedef struct _RawFileFormatDriver RawFileFormatDriver;
typedef struct _RawFileFormatDriverClass RawFileFormatDriverClass;
#define TYPE_PNG_FILE_FORMAT_DRIVER (png_file_format_driver_get_type ())
#define PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver))
#define PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass))
#define IS_PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_FILE_FORMAT_DRIVER))
#define IS_PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_FILE_FORMAT_DRIVER))
#define PNG_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass))
typedef struct _PngFileFormatDriver PngFileFormatDriver;
typedef struct _PngFileFormatDriverClass PngFileFormatDriverClass;
#define PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER (photos_tiff_file_format_driver_get_type ())
#define PHOTOS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver))
#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass))
#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER))
#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER))
#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass))
typedef struct _PhotosTiffFileFormatDriver PhotosTiffFileFormatDriver;
typedef struct _PhotosTiffFileFormatDriverClass PhotosTiffFileFormatDriverClass;
#define PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER (photos_bmp_file_format_driver_get_type ())
#define PHOTOS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver))
#define PHOTOS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass))
#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER))
#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER))
#define PHOTOS_BMP_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass))
typedef struct _PhotosBmpFileFormatDriver PhotosBmpFileFormatDriver;
typedef struct _PhotosBmpFileFormatDriverClass PhotosBmpFileFormatDriverClass;
#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
typedef struct _PhotoFileAdapter PhotoFileAdapter;
typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
typedef struct _PhotoFileReader PhotoFileReader;
typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
typedef struct _PhotoFileWriter PhotoFileWriter;
typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
typedef struct _PhotoFileSniffer PhotoFileSniffer;
typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
typedef struct _MediaMetadata MediaMetadata;
typedef struct _MediaMetadataClass MediaMetadataClass;
#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
typedef struct _PhotoMetadata PhotoMetadata;
typedef struct _PhotoMetadataClass PhotoMetadataClass;
typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate;
typedef struct _ParamSpecPhotoFileFormatDriver ParamSpecPhotoFileFormatDriver;
#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ())
typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _ParamSpecPhotoFileFormatProperties ParamSpecPhotoFileFormatProperties;
typedef enum {
PHOTO_FORMAT_ERROR_READ_ONLY
} PhotoFormatError;
#define PHOTO_FORMAT_ERROR photo_format_error_quark ()
typedef enum {
PHOTO_FILE_FORMAT_JFIF,
PHOTO_FILE_FORMAT_RAW,
PHOTO_FILE_FORMAT_PNG,
PHOTO_FILE_FORMAT_TIFF,
PHOTO_FILE_FORMAT_BMP,
PHOTO_FILE_FORMAT_UNKNOWN
} PhotoFileFormat;
typedef gboolean (*PhotoFileFormatDataApplicableTest) (PhotoFileFormat format, void* user_data);
typedef enum {
PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
} PhotoFileSnifferOptions;
struct _PhotoFileFormatDriver {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoFileFormatDriverPrivate * priv;
};
struct _PhotoFileFormatDriverClass {
GTypeClass parent_class;
void (*finalize) (PhotoFileFormatDriver *self);
PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self);
PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath);
PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self);
gboolean (*can_write_image) (PhotoFileFormatDriver* self);
gboolean (*can_write_metadata) (PhotoFileFormatDriver* self);
PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
};
struct _ParamSpecPhotoFileFormatDriver {
GParamSpec parent_instance;
};
typedef enum {
PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000
} PhotoFileFormatFlags;
struct _PhotoFileFormatProperties {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoFileFormatPropertiesPrivate * priv;
};
struct _PhotoFileFormatPropertiesClass {
GTypeClass parent_class;
void (*finalize) (PhotoFileFormatProperties *self);
PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self);
PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self);
gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext);
gchar* (*get_default_extension) (PhotoFileFormatProperties* self);
gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1);
gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self);
gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1);
gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self);
};
struct _ParamSpecPhotoFileFormatProperties {
GParamSpec parent_instance;
};
extern PhotoFileFormat* photo_file_format_data_writeable;
extern gint photo_file_format_data_writeable_length1;
PhotoFileFormat* photo_file_format_data_writeable = NULL;
gint photo_file_format_data_writeable_length1 = 0;
static gint _photo_file_format_data_writeable_size_ = 0;
extern PhotoFileFormat* photo_file_format_data_image_writeable;
extern gint photo_file_format_data_image_writeable_length1;
PhotoFileFormat* photo_file_format_data_image_writeable = NULL;
gint photo_file_format_data_image_writeable_length1 = 0;
static gint _photo_file_format_data_image_writeable_size_ = 0;
extern PhotoFileFormat* photo_file_format_data_metadata_writeable;
extern gint photo_file_format_data_metadata_writeable_length1;
PhotoFileFormat* photo_file_format_data_metadata_writeable = NULL;
gint photo_file_format_data_metadata_writeable_length1 = 0;
static gint _photo_file_format_data_metadata_writeable_size_ = 0;
static gpointer photo_file_format_driver_parent_class = NULL;
static gpointer photo_file_format_properties_parent_class = NULL;
GQuark photo_format_error_quark (void);
GType photo_file_format_get_type (void) G_GNUC_CONST;
PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test, void* test_target, int* result_length1);
PhotoFileFormat* photo_file_format_get_supported (int* result_length1);
static void _vala_array_add43 (PhotoFileFormat** array, int* length, int* size, PhotoFileFormat value);
PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1);
static gboolean ___lambda4_ (PhotoFileFormat format);
gboolean photo_file_format_can_write (PhotoFileFormat self);
static gboolean ____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self);
static PhotoFileFormat* _vala_array_dup1 (PhotoFileFormat* self, int length);
PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1);
static gboolean ___lambda22_ (PhotoFileFormat format);
gboolean photo_file_format_can_write_image (PhotoFileFormat self);
static gboolean ____lambda22__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self);
static PhotoFileFormat* _vala_array_dup2 (PhotoFileFormat* self, int length);
PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_length1);
static gboolean ___lambda23_ (PhotoFileFormat format);
gboolean photo_file_format_can_write_metadata (PhotoFileFormat self);
static gboolean ____lambda23__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self);
static PhotoFileFormat* _vala_array_dup3 (PhotoFileFormat* self, int length);
PhotoFileFormat* photo_file_format_get_writeable (int* result_length1);
PhotoFileFormat* photo_file_format_get_image_writeable (int* result_length1);
PhotoFileFormat* photo_file_format_get_metadata_writeable (int* result_length1);
PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename);
void disassemble_filename (const gchar* basename, gchar** name, gchar** ext);
gboolean is_string_empty (const gchar* s);
gpointer photo_file_format_driver_ref (gpointer instance);
void photo_file_format_driver_unref (gpointer instance);
GParamSpec* param_spec_photo_file_format_driver (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_file_format_driver (GValue* value, gpointer v_object);
void value_take_photo_file_format_driver (GValue* value, gpointer v_object);
gpointer value_get_photo_file_format_driver (const GValue* value);
GType photo_file_format_driver_get_type (void) G_GNUC_CONST;
static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self);
gpointer photo_file_format_properties_ref (gpointer instance);
void photo_file_format_properties_unref (gpointer instance);
GParamSpec* param_spec_photo_file_format_properties (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_file_format_properties (GValue* value, gpointer v_object);
void value_take_photo_file_format_properties (GValue* value, gpointer v_object);
gpointer value_get_photo_file_format_properties (const GValue* value);
GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
PhotoFileFormatProperties* photo_file_format_driver_get_properties (PhotoFileFormatDriver* self);
gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext);
gboolean photo_file_format_is_file_supported (GFile* file);
gboolean photo_file_format_is_basename_supported (const gchar* basename);
PhotoFileFormat photo_file_format_get_system_default_format (void);
PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file);
gint photo_file_format_serialize (PhotoFileFormat self);
PhotoFileFormat photo_file_format_unserialize (gint value);
PhotoFileFormat photo_file_format_from_gphoto_type (const gchar* type);
PhotoFileFormat photo_file_format_from_pixbuf_name (const gchar* name);
void photo_file_format_init (PhotoFileFormat self);
void jfif_file_format_driver_init (void);
void raw_file_format_driver_init (void);
void png_file_format_driver_init (void);
void photos_tiff_file_format_driver_init (void);
void photos_bmp_file_format_driver_init (void);
const gchar* photo_file_format_to_string (PhotoFileFormat self);
GType jfif_file_format_driver_get_type (void) G_GNUC_CONST;
JfifFileFormatDriver* jfif_file_format_driver_get_instance (void);
GType raw_file_format_driver_get_type (void) G_GNUC_CONST;
RawFileFormatDriver* raw_file_format_driver_get_instance (void);
GType png_file_format_driver_get_type (void) G_GNUC_CONST;
PngFileFormatDriver* png_file_format_driver_get_instance (void);
GType photos_tiff_file_format_driver_get_type (void) G_GNUC_CONST;
PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_get_instance (void);
GType photos_bmp_file_format_driver_get_type (void) G_GNUC_CONST;
PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_get_instance (void);
PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self);
gchar* photo_file_format_get_default_basename (PhotoFileFormat self, const gchar* name);
gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self);
gpointer photo_file_adapter_ref (gpointer instance);
void photo_file_adapter_unref (gpointer instance);
GParamSpec* param_spec_photo_file_adapter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_file_adapter (GValue* value, gpointer v_object);
void value_take_photo_file_adapter (GValue* value, gpointer v_object);
gpointer value_get_photo_file_adapter (const GValue* value);
GType photo_file_adapter_get_type (void) G_GNUC_CONST;
GType photo_file_reader_get_type (void) G_GNUC_CONST;
PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, const gchar* filepath);
PhotoFileReader* photo_file_format_driver_create_reader (PhotoFileFormatDriver* self, const gchar* filepath);
gboolean photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self);
gboolean photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self);
GType photo_file_writer_get_type (void) G_GNUC_CONST;
PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, const gchar* filepath, GError** error);
PhotoFileWriter* photo_file_format_driver_create_writer (PhotoFileFormatDriver* self, const gchar* filepath);
GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, const gchar* filepath, GError** error);
PhotoFileMetadataWriter* photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self, const gchar* filepath);
GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
gpointer photo_file_sniffer_ref (gpointer instance);
void photo_file_sniffer_unref (gpointer instance);
GParamSpec* param_spec_photo_file_sniffer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_file_sniffer (GValue* value, gpointer v_object);
void value_take_photo_file_sniffer (GValue* value, gpointer v_object);
gpointer value_get_photo_file_sniffer (const GValue* value);
GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self, GFile* file, PhotoFileSnifferOptions options);
PhotoFileSniffer* photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
gpointer media_metadata_ref (gpointer instance);
void media_metadata_unref (gpointer instance);
GParamSpec* param_spec_media_metadata (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_media_metadata (GValue* value, gpointer v_object);
void value_take_media_metadata (GValue* value, gpointer v_object);
gpointer value_get_media_metadata (const GValue* value);
GType media_metadata_get_type (void) G_GNUC_CONST;
GType photo_metadata_get_type (void) G_GNUC_CONST;
PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self);
PhotoMetadata* photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self);
gchar* photo_file_format_get_default_mime_type (PhotoFileFormat self);
gchar* photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self);
gchar** photo_file_format_get_mime_types (PhotoFileFormat self, int* result_length1);
gchar** photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self, int* result_length1);
gchar** photo_file_format_get_editable_mime_types (int* result_length1);
static void _vala_array_add44 (gchar*** array, int* length, int* size, gchar* value);
enum {
PHOTO_FILE_FORMAT_DRIVER_DUMMY_PROPERTY
};
static PhotoFileFormatProperties* photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self);
static PhotoFileReader* photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self, const gchar* filepath);
static PhotoMetadata* photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self);
static gboolean photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self);
static gboolean photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self);
static PhotoFileWriter* photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self, const gchar* filepath);
static PhotoFileMetadataWriter* photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self, const gchar* filepath);
static PhotoFileSniffer* photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type);
static void photo_file_format_driver_finalize (PhotoFileFormatDriver* obj);
GType photo_file_format_flags_get_type (void) G_GNUC_CONST;
enum {
PHOTO_FILE_FORMAT_PROPERTIES_DUMMY_PROPERTY
};
PhotoFileFormat photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self);
static PhotoFileFormat photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self);
PhotoFileFormatFlags photo_file_format_properties_get_flags (PhotoFileFormatProperties* self);
static PhotoFileFormatFlags photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self);
static gboolean photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext);
gboolean is_in_ci_array (const gchar* str, gchar** strings, int strings_length1);
gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1);
static gchar* photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self);
static gchar** photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1);
static gchar* photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self);
static gchar** photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self, int* result_length1);
gchar* photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self);
static gchar* photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self);
GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, GFile* file);
PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type);
static void photo_file_format_properties_finalize (PhotoFileFormatProperties* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
GQuark photo_format_error_quark (void) {
return g_quark_from_static_string ("photo_format_error-quark");
}
static void _vala_array_add43 (PhotoFileFormat** array, int* length, int* size, PhotoFileFormat value) {
#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if ((*length) == (*size)) {
#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*array = g_renew (PhotoFileFormat, *array, *size);
#line 427 "PhotoFileFormat.c"
}
#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
(*array)[(*length)++] = value;
#line 431 "PhotoFileFormat.c"
}
PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test, void* test_target, int* result_length1) {
PhotoFileFormat* result = NULL;
PhotoFileFormat* applicable = NULL;
PhotoFileFormat* _tmp0_ = NULL;
gint applicable_length1 = 0;
gint _applicable_size_ = 0;
gint _tmp1_ = 0;
PhotoFileFormat* _tmp2_ = NULL;
PhotoFileFormat* _tmp8_ = NULL;
gint _tmp8__length1 = 0;
#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = g_new0 (PhotoFileFormat, 0);
#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
applicable = _tmp0_;
#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
applicable_length1 = 0;
#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_applicable_size_ = applicable_length1;
#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_get_supported (&_tmp1_);
#line 455 "PhotoFileFormat.c"
{
PhotoFileFormat* format_collection = NULL;
gint format_collection_length1 = 0;
gint _format_collection_size_ = 0;
gint format_it = 0;
#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format_collection = _tmp2_;
#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format_collection_length1 = _tmp1_;
#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
for (format_it = 0; format_it < _tmp1_; format_it = format_it + 1) {
#line 467 "PhotoFileFormat.c"
PhotoFileFormat format = 0;
#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format = format_collection[format_it];
#line 471 "PhotoFileFormat.c"
{
PhotoFileFormatDataApplicableTest _tmp3_ = NULL;
void* _tmp3__target = NULL;
PhotoFileFormat _tmp4_ = 0;
gboolean _tmp5_ = FALSE;
#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = test;
#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3__target = test_target;
#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = format;
#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = _tmp3_ (_tmp4_, _tmp3__target);
#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp5_) {
#line 487 "PhotoFileFormat.c"
PhotoFileFormat* _tmp6_ = NULL;
gint _tmp6__length1 = 0;
PhotoFileFormat _tmp7_ = 0;
#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = applicable;
#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6__length1 = applicable_length1;
#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7_ = format;
#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_vala_array_add43 (&applicable, &applicable_length1, &_applicable_size_, _tmp7_);
#line 499 "PhotoFileFormat.c"
}
}
}
#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format_collection = (g_free (format_collection), NULL);
#line 505 "PhotoFileFormat.c"
}
#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp8_ = applicable;
#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp8__length1 = applicable_length1;
#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp8__length1;
#line 515 "PhotoFileFormat.c"
}
#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp8_;
#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 521 "PhotoFileFormat.c"
}
static gboolean ___lambda4_ (PhotoFileFormat format) {
gboolean result = FALSE;
PhotoFileFormat _tmp0_ = 0;
gboolean _tmp1_ = FALSE;
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = format;
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = photo_file_format_can_write (_tmp0_);
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp1_;
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 537 "PhotoFileFormat.c"
}
static gboolean ____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self) {
gboolean result;
result = ___lambda4_ (format);
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 546 "PhotoFileFormat.c"
}
static PhotoFileFormat* _vala_array_dup1 (PhotoFileFormat* self, int length) {
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_memdup (self, length * sizeof (PhotoFileFormat));
#line 553 "PhotoFileFormat.c"
}
PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1) {
PhotoFileFormat* result = NULL;
PhotoFileFormat* _tmp0_ = NULL;
gint _tmp0__length1 = 0;
PhotoFileFormat* _tmp3_ = NULL;
gint _tmp3__length1 = 0;
PhotoFileFormat* _tmp4_ = NULL;
gint _tmp4__length1 = 0;
PhotoFileFormat* _tmp5_ = NULL;
gint _tmp5__length1 = 0;
#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_data_writeable;
#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0__length1 = photo_file_format_data_writeable_length1;
#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp0_ == NULL) {
#line 573 "PhotoFileFormat.c"
gint _tmp1_ = 0;
PhotoFileFormat* _tmp2_ = NULL;
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_data_find_applicable (____lambda4__photo_file_format_data_applicable_test, NULL, &_tmp1_);
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_writeable = (g_free (photo_file_format_data_writeable), NULL);
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_writeable = _tmp2_;
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_writeable_length1 = _tmp1_;
#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_data_writeable_size_ = photo_file_format_data_writeable_length1;
#line 586 "PhotoFileFormat.c"
}
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_data_writeable;
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3__length1 = photo_file_format_data_writeable_length1;
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup1 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_);
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4__length1 = _tmp3__length1;
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = _tmp4_;
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5__length1 = _tmp4__length1;
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp5__length1;
#line 604 "PhotoFileFormat.c"
}
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp5_;
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 610 "PhotoFileFormat.c"
}
static gboolean ___lambda22_ (PhotoFileFormat format) {
gboolean result = FALSE;
PhotoFileFormat _tmp0_ = 0;
gboolean _tmp1_ = FALSE;
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = format;
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = photo_file_format_can_write_image (_tmp0_);
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp1_;
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 626 "PhotoFileFormat.c"
}
static gboolean ____lambda22__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self) {
gboolean result;
result = ___lambda22_ (format);
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 635 "PhotoFileFormat.c"
}
static PhotoFileFormat* _vala_array_dup2 (PhotoFileFormat* self, int length) {
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_memdup (self, length * sizeof (PhotoFileFormat));
#line 642 "PhotoFileFormat.c"
}
PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1) {
PhotoFileFormat* result = NULL;
PhotoFileFormat* _tmp0_ = NULL;
gint _tmp0__length1 = 0;
PhotoFileFormat* _tmp3_ = NULL;
gint _tmp3__length1 = 0;
PhotoFileFormat* _tmp4_ = NULL;
gint _tmp4__length1 = 0;
PhotoFileFormat* _tmp5_ = NULL;
gint _tmp5__length1 = 0;
#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_data_image_writeable;
#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0__length1 = photo_file_format_data_image_writeable_length1;
#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp0_ == NULL) {
#line 662 "PhotoFileFormat.c"
gint _tmp1_ = 0;
PhotoFileFormat* _tmp2_ = NULL;
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_data_find_applicable (____lambda22__photo_file_format_data_applicable_test, NULL, &_tmp1_);
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_image_writeable = (g_free (photo_file_format_data_image_writeable), NULL);
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_image_writeable = _tmp2_;
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_image_writeable_length1 = _tmp1_;
#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_data_image_writeable_size_ = photo_file_format_data_image_writeable_length1;
#line 675 "PhotoFileFormat.c"
}
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_data_image_writeable;
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3__length1 = photo_file_format_data_image_writeable_length1;
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup2 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_);
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4__length1 = _tmp3__length1;
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = _tmp4_;
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5__length1 = _tmp4__length1;
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp5__length1;
#line 693 "PhotoFileFormat.c"
}
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp5_;
#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 699 "PhotoFileFormat.c"
}
static gboolean ___lambda23_ (PhotoFileFormat format) {
gboolean result = FALSE;
PhotoFileFormat _tmp0_ = 0;
gboolean _tmp1_ = FALSE;
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = format;
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = photo_file_format_can_write_metadata (_tmp0_);
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp1_;
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 715 "PhotoFileFormat.c"
}
static gboolean ____lambda23__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self) {
gboolean result;
result = ___lambda23_ (format);
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 724 "PhotoFileFormat.c"
}
static PhotoFileFormat* _vala_array_dup3 (PhotoFileFormat* self, int length) {
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_memdup (self, length * sizeof (PhotoFileFormat));
#line 731 "PhotoFileFormat.c"
}
PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_length1) {
PhotoFileFormat* result = NULL;
PhotoFileFormat* _tmp0_ = NULL;
gint _tmp0__length1 = 0;
PhotoFileFormat* _tmp3_ = NULL;
gint _tmp3__length1 = 0;
PhotoFileFormat* _tmp4_ = NULL;
gint _tmp4__length1 = 0;
PhotoFileFormat* _tmp5_ = NULL;
gint _tmp5__length1 = 0;
#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_data_metadata_writeable;
#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0__length1 = photo_file_format_data_metadata_writeable_length1;
#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp0_ == NULL) {
#line 751 "PhotoFileFormat.c"
gint _tmp1_ = 0;
PhotoFileFormat* _tmp2_ = NULL;
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_data_find_applicable (____lambda23__photo_file_format_data_applicable_test, NULL, &_tmp1_);
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_metadata_writeable = (g_free (photo_file_format_data_metadata_writeable), NULL);
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_metadata_writeable = _tmp2_;
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_data_metadata_writeable_length1 = _tmp1_;
#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_data_metadata_writeable_size_ = photo_file_format_data_metadata_writeable_length1;
#line 764 "PhotoFileFormat.c"
}
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_data_metadata_writeable;
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3__length1 = photo_file_format_data_metadata_writeable_length1;
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup3 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_);
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4__length1 = _tmp3__length1;
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = _tmp4_;
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5__length1 = _tmp4__length1;
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp5__length1;
#line 782 "PhotoFileFormat.c"
}
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp5_;
#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 788 "PhotoFileFormat.c"
}
PhotoFileFormat* photo_file_format_get_supported (int* result_length1) {
PhotoFileFormat* result = NULL;
PhotoFileFormat* _tmp0_ = NULL;
PhotoFileFormat* _tmp1_ = NULL;
gint _tmp1__length1 = 0;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = g_new0 (PhotoFileFormat, 5);
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_[0] = PHOTO_FILE_FORMAT_JFIF;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_[1] = PHOTO_FILE_FORMAT_RAW;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_[2] = PHOTO_FILE_FORMAT_PNG;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_[3] = PHOTO_FILE_FORMAT_TIFF;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_[4] = PHOTO_FILE_FORMAT_BMP;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1__length1 = 5;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp1__length1;
#line 817 "PhotoFileFormat.c"
}
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp1_;
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 823 "PhotoFileFormat.c"
}
PhotoFileFormat* photo_file_format_get_writeable (int* result_length1) {
PhotoFileFormat* result = NULL;
gint _tmp0_ = 0;
PhotoFileFormat* _tmp1_ = NULL;
PhotoFileFormat* _tmp2_ = NULL;
gint _tmp2__length1 = 0;
#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = photo_file_format_data_get_writeable (&_tmp0_);
#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = _tmp1_;
#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2__length1 = _tmp0_;
#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp2__length1;
#line 843 "PhotoFileFormat.c"
}
#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp2_;
#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 849 "PhotoFileFormat.c"
}
PhotoFileFormat* photo_file_format_get_image_writeable (int* result_length1) {
PhotoFileFormat* result = NULL;
gint _tmp0_ = 0;
PhotoFileFormat* _tmp1_ = NULL;
PhotoFileFormat* _tmp2_ = NULL;
gint _tmp2__length1 = 0;
#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = photo_file_format_data_get_image_writeable (&_tmp0_);
#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = _tmp1_;
#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2__length1 = _tmp0_;
#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp2__length1;
#line 869 "PhotoFileFormat.c"
}
#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp2_;
#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 875 "PhotoFileFormat.c"
}
PhotoFileFormat* photo_file_format_get_metadata_writeable (int* result_length1) {
PhotoFileFormat* result = NULL;
gint _tmp0_ = 0;
PhotoFileFormat* _tmp1_ = NULL;
PhotoFileFormat* _tmp2_ = NULL;
gint _tmp2__length1 = 0;
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = photo_file_format_data_get_metadata_writeable (&_tmp0_);
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = _tmp1_;
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2__length1 = _tmp0_;
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp2__length1;
#line 895 "PhotoFileFormat.c"
}
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp2_;
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 901 "PhotoFileFormat.c"
}
PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename) {
PhotoFileFormat result = 0;
gchar* name = NULL;
gchar* ext = NULL;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
gint _tmp5_ = 0;
PhotoFileFormat* _tmp6_ = NULL;
#line 80 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (basename != NULL, 0);
#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = basename;
#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
disassemble_filename (_tmp0_, &_tmp1_, &_tmp2_);
#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
name = _tmp1_;
#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
ext = _tmp2_;
#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = ext;
#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = is_string_empty (_tmp3_);
#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp4_) {
#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_UNKNOWN;
#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 944 "PhotoFileFormat.c"
}
#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = photo_file_format_get_supported (&_tmp5_);
#line 948 "PhotoFileFormat.c"
{
PhotoFileFormat* file_format_collection = NULL;
gint file_format_collection_length1 = 0;
gint _file_format_collection_size_ = 0;
gint file_format_it = 0;
#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format_collection = _tmp6_;
#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format_collection_length1 = _tmp5_;
#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
for (file_format_it = 0; file_format_it < _tmp5_; file_format_it = file_format_it + 1) {
#line 960 "PhotoFileFormat.c"
PhotoFileFormat file_format = 0;
#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format = file_format_collection[file_format_it];
#line 964 "PhotoFileFormat.c"
{
PhotoFileFormat _tmp7_ = 0;
PhotoFileFormatDriver* _tmp8_ = NULL;
PhotoFileFormatDriver* _tmp9_ = NULL;
PhotoFileFormatProperties* _tmp10_ = NULL;
PhotoFileFormatProperties* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
gboolean _tmp13_ = FALSE;
gboolean _tmp14_ = FALSE;
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7_ = file_format;
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp8_ = photo_file_format_get_driver (_tmp7_);
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp9_ = _tmp8_;
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp10_ = photo_file_format_driver_get_properties (_tmp9_);
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp11_ = _tmp10_;
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp12_ = ext;
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp13_ = photo_file_format_properties_is_recognized_extension (_tmp11_, _tmp12_);
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp14_ = _tmp13_;
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_properties_unref0 (_tmp11_);
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp9_);
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp14_) {
#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = file_format;
#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format_collection = (g_free (file_format_collection), NULL);
#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1006 "PhotoFileFormat.c"
}
}
}
#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format_collection = (g_free (file_format_collection), NULL);
#line 1012 "PhotoFileFormat.c"
}
#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_UNKNOWN;
#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1022 "PhotoFileFormat.c"
}
gboolean photo_file_format_is_file_supported (GFile* file) {
gboolean result = FALSE;
GFile* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
gboolean _tmp3_ = FALSE;
gboolean _tmp4_ = FALSE;
#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = file;
#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = g_file_get_basename (_tmp0_);
#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = _tmp1_;
#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_is_basename_supported (_tmp2_);
#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = _tmp3_;
#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (_tmp2_);
#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp4_;
#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1051 "PhotoFileFormat.c"
}
gboolean photo_file_format_is_basename_supported (const gchar* basename) {
gboolean result = FALSE;
gchar* name = NULL;
gchar* ext = NULL;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
gint _tmp5_ = 0;
PhotoFileFormat* _tmp6_ = NULL;
#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (basename != NULL, FALSE);
#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = basename;
#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
disassemble_filename (_tmp0_, &_tmp1_, &_tmp2_);
#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
name = _tmp1_;
#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
ext = _tmp2_;
#line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = ext;
#line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = is_string_empty (_tmp3_);
#line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp4_) {
#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = FALSE;
#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1094 "PhotoFileFormat.c"
}
#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = photo_file_format_get_supported (&_tmp5_);
#line 1098 "PhotoFileFormat.c"
{
PhotoFileFormat* format_collection = NULL;
gint format_collection_length1 = 0;
gint _format_collection_size_ = 0;
gint format_it = 0;
#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format_collection = _tmp6_;
#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format_collection_length1 = _tmp5_;
#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
for (format_it = 0; format_it < _tmp5_; format_it = format_it + 1) {
#line 1110 "PhotoFileFormat.c"
PhotoFileFormat format = 0;
#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format = format_collection[format_it];
#line 1114 "PhotoFileFormat.c"
{
PhotoFileFormat _tmp7_ = 0;
PhotoFileFormatDriver* _tmp8_ = NULL;
PhotoFileFormatDriver* _tmp9_ = NULL;
PhotoFileFormatProperties* _tmp10_ = NULL;
PhotoFileFormatProperties* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
gboolean _tmp13_ = FALSE;
gboolean _tmp14_ = FALSE;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7_ = format;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp8_ = photo_file_format_get_driver (_tmp7_);
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp9_ = _tmp8_;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp10_ = photo_file_format_driver_get_properties (_tmp9_);
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp11_ = _tmp10_;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp12_ = ext;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp13_ = photo_file_format_properties_is_recognized_extension (_tmp11_, _tmp12_);
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp14_ = _tmp13_;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_properties_unref0 (_tmp11_);
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp9_);
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp14_) {
#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = TRUE;
#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format_collection = (g_free (format_collection), NULL);
#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1156 "PhotoFileFormat.c"
}
}
}
#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
format_collection = (g_free (format_collection), NULL);
#line 1162 "PhotoFileFormat.c"
}
#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = FALSE;
#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1172 "PhotoFileFormat.c"
}
PhotoFileFormat photo_file_format_get_system_default_format (void) {
PhotoFileFormat result = 0;
#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_JFIF;
#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1182 "PhotoFileFormat.c"
}
PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file) {
PhotoFileFormat result = 0;
GFile* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
PhotoFileFormat _tmp3_ = 0;
PhotoFileFormat _tmp4_ = 0;
#line 119 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (G_IS_FILE (file), 0);
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = file;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = g_file_get_basename (_tmp0_);
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = _tmp1_;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_get_by_basename_extension (_tmp2_);
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = _tmp3_;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (_tmp2_);
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp4_;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1211 "PhotoFileFormat.c"
}
gint photo_file_format_serialize (PhotoFileFormat self) {
gint result = 0;
#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (self) {
#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_JFIF:
#line 1221 "PhotoFileFormat.c"
{
#line 127 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = 0;
#line 127 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1227 "PhotoFileFormat.c"
}
#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_RAW:
#line 1231 "PhotoFileFormat.c"
{
#line 130 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = 1;
#line 130 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1237 "PhotoFileFormat.c"
}
#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_PNG:
#line 1241 "PhotoFileFormat.c"
{
#line 133 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = 2;
#line 133 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1247 "PhotoFileFormat.c"
}
#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_TIFF:
#line 1251 "PhotoFileFormat.c"
{
#line 136 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = 3;
#line 136 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1257 "PhotoFileFormat.c"
}
#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_BMP:
#line 1261 "PhotoFileFormat.c"
{
#line 139 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = 4;
#line 139 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1267 "PhotoFileFormat.c"
}
default:
#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_UNKNOWN:
#line 1272 "PhotoFileFormat.c"
{
#line 143 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = -1;
#line 143 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1278 "PhotoFileFormat.c"
}
}
}
PhotoFileFormat photo_file_format_unserialize (gint value) {
PhotoFileFormat result = 0;
gint _tmp0_ = 0;
#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = value;
#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (_tmp0_) {
#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case 0:
#line 1293 "PhotoFileFormat.c"
{
#line 151 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_JFIF;
#line 151 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1299 "PhotoFileFormat.c"
}
#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case 1:
#line 1303 "PhotoFileFormat.c"
{
#line 154 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_RAW;
#line 154 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1309 "PhotoFileFormat.c"
}
#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case 2:
#line 1313 "PhotoFileFormat.c"
{
#line 157 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_PNG;
#line 157 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1319 "PhotoFileFormat.c"
}
#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case 3:
#line 1323 "PhotoFileFormat.c"
{
#line 160 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_TIFF;
#line 160 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1329 "PhotoFileFormat.c"
}
#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case 4:
#line 1333 "PhotoFileFormat.c"
{
#line 163 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_BMP;
#line 163 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1339 "PhotoFileFormat.c"
}
default:
{
#line 166 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_UNKNOWN;
#line 166 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1347 "PhotoFileFormat.c"
}
}
}
PhotoFileFormat photo_file_format_from_gphoto_type (const gchar* type) {
PhotoFileFormat result = 0;
const gchar* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
GQuark _tmp3_ = 0U;
#line 170 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (type != NULL, 0);
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = type;
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp3_ == g_quark_from_string (GP_MIME_JPEG)) {
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1370 "PhotoFileFormat.c"
default:
{
#line 173 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_JFIF;
#line 173 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1377 "PhotoFileFormat.c"
}
}
} else if ((_tmp3_ == g_quark_from_string (GP_MIME_RAW)) || (_tmp3_ == g_quark_from_string (GP_MIME_CRW))) {
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1383 "PhotoFileFormat.c"
default:
{
#line 177 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_RAW;
#line 177 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1390 "PhotoFileFormat.c"
}
}
} else if (_tmp3_ == g_quark_from_string (GP_MIME_PNG)) {
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1396 "PhotoFileFormat.c"
default:
{
#line 180 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_PNG;
#line 180 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1403 "PhotoFileFormat.c"
}
}
} else if (_tmp3_ == g_quark_from_string (GP_MIME_TIFF)) {
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1409 "PhotoFileFormat.c"
default:
{
#line 183 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_TIFF;
#line 183 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1416 "PhotoFileFormat.c"
}
}
} else if (_tmp3_ == g_quark_from_string (GP_MIME_BMP)) {
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1422 "PhotoFileFormat.c"
default:
{
#line 186 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_BMP;
#line 186 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1429 "PhotoFileFormat.c"
}
}
} else {
#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1435 "PhotoFileFormat.c"
default:
{
#line 190 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_UNKNOWN;
#line 190 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1442 "PhotoFileFormat.c"
}
}
}
}
PhotoFileFormat photo_file_format_from_pixbuf_name (const gchar* name) {
PhotoFileFormat result = 0;
const gchar* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
GQuark _tmp3_ = 0U;
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
static GQuark _tmp2_label0 = 0;
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
static GQuark _tmp2_label1 = 0;
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
static GQuark _tmp2_label2 = 0;
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
static GQuark _tmp2_label3 = 0;
#line 195 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (name != NULL, 0);
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = name;
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("jpeg")))) {
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1474 "PhotoFileFormat.c"
default:
{
#line 198 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_JFIF;
#line 198 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1481 "PhotoFileFormat.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("png")))) {
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1487 "PhotoFileFormat.c"
default:
{
#line 201 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_PNG;
#line 201 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1494 "PhotoFileFormat.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("tiff")))) {
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1500 "PhotoFileFormat.c"
default:
{
#line 204 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_TIFF;
#line 204 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1507 "PhotoFileFormat.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("bmp")))) {
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1513 "PhotoFileFormat.c"
default:
{
#line 207 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_BMP;
#line 207 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1520 "PhotoFileFormat.c"
}
}
} else {
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (0) {
#line 1526 "PhotoFileFormat.c"
default:
{
#line 210 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = PHOTO_FILE_FORMAT_UNKNOWN;
#line 210 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1533 "PhotoFileFormat.c"
}
}
}
}
void photo_file_format_init (PhotoFileFormat self) {
#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (self) {
#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_JFIF:
#line 1545 "PhotoFileFormat.c"
{
#line 217 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
jfif_file_format_driver_init ();
#line 218 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
break;
#line 1551 "PhotoFileFormat.c"
}
#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_RAW:
#line 1555 "PhotoFileFormat.c"
{
#line 221 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
raw_file_format_driver_init ();
#line 222 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
break;
#line 1561 "PhotoFileFormat.c"
}
#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_PNG:
#line 1565 "PhotoFileFormat.c"
{
#line 225 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
png_file_format_driver_init ();
#line 226 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
break;
#line 1571 "PhotoFileFormat.c"
}
#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_TIFF:
#line 1575 "PhotoFileFormat.c"
{
#line 229 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photos_tiff_file_format_driver_init ();
#line 230 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
break;
#line 1581 "PhotoFileFormat.c"
}
#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_BMP:
#line 1585 "PhotoFileFormat.c"
{
#line 233 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photos_bmp_file_format_driver_init ();
#line 234 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
break;
#line 1591 "PhotoFileFormat.c"
}
default:
{
GEnumValue* _tmp0_;
#line 237 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self);
#line 237 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_error ("PhotoFileFormat.vala:237: Unsupported file format %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL);
#line 1600 "PhotoFileFormat.c"
}
}
}
static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self) {
PhotoFileFormatDriver* result = NULL;
#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
switch (self) {
#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_JFIF:
#line 1612 "PhotoFileFormat.c"
{
JfifFileFormatDriver* _tmp0_ = NULL;
#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = jfif_file_format_driver_get_instance ();
#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1621 "PhotoFileFormat.c"
}
#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_RAW:
#line 1625 "PhotoFileFormat.c"
{
RawFileFormatDriver* _tmp1_ = NULL;
#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = raw_file_format_driver_get_instance ();
#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1634 "PhotoFileFormat.c"
}
#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_PNG:
#line 1638 "PhotoFileFormat.c"
{
PngFileFormatDriver* _tmp2_ = NULL;
#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = png_file_format_driver_get_instance ();
#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1647 "PhotoFileFormat.c"
}
#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_TIFF:
#line 1651 "PhotoFileFormat.c"
{
PhotosTiffFileFormatDriver* _tmp3_ = NULL;
#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photos_tiff_file_format_driver_get_instance ();
#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1660 "PhotoFileFormat.c"
}
#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
case PHOTO_FILE_FORMAT_BMP:
#line 1664 "PhotoFileFormat.c"
{
PhotosBmpFileFormatDriver* _tmp4_ = NULL;
#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = photos_bmp_file_format_driver_get_instance ();
#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1673 "PhotoFileFormat.c"
}
default:
{
GEnumValue* _tmp5_;
#line 259 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self);
#line 259 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_error ("PhotoFileFormat.vala:259: Unsupported file format %s", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
#line 1682 "PhotoFileFormat.c"
}
}
}
PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self) {
PhotoFileFormatProperties* result = NULL;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
PhotoFileFormatProperties* _tmp2_ = NULL;
PhotoFileFormatProperties* _tmp3_ = NULL;
#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_driver_get_properties (_tmp1_);
#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = _tmp2_;
#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp3_;
#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1708 "PhotoFileFormat.c"
}
gchar* photo_file_format_get_default_basename (PhotoFileFormat self, const gchar* name) {
gchar* result = NULL;
const gchar* _tmp0_ = NULL;
PhotoFileFormatProperties* _tmp1_ = NULL;
PhotoFileFormatProperties* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
#line 268 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (name != NULL, NULL);
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = name;
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = photo_file_format_get_properties (self);
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = _tmp1_;
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_properties_get_default_extension (_tmp2_);
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = _tmp3_;
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = g_strdup_printf ("%s.%s", _tmp0_, _tmp4_);
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = _tmp5_;
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (_tmp4_);
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_properties_unref0 (_tmp2_);
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp6_;
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1745 "PhotoFileFormat.c"
}
PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, const gchar* filepath) {
PhotoFileReader* result = NULL;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
PhotoFileReader* _tmp3_ = NULL;
PhotoFileReader* _tmp4_ = NULL;
#line 272 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (filepath != NULL, NULL);
#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = filepath;
#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_driver_create_reader (_tmp1_, _tmp2_);
#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = _tmp3_;
#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp4_;
#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1774 "PhotoFileFormat.c"
}
gboolean photo_file_format_can_write (PhotoFileFormat self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = photo_file_format_can_write_image (self);
#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp1_) {
#line 1786 "PhotoFileFormat.c"
gboolean _tmp2_ = FALSE;
#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_can_write_metadata (self);
#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = _tmp2_;
#line 1792 "PhotoFileFormat.c"
} else {
#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = FALSE;
#line 1796 "PhotoFileFormat.c"
}
#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp0_;
#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1802 "PhotoFileFormat.c"
}
gboolean photo_file_format_can_write_image (PhotoFileFormat self) {
gboolean result = FALSE;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
gboolean _tmp3_ = FALSE;
#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_driver_can_write_image (_tmp1_);
#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = _tmp2_;
#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp3_;
#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1826 "PhotoFileFormat.c"
}
gboolean photo_file_format_can_write_metadata (PhotoFileFormat self) {
gboolean result = FALSE;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
gboolean _tmp3_ = FALSE;
#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_driver_can_write_metadata (_tmp1_);
#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = _tmp2_;
#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp3_;
#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1850 "PhotoFileFormat.c"
}
PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, const gchar* filepath, GError** error) {
PhotoFileWriter* result = NULL;
PhotoFileWriter* writer = NULL;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
PhotoFileWriter* _tmp3_ = NULL;
PhotoFileWriter* _tmp4_ = NULL;
PhotoFileWriter* _tmp5_ = NULL;
GError * _inner_error_ = NULL;
#line 289 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (filepath != NULL, NULL);
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = filepath;
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_driver_create_writer (_tmp1_, _tmp2_);
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = _tmp3_;
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
writer = _tmp4_;
#line 291 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = writer;
#line 291 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp5_ == NULL) {
#line 1884 "PhotoFileFormat.c"
GEnumValue* _tmp6_;
GError* _tmp7_ = NULL;
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self);
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s is read-only", (_tmp6_ != NULL) ? _tmp6_->value_name : NULL);
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_inner_error_ = _tmp7_;
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_inner_error_->domain == PHOTO_FORMAT_ERROR) {
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_propagate_error (error, _inner_error_);
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_adapter_unref0 (writer);
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 1901 "PhotoFileFormat.c"
} else {
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_adapter_unref0 (writer);
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_clear_error (&_inner_error_);
#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 1911 "PhotoFileFormat.c"
}
}
#line 294 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = writer;
#line 294 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1918 "PhotoFileFormat.c"
}
PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, const gchar* filepath, GError** error) {
PhotoFileMetadataWriter* result = NULL;
PhotoFileMetadataWriter* writer = NULL;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
PhotoFileMetadataWriter* _tmp3_ = NULL;
PhotoFileMetadataWriter* _tmp4_ = NULL;
PhotoFileMetadataWriter* _tmp5_ = NULL;
GError * _inner_error_ = NULL;
#line 297 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (filepath != NULL, NULL);
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = filepath;
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = photo_file_format_driver_create_metadata_writer (_tmp1_, _tmp2_);
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = _tmp3_;
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
writer = _tmp4_;
#line 299 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = writer;
#line 299 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp5_ == NULL) {
#line 1952 "PhotoFileFormat.c"
GEnumValue* _tmp6_;
GError* _tmp7_ = NULL;
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self);
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s metadata is read-only", (_tmp6_ != NULL) ? _tmp6_->value_name : NULL);
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_inner_error_ = _tmp7_;
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_inner_error_->domain == PHOTO_FORMAT_ERROR) {
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_propagate_error (error, _inner_error_);
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_adapter_unref0 (writer);
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 1969 "PhotoFileFormat.c"
} else {
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_adapter_unref0 (writer);
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_clear_error (&_inner_error_);
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 1979 "PhotoFileFormat.c"
}
}
#line 302 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = writer;
#line 302 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 1986 "PhotoFileFormat.c"
}
PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self, GFile* file, PhotoFileSnifferOptions options) {
PhotoFileSniffer* result = NULL;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
PhotoFileSnifferOptions _tmp3_ = 0;
PhotoFileSniffer* _tmp4_ = NULL;
PhotoFileSniffer* _tmp5_ = NULL;
#line 305 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = file;
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = options;
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = photo_file_format_driver_create_sniffer (_tmp1_, _tmp2_, _tmp3_);
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = _tmp4_;
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp5_;
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 2018 "PhotoFileFormat.c"
}
PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self) {
PhotoMetadata* result = NULL;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
PhotoMetadata* _tmp3_ = NULL;
#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_driver_create_metadata (_tmp1_);
#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = _tmp2_;
#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp3_;
#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 2042 "PhotoFileFormat.c"
}
gchar* photo_file_format_get_default_mime_type (PhotoFileFormat self) {
gchar* result = NULL;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
PhotoFileFormatProperties* _tmp2_ = NULL;
PhotoFileFormatProperties* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_driver_get_properties (_tmp1_);
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = _tmp2_;
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = photo_file_format_properties_get_default_mime_type (_tmp3_);
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = _tmp4_;
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_properties_unref0 (_tmp3_);
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp5_;
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 2074 "PhotoFileFormat.c"
}
gchar** photo_file_format_get_mime_types (PhotoFileFormat self, int* result_length1) {
gchar** result = NULL;
PhotoFileFormatDriver* _tmp0_ = NULL;
PhotoFileFormatDriver* _tmp1_ = NULL;
PhotoFileFormatProperties* _tmp2_ = NULL;
PhotoFileFormatProperties* _tmp3_ = NULL;
gint _tmp4_ = 0;
gchar** _tmp5_ = NULL;
gchar** _tmp6_ = NULL;
gint _tmp6__length1 = 0;
gchar** _tmp7_ = NULL;
gint _tmp7__length1 = 0;
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = photo_file_format_get_driver (self);
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = _tmp0_;
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_driver_get_properties (_tmp1_);
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = _tmp2_;
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = photo_file_format_properties_get_mime_types (_tmp3_, &_tmp4_);
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = _tmp5_;
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6__length1 = _tmp4_;
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_properties_unref0 (_tmp3_);
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_photo_file_format_driver_unref0 (_tmp1_);
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7_ = _tmp6_;
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7__length1 = _tmp6__length1;
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp7__length1;
#line 2116 "PhotoFileFormat.c"
}
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp7_;
#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 2122 "PhotoFileFormat.c"
}
static void _vala_array_add44 (gchar*** array, int* length, int* size, gchar* value) {
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if ((*length) == (*size)) {
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 2133 "PhotoFileFormat.c"
}
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
(*array)[(*length)++] = value;
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
(*array)[*length] = NULL;
#line 2139 "PhotoFileFormat.c"
}
gchar** photo_file_format_get_editable_mime_types (int* result_length1) {
gchar** result = NULL;
gchar** mime_types = NULL;
gchar** _tmp0_ = NULL;
gint mime_types_length1 = 0;
gint _mime_types_size_ = 0;
gint _tmp1_ = 0;
PhotoFileFormat* _tmp2_ = NULL;
gchar** _tmp10_ = NULL;
gint _tmp10__length1 = 0;
#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = g_new0 (gchar*, 0 + 1);
#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
mime_types = _tmp0_;
#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
mime_types_length1 = 0;
#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_mime_types_size_ = mime_types_length1;
#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_get_supported (&_tmp1_);
#line 2163 "PhotoFileFormat.c"
{
PhotoFileFormat* file_format_collection = NULL;
gint file_format_collection_length1 = 0;
gint _file_format_collection_size_ = 0;
gint file_format_it = 0;
#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format_collection = _tmp2_;
#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format_collection_length1 = _tmp1_;
#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
for (file_format_it = 0; file_format_it < _tmp1_; file_format_it = file_format_it + 1) {
#line 2175 "PhotoFileFormat.c"
PhotoFileFormat file_format = 0;
#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format = file_format_collection[file_format_it];
#line 2179 "PhotoFileFormat.c"
{
PhotoFileFormat _tmp3_ = 0;
gint _tmp4_ = 0;
gchar** _tmp5_ = NULL;
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = file_format;
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = photo_file_format_get_mime_types (_tmp3_, &_tmp4_);
#line 2188 "PhotoFileFormat.c"
{
gchar** mime_type_collection = NULL;
gint mime_type_collection_length1 = 0;
gint _mime_type_collection_size_ = 0;
gint mime_type_it = 0;
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
mime_type_collection = _tmp5_;
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
mime_type_collection_length1 = _tmp4_;
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
for (mime_type_it = 0; mime_type_it < _tmp4_; mime_type_it = mime_type_it + 1) {
#line 2200 "PhotoFileFormat.c"
gchar* _tmp6_ = NULL;
gchar* mime_type = NULL;
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = g_strdup (mime_type_collection[mime_type_it]);
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
mime_type = _tmp6_;
#line 2207 "PhotoFileFormat.c"
{
gchar** _tmp7_ = NULL;
gint _tmp7__length1 = 0;
const gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7_ = mime_types;
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7__length1 = mime_types_length1;
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp8_ = mime_type;
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp9_ = g_strdup (_tmp8_);
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_vala_array_add44 (&mime_types, &mime_types_length1, &_mime_types_size_, _tmp9_);
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (mime_type);
#line 2225 "PhotoFileFormat.c"
}
}
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
mime_type_collection = (_vala_array_free (mime_type_collection, mime_type_collection_length1, (GDestroyNotify) g_free), NULL);
#line 2230 "PhotoFileFormat.c"
}
}
}
#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
file_format_collection = (g_free (file_format_collection), NULL);
#line 2236 "PhotoFileFormat.c"
}
#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp10_ = mime_types;
#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp10__length1 = mime_types_length1;
#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (result_length1) {
#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*result_length1 = _tmp10__length1;
#line 2246 "PhotoFileFormat.c"
}
#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp10_;
#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 2252 "PhotoFileFormat.c"
}
GType photo_file_format_get_type (void) {
static volatile gsize photo_file_format_type_id__volatile = 0;
if (g_once_init_enter (&photo_file_format_type_id__volatile)) {
static const GEnumValue values[] = {{PHOTO_FILE_FORMAT_JFIF, "PHOTO_FILE_FORMAT_JFIF", "jfif"}, {PHOTO_FILE_FORMAT_RAW, "PHOTO_FILE_FORMAT_RAW", "raw"}, {PHOTO_FILE_FORMAT_PNG, "PHOTO_FILE_FORMAT_PNG", "png"}, {PHOTO_FILE_FORMAT_TIFF, "PHOTO_FILE_FORMAT_TIFF", "tiff"}, {PHOTO_FILE_FORMAT_BMP, "PHOTO_FILE_FORMAT_BMP", "bmp"}, {PHOTO_FILE_FORMAT_UNKNOWN, "PHOTO_FILE_FORMAT_UNKNOWN", "unknown"}, {0, NULL, NULL}};
GType photo_file_format_type_id;
photo_file_format_type_id = g_enum_register_static ("PhotoFileFormat", values);
g_once_init_leave (&photo_file_format_type_id__volatile, photo_file_format_type_id);
}
return photo_file_format_type_id__volatile;
}
static PhotoFileFormatProperties* photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self) {
#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_get_properties'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2273 "PhotoFileFormat.c"
}
PhotoFileFormatProperties* photo_file_format_driver_get_properties (PhotoFileFormatDriver* self) {
#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->get_properties (self);
#line 2282 "PhotoFileFormat.c"
}
static PhotoFileReader* photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self, const gchar* filepath) {
#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_reader'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2291 "PhotoFileFormat.c"
}
PhotoFileReader* photo_file_format_driver_create_reader (PhotoFileFormatDriver* self, const gchar* filepath) {
#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_reader (self, filepath);
#line 2300 "PhotoFileFormat.c"
}
static PhotoMetadata* photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self) {
#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2309 "PhotoFileFormat.c"
}
PhotoMetadata* photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self) {
#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_metadata (self);
#line 2318 "PhotoFileFormat.c"
}
static gboolean photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self) {
#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_can_write_image'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return FALSE;
#line 2327 "PhotoFileFormat.c"
}
gboolean photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self) {
#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), FALSE);
#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->can_write_image (self);
#line 2336 "PhotoFileFormat.c"
}
static gboolean photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self) {
#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_can_write_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return FALSE;
#line 2345 "PhotoFileFormat.c"
}
gboolean photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self) {
#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), FALSE);
#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->can_write_metadata (self);
#line 2354 "PhotoFileFormat.c"
}
static PhotoFileWriter* photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self, const gchar* filepath) {
#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_writer'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2363 "PhotoFileFormat.c"
}
PhotoFileWriter* photo_file_format_driver_create_writer (PhotoFileFormatDriver* self, const gchar* filepath) {
#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_writer (self, filepath);
#line 2372 "PhotoFileFormat.c"
}
static PhotoFileMetadataWriter* photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self, const gchar* filepath) {
#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_metadata_writer'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2381 "PhotoFileFormat.c"
}
PhotoFileMetadataWriter* photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self, const gchar* filepath) {
#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_metadata_writer (self, filepath);
#line 2390 "PhotoFileFormat.c"
}
static PhotoFileSniffer* photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options) {
#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_sniffer'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2399 "PhotoFileFormat.c"
}
PhotoFileSniffer* photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options) {
#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_sniffer (self, file, options);
#line 2408 "PhotoFileFormat.c"
}
PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type) {
PhotoFileFormatDriver* self = NULL;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
self = (PhotoFileFormatDriver*) g_type_create_instance (object_type);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return self;
#line 2418 "PhotoFileFormat.c"
}
static void value_photo_file_format_driver_init (GValue* value) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = NULL;
#line 2425 "PhotoFileFormat.c"
}
static void value_photo_file_format_driver_free_value (GValue* value) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (value->data[0].v_pointer) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_driver_unref (value->data[0].v_pointer);
#line 2434 "PhotoFileFormat.c"
}
}
static void value_photo_file_format_driver_copy_value (const GValue* src_value, GValue* dest_value) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (src_value->data[0].v_pointer) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
dest_value->data[0].v_pointer = photo_file_format_driver_ref (src_value->data[0].v_pointer);
#line 2444 "PhotoFileFormat.c"
} else {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
dest_value->data[0].v_pointer = NULL;
#line 2448 "PhotoFileFormat.c"
}
}
static gpointer value_photo_file_format_driver_peek_pointer (const GValue* value) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return value->data[0].v_pointer;
#line 2456 "PhotoFileFormat.c"
}
static gchar* value_photo_file_format_driver_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (collect_values[0].v_pointer) {
#line 2463 "PhotoFileFormat.c"
PhotoFileFormatDriver* object;
object = collect_values[0].v_pointer;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (object->parent_instance.g_class == NULL) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 2470 "PhotoFileFormat.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 2474 "PhotoFileFormat.c"
}
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = photo_file_format_driver_ref (object);
#line 2478 "PhotoFileFormat.c"
} else {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = NULL;
#line 2482 "PhotoFileFormat.c"
}
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2486 "PhotoFileFormat.c"
}
static gchar* value_photo_file_format_driver_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoFileFormatDriver** object_p;
object_p = collect_values[0].v_pointer;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (!object_p) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 2497 "PhotoFileFormat.c"
}
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (!value->data[0].v_pointer) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*object_p = NULL;
#line 2503 "PhotoFileFormat.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*object_p = value->data[0].v_pointer;
#line 2507 "PhotoFileFormat.c"
} else {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*object_p = photo_file_format_driver_ref (value->data[0].v_pointer);
#line 2511 "PhotoFileFormat.c"
}
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2515 "PhotoFileFormat.c"
}
GParamSpec* param_spec_photo_file_format_driver (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPhotoFileFormatDriver* spec;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_FORMAT_DRIVER), NULL);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return G_PARAM_SPEC (spec);
#line 2529 "PhotoFileFormat.c"
}
gpointer value_get_photo_file_format_driver (const GValue* value) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER), NULL);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return value->data[0].v_pointer;
#line 2538 "PhotoFileFormat.c"
}
void value_set_photo_file_format_driver (GValue* value, gpointer v_object) {
PhotoFileFormatDriver* old;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER));
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
old = value->data[0].v_pointer;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (v_object) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_DRIVER));
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = v_object;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_driver_ref (value->data[0].v_pointer);
#line 2558 "PhotoFileFormat.c"
} else {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = NULL;
#line 2562 "PhotoFileFormat.c"
}
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (old) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_driver_unref (old);
#line 2568 "PhotoFileFormat.c"
}
}
void value_take_photo_file_format_driver (GValue* value, gpointer v_object) {
PhotoFileFormatDriver* old;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER));
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
old = value->data[0].v_pointer;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (v_object) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_DRIVER));
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = v_object;
#line 2587 "PhotoFileFormat.c"
} else {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = NULL;
#line 2591 "PhotoFileFormat.c"
}
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (old) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_driver_unref (old);
#line 2597 "PhotoFileFormat.c"
}
}
static void photo_file_format_driver_class_init (PhotoFileFormatDriverClass * klass) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_driver_parent_class = g_type_class_peek_parent (klass);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->finalize = photo_file_format_driver_finalize;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->get_properties = photo_file_format_driver_real_get_properties;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->create_reader = photo_file_format_driver_real_create_reader;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->create_metadata = photo_file_format_driver_real_create_metadata;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->can_write_image = photo_file_format_driver_real_can_write_image;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->can_write_metadata = photo_file_format_driver_real_can_write_metadata;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->create_writer = photo_file_format_driver_real_create_writer;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = photo_file_format_driver_real_create_metadata_writer;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatDriverClass *) klass)->create_sniffer = photo_file_format_driver_real_create_sniffer;
#line 2623 "PhotoFileFormat.c"
}
static void photo_file_format_driver_instance_init (PhotoFileFormatDriver * self) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
self->ref_count = 1;
#line 2630 "PhotoFileFormat.c"
}
static void photo_file_format_driver_finalize (PhotoFileFormatDriver* obj) {
PhotoFileFormatDriver * self;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_signal_handlers_destroy (self);
#line 2640 "PhotoFileFormat.c"
}
GType photo_file_format_driver_get_type (void) {
static volatile gsize photo_file_format_driver_type_id__volatile = 0;
if (g_once_init_enter (&photo_file_format_driver_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_photo_file_format_driver_init, value_photo_file_format_driver_free_value, value_photo_file_format_driver_copy_value, value_photo_file_format_driver_peek_pointer, "p", value_photo_file_format_driver_collect_value, "p", value_photo_file_format_driver_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileFormatDriver), 0, (GInstanceInitFunc) photo_file_format_driver_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_file_format_driver_type_id;
photo_file_format_driver_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileFormatDriver", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
g_once_init_leave (&photo_file_format_driver_type_id__volatile, photo_file_format_driver_type_id);
}
return photo_file_format_driver_type_id__volatile;
}
gpointer photo_file_format_driver_ref (gpointer instance) {
PhotoFileFormatDriver* self;
self = instance;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_atomic_int_inc (&self->ref_count);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return instance;
#line 2665 "PhotoFileFormat.c"
}
void photo_file_format_driver_unref (gpointer instance) {
PhotoFileFormatDriver* self;
self = instance;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->finalize (self);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 2678 "PhotoFileFormat.c"
}
}
GType photo_file_format_flags_get_type (void) {
static volatile gsize photo_file_format_flags_type_id__volatile = 0;
if (g_once_init_enter (&photo_file_format_flags_type_id__volatile)) {
static const GEnumValue values[] = {{PHOTO_FILE_FORMAT_FLAGS_NONE, "PHOTO_FILE_FORMAT_FLAGS_NONE", "none"}, {0, NULL, NULL}};
GType photo_file_format_flags_type_id;
photo_file_format_flags_type_id = g_enum_register_static ("PhotoFileFormatFlags", values);
g_once_init_leave (&photo_file_format_flags_type_id__volatile, photo_file_format_flags_type_id);
}
return photo_file_format_flags_type_id__volatile;
}
static PhotoFileFormat photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self) {
#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_file_format'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return 0;
#line 2700 "PhotoFileFormat.c"
}
PhotoFileFormat photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self) {
#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), 0);
#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_file_format (self);
#line 2709 "PhotoFileFormat.c"
}
static PhotoFileFormatFlags photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self) {
#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_flags'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return 0;
#line 2718 "PhotoFileFormat.c"
}
PhotoFileFormatFlags photo_file_format_properties_get_flags (PhotoFileFormatProperties* self) {
#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), 0);
#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_flags (self);
#line 2727 "PhotoFileFormat.c"
}
static gboolean photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext) {
gboolean result = FALSE;
const gchar* _tmp0_ = NULL;
gint _tmp1_ = 0;
gchar** _tmp2_ = NULL;
gchar** _tmp3_ = NULL;
gint _tmp3__length1 = 0;
gboolean _tmp4_ = FALSE;
gboolean _tmp5_ = FALSE;
#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (ext != NULL, FALSE);
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = ext;
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = photo_file_format_properties_get_known_extensions (self, &_tmp1_);
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = _tmp2_;
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3__length1 = _tmp1_;
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp4_ = is_in_ci_array (_tmp0_, _tmp3_, _tmp1_);
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = _tmp4_;
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp5_;
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 2760 "PhotoFileFormat.c"
}
gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext) {
#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), FALSE);
#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->is_recognized_extension (self, ext);
#line 2769 "PhotoFileFormat.c"
}
static gchar* photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self) {
#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_default_extension'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2778 "PhotoFileFormat.c"
}
gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self) {
#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_default_extension (self);
#line 2787 "PhotoFileFormat.c"
}
static gchar** photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1) {
#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_known_extensions'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2796 "PhotoFileFormat.c"
}
gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1) {
#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_known_extensions (self, result_length1);
#line 2805 "PhotoFileFormat.c"
}
static gchar* photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self) {
#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_default_mime_type'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2814 "PhotoFileFormat.c"
}
gchar* photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self) {
#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_default_mime_type (self);
#line 2823 "PhotoFileFormat.c"
}
static gchar** photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self, int* result_length1) {
#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_mime_types'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2832 "PhotoFileFormat.c"
}
gchar** photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self, int* result_length1) {
#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_mime_types (self, result_length1);
#line 2841 "PhotoFileFormat.c"
}
static gchar* photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self) {
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_user_visible_name'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 2850 "PhotoFileFormat.c"
}
gchar* photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self) {
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_user_visible_name (self);
#line 2859 "PhotoFileFormat.c"
}
static gpointer _g_object_ref0 (gpointer self) {
#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return self ? g_object_ref (self) : NULL;
#line 2866 "PhotoFileFormat.c"
}
GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, GFile* file) {
GFile* result = NULL;
gchar* name = NULL;
gchar* ext = NULL;
GFile* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
const gchar* _tmp6_ = NULL;
GFile* _tmp11_ = NULL;
GFile* _tmp12_ = NULL;
GFile* _tmp13_ = NULL;
const gchar* _tmp14_ = NULL;
gchar* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
gchar* _tmp17_ = NULL;
gchar* _tmp18_ = NULL;
GFile* _tmp19_ = NULL;
GFile* _tmp20_ = NULL;
#line 401 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
#line 401 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp0_ = file;
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp1_ = g_file_get_basename (_tmp0_);
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp2_ = _tmp1_;
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
disassemble_filename (_tmp2_, &_tmp3_, &_tmp4_);
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
name = _tmp3_;
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
ext = _tmp4_;
#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (_tmp2_);
#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp6_ = ext;
#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp6_ != NULL) {
#line 2917 "PhotoFileFormat.c"
const gchar* _tmp7_ = NULL;
gboolean _tmp8_ = FALSE;
#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp7_ = ext;
#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp8_ = photo_file_format_properties_is_recognized_extension (self, _tmp7_);
#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = _tmp8_;
#line 2926 "PhotoFileFormat.c"
} else {
#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp5_ = FALSE;
#line 2930 "PhotoFileFormat.c"
}
#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (_tmp5_) {
#line 2934 "PhotoFileFormat.c"
GFile* _tmp9_ = NULL;
GFile* _tmp10_ = NULL;
#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp9_ = file;
#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp10_ = _g_object_ref0 (_tmp9_);
#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp10_;
#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 2949 "PhotoFileFormat.c"
}
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp11_ = file;
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp12_ = g_file_get_parent (_tmp11_);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp13_ = _tmp12_;
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp14_ = name;
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp15_ = photo_file_format_properties_get_default_extension (self);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp16_ = _tmp15_;
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp17_ = g_strdup_printf ("%s.%s", _tmp14_, _tmp16_);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp18_ = _tmp17_;
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp19_ = g_file_get_child (_tmp13_, _tmp18_);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_tmp20_ = _tmp19_;
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (_tmp18_);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (_tmp16_);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_object_unref0 (_tmp13_);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
result = _tmp20_;
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (ext);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
_g_free0 (name);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return result;
#line 2985 "PhotoFileFormat.c"
}
PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type) {
PhotoFileFormatProperties* self = NULL;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
self = (PhotoFileFormatProperties*) g_type_create_instance (object_type);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return self;
#line 2995 "PhotoFileFormat.c"
}
static void value_photo_file_format_properties_init (GValue* value) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = NULL;
#line 3002 "PhotoFileFormat.c"
}
static void value_photo_file_format_properties_free_value (GValue* value) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (value->data[0].v_pointer) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_properties_unref (value->data[0].v_pointer);
#line 3011 "PhotoFileFormat.c"
}
}
static void value_photo_file_format_properties_copy_value (const GValue* src_value, GValue* dest_value) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (src_value->data[0].v_pointer) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
dest_value->data[0].v_pointer = photo_file_format_properties_ref (src_value->data[0].v_pointer);
#line 3021 "PhotoFileFormat.c"
} else {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
dest_value->data[0].v_pointer = NULL;
#line 3025 "PhotoFileFormat.c"
}
}
static gpointer value_photo_file_format_properties_peek_pointer (const GValue* value) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return value->data[0].v_pointer;
#line 3033 "PhotoFileFormat.c"
}
static gchar* value_photo_file_format_properties_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (collect_values[0].v_pointer) {
#line 3040 "PhotoFileFormat.c"
PhotoFileFormatProperties* object;
object = collect_values[0].v_pointer;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (object->parent_instance.g_class == NULL) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 3047 "PhotoFileFormat.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 3051 "PhotoFileFormat.c"
}
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = photo_file_format_properties_ref (object);
#line 3055 "PhotoFileFormat.c"
} else {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = NULL;
#line 3059 "PhotoFileFormat.c"
}
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 3063 "PhotoFileFormat.c"
}
static gchar* value_photo_file_format_properties_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoFileFormatProperties** object_p;
object_p = collect_values[0].v_pointer;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (!object_p) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 3074 "PhotoFileFormat.c"
}
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (!value->data[0].v_pointer) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*object_p = NULL;
#line 3080 "PhotoFileFormat.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*object_p = value->data[0].v_pointer;
#line 3084 "PhotoFileFormat.c"
} else {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
*object_p = photo_file_format_properties_ref (value->data[0].v_pointer);
#line 3088 "PhotoFileFormat.c"
}
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return NULL;
#line 3092 "PhotoFileFormat.c"
}
GParamSpec* param_spec_photo_file_format_properties (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPhotoFileFormatProperties* spec;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_FORMAT_PROPERTIES), NULL);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return G_PARAM_SPEC (spec);
#line 3106 "PhotoFileFormat.c"
}
gpointer value_get_photo_file_format_properties (const GValue* value) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES), NULL);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return value->data[0].v_pointer;
#line 3115 "PhotoFileFormat.c"
}
void value_set_photo_file_format_properties (GValue* value, gpointer v_object) {
PhotoFileFormatProperties* old;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES));
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
old = value->data[0].v_pointer;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (v_object) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_PROPERTIES));
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = v_object;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_properties_ref (value->data[0].v_pointer);
#line 3135 "PhotoFileFormat.c"
} else {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = NULL;
#line 3139 "PhotoFileFormat.c"
}
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (old) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_properties_unref (old);
#line 3145 "PhotoFileFormat.c"
}
}
void value_take_photo_file_format_properties (GValue* value, gpointer v_object) {
PhotoFileFormatProperties* old;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES));
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
old = value->data[0].v_pointer;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (v_object) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_PROPERTIES));
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = v_object;
#line 3164 "PhotoFileFormat.c"
} else {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
value->data[0].v_pointer = NULL;
#line 3168 "PhotoFileFormat.c"
}
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (old) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_properties_unref (old);
#line 3174 "PhotoFileFormat.c"
}
}
static void photo_file_format_properties_class_init (PhotoFileFormatPropertiesClass * klass) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
photo_file_format_properties_parent_class = g_type_class_peek_parent (klass);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->finalize = photo_file_format_properties_finalize;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->get_file_format = photo_file_format_properties_real_get_file_format;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->get_flags = photo_file_format_properties_real_get_flags;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->is_recognized_extension = photo_file_format_properties_real_is_recognized_extension;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = photo_file_format_properties_real_get_default_extension;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = photo_file_format_properties_real_get_known_extensions;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = photo_file_format_properties_real_get_default_mime_type;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = photo_file_format_properties_real_get_mime_types;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = photo_file_format_properties_real_get_user_visible_name;
#line 3200 "PhotoFileFormat.c"
}
static void photo_file_format_properties_instance_init (PhotoFileFormatProperties * self) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
self->ref_count = 1;
#line 3207 "PhotoFileFormat.c"
}
static void photo_file_format_properties_finalize (PhotoFileFormatProperties* obj) {
PhotoFileFormatProperties * self;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_signal_handlers_destroy (self);
#line 3217 "PhotoFileFormat.c"
}
GType photo_file_format_properties_get_type (void) {
static volatile gsize photo_file_format_properties_type_id__volatile = 0;
if (g_once_init_enter (&photo_file_format_properties_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_photo_file_format_properties_init, value_photo_file_format_properties_free_value, value_photo_file_format_properties_copy_value, value_photo_file_format_properties_peek_pointer, "p", value_photo_file_format_properties_collect_value, "p", value_photo_file_format_properties_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileFormatProperties), 0, (GInstanceInitFunc) photo_file_format_properties_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_file_format_properties_type_id;
photo_file_format_properties_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileFormatProperties", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
g_once_init_leave (&photo_file_format_properties_type_id__volatile, photo_file_format_properties_type_id);
}
return photo_file_format_properties_type_id__volatile;
}
gpointer photo_file_format_properties_ref (gpointer instance) {
PhotoFileFormatProperties* self;
self = instance;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_atomic_int_inc (&self->ref_count);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
return instance;
#line 3242 "PhotoFileFormat.c"
}
void photo_file_format_properties_unref (gpointer instance) {
PhotoFileFormatProperties* self;
self = instance;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->finalize (self);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 3255 "PhotoFileFormat.c"
}
}
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
if ((array != NULL) && (destroy_func != NULL)) {
int i;
for (i = 0; i < array_length; i = i + 1) {
if (((gpointer*) array)[i] != NULL) {
destroy_func (((gpointer*) array)[i]);
}
}
}
}
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
_vala_array_destroy (array, array_length, destroy_func);
g_free (array);
}
|