Re: [Bluez-devel] CUPS plugin discovery bits

Luiz Augusto von Dentz
2007-05-29T03:58:48Z

[-- Attachment #1.1: Type: text/plain, Size: 2747 bytes --]

I consider this as a wizard for printers, like in NetwokManager the network
wizard also
does start a discovery and it work like a charm but in my opinion it doesnt
belong to bluez utils.

Having each wizard to rely in its own discovery is probably a bad design, we
can probably integrate
all wizard together and then having services configuring them in the
background. This way we
could leave to the user to use periodic scan and popup specific device
wizard dependent on
each service when active. Also in my opinion it should exist a printer
service for those that want to
configure its devices that are not in discoverable mode.

Btw, The printer wizard as it is now wont work with periodic discovery,
signals DiscoveryStarted and
DiscoveryCompleted are not emitted while in periodic discovery.

On 5/25/07, Bastien Nocera <hadess@hadess.net> wrote:
>
> On Fri, 2007-05-25 at 13:58 +0100, Bastien Nocera wrote:
> > On Fri, 2007-05-25 at 13:30 +0100, Bastien Nocera wrote:
> > > On Thu, 2007-05-24 at 19:50 +0100, Bastien Nocera wrote:
> > > <snip>
> > > > 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.
>
> - Don't typedef BluezCupsDevice
> - Fix includes from common/
> - Simplify Makefile.am slightly
> - Remove already committed eglib changes
>
> --
> Bastien Nocera <hadess@hadess.net>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
>

--
Luiz Augusto von Dentz
Engenheiro de Computação

[-- Attachment #1.2: Type: text/html, Size: 3525 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]