Changeset 3650

Show
Ignore:
Timestamp:
09/09/08 02:24:17 (3 months ago)
Author:
prahal
Message:

Add usb processing to the connection config.
Use with:
<Connection>

<USB>

<Interface>0</Interface>

</USB>

</Connection>

After adding the corerct rule to udev, reloading udev, unplugging/replugging the cable
it "works" (bugs so far are that it errors out on bug commits. Looking after that).
Example udev rule:
SUBSYSTEM=="usb", ATTR{idVendor}=="0421", ATTR{idProduct}=="041e", MODE="0660", GROUP="plugdev"
where idVendor and idProduct comes from lsusb and group plugdev is an available group under debian

that I am registered with.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/syncml/src/syncml_common.c

    r3646 r3650  
    527527                                        &error)) 
    528528                                goto error; 
     529                        if (osync_plugin_connection_usb_get_interface(conn)) 
     530                        { 
     531                                char *port = g_strdup_printf("%u", osync_plugin_connection_usb_get_interface(conn)); 
     532                                if (!smlDataSyncSetOption( 
     533                                                dsObject, 
     534                                                SML_TRANSPORT_CONFIG_PORT, 
     535                                                port, &error)) 
     536                                { 
     537                                        smlSafeCFree(&port); 
     538                                        goto error; 
     539                                } 
     540                                smlSafeCFree(&port); 
     541                        } 
    529542                        break; 
    530543                case OSYNC_PLUGIN_CONNECTION_SERIAL: