This file is indexed.

/usr/share/gtk-doc/html/libgpod/libgpod-Device.html is in libgpod-doc 0.8.2-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Device</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="libgpod Reference Manual">
<link rel="up" href="ch01.html" title="iPod database components">
<link rel="prev" href="libgpod-Chapter-Data.html" title="Chapter Data">
<link rel="next" href="photodb.html" title="Part II. Photo database">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgpod-Chapter-Data.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libgpod Reference Manual</th>
<td><a accesskey="n" href="photodb.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libgpod-Device.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libgpod-Device.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libgpod-Device"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgpod-Device.top_of_page"></a>Device</span></h2>
<p>Device — Data structure holding information about the iPod (model, mount point, etc.)</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgpod-Device.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device">Itdb_Device</a>;
<a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="returnvalue">Itdb_Device</span></a> *       <a class="link" href="libgpod-Device.html#itdb-device-new" title="itdb_device_new ()">itdb_device_new</a>                     (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgpod-Device.html#itdb-device-free" title="itdb_device_free ()">itdb_device_free</a>                    (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgpod-Device.html#itdb-device-set-mountpoint" title="itdb_device_set_mountpoint ()">itdb_device_set_mountpoint</a>          (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mp</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgpod-Device.html#itdb-device-supports-artwork" title="itdb_device_supports_artwork ()">itdb_device_supports_artwork</a>        (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgpod-Device.html#itdb-device-supports-chapter-image" title="itdb_device_supports_chapter_image ()">itdb_device_supports_chapter_image</a>  (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgpod-Device.html#itdb-device-supports-photo" title="itdb_device_supports_photo ()">itdb_device_supports_photo</a>          (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgpod-Device.html#itdb-device-supports-podcast" title="itdb_device_supports_podcast ()">itdb_device_supports_podcast</a>        (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgpod-Device.html#itdb-device-supports-video" title="itdb_device_supports_video ()">itdb_device_supports_video</a>          (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);
struct              <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo">Itdb_IpodInfo</a>;
const <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo"><span class="returnvalue">Itdb_IpodInfo</span></a> * <a class="link" href="libgpod-Device.html#itdb-device-get-ipod-info" title="itdb_device_get_ipod_info ()">itdb_device_get_ipod_info</a>         (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);
const <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo"><span class="returnvalue">Itdb_IpodInfo</span></a> * <a class="link" href="libgpod-Device.html#itdb-info-get-ipod-info-table" title="itdb_info_get_ipod_info_table ()">itdb_info_get_ipod_info_table</a>     (<em class="parameter"><code><span class="type">void</span></code></em>);
enum                <a class="link" href="libgpod-Device.html#Itdb-IpodGeneration" title="enum Itdb_IpodGeneration">Itdb_IpodGeneration</a>;
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="libgpod-Device.html#itdb-info-get-ipod-generation-string" title="itdb_info_get_ipod_generation_string ()">itdb_info_get_ipod_generation_string</a>
                                                        (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-IpodGeneration" title="enum Itdb_IpodGeneration"><span class="type">Itdb_IpodGeneration</span></a> generation</code></em>);
enum                <a class="link" href="libgpod-Device.html#Itdb-IpodModel" title="enum Itdb_IpodModel">Itdb_IpodModel</a>;
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="libgpod-Device.html#itdb-info-get-ipod-model-name-string" title="itdb_info_get_ipod_model_name_string ()">itdb_info_get_ipod_model_name_string</a>
                                                        (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-IpodModel" title="enum Itdb_IpodModel"><span class="type">Itdb_IpodModel</span></a> model</code></em>);
                    <a class="link" href="libgpod-Device.html#Itdb-ArtworkFormat" title="Itdb_ArtworkFormat">Itdb_ArtworkFormat</a>;
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgpod-Device.html#itdb-device-read-sysinfo" title="itdb_device_read_sysinfo ()">itdb_device_read_sysinfo</a>            (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="libgpod-Device.html#itdb-device-get-sysinfo" title="itdb_device_get_sysinfo ()">itdb_device_get_sysinfo</a>             (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *field</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgpod-Device.html#itdb-device-set-sysinfo" title="itdb_device_set_sysinfo ()">itdb_device_set_sysinfo</a>             (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *field</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgpod-Device.html#itdb-device-write-sysinfo" title="itdb_device_write_sysinfo ()">itdb_device_write_sysinfo</a>           (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgpod-Device.description"></a><h2>Description</h2>
<p>
These functions are for reading and setting information about the iPod.
</p>
</div>
<div class="refsect1">
<a name="libgpod-Device.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="Itdb-Device"></a><h3>Itdb_Device</h3>
<pre class="programlisting">typedef struct {
    gchar *mountpoint;
    gint   musicdirs;
    guint  byte_order;
    GHashTable *sysinfo;
    SysInfoIpodProperties *sysinfo_extended;
    gboolean sysinfo_changed;
    gint timezone_shift;
    void *iphone_sync_context;
    int iphone_sync_nest_level;
} Itdb_Device;
</pre>
<p>
Structure representing an iPod device
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="Itdb-Device.mountpoint"></a>mountpoint</code></em>;</span></p></td>
<td>The mountpoint of the iPod</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-Device.musicdirs"></a>musicdirs</code></em>;</span></p></td>
<td>The number of /iPod_Control/Music/F.. dirs</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="Itdb-Device.byte-order"></a>byte_order</code></em>;</span></p></td>
<td>G_LITTLE_ENDIAN "regular" endianness G_BIG_ENDIAN
"reversed" endianness (e.g. mobile phone iTunesDBs)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *<em class="structfield"><code><a name="Itdb-Device.sysinfo"></a>sysinfo</code></em>;</span></p></td>
<td>A hash with key/value pairs of all entries in
Device/SysInfo</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">SysInfoIpodProperties</span> *<em class="structfield"><code><a name="Itdb-Device.sysinfo-extended"></a>sysinfo_extended</code></em>;</span></p></td>
<td>The parsed content of SysInfoExtended, which can be NULL</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="Itdb-Device.sysinfo-changed"></a>sysinfo_changed</code></em>;</span></p></td>
<td>True if the sysinfo hash been changed by the user, false
otherwise.  (see <code class="function">itdb_set_sysinfo()</code>)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-Device.timezone-shift"></a>timezone_shift</code></em>;</span></p></td>
<td>The difference in seconds between the current timezone
and UTC</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">void</span> *<em class="structfield"><code><a name="Itdb-Device.iphone-sync-context"></a>iphone_sync_context</code></em>;</span></p></td>
<td>Private data passed as is to libimobiledevice by
itdb_start/stop_sync</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="Itdb-Device.iphone-sync-nest-level"></a>iphone_sync_nest_level</code></em>;</span></p></td>
<td>Nesting count for itdb_start/stop_sync calls
itdb_start/stop_sync</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-new"></a><h3>itdb_device_new ()</h3>
<pre class="programlisting"><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="returnvalue">Itdb_Device</span></a> *       itdb_device_new                     (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> structure
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> which must be freed with
<a class="link" href="libgpod-Device.html#itdb-device-free" title="itdb_device_free ()"><code class="function">itdb_device_free()</code></a> when no longer needed</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-free"></a><h3>itdb_device_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                itdb_device_free                    (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);</pre>
<p>
Frees memory used by <em class="parameter"><code>device</code></em>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-set-mountpoint"></a><h3>itdb_device_set_mountpoint ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                itdb_device_set_mountpoint          (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mp</code></em>);</pre>
<p>
Sets the mountpoint of <em class="parameter"><code>device</code></em> to <em class="parameter"><code>mp</code></em> and update the cached device 
information (in particular, re-read the SysInfo file)
</p>
<p>
</p>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p>Calling this function invalidates all the artwork in the
<a class="link" href="libgpod-The-Itdb-iTunesDB-structure.html#Itdb-iTunesDB" title="struct Itdb_iTunesDB"><span class="type">Itdb_iTunesDB</span></a> database using this <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>. Trying to access this
artwork will result in memory corruption. It's recommended to use
<a class="link" href="libgpod-The-Itdb-iTunesDB-structure.html#itdb-set-mountpoint" title="itdb_set_mountpoint ()"><code class="function">itdb_set_mountpoint()</code></a> instead which will clean the invalidated artwork
for you.</p>
</div>
<p>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mp</code></em> :</span></p></td>
<td>the new mount point</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-supports-artwork"></a><h3>itdb_device_supports_artwork ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            itdb_device_supports_artwork        (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);</pre>
<p>
Indicates whether <em class="parameter"><code>device</code></em> can display artwork or not. When dealing
with a non-art capable iPod, no artwork data will be written to the
iPod so you can spare calls to the artwork handling methods.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>true if <em class="parameter"><code>device</code></em> can display artwork.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.5.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-supports-chapter-image"></a><h3>itdb_device_supports_chapter_image ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            itdb_device_supports_chapter_image  (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);</pre>
<p>
Indicates whether <em class="parameter"><code>device</code></em> can display chapter images or not.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>true if <em class="parameter"><code>device</code></em> can display chapter images.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.2</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-supports-photo"></a><h3>itdb_device_supports_photo ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            itdb_device_supports_photo          (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);</pre>
<p>
Indicates whether <em class="parameter"><code>device</code></em> can display photos or not.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>true if <em class="parameter"><code>device</code></em> can display photos.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.5.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-supports-podcast"></a><h3>itdb_device_supports_podcast ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            itdb_device_supports_podcast        (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);</pre>
<p>
Indicates whether <em class="parameter"><code>device</code></em> can play podcasts or not.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>true if <em class="parameter"><code>device</code></em> can play podcasts.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.2</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-supports-video"></a><h3>itdb_device_supports_video ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            itdb_device_supports_video          (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);</pre>
<p>
Indicates whether <em class="parameter"><code>device</code></em> can play videos or not.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>true if <em class="parameter"><code>device</code></em> can play videos.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="Itdb-IpodInfo"></a><h3>struct Itdb_IpodInfo</h3>
<pre class="programlisting">struct Itdb_IpodInfo {
    const gchar *model_number;
    const double capacity;
    const Itdb_IpodModel ipod_model;
    const Itdb_IpodGeneration ipod_generation;
    const guint musicdirs;
    /* reserved for future use */
    const gint32 reserved_int1;
    const gint32 reserved_int2;
    gconstpointer reserved1;
    gconstpointer reserved2;
};
</pre>
<p>
Structure representing information about an iPod
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="Itdb-IpodInfo.model-number"></a>model_number</code></em>;</span></p></td>
<td>The model number.  This is abbreviated.  If the first
character is not numeric, it is ommited. e.g.
"MA350 -&gt; A350", "M9829 -&gt; 9829"</td>
</tr>
<tr>
<td><p><span class="term">const <span class="type">double</span> <em class="structfield"><code><a name="Itdb-IpodInfo.capacity"></a>capacity</code></em>;</span></p></td>
<td>The iPod's capacity in gigabytes</td>
</tr>
<tr>
<td><p><span class="term">const <a class="link" href="libgpod-Device.html#Itdb-IpodModel" title="enum Itdb_IpodModel"><span class="type">Itdb_IpodModel</span></a> <em class="structfield"><code><a name="Itdb-IpodInfo.ipod-model"></a>ipod_model</code></em>;</span></p></td>
<td>The iPod model</td>
</tr>
<tr>
<td><p><span class="term">const <a class="link" href="libgpod-Device.html#Itdb-IpodGeneration" title="enum Itdb_IpodGeneration"><span class="type">Itdb_IpodGeneration</span></a> <em class="structfield"><code><a name="Itdb-IpodInfo.ipod-generation"></a>ipod_generation</code></em>;</span></p></td>
<td>The iPod generation</td>
</tr>
<tr>
<td><p><span class="term">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="Itdb-IpodInfo.musicdirs"></a>musicdirs</code></em>;</span></p></td>
<td>The number of music (Fnn) dirs created by iTunes. The
exact number seems to be version dependent. Therefore, the
numbers here represent a mixture of reported values and
common sense.  Note: this number does not necessarily
represent the number of dirs present on a particular iPod.
It is used when setting up a new iPod from scratch.</td>
</tr>
<tr>
<td><p><span class="term">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="Itdb-IpodInfo.reserved-int1"></a>reserved_int1</code></em>;</span></p></td>
<td>Reserved for future use</td>
</tr>
<tr>
<td><p><span class="term">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="Itdb-IpodInfo.reserved-int2"></a>reserved_int2</code></em>;</span></p></td>
<td>Reserved for future use</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> <em class="structfield"><code><a name="Itdb-IpodInfo.reserved1"></a>reserved1</code></em>;</span></p></td>
<td>Reserved for future use</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> <em class="structfield"><code><a name="Itdb-IpodInfo.reserved2"></a>reserved2</code></em>;</span></p></td>
<td>Reserved for future use</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-get-ipod-info"></a><h3>itdb_device_get_ipod_info ()</h3>
<pre class="programlisting">const <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo"><span class="returnvalue">Itdb_IpodInfo</span></a> * itdb_device_get_ipod_info         (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);</pre>
<p>
Retrieve the <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo"><span class="type">Itdb_IpodInfo</span></a> entry for this iPod
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo"><span class="type">Itdb_IpodInfo</span></a> entry for this iPod</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-info-get-ipod-info-table"></a><h3>itdb_info_get_ipod_info_table ()</h3>
<pre class="programlisting">const <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo"><span class="returnvalue">Itdb_IpodInfo</span></a> * itdb_info_get_ipod_info_table     (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Return a pointer to the start of valid iPod model descriptions,
which is an array of <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo"><span class="type">Itdb_IpodInfo</span></a> entries. This can be useful if you
want to build a list of all iPod models known to the current libgpod.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to the array of <a class="link" href="libgpod-Device.html#Itdb-IpodInfo" title="struct Itdb_IpodInfo"><span class="type">Itdb_IpodInfo</span></a> entries.</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="Itdb-IpodGeneration"></a><h3>enum Itdb_IpodGeneration</h3>
<pre class="programlisting">typedef enum {
    ITDB_IPOD_GENERATION_UNKNOWN,
    ITDB_IPOD_GENERATION_FIRST,
    ITDB_IPOD_GENERATION_SECOND,
    ITDB_IPOD_GENERATION_THIRD,
    ITDB_IPOD_GENERATION_FOURTH,
    ITDB_IPOD_GENERATION_PHOTO,
    ITDB_IPOD_GENERATION_MOBILE,
    ITDB_IPOD_GENERATION_MINI_1,
    ITDB_IPOD_GENERATION_MINI_2,
    ITDB_IPOD_GENERATION_SHUFFLE_1,
    ITDB_IPOD_GENERATION_SHUFFLE_2,
    ITDB_IPOD_GENERATION_SHUFFLE_3,
    ITDB_IPOD_GENERATION_NANO_1,
    ITDB_IPOD_GENERATION_NANO_2,
    ITDB_IPOD_GENERATION_NANO_3,
    ITDB_IPOD_GENERATION_NANO_4,
    ITDB_IPOD_GENERATION_VIDEO_1,
    ITDB_IPOD_GENERATION_VIDEO_2,
    ITDB_IPOD_GENERATION_CLASSIC_1,
    ITDB_IPOD_GENERATION_CLASSIC_2,
    ITDB_IPOD_GENERATION_TOUCH_1,
    ITDB_IPOD_GENERATION_IPHONE_1,
    ITDB_IPOD_GENERATION_SHUFFLE_4,
    ITDB_IPOD_GENERATION_TOUCH_2,
    ITDB_IPOD_GENERATION_IPHONE_2,
    ITDB_IPOD_GENERATION_IPHONE_3,
    ITDB_IPOD_GENERATION_CLASSIC_3,
    ITDB_IPOD_GENERATION_NANO_5,
    ITDB_IPOD_GENERATION_TOUCH_3,
    ITDB_IPOD_GENERATION_IPAD_1,
    ITDB_IPOD_GENERATION_IPHONE_4,
    ITDB_IPOD_GENERATION_TOUCH_4,
    ITDB_IPOD_GENERATION_NANO_6
} Itdb_IpodGeneration;
</pre>
<p>
iPod generation information
</p>
<p>
See http://support.apple.com/kb/HT1353 and http://en.wikipedia.org/wiki/IPod
for more details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-UNKNOWN:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_UNKNOWN</code></span></p></td>
<td>Unknown iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-FIRST:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_FIRST</code></span></p></td>
<td>First Generation iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-SECOND:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_SECOND</code></span></p></td>
<td>Second Generation iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-THIRD:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_THIRD</code></span></p></td>
<td>Third Generation iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-FOURTH:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_FOURTH</code></span></p></td>
<td>Fourth Generation iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-PHOTO:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_PHOTO</code></span></p></td>
<td>Photo iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-MOBILE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_MOBILE</code></span></p></td>
<td>Mobile iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-MINI-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_MINI_1</code></span></p></td>
<td>First Generation iPod Mini
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-MINI-2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_MINI_2</code></span></p></td>
<td>Second Generation iPod Mini
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-SHUFFLE-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_SHUFFLE_1</code></span></p></td>
<td>First Generation iPod Shuffle
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-SHUFFLE-2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_SHUFFLE_2</code></span></p></td>
<td>Second Generation iPod Shuffle
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-SHUFFLE-3:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_SHUFFLE_3</code></span></p></td>
<td>Third Generation iPod Shuffle
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-NANO-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_NANO_1</code></span></p></td>
<td>First Generation iPod Nano
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-NANO-2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_NANO_2</code></span></p></td>
<td>Second Generation iPod Nano
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-NANO-3:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_NANO_3</code></span></p></td>
<td>Third Generation iPod Nano
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-NANO-4:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_NANO_4</code></span></p></td>
<td>Fourth Generation iPod Nano
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-VIDEO-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_VIDEO_1</code></span></p></td>
<td>First Generation iPod Video (aka 5g)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-VIDEO-2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_VIDEO_2</code></span></p></td>
<td>Second Generation iPod Video (aka 5.5g)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-CLASSIC-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_CLASSIC_1</code></span></p></td>
<td>First Generation iPod Classic
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-CLASSIC-2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_CLASSIC_2</code></span></p></td>
<td>Second Generation iPod Classic
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-TOUCH-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_TOUCH_1</code></span></p></td>
<td>First Generation iPod Touch
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-IPHONE-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_IPHONE_1</code></span></p></td>
<td>First Generation iPhone
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-SHUFFLE-4:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_SHUFFLE_4</code></span></p></td>
<td>Third Generation iPod Shuffle
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-TOUCH-2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_TOUCH_2</code></span></p></td>
<td>Second Generation iPod Touch
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-IPHONE-2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_IPHONE_2</code></span></p></td>
<td>Second Generation iPhone (aka iPhone 3G)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-IPHONE-3:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_IPHONE_3</code></span></p></td>
<td>Third Generation iPhone (aka iPhone 3GS)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-CLASSIC-3:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_CLASSIC_3</code></span></p></td>
<td>Third Generation iPod Classic
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-NANO-5:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_NANO_5</code></span></p></td>
<td>Fifth Generation iPod Nano (with camera)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-TOUCH-3:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_TOUCH_3</code></span></p></td>
<td>Third Generation iPod Touch
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-IPAD-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_IPAD_1</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-IPHONE-4:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_IPHONE_4</code></span></p></td>
<td>Fourth Generation iPhone
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-TOUCH-4:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_TOUCH_4</code></span></p></td>
<td>Fourth Generation iPod Touch
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-GENERATION-NANO-6:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_GENERATION_NANO_6</code></span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-info-get-ipod-generation-string"></a><h3>itdb_info_get_ipod_generation_string ()</h3>
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       itdb_info_get_ipod_generation_string
                                                        (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-IpodGeneration" title="enum Itdb_IpodGeneration"><span class="type">Itdb_IpodGeneration</span></a> generation</code></em>);</pre>
<p>
Return the iPod's generic generation name, like "First Generation",
"Mobile Phone"...
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>generation</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-IpodGeneration" title="enum Itdb_IpodGeneration"><span class="type">Itdb_IpodGeneration</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to the generation name. This is a static
string and must not be <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>d.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="Itdb-IpodModel"></a><h3>enum Itdb_IpodModel</h3>
<pre class="programlisting">typedef enum {
    ITDB_IPOD_MODEL_INVALID,
    ITDB_IPOD_MODEL_UNKNOWN,
    ITDB_IPOD_MODEL_COLOR,
    ITDB_IPOD_MODEL_COLOR_U2,
    ITDB_IPOD_MODEL_REGULAR,
    ITDB_IPOD_MODEL_REGULAR_U2,
    ITDB_IPOD_MODEL_MINI,
    ITDB_IPOD_MODEL_MINI_BLUE,
    ITDB_IPOD_MODEL_MINI_PINK,
    ITDB_IPOD_MODEL_MINI_GREEN,
    ITDB_IPOD_MODEL_MINI_GOLD,
    ITDB_IPOD_MODEL_SHUFFLE,
    ITDB_IPOD_MODEL_NANO_WHITE,
    ITDB_IPOD_MODEL_NANO_BLACK,
    ITDB_IPOD_MODEL_VIDEO_WHITE,
    ITDB_IPOD_MODEL_VIDEO_BLACK,
    ITDB_IPOD_MODEL_MOBILE_1,
    ITDB_IPOD_MODEL_VIDEO_U2,
    ITDB_IPOD_MODEL_NANO_SILVER,
    ITDB_IPOD_MODEL_NANO_BLUE,
    ITDB_IPOD_MODEL_NANO_GREEN,
    ITDB_IPOD_MODEL_NANO_PINK,
    ITDB_IPOD_MODEL_NANO_RED,
    ITDB_IPOD_MODEL_NANO_YELLOW,
    ITDB_IPOD_MODEL_NANO_PURPLE,
    ITDB_IPOD_MODEL_NANO_ORANGE,
    ITDB_IPOD_MODEL_IPHONE_1,
    ITDB_IPOD_MODEL_SHUFFLE_SILVER,
    ITDB_IPOD_MODEL_SHUFFLE_PINK,
    ITDB_IPOD_MODEL_SHUFFLE_BLUE,
    ITDB_IPOD_MODEL_SHUFFLE_GREEN,
    ITDB_IPOD_MODEL_SHUFFLE_ORANGE,
    ITDB_IPOD_MODEL_SHUFFLE_PURPLE,
    ITDB_IPOD_MODEL_SHUFFLE_RED,
    ITDB_IPOD_MODEL_CLASSIC_SILVER,
    ITDB_IPOD_MODEL_CLASSIC_BLACK,
    ITDB_IPOD_MODEL_TOUCH_SILVER,
    ITDB_IPOD_MODEL_SHUFFLE_BLACK,
    ITDB_IPOD_MODEL_IPHONE_WHITE,
    ITDB_IPOD_MODEL_IPHONE_BLACK,
    ITDB_IPOD_MODEL_SHUFFLE_GOLD,
    ITDB_IPOD_MODEL_SHUFFLE_STAINLESS,
    ITDB_IPOD_MODEL_IPAD
} Itdb_IpodModel;
</pre>
<p>
iPod model information
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-INVALID:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_INVALID</code></span></p></td>
<td>Invalid model
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-UNKNOWN:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_UNKNOWN</code></span></p></td>
<td>Unknown model
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-COLOR:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_COLOR</code></span></p></td>
<td>Color iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-COLOR-U2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_COLOR_U2</code></span></p></td>
<td>Color iPod (U2)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-REGULAR:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_REGULAR</code></span></p></td>
<td>Regular iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-REGULAR-U2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_REGULAR_U2</code></span></p></td>
<td>Regular iPod (U2)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-MINI:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_MINI</code></span></p></td>
<td>iPod Mini
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-MINI-BLUE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_MINI_BLUE</code></span></p></td>
<td>iPod Mini (Blue)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-MINI-PINK:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_MINI_PINK</code></span></p></td>
<td>iPod Mini (Pink)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-MINI-GREEN:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_MINI_GREEN</code></span></p></td>
<td>iPod Mini (Green)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-MINI-GOLD:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_MINI_GOLD</code></span></p></td>
<td>iPod Mini (Gold)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE</code></span></p></td>
<td>iPod Shuffle
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-WHITE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_WHITE</code></span></p></td>
<td>iPod Nano (White)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-BLACK:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_BLACK</code></span></p></td>
<td>iPod Nano (Black)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-VIDEO-WHITE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_VIDEO_WHITE</code></span></p></td>
<td>iPod Video (White)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-VIDEO-BLACK:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_VIDEO_BLACK</code></span></p></td>
<td>iPod Video (Black)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-MOBILE-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_MOBILE_1</code></span></p></td>
<td>Mobile iPod
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-VIDEO-U2:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_VIDEO_U2</code></span></p></td>
<td>iPod Video (U2)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-SILVER:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_SILVER</code></span></p></td>
<td>iPod Nano (Silver)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-BLUE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_BLUE</code></span></p></td>
<td>iPod Nano (Blue)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-GREEN:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_GREEN</code></span></p></td>
<td>iPod Nano (Green)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-PINK:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_PINK</code></span></p></td>
<td>iPod Nano (Pink)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-RED:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_RED</code></span></p></td>
<td>iPod Nano (Red)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-YELLOW:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_YELLOW</code></span></p></td>
<td>iPod Nano (Yellow)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-PURPLE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_PURPLE</code></span></p></td>
<td>iPod Nano (Purple)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-NANO-ORANGE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_NANO_ORANGE</code></span></p></td>
<td>iPod Nano (Orange)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-IPHONE-1:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_IPHONE_1</code></span></p></td>
<td>iPhone
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-SILVER:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_SILVER</code></span></p></td>
<td>iPod Shuffle (Silver)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-PINK:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_PINK</code></span></p></td>
<td>iPod Shuffle (Pink)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-BLUE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_BLUE</code></span></p></td>
<td>iPod Shuffle (Blue)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-GREEN:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_GREEN</code></span></p></td>
<td>iPod Shuffle (Green)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-ORANGE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_ORANGE</code></span></p></td>
<td>iPod Shuffle (Orange)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-PURPLE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_PURPLE</code></span></p></td>
<td>iPod Shuffle (Purple)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-RED:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_RED</code></span></p></td>
<td>iPod Shuffle (Red)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-CLASSIC-SILVER:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_CLASSIC_SILVER</code></span></p></td>
<td>iPod Classic (Silver)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-CLASSIC-BLACK:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_CLASSIC_BLACK</code></span></p></td>
<td>iPod Classic (Black)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-TOUCH-SILVER:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_TOUCH_SILVER</code></span></p></td>
<td>iPod Touch (Silver)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-BLACK:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_BLACK</code></span></p></td>
<td>iPod Shuffle (Black)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-IPHONE-WHITE:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_IPHONE_WHITE</code></span></p></td>
<td>iPhone (White)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-IPHONE-BLACK:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_IPHONE_BLACK</code></span></p></td>
<td>iPhone (Black)
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-GOLD:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_GOLD</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-SHUFFLE-STAINLESS:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_SHUFFLE_STAINLESS</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="ITDB-IPOD-MODEL-IPAD:CAPS"></a><span class="term"><code class="literal">ITDB_IPOD_MODEL_IPAD</code></span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-info-get-ipod-model-name-string"></a><h3>itdb_info_get_ipod_model_name_string ()</h3>
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       itdb_info_get_ipod_model_name_string
                                                        (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-IpodModel" title="enum Itdb_IpodModel"><span class="type">Itdb_IpodModel</span></a> model</code></em>);</pre>
<p>
Return the iPod's generic model name, like "Color", "Nano"...
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-IpodModel" title="enum Itdb_IpodModel"><span class="type">Itdb_IpodModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to the model name. This is a static string
and must not be <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>d.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="Itdb-ArtworkFormat"></a><h3>Itdb_ArtworkFormat</h3>
<pre class="programlisting">typedef struct {
        gint format_id;
        gint width;
        gint height;
        ItdbThumbFormat format;
        gint32 padding;
        gboolean crop;
        gint rotation;
        guchar back_color[4];

        gint display_width;
        gboolean interlaced;
        gint color_adjustment;
        gdouble gamma;
        gint associated_format;
        gint row_bytes_alignment;
} Itdb_ArtworkFormat;
</pre>
<p>
Structure representing the characteristics of the thumbnails to
write to a given .ithmb file. The format of the structure is based
on the way artwork formats are written to SysInfoExtended.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.format-id"></a>format_id</code></em>;</span></p></td>
<td>Unique ID for the format (generally a 4 digit int)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.width"></a>width</code></em>;</span></p></td>
<td>Width of the thumbnail</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.height"></a>height</code></em>;</span></p></td>
<td>Height of the thumbnail</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">ItdbThumbFormat</span> <em class="structfield"><code><a name="Itdb-ArtworkFormat.format"></a>format</code></em>;</span></p></td>
<td>Pixel format of the thumbnail (RGB, YUV, ...)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.padding"></a>padding</code></em>;</span></p></td>
<td>Number of bytes of padding to add after the thumbnail
(not found in SysInfoExtended -- added for
compatibility with hardcoded artwork formats)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.crop"></a>crop</code></em>;</span></p></td>
<td>Indicates if the thumbnail is to be cropped</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.rotation"></a>rotation</code></em>;</span></p></td>
<td>Degrees to rotate the thumbnail</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.back-color"></a>back_color</code></em>[4];</span></p></td>
<td>Background color for the thumbnail</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.display-width"></a>display_width</code></em>;</span></p></td>
<td>Width at which the thumbnail will be displayed
(not currently used)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.interlaced"></a>interlaced</code></em>;</span></p></td>
<td>If TRUE, the thumbnails are interlaced
(not currently used)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.color-adjustment"></a>color_adjustment</code></em>;</span></p></td>
<td>Color adjustment for the thumbnails
(not currently used)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.gamma"></a>gamma</code></em>;</span></p></td>
<td>Gamma value for the thumbails
(not currently used)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.associated-format"></a>associated_format</code></em>;</span></p></td>
<td>Unknown (not currently used)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="Itdb-ArtworkFormat.row-bytes-alignment"></a>row_bytes_alignment</code></em>;</span></p></td>
<td>Specifies the number of bytes a pixel row must be aligned to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-read-sysinfo"></a><h3>itdb_device_read_sysinfo ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            itdb_device_read_sysinfo            (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>);</pre>
<p>
Reads the SysInfo file and stores information in device-&gt;sysinfo for
later use.
</p>
<p>
</p>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p>Calling this function invalidates all the artwork in the
<a class="link" href="libgpod-The-Itdb-iTunesDB-structure.html#Itdb-iTunesDB" title="struct Itdb_iTunesDB"><span class="type">Itdb_iTunesDB</span></a> database using this <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>. Trying to access this
artwork will result in memory corruption. Directly calling this function
shouldn't ever be needed and it will be deprecated
soon.</p>
</div>
<p>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if file could be read, FALSE otherwise</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-get-sysinfo"></a><h3>itdb_device_get_sysinfo ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             itdb_device_get_sysinfo             (<em class="parameter"><code>const <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *field</code></em>);</pre>
<p>
Retrieve specified field from the SysInfo file.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td>
<td>field to retrive information from</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the information associated with <em class="parameter"><code>field</code></em>, or NULL if <em class="parameter"><code>field</code></em>
couldn't be found. <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> after use</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-set-sysinfo"></a><h3>itdb_device_set_sysinfo ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                itdb_device_set_sysinfo             (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *field</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Set specified field. It can later be written to the iPod using
<a class="link" href="libgpod-Device.html#itdb-device-write-sysinfo" title="itdb_device_write_sysinfo ()"><code class="function">itdb_device_write_sysinfo()</code></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td>
<td>field to set</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>value to set (or NULL to remove the field).</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="itdb-device-write-sysinfo"></a><h3>itdb_device_write_sysinfo ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            itdb_device_write_sysinfo           (<em class="parameter"><code><a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a> *device</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Fills the SysInfo file with information in device-&gt;sysinfo. Note:
no directories are created if not already existent.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>an <a class="link" href="libgpod-Device.html#Itdb-Device" title="Itdb_Device"><span class="type">Itdb_Device</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if file could be read, FALSE otherwise</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.4.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>