]>
git.proxmox.com Git - ceph.git/blob - ceph/src/compressor/QatAccel.h
2 * Ceph - scalable distributed file system
4 * Copyright (C) 2018 Intel Corporation
6 * Author: Qiaowei Ren <qiaowei.ren@intel.com>
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
15 #ifndef CEPH_QATACCEL_H
16 #define CEPH_QATACCEL_H
19 #include <boost/optional.hpp>
20 #include "include/buffer.h"
26 QatAccel() : session({0}) {}
29 bool init(const std::string
&alg
);
31 int compress(const bufferlist
&in
, bufferlist
&out
, boost::optional
<int32_t> &compressor_message
);
32 int decompress(const bufferlist
&in
, bufferlist
&out
, boost::optional
<int32_t> compressor_message
);
33 int decompress(bufferlist::const_iterator
&p
, size_t compressed_len
, bufferlist
&dst
, boost::optional
<int32_t> compressor_message
);