Revision: 2349
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2349&view=rev
Author:   teuf
Date:     2009-05-02 20:54:02 +0000 (Sat, 02 May 2009)

Log Message:
-----------
Add itdb_ipod_info_from_serial function

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/src/itdb_device.c
    libgpod/trunk/src/itdb_device.h

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2009-05-02 20:53:46 UTC (rev 2348)
+++ libgpod/trunk/ChangeLog     2009-05-02 20:54:02 UTC (rev 2349)
@@ -1,5 +1,10 @@
 2009-05-02  Christophe Fergeau  <[email protected]>
 
+       * src/itdb_device.c:
+       * src/itdb_device.h: add itdb_ipod_info_from_serial function
+
+2009-05-02  Christophe Fergeau  <[email protected]>
+
        * src/itdb_sysinfo_extended_parser.c:
        * src/itdb_sysinfo_extended_parser.h: add functions to parse
        SysInfoExtended from memory

Modified: libgpod/trunk/src/itdb_device.c
===================================================================
--- libgpod/trunk/src/itdb_device.c     2009-05-02 20:53:46 UTC (rev 2348)
+++ libgpod/trunk/src/itdb_device.c     2009-05-02 20:54:02 UTC (rev 2349)
@@ -679,7 +679,6 @@
 };
 
 static const Itdb_IpodInfo *get_ipod_info_from_model_number (const char 
*model_number);
-static const Itdb_IpodInfo *get_ipod_info_from_serial (const char *serial);
 static void itdb_device_set_timezone_info (Itdb_Device *device);
 
 /* Reset or create the SysInfo hash table */
@@ -1023,7 +1022,7 @@
         const char *serial;
 
         serial = itdb_sysinfo_properties_get_serial_number 
(device->sysinfo_extended);
-        info = get_ipod_info_from_serial (serial);
+        info = itdb_ipod_info_from_serial (serial);
         if (info != NULL) {
             return info;
         }
@@ -2029,8 +2028,8 @@
     return g_hash_table_lookup (model_table->model_number_hash, model_number);
 }
 
-static const Itdb_IpodInfo *
-get_ipod_info_from_serial (const char *serial)
+const Itdb_IpodInfo *
+itdb_ipod_info_from_serial (const char *serial)
 {
     struct IpodModelTable *model_table;
     glong len;

Modified: libgpod/trunk/src/itdb_device.h
===================================================================
--- libgpod/trunk/src/itdb_device.h     2009-05-02 20:53:46 UTC (rev 2348)
+++ libgpod/trunk/src/itdb_device.h     2009-05-02 20:54:02 UTC (rev 2349)
@@ -171,6 +171,8 @@
                                                     unsigned char *itdb_data,
                                                     gsize itdb_len,
                                                     GError **error);
+const Itdb_IpodInfo *
+itdb_ipod_info_from_serial (const char *serial);
 
 G_END_DECLS
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to