blob: 1f71d06c99180c7313c938053dd0338c57917186 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <cups/cups.h>
#include <memory>
#include "printing/printing_export.h"
namespace printing {
struct PRINTING_EXPORT HttpDeleter {
void operator()(http_t* http) const;
struct PRINTING_EXPORT DestinationDeleter {
void operator()(cups_dest_t* dest) const;
struct PRINTING_EXPORT DestInfoDeleter {
void operator()(cups_dinfo_t* info) const;
struct PRINTING_EXPORT OptionDeleter {
void operator()(cups_option_t* option) const;
using ScopedHttpPtr = std::unique_ptr<http_t, HttpDeleter>;
using ScopedDestination = std::unique_ptr<cups_dest_t, DestinationDeleter>;
using ScopedDestInfo = std::unique_ptr<cups_dinfo_t, DestInfoDeleter>;
using ScopedCupsOption = std::unique_ptr<cups_option_t, OptionDeleter>;
} // namespace printing