summaryrefslogtreecommitdiffstats
path: root/src/itdb_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/itdb_device.c')
-rw-r--r--src/itdb_device.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/itdb_device.c b/src/itdb_device.c
index 62391db..b4c5584 100644
--- a/src/itdb_device.c
+++ b/src/itdb_device.c
@@ -1061,3 +1061,25 @@ guint64 itdb_device_get_firewire_id (Itdb_Device *device)
}
return g_ascii_strtoull (fwid, NULL, 16);
}
+
+G_GNUC_INTERNAL gboolean itdb_device_requires_checksum (Itdb_Device *device)
+{
+ const Itdb_IpodInfo *info;
+
+ if (device == NULL) {
+ return FALSE;
+ }
+
+ info = itdb_device_get_ipod_info (device);
+ if (info == NULL) {
+ return FALSE;
+ }
+ switch (info->ipod_generation) {
+ case ITDB_IPOD_GENERATION_CLASSIC_1:
+ return TRUE;
+ case ITDB_IPOD_GENERATION_NANO_3:
+ return TRUE;
+ default:
+ return FALSE;
+ }
+}