Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / 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 <string>
19
20 namespace librados {
21   class IoCtx;
22 }
23
24 namespace rados {
25   namespace cls {
26     namespace numops {
27
28       extern int add(librados::IoCtx *ioctx,
29                      const std::string& oid,
30                      const std::string& key,
31                      double value_to_add);
32
33       extern int sub(librados::IoCtx *ioctx,
34                      const std::string& oid,
35                      const std::string& key,
36                      double value_to_subtract);
37
38       extern int mul(librados::IoCtx *ioctx,
39                      const std::string& oid,
40                      const std::string& key,
41                      double value_to_multiply);
42
43       extern int div(librados::IoCtx *ioctx,
44                      const std::string& oid,
45                      const std::string& key,
46                      double value_to_divide);
47
48     } // namespace numops
49   } // namespace cls
50 } // namespace rados
51
52 #endif // CEPH_LIBRBD_CLS_NUMOPS_CLIENT_H
53