]> git.proxmox.com Git - ceph.git/blob - ceph/src/cls/numops/cls_numops_client.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / cls / numops / cls_numops_client.h
1 /*
2 * Ceph - scalable distributed file system
3 *
4 * Copyright (C) 2015 CERN
5 *
6 * Author: Joaquim Rocha <joaquim.rocha@cern.ch>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 */
14
15 #ifndef CEPH_LIBRBD_CLS_NUMOPS_CLIENT_H
16 #define CEPH_LIBRBD_CLS_NUMOPS_CLIENT_H
17
18 #include "include/rados/librados_fwd.hpp"
19 #include <string>
20
21 namespace rados {
22 namespace cls {
23 namespace numops {
24
25 extern int add(librados::IoCtx *ioctx,
26 const std::string& oid,
27 const std::string& key,
28 double value_to_add);
29
30 extern int sub(librados::IoCtx *ioctx,
31 const std::string& oid,
32 const std::string& key,
33 double value_to_subtract);
34
35 extern int mul(librados::IoCtx *ioctx,
36 const std::string& oid,
37 const std::string& key,
38 double value_to_multiply);
39
40 extern int div(librados::IoCtx *ioctx,
41 const std::string& oid,
42 const std::string& key,
43 double value_to_divide);
44
45 } // namespace numops
46 } // namespace cls
47 } // namespace rados
48
49 #endif // CEPH_LIBRBD_CLS_NUMOPS_CLIENT_H
50