Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 160264 Details for
Bug 231678
app-pda/gnome-pilot-2.0.16: gpilotd does not find any devices with sys-apps/hal-0.5.11
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The code from gnome-pilot svn to which checks the pda.platform property
gpilotd-hal-0.5.11.patch (text/plain), 1.22 KB, created by
Bruce Schultz
on 2008-07-13 12:16:37 UTC
(
hide
)
Description:
The code from gnome-pilot svn to which checks the pda.platform property
Filename:
MIME Type:
Creator:
Bruce Schultz
Created:
2008-07-13 12:16:37 UTC
Size:
1.22 KB
patch
obsolete
>--- gpilotd/gpilotd.c-old 2008-07-13 21:52:04.000000000 +1000 >+++ gpilotd/gpilotd.c 2008-07-13 21:53:30.000000000 +1000 >@@ -1079,7 +1079,7 @@ > hal_device_added (LibHalContext *ctx, const char *udi) > { > gboolean visor_net = FALSE; >- char *bus, *match_str; >+ char *bus, *platform, *match_str; > int vendor_id, product_id, i; > GPilotDevice *device; > DBusError error; >@@ -1090,15 +1090,23 @@ > > load_devices_xml (); > >- /* HAL match rule: we look for info.bus == 'usb_device' >+ /* HAL match rule: we look for pda.platform == 'palm' >+ * (or the legacy info.bus == 'usb_device') > * and then try to match the usb_device.product_id and usb_device.vendor_id > * against the list in devices.xml. > */ >- if (!(bus = libhal_device_get_property_string (hal_ctx, udi, "info.bus", NULL))) >+ if (platform = libhal_device_get_property_string (hal_ctx, udi, "pda.platform", NULL)) { >+ if (strcmp (platform, "palm") != 0) { >+ libhal_free_string (platform); > return; >- if (strcmp (bus, "usb_device") != 0) { >+ } >+ } else if (bus = libhal_device_get_property_string (hal_ctx, udi, "info.bus", NULL)) { >+ if (strcmp (bus, "usb_device") != 0) { > libhal_free_string (bus); > return; >+ } >+ } else { >+ return; > } > > dbus_error_init (&error);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231678
: 160264 |
161798