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

Matt Gessner wrote:
> I'm missing an important detail.  Can someone point me to an example 
> that shows how to tell HPIJS which printer I wish to use?  From the 
> 0.35 hpijs tar ball, I think I have enough information to do other 
> things, but this part is eluding me.
All the communication between your program and the hpijs is done via a
protocol called ijs, for which there is a simple library (libijs) under
MIT license. It can be found either as part of the ghostscript
sourcecode or at http://www.linuxprinting.org/ijs/. It includes the
protocol description and an example ijs_client_example using libijs.

Roughly sketched you do:
   ijs_invoke_server("hpijs");
   ijs_client_{open, begin_job}
   ijs_client_set_param({DeviceManufacturer,DeviceModel,....},"*your
values*");
   ijs_client_{begin_page,send_data,...}
   ... more pages and/or jobs and cleanup

   Tobias

  reply	other threads:[~2008-10-17  7:34 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 [this message]
     [not found] ` <48F83E55.7080907@gmx.de>
2008-10-17 11:50   ` Matt Gessner
2008-10-17 12:41     ` Tobias Hoffmann

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=48F8400A.2010703@the-axe-effect.de \
    --to=lprint-list@the-axe-effect.de \
    --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.