On Fri, 2007-05-25 at 13:30 +0100, Bastien Nocera wrote: > On Thu, 2007-05-24 at 19:50 +0100, Bastien Nocera wrote: > > > This is most ugly. There should really be a helper function for that, or > > hcid should pass a decoded argument. > > > > Anyway, it's implemented now, along with a port to pure D-Bus, and can > > use the builtin eglib instead of the system one. > > And an updated version which pulls the IEEE1284 ID from the attributes > of the SDP record. This means that it takes 2 clicks in most config > tools to add the printer (add printer, and select the bluetooth > printer). > > If you're using the system hcid instead of the patched in bluez-utils, > you'll need to replace the line: > const char *svc_id = "hcrp"; /* aka 0x1126 */ > with: > const char *svc_id = "00001126-0000-1000-8000-00805F9B34FB"; > in cups/main.c device_get_ieee1284_id() > > Patch attached. With some indentation changes, at Marcel's request. -- Bastien Nocera