Index: printing/backend/cups_helper.h |
=================================================================== |
--- printing/backend/cups_helper.h (revision 153539) |
+++ printing/backend/cups_helper.h (working copy) |
@@ -7,6 +7,8 @@ |
#include <cups/cups.h> |
+#include <string> |
+ |
#include "printing/printing_export.h" |
class GURL; |
@@ -14,6 +16,8 @@ |
// These are helper functions for dealing with CUPS. |
namespace printing { |
+struct PrinterSemanticCapsAndDefaults; |
+ |
// Helper wrapper around http_t structure, with connection and cleanup |
// functionality. |
class PRINTING_EXPORT HttpConnectionCUPS { |
@@ -30,6 +34,13 @@ |
http_t* http_; |
}; |
+// Helper function to parse and convert PPD capabilitites to |
+// semantic options. |
+PRINTING_EXPORT bool parsePpdCapabilities( |
+ const std::string& printer_name, |
+ const std::string& printer_capabilities, |
+ PrinterSemanticCapsAndDefaults* printer_info); |
+ |
} // namespace printing |
#endif // PRINTING_BACKEND_CUPS_HELPER_H_ |