blob: 2dccc5b5f2f990d6e4d4691b28b5cfccf4c909ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// 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 "printing/backend/cups_deleters.h"
namespace printing {
void HttpDeleter::operator()(http_t* http) const {
httpClose(http);
}
void DestinationDeleter::operator()(cups_dest_t* dest) const {
cupsFreeDests(1, dest);
}
void DestInfoDeleter::operator()(cups_dinfo_t* info) const {
cupsFreeDestInfo(info);
}
void OptionDeleter::operator()(cups_option_t* option) const {
// Frees the name and value buffers then the struct itself
cupsFreeOptions(1, option);
}
} // namespace printing
|