diff options
author | Roger Leigh <rleigh@debian.org> | 2010-02-18 18:43:37 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2010-02-18 18:43:37 +0000 |
commit | b7a746079a87b24dc0e64362e83463029e26c98f (patch) | |
tree | 4cd968e10cb18bdcd7ed21489f6fdb3e9dc1e0ff /include | |
parent | 0f09a5be038c93c1bd5ca2988e152345bbf74c00 (diff) |
Imported Upstream version 5.2.5
Diffstat (limited to 'include')
-rw-r--r-- | include/gutenprint/printers.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/gutenprint/printers.h b/include/gutenprint/printers.h index 86a9462..194b6b0 100644 --- a/include/gutenprint/printers.h +++ b/include/gutenprint/printers.h @@ -1,5 +1,5 @@ /* - * "$Id: printers.h,v 1.5 2008/06/03 11:40:39 rlk Exp $" + * "$Id: printers.h,v 1.6 2009/10/05 12:37:30 rlk Exp $" * * libgimpprint printer functions. * @@ -83,6 +83,14 @@ extern const stp_printer_t *stp_get_printer_by_long_name(const char *long_name); extern const stp_printer_t *stp_get_printer_by_driver(const char *driver); /** + * Get a printer model by its IEEE 1284 device ID. + * @param device_id the printer model's device ID. + * @returns a pointer to the printer model, or NULL on failure. The + * pointer should not be freed. + */ +extern const stp_printer_t *stp_get_printer_by_device_id(const char *device_id); + +/** * Get the printer model from a vars object. * @param v the vars to use. * @returns a pointer to the printer model, or NULL on failure. The @@ -113,6 +121,13 @@ extern const char *stp_printer_get_long_name(const stp_printer_t * p); extern const char *stp_printer_get_driver(const stp_printer_t *p); /** + * Get a printer model's IEEE 1284 device ID, if known. + * @param p the printer model to use. + * @returns the IEEE 1284 device ID, or NULL if not known. + */ +extern const char *stp_printer_get_device_id(const stp_printer_t *p); + +/** * Get a printer model's family name. * The family name is the name of the modular "family" driver this * model uses. @@ -255,5 +270,5 @@ const char *stp_describe_output(const stp_vars_t *v); #endif /* GUTENPRINT_PRINTERS_H */ /* - * End of "$Id: printers.h,v 1.5 2008/06/03 11:40:39 rlk Exp $". + * End of "$Id: printers.h,v 1.6 2009/10/05 12:37:30 rlk Exp $". */ |