All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tobias Hoffmann <lprint-list@the-axe-effect.de>
To: Matt Gessner <magembcons@gmail.com>
Cc: printing-architecture@lists.linux-foundation.org
Subject: Re: [Printing-architecture] Associate printer
Date: Fri, 17 Oct 2008 14:41:31 +0200	[thread overview]
Message-ID: <48F887FB.7070701@the-axe-effect.de> (raw)
In-Reply-To: <9624da290810170450g6401b162w598f9d51ac7d8a61@mail.gmail.com>

Matt Gessner wrote:
> Well, I actually understand MOST of that... but I think what I was 
> missing was the DeviceManufacturer and DeviceModel set_param stuff.
>
> Thanks for filling that in.
>
> So, by specifying the DeviceManufacturer and DeviceModel fields, 
> THAT'S how HPIJS knows that it's a USB printer versus, say, a network 
> printer or a parallel printer?  (Does it even support network printers 
> without CUPS?)
Well, they only specify the "output format" required for the given 
printer-type. How this output data gets to the printer is again up to you.
Cups has several backends for this; they are quite simple.

On the IJS side you'll have to provide either the OutputFD or the 
OutputFile parameter. A common case is
OutputFD = dup(fileno(stdout))    and then pipe the output from your 
printing filter to one of your output backends.
For example with network printers this could be as simple as
ijs-print-filter [inputfile] | netcat printer-ip 9100

Yet can just as well create a pipe() and do everything in one 
application, then again you can first store everything in a temporary 
file, or ...

  Tobias

      reply	other threads:[~2008-10-17 12:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17  5:21 [Printing-architecture] Associate printer Matt Gessner
2008-10-17  7:34 ` Tobias Hoffmann
     [not found] ` <48F83E55.7080907@gmx.de>
2008-10-17 11:50   ` Matt Gessner
2008-10-17 12:41     ` Tobias Hoffmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48F887FB.7070701@the-axe-effect.de \
    --to=lprint-list@the-axe-effect.de \
    --cc=magembcons@gmail.com \
    --cc=printing-architecture@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.