]> git.ipfire.org Git - thirdparty/cups.git/commit - systemv/lpinfo.c
CUPS-Get-Driver now provides much better driver matching based on the
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 8 Oct 2008 21:07:45 +0000 (21:07 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 8 Oct 2008 21:07:45 +0000 (21:07 +0000)
commit904836ced0466da1e364fa9ac8d5b09839e5709b
treef6c40f4e4e00c5656a42b3ae86c2919905b40a9a
parenta7039956346a89b79441fd44e422cf84dce0803b
CUPS-Get-Driver now provides much better driver matching based on the
IEEE-1284 device ID and make/model strings (STR #2707)

Fix banner filter destination type.

systemv/lpinfo.c:
    - main(): Add support for --device-id, --language, --make-and-model,
      --product, and --timeout options.
    - show_devices(): Use timeout option.
    - show_models(): Use device_id, language, make_model, and product
      strings when listing drivers.

cgi-bin/admin.c:
    - do_am_printer(): Pass make and model to CUPS-Get-PPDs to get a list
      sorted by relevance to the current device.

scheduler/cups-driverd.cxx:
    - ppd_info_t: Add matches field.
    - compare_matches(): Added.
    - list_ppds(): Use regex to match make-and-model and device-id data,
      and create an array of matches sorted by score and make/model.
    - regex_device_id(): Added.
    - regex_string(): Added.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@8029 7a7537e8-13f0-0310-91df-b6672ffda945
CHANGES.txt
cgi-bin/admin.c
conf/mime.convs.in
man/lpinfo.man
scheduler/cups-driverd.cxx
systemv/lpinfo.c