Fallback for detect post proc.

Yasuhiro MATSUMOTO <[email protected]> Fri, 28 Feb 2014 09:50:10 +0900
Newsgroups gmane.comp.ipod.gtkpod
Message-ID <CAJc+XFNt4iUZACdNnpxm0JSbsA1K-MqX+xbZHZzkbmjRif-xtg@mail.gmail.com>
--===============0166937423352439044==
Content-Type: multipart/alternative; boundary=001a11c027ccecf18604f36cd1ad

--001a11c027ccecf18604f36cd1ad
Content-Type: text/plain; charset=UTF-8

Hi list.

When libimobiledevice doesn't return expected value, we can get post proc
commands via SysInfoExtra.
How about this?

diff --git a/src/itdb_sqlite.c b/src/itdb_sqlite.c
index b5b2975..56c2506 100644
--- a/src/itdb_sqlite.c
+++ b/src/itdb_sqlite.c
@@ -1793,9 +1793,9 @@ static void run_post_process_commands(Itdb_iTunesDB
*itdb, const char *outpath,
  plist_node = NULL;
     }
  }
-    } else
+    }
 #endif
-    if (itdb->device->sysinfo_extended != NULL) {
+    if (ppc_dict == NULL && itdb->device->sysinfo_extended != NULL) {
  /* try to get SQL post process commands via sysinfo_extended */
  gchar *dev_path = itdb_get_device_dir(itdb->device->mountpoint);
  if (dev_path) {

- Yasuhiro Matsumoto

--001a11c027ccecf18604f36cd1ad
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi list.<br></div><div><br></div><div>When libimobile=
device doesn&#39;t return expected value, we can get post proc commands via=
 SysInfoExtra.</div><div>How about this?</div><div><br></div><div>diff --gi=
t a/src/itdb_sqlite.c b/src/itdb_sqlite.c</div>
<div>index b5b2975..56c2506 100644</div><div>--- a/src/itdb_sqlite.c</div><=
div>+++ b/src/itdb_sqlite.c</div><div>@@ -1793,9 +1793,9 @@ static void run=
_post_process_commands(Itdb_iTunesDB *itdb, const char *outpath,</div><div>
=C2=A0<span class=3D"" style=3D"white-space:pre">		</span>plist_node =3D NU=
LL;</div><div>=C2=A0<span class=3D"" style=3D"white-space:pre">	</span> =C2=
=A0 =C2=A0}</div><div>=C2=A0<span class=3D"" style=3D"white-space:pre">	</s=
pan>}</div><div>- =C2=A0 =C2=A0} else=C2=A0</div><div>
+ =C2=A0 =C2=A0}</div><div>=C2=A0#endif</div><div>- =C2=A0 =C2=A0if (itdb-&=
gt;device-&gt;sysinfo_extended !=3D NULL) {</div><div>+ =C2=A0 =C2=A0if (pp=
c_dict =3D=3D NULL &amp;&amp; itdb-&gt;device-&gt;sysinfo_extended !=3D NUL=
L) {</div><div>=C2=A0<span class=3D"" style=3D"white-space:pre">	</span>/* =
try to get SQL post process commands via sysinfo_extended */</div>
<div>=C2=A0<span class=3D"" style=3D"white-space:pre">	</span>gchar *dev_pa=
th =3D itdb_get_device_dir(itdb-&gt;device-&gt;mountpoint);</div><div>=C2=
=A0<span class=3D"" style=3D"white-space:pre">	</span>if (dev_path) {</div>=
<div><br></div><div>
- Yasuhiro Matsumoto</div><div><br></div>
</div>

--001a11c027ccecf18604f36cd1ad--


--===============0166937423352439044==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
--===============0166937423352439044==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Gtkpod-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-devel

--===============0166937423352439044==--