]> git.proxmox.com Git - ceph.git/blob - ceph/src/cls/numops/cls_numops_client.h
add subtree-ish sources for 12.0.3
[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.hpp"
19
20 namespace rados {
21 namespace cls {
22 namespace numops {
23
24 extern int add(librados::IoCtx *ioctx,
25 const std::string& oid,
26 const std::string& key,
27 double value_to_add);
28
29 extern int sub(librados::IoCtx *ioctx,
30 const std::string& oid,
31 const std::string& key,
32 double value_to_subtract);
33
34 extern int mul(librados::IoCtx *ioctx,
35 const std::string& oid,
36 const std::string& key,
37 double value_to_multiply);
38
39 extern int div(librados::IoCtx *ioctx,
40 const std::string& oid,
41 const std::string& key,
42 double value_to_divide);
43
44 } // namespace numops
45 } // namespace cls
46 } // namespace rados
47
48 #endif // CEPH_LIBRBD_CLS_NUMOPS_CLIENT_H
49